Wählen Sie Ihre Cookie-Einstellungen aus

Wir verwenden essentielle Cookies und ähnliche Tools, die für die Bereitstellung unserer Website und Services erforderlich sind. Wir verwenden Performance-Cookies, um anonyme Statistiken zu sammeln, damit wir verstehen können, wie Kunden unsere Website nutzen, und Verbesserungen vornehmen können. Essentielle Cookies können nicht deaktiviert werden, aber Sie können auf „Anpassen“ oder „Ablehnen“ klicken, um Performance-Cookies abzulehnen.

Wenn Sie damit einverstanden sind, verwenden AWS und zugelassene Drittanbieter auch Cookies, um nützliche Features der Website bereitzustellen, Ihre Präferenzen zu speichern und relevante Inhalte, einschließlich relevanter Werbung, anzuzeigen. Um alle nicht notwendigen Cookies zu akzeptieren oder abzulehnen, klicken Sie auf „Akzeptieren“ oder „Ablehnen“. Um detailliertere Entscheidungen zu treffen, klicken Sie auf „Anpassen“.

Codebeispiele für die Verwendung AWS Entity ResolutionAWS SDKs

Fokusmodus
Codebeispiele für die Verwendung AWS Entity ResolutionAWS SDKs - AWS SDK-Codebeispiele

Weitere AWS SDK-Beispiele sind im Repo AWS Doc SDK Examples GitHub verfügbar.

Die vorliegende Übersetzung wurde maschinell erstellt. Im Falle eines Konflikts oder eines Widerspruchs zwischen dieser übersetzten Fassung und der englischen Fassung (einschließlich infolge von Verzögerungen bei der Übersetzung) ist die englische Fassung maßgeblich.

Weitere AWS SDK-Beispiele sind im Repo AWS Doc SDK Examples GitHub verfügbar.

Die vorliegende Übersetzung wurde maschinell erstellt. Im Falle eines Konflikts oder eines Widerspruchs zwischen dieser übersetzten Fassung und der englischen Fassung (einschließlich infolge von Verzögerungen bei der Übersetzung) ist die englische Fassung maßgeblich.

Die folgenden Codebeispiele zeigen Ihnen, wie Sie es AWS Entity Resolution mit einem AWS Software Development Kit (SDK) verwenden.

Bei Grundlagen handelt es sich um Code-Beispiele, die Ihnen zeigen, wie Sie die wesentlichen Vorgänge innerhalb eines Services ausführen.

Aktionen sind Codeauszüge aus größeren Programmen und müssen im Kontext ausgeführt werden. Während Aktionen Ihnen zeigen, wie Sie einzelne Service-Funktionen aufrufen, können Sie Aktionen im Kontext der zugehörigen Szenarios anzeigen.

Weitere -Quellen

Erste Schritte

Das folgende Codebeispiel zeigt, wie Sie mit der Verwendung beginnen AWS Entity Resolution.

Java
SDK für Java 2.x
Anmerkung

Es gibt noch mehr dazu GitHub. Sie sehen das vollständige Beispiel und erfahren, wie Sie das AWS -Code-Beispiel-Repository einrichten und ausführen.

/** * Before running this Java V2 code example, set up your development * environment, including your credentials. * * For more information, see the following documentation topic: * * https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/get-started.html */ public class HelloEntityResoultion { private static final Logger logger = LoggerFactory.getLogger(HelloEntityResoultion.class); private static EntityResolutionAsyncClient entityResolutionAsyncClient; public static void main(String[] args) { listMatchingWorkflows(); } public static EntityResolutionAsyncClient getResolutionAsyncClient() { if (entityResolutionAsyncClient == null) { /* The `NettyNioAsyncHttpClient` class is part of the AWS SDK for Java, version 2, and it is designed to provide a high-performance, asynchronous HTTP client for interacting with AWS services. It uses the Netty framework to handle the underlying network communication and the Java NIO API to provide a non-blocking, event-driven approach to HTTP requests and responses. */ SdkAsyncHttpClient httpClient = NettyNioAsyncHttpClient.builder() .maxConcurrency(50) // Adjust as needed. .connectionTimeout(Duration.ofSeconds(60)) // Set the connection timeout. .readTimeout(Duration.ofSeconds(60)) // Set the read timeout. .writeTimeout(Duration.ofSeconds(60)) // Set the write timeout. .build(); ClientOverrideConfiguration overrideConfig = ClientOverrideConfiguration.builder() .apiCallTimeout(Duration.ofMinutes(2)) // Set the overall API call timeout. .apiCallAttemptTimeout(Duration.ofSeconds(90)) // Set the individual call attempt timeout. .retryStrategy(RetryMode.STANDARD) .build(); entityResolutionAsyncClient = EntityResolutionAsyncClient.builder() .httpClient(httpClient) .overrideConfiguration(overrideConfig) .build(); } return entityResolutionAsyncClient; } /** * Lists all matching workflows using an asynchronous paginator. * <p> * This method requests a paginated list of matching workflows from the * AWS Entity Resolution service and logs the names of the retrieved workflows. * It uses an asynchronous approach with a paginator and waits for the operation * to complete using {@code CompletableFuture#join()}. * </p> */ public static void listMatchingWorkflows() { ListMatchingWorkflowsRequest request = ListMatchingWorkflowsRequest.builder().build(); ListMatchingWorkflowsPublisher paginator = getResolutionAsyncClient().listMatchingWorkflowsPaginator(request); // Iterate through the paginated results asynchronously CompletableFuture<Void> future = paginator.subscribe(response -> { response.workflowSummaries().forEach(workflow -> logger.info("Matching Workflow Name: " + workflow.workflowName()) ); }); // Wait for the asynchronous operation to complete future.join(); } }

Das folgende Codebeispiel zeigt, wie Sie mit der Verwendung beginnen AWS Entity Resolution.

Java
SDK für Java 2.x
Anmerkung

Es gibt noch mehr dazu GitHub. Sie sehen das vollständige Beispiel und erfahren, wie Sie das AWS -Code-Beispiel-Repository einrichten und ausführen.

/** * Before running this Java V2 code example, set up your development * environment, including your credentials. * * For more information, see the following documentation topic: * * https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/get-started.html */ public class HelloEntityResoultion { private static final Logger logger = LoggerFactory.getLogger(HelloEntityResoultion.class); private static EntityResolutionAsyncClient entityResolutionAsyncClient; public static void main(String[] args) { listMatchingWorkflows(); } public static EntityResolutionAsyncClient getResolutionAsyncClient() { if (entityResolutionAsyncClient == null) { /* The `NettyNioAsyncHttpClient` class is part of the AWS SDK for Java, version 2, and it is designed to provide a high-performance, asynchronous HTTP client for interacting with AWS services. It uses the Netty framework to handle the underlying network communication and the Java NIO API to provide a non-blocking, event-driven approach to HTTP requests and responses. */ SdkAsyncHttpClient httpClient = NettyNioAsyncHttpClient.builder() .maxConcurrency(50) // Adjust as needed. .connectionTimeout(Duration.ofSeconds(60)) // Set the connection timeout. .readTimeout(Duration.ofSeconds(60)) // Set the read timeout. .writeTimeout(Duration.ofSeconds(60)) // Set the write timeout. .build(); ClientOverrideConfiguration overrideConfig = ClientOverrideConfiguration.builder() .apiCallTimeout(Duration.ofMinutes(2)) // Set the overall API call timeout. .apiCallAttemptTimeout(Duration.ofSeconds(90)) // Set the individual call attempt timeout. .retryStrategy(RetryMode.STANDARD) .build(); entityResolutionAsyncClient = EntityResolutionAsyncClient.builder() .httpClient(httpClient) .overrideConfiguration(overrideConfig) .build(); } return entityResolutionAsyncClient; } /** * Lists all matching workflows using an asynchronous paginator. * <p> * This method requests a paginated list of matching workflows from the * AWS Entity Resolution service and logs the names of the retrieved workflows. * It uses an asynchronous approach with a paginator and waits for the operation * to complete using {@code CompletableFuture#join()}. * </p> */ public static void listMatchingWorkflows() { ListMatchingWorkflowsRequest request = ListMatchingWorkflowsRequest.builder().build(); ListMatchingWorkflowsPublisher paginator = getResolutionAsyncClient().listMatchingWorkflowsPaginator(request); // Iterate through the paginated results asynchronously CompletableFuture<Void> future = paginator.subscribe(response -> { response.workflowSummaries().forEach(workflow -> logger.info("Matching Workflow Name: " + workflow.workflowName()) ); }); // Wait for the asynchronous operation to complete future.join(); } }
SDK für Java 2.x
Anmerkung

Es gibt noch mehr dazu GitHub. Sie sehen das vollständige Beispiel und erfahren, wie Sie das AWS -Code-Beispiel-Repository einrichten und ausführen.

/** * Before running this Java V2 code example, set up your development * environment, including your credentials. * * For more information, see the following documentation topic: * * https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/get-started.html */ public class HelloEntityResoultion { private static final Logger logger = LoggerFactory.getLogger(HelloEntityResoultion.class); private static EntityResolutionAsyncClient entityResolutionAsyncClient; public static void main(String[] args) { listMatchingWorkflows(); } public static EntityResolutionAsyncClient getResolutionAsyncClient() { if (entityResolutionAsyncClient == null) { /* The `NettyNioAsyncHttpClient` class is part of the AWS SDK for Java, version 2, and it is designed to provide a high-performance, asynchronous HTTP client for interacting with AWS services. It uses the Netty framework to handle the underlying network communication and the Java NIO API to provide a non-blocking, event-driven approach to HTTP requests and responses. */ SdkAsyncHttpClient httpClient = NettyNioAsyncHttpClient.builder() .maxConcurrency(50) // Adjust as needed. .connectionTimeout(Duration.ofSeconds(60)) // Set the connection timeout. .readTimeout(Duration.ofSeconds(60)) // Set the read timeout. .writeTimeout(Duration.ofSeconds(60)) // Set the write timeout. .build(); ClientOverrideConfiguration overrideConfig = ClientOverrideConfiguration.builder() .apiCallTimeout(Duration.ofMinutes(2)) // Set the overall API call timeout. .apiCallAttemptTimeout(Duration.ofSeconds(90)) // Set the individual call attempt timeout. .retryStrategy(RetryMode.STANDARD) .build(); entityResolutionAsyncClient = EntityResolutionAsyncClient.builder() .httpClient(httpClient) .overrideConfiguration(overrideConfig) .build(); } return entityResolutionAsyncClient; } /** * Lists all matching workflows using an asynchronous paginator. * <p> * This method requests a paginated list of matching workflows from the * AWS Entity Resolution service and logs the names of the retrieved workflows. * It uses an asynchronous approach with a paginator and waits for the operation * to complete using {@code CompletableFuture#join()}. * </p> */ public static void listMatchingWorkflows() { ListMatchingWorkflowsRequest request = ListMatchingWorkflowsRequest.builder().build(); ListMatchingWorkflowsPublisher paginator = getResolutionAsyncClient().listMatchingWorkflowsPaginator(request); // Iterate through the paginated results asynchronously CompletableFuture<Void> future = paginator.subscribe(response -> { response.workflowSummaries().forEach(workflow -> logger.info("Matching Workflow Name: " + workflow.workflowName()) ); }); // Wait for the asynchronous operation to complete future.join(); } }
DatenschutzNutzungsbedingungen für die WebsiteCookie-Einstellungen
© 2025, Amazon Web Services, Inc. oder Tochtergesellschaften. Alle Rechte vorbehalten.