Class AmazonMachineLearningAsyncClient
- All Implemented Interfaces:
AmazonMachineLearning,AmazonMachineLearningAsync
AsyncHandler can be
used to receive notification when an asynchronous operation completes.
Definition of the public APIs exposed by Amazon Machine Learning
-
Field Summary
Fields inherited from class com.amazonaws.services.machinelearning.AmazonMachineLearningClient
configFactoryFields inherited from class com.amazonaws.AmazonWebServiceClient
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new asynchronous client to invoke service methods on Amazon Machine Learning.AmazonMachineLearningAsyncClient(AWSCredentials awsCredentials) Constructs a new asynchronous client to invoke service methods on Amazon Machine Learning using the specified AWS account credentials.AmazonMachineLearningAsyncClient(AWSCredentialsProvider awsCredentialsProvider) Constructs a new asynchronous client to invoke service methods on Amazon Machine Learning using the specified AWS account credentials provider.AmazonMachineLearningAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) Constructs a new asynchronous client to invoke service methods on Amazon Machine Learning using the provided AWS account credentials provider and client configuration options.AmazonMachineLearningAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Amazon Machine Learning using the specified AWS account credentials provider, executor service, and client configuration options.AmazonMachineLearningAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Amazon Machine Learning using the specified AWS account credentials provider and executor service.AmazonMachineLearningAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Amazon Machine Learning using the specified AWS account credentials, executor service, and client configuration options.AmazonMachineLearningAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Amazon Machine Learning using the specified AWS account credentials and executor service.AmazonMachineLearningAsyncClient(ClientConfiguration clientConfiguration) Constructs a new asynchronous client to invoke service methods on Amazon Machine Learning. -
Method Summary
Modifier and TypeMethodDescriptionGenerates predictions for a group of observations.createBatchPredictionAsync(CreateBatchPredictionRequest request, AsyncHandler<CreateBatchPredictionRequest, CreateBatchPredictionResult> asyncHandler) Generates predictions for a group of observations.Creates aDataSourceobject from an Amazon Relational Database Service (Amazon RDS).createDataSourceFromRDSAsync(CreateDataSourceFromRDSRequest request, AsyncHandler<CreateDataSourceFromRDSRequest, CreateDataSourceFromRDSResult> asyncHandler) Creates aDataSourceobject from an Amazon Relational Database Service (Amazon RDS).Creates aDataSourcefrom Amazon Redshift.createDataSourceFromRedshiftAsync(CreateDataSourceFromRedshiftRequest request, AsyncHandler<CreateDataSourceFromRedshiftRequest, CreateDataSourceFromRedshiftResult> asyncHandler) Creates aDataSourcefrom Amazon Redshift.Creates aDataSourceobject.createDataSourceFromS3Async(CreateDataSourceFromS3Request request, AsyncHandler<CreateDataSourceFromS3Request, CreateDataSourceFromS3Result> asyncHandler) Creates aDataSourceobject.Creates a newEvaluationof anMLModel.createEvaluationAsync(CreateEvaluationRequest request, AsyncHandler<CreateEvaluationRequest, CreateEvaluationResult> asyncHandler) Creates a newEvaluationof anMLModel.createMLModelAsync(CreateMLModelRequest request) Creates a newMLModelusing the data files and the recipe as information sources.createMLModelAsync(CreateMLModelRequest request, AsyncHandler<CreateMLModelRequest, CreateMLModelResult> asyncHandler) Creates a newMLModelusing the data files and the recipe as information sources.Creates a real-time endpoint for theMLModel.createRealtimeEndpointAsync(CreateRealtimeEndpointRequest request, AsyncHandler<CreateRealtimeEndpointRequest, CreateRealtimeEndpointResult> asyncHandler) Creates a real-time endpoint for theMLModel.Assigns the DELETED status to aBatchPrediction, rendering it unusable.deleteBatchPredictionAsync(DeleteBatchPredictionRequest request, AsyncHandler<DeleteBatchPredictionRequest, DeleteBatchPredictionResult> asyncHandler) Assigns the DELETED status to aBatchPrediction, rendering it unusable.Assigns the DELETED status to aDataSource, rendering it unusable.deleteDataSourceAsync(DeleteDataSourceRequest request, AsyncHandler<DeleteDataSourceRequest, DeleteDataSourceResult> asyncHandler) Assigns the DELETED status to aDataSource, rendering it unusable.Assigns theDELETEDstatus to anEvaluation, rendering it unusable.deleteEvaluationAsync(DeleteEvaluationRequest request, AsyncHandler<DeleteEvaluationRequest, DeleteEvaluationResult> asyncHandler) Assigns theDELETEDstatus to anEvaluation, rendering it unusable.deleteMLModelAsync(DeleteMLModelRequest request) Assigns the DELETED status to anMLModel, rendering it unusable.deleteMLModelAsync(DeleteMLModelRequest request, AsyncHandler<DeleteMLModelRequest, DeleteMLModelResult> asyncHandler) Assigns the DELETED status to anMLModel, rendering it unusable.Deletes a real time endpoint of anMLModel.deleteRealtimeEndpointAsync(DeleteRealtimeEndpointRequest request, AsyncHandler<DeleteRealtimeEndpointRequest, DeleteRealtimeEndpointResult> asyncHandler) Deletes a real time endpoint of anMLModel.Simplified method form for invoking the DescribeBatchPredictions operation.describeBatchPredictionsAsync(AsyncHandler<DescribeBatchPredictionsRequest, DescribeBatchPredictionsResult> asyncHandler) Simplified method form for invoking the DescribeBatchPredictions operation with an AsyncHandler.Returns a list ofBatchPredictionoperations that match the search criteria in the request.describeBatchPredictionsAsync(DescribeBatchPredictionsRequest request, AsyncHandler<DescribeBatchPredictionsRequest, DescribeBatchPredictionsResult> asyncHandler) Returns a list ofBatchPredictionoperations that match the search criteria in the request.Simplified method form for invoking the DescribeDataSources operation.describeDataSourcesAsync(AsyncHandler<DescribeDataSourcesRequest, DescribeDataSourcesResult> asyncHandler) Simplified method form for invoking the DescribeDataSources operation with an AsyncHandler.Returns a list ofDataSourcethat match the search criteria in the request.describeDataSourcesAsync(DescribeDataSourcesRequest request, AsyncHandler<DescribeDataSourcesRequest, DescribeDataSourcesResult> asyncHandler) Returns a list ofDataSourcethat match the search criteria in the request.Simplified method form for invoking the DescribeEvaluations operation.describeEvaluationsAsync(AsyncHandler<DescribeEvaluationsRequest, DescribeEvaluationsResult> asyncHandler) Simplified method form for invoking the DescribeEvaluations operation with an AsyncHandler.Returns a list ofDescribeEvaluationsthat match the search criteria in the request.describeEvaluationsAsync(DescribeEvaluationsRequest request, AsyncHandler<DescribeEvaluationsRequest, DescribeEvaluationsResult> asyncHandler) Returns a list ofDescribeEvaluationsthat match the search criteria in the request.Simplified method form for invoking the DescribeMLModels operation.Simplified method form for invoking the DescribeMLModels operation with an AsyncHandler.Returns a list ofMLModelthat match the search criteria in the request.describeMLModelsAsync(DescribeMLModelsRequest request, AsyncHandler<DescribeMLModelsRequest, DescribeMLModelsResult> asyncHandler) Returns a list ofMLModelthat match the search criteria in the request.Returns aBatchPredictionthat includes detailed metadata, status, and data file information for aBatch Predictionrequest.getBatchPredictionAsync(GetBatchPredictionRequest request, AsyncHandler<GetBatchPredictionRequest, GetBatchPredictionResult> asyncHandler) Returns aBatchPredictionthat includes detailed metadata, status, and data file information for aBatch Predictionrequest.getDataSourceAsync(GetDataSourceRequest request) Returns aDataSourcethat includes metadata and data file information, as well as the current status of theDataSource.getDataSourceAsync(GetDataSourceRequest request, AsyncHandler<GetDataSourceRequest, GetDataSourceResult> asyncHandler) Returns aDataSourcethat includes metadata and data file information, as well as the current status of theDataSource.getEvaluationAsync(GetEvaluationRequest request) Returns anEvaluationthat includes metadata as well as the current status of theEvaluation.getEvaluationAsync(GetEvaluationRequest request, AsyncHandler<GetEvaluationRequest, GetEvaluationResult> asyncHandler) Returns anEvaluationthat includes metadata as well as the current status of theEvaluation.Returns the executor service used by this client to execute async requests.getMLModelAsync(GetMLModelRequest request) Returns anMLModelthat includes detailed metadata, and data source information as well as the current status of theMLModel.getMLModelAsync(GetMLModelRequest request, AsyncHandler<GetMLModelRequest, GetMLModelResult> asyncHandler) Returns anMLModelthat includes detailed metadata, and data source information as well as the current status of theMLModel.predictAsync(PredictRequest request) Generates a prediction for the observation using the specifiedML Model.predictAsync(PredictRequest request, AsyncHandler<PredictRequest, PredictResult> asyncHandler) Generates a prediction for the observation using the specifiedML Model.voidshutdown()Shuts down the client, releasing all managed resources.Updates theBatchPredictionNameof aBatchPrediction.updateBatchPredictionAsync(UpdateBatchPredictionRequest request, AsyncHandler<UpdateBatchPredictionRequest, UpdateBatchPredictionResult> asyncHandler) Updates theBatchPredictionNameof aBatchPrediction.Updates theDataSourceNameof aDataSource.updateDataSourceAsync(UpdateDataSourceRequest request, AsyncHandler<UpdateDataSourceRequest, UpdateDataSourceResult> asyncHandler) Updates theDataSourceNameof aDataSource.Updates theEvaluationNameof anEvaluation.updateEvaluationAsync(UpdateEvaluationRequest request, AsyncHandler<UpdateEvaluationRequest, UpdateEvaluationResult> asyncHandler) Updates theEvaluationNameof anEvaluation.updateMLModelAsync(UpdateMLModelRequest request) Updates theMLModelNameand theScoreThresholdof anMLModel.updateMLModelAsync(UpdateMLModelRequest request, AsyncHandler<UpdateMLModelRequest, UpdateMLModelResult> asyncHandler) Updates theMLModelNameand theScoreThresholdof anMLModel.Methods inherited from class com.amazonaws.services.machinelearning.AmazonMachineLearningClient
createBatchPrediction, createDataSourceFromRDS, createDataSourceFromRedshift, createDataSourceFromS3, createEvaluation, createMLModel, createRealtimeEndpoint, deleteBatchPrediction, deleteDataSource, deleteEvaluation, deleteMLModel, deleteRealtimeEndpoint, describeBatchPredictions, describeBatchPredictions, describeDataSources, describeDataSources, describeEvaluations, describeEvaluations, describeMLModels, describeMLModels, getBatchPrediction, getCachedResponseMetadata, getDataSource, getEvaluation, getMLModel, predict, updateBatchPrediction, updateDataSource, updateEvaluation, updateMLModelMethods inherited from class com.amazonaws.AmazonWebServiceClient
addRequestHandler, addRequestHandler, beforeMarshalling, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getEndpointPrefix, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpointPrefix, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.amazonaws.services.machinelearning.AmazonMachineLearning
createBatchPrediction, createDataSourceFromRDS, createDataSourceFromRedshift, createDataSourceFromS3, createEvaluation, createMLModel, createRealtimeEndpoint, deleteBatchPrediction, deleteDataSource, deleteEvaluation, deleteMLModel, deleteRealtimeEndpoint, describeBatchPredictions, describeBatchPredictions, describeDataSources, describeDataSources, describeEvaluations, describeEvaluations, describeMLModels, describeMLModels, getBatchPrediction, getCachedResponseMetadata, getDataSource, getEvaluation, getMLModel, predict, setEndpoint, setRegion, updateBatchPrediction, updateDataSource, updateEvaluation, updateMLModel
-
Constructor Details
-
AmazonMachineLearningAsyncClient
public AmazonMachineLearningAsyncClient()Constructs a new asynchronous client to invoke service methods on Amazon Machine Learning. A credentials provider chain will be used that searches for credentials in this order:- Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
- Java System Properties - aws.accessKeyId and aws.secretKey
- Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
- Instance profile credentials delivered through the Amazon EC2 metadata service
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
- See Also:
-
AmazonMachineLearningAsyncClient
Constructs a new asynchronous client to invoke service methods on Amazon Machine Learning. A credentials provider chain will be used that searches for credentials in this order:- Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
- Java System Properties - aws.accessKeyId and aws.secretKey
- Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
- Instance profile credentials delivered through the Amazon EC2 metadata service
Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the maximum number of concurrent connections configured via
ClientConfiguration.getMaxConnections().- Parameters:
clientConfiguration- The client configuration options controlling how this client connects to Amazon Machine Learning (ex: proxy settings, retry counts, etc).- See Also:
-
AmazonMachineLearningAsyncClient
Constructs a new asynchronous client to invoke service methods on Amazon Machine Learning using the specified AWS account credentials.Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
- Parameters:
awsCredentials- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.- See Also:
-
AmazonMachineLearningAsyncClient
public AmazonMachineLearningAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Amazon Machine Learning using the specified AWS account credentials and executor service. Default client settings will be used.- Parameters:
awsCredentials- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.executorService- The executor service by which all asynchronous requests will be executed.
-
AmazonMachineLearningAsyncClient
public AmazonMachineLearningAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Amazon Machine Learning using the specified AWS account credentials, executor service, and client configuration options.- Parameters:
awsCredentials- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.clientConfiguration- Client configuration options (ex: max retry limit, proxy settings, etc).executorService- The executor service by which all asynchronous requests will be executed.
-
AmazonMachineLearningAsyncClient
Constructs a new asynchronous client to invoke service methods on Amazon Machine Learning using the specified AWS account credentials provider. Default client settings will be used.Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
- Parameters:
awsCredentialsProvider- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.- See Also:
-
AmazonMachineLearningAsyncClient
public AmazonMachineLearningAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) Constructs a new asynchronous client to invoke service methods on Amazon Machine Learning using the provided AWS account credentials provider and client configuration options.Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the maximum number of concurrent connections configured via
ClientConfiguration.getMaxConnections().- Parameters:
awsCredentialsProvider- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration- Client configuration options (ex: max retry limit, proxy settings, etc).- See Also:
-
AmazonMachineLearningAsyncClient
public AmazonMachineLearningAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Amazon Machine Learning using the specified AWS account credentials provider and executor service. Default client settings will be used.- Parameters:
awsCredentialsProvider- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.executorService- The executor service by which all asynchronous requests will be executed.
-
AmazonMachineLearningAsyncClient
public AmazonMachineLearningAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Amazon Machine Learning using the specified AWS account credentials provider, executor service, and client configuration options.- Parameters:
awsCredentialsProvider- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration- Client configuration options (ex: max retry limit, proxy settings, etc).executorService- The executor service by which all asynchronous requests will be executed.
-
-
Method Details
-
getExecutorService
Returns the executor service used by this client to execute async requests.- Returns:
- The executor service used by this client to execute async requests.
-
createBatchPredictionAsync
public Future<CreateBatchPredictionResult> createBatchPredictionAsync(CreateBatchPredictionRequest request) Description copied from interface:AmazonMachineLearningAsyncGenerates predictions for a group of observations. The observations to process exist in one or more data files referenced by a
DataSource. This operation creates a newBatchPrediction, and uses anMLModeland the data files referenced by theDataSourceas information sources.CreateBatchPredictionis an asynchronous operation. In response toCreateBatchPrediction, Amazon Machine Learning (Amazon ML) immediately returns and sets theBatchPredictionstatus toPENDING. After theBatchPredictioncompletes, Amazon ML sets the status toCOMPLETED.You can poll for status updates by using the GetBatchPrediction operation and checking the
Statusparameter of the result. After theCOMPLETEDstatus appears, the results are available in the location specified by theOutputUriparameter.- Specified by:
createBatchPredictionAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the CreateBatchPrediction operation returned by the service.
-
createBatchPredictionAsync
public Future<CreateBatchPredictionResult> createBatchPredictionAsync(CreateBatchPredictionRequest request, AsyncHandler<CreateBatchPredictionRequest, CreateBatchPredictionResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncGenerates predictions for a group of observations. The observations to process exist in one or more data files referenced by a
DataSource. This operation creates a newBatchPrediction, and uses anMLModeland the data files referenced by theDataSourceas information sources.CreateBatchPredictionis an asynchronous operation. In response toCreateBatchPrediction, Amazon Machine Learning (Amazon ML) immediately returns and sets theBatchPredictionstatus toPENDING. After theBatchPredictioncompletes, Amazon ML sets the status toCOMPLETED.You can poll for status updates by using the GetBatchPrediction operation and checking the
Statusparameter of the result. After theCOMPLETEDstatus appears, the results are available in the location specified by theOutputUriparameter.- Specified by:
createBatchPredictionAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateBatchPrediction operation returned by the service.
-
createDataSourceFromRDSAsync
public Future<CreateDataSourceFromRDSResult> createDataSourceFromRDSAsync(CreateDataSourceFromRDSRequest request) Description copied from interface:AmazonMachineLearningAsyncCreates a
DataSourceobject from an Amazon Relational Database Service (Amazon RDS). ADataSourcereferences data that can be used to perform CreateMLModel, CreateEvaluation, or CreateBatchPrediction operations.CreateDataSourceFromRDSis an asynchronous operation. In response toCreateDataSourceFromRDS, Amazon Machine Learning (Amazon ML) immediately returns and sets theDataSourcestatus toPENDING. After theDataSourceis created and ready for use, Amazon ML sets theStatusparameter toCOMPLETED.DataSourceinCOMPLETEDorPENDINGstatus can only be used to perform CreateMLModel, CreateEvaluation, or CreateBatchPrediction operations.If Amazon ML cannot accept the input source, it sets the
Statusparameter toFAILEDand includes an error message in theMessageattribute of the GetDataSource operation response.- Specified by:
createDataSourceFromRDSAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the CreateDataSourceFromRDS operation returned by the service.
-
createDataSourceFromRDSAsync
public Future<CreateDataSourceFromRDSResult> createDataSourceFromRDSAsync(CreateDataSourceFromRDSRequest request, AsyncHandler<CreateDataSourceFromRDSRequest, CreateDataSourceFromRDSResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncCreates a
DataSourceobject from an Amazon Relational Database Service (Amazon RDS). ADataSourcereferences data that can be used to perform CreateMLModel, CreateEvaluation, or CreateBatchPrediction operations.CreateDataSourceFromRDSis an asynchronous operation. In response toCreateDataSourceFromRDS, Amazon Machine Learning (Amazon ML) immediately returns and sets theDataSourcestatus toPENDING. After theDataSourceis created and ready for use, Amazon ML sets theStatusparameter toCOMPLETED.DataSourceinCOMPLETEDorPENDINGstatus can only be used to perform CreateMLModel, CreateEvaluation, or CreateBatchPrediction operations.If Amazon ML cannot accept the input source, it sets the
Statusparameter toFAILEDand includes an error message in theMessageattribute of the GetDataSource operation response.- Specified by:
createDataSourceFromRDSAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateDataSourceFromRDS operation returned by the service.
-
createDataSourceFromRedshiftAsync
public Future<CreateDataSourceFromRedshiftResult> createDataSourceFromRedshiftAsync(CreateDataSourceFromRedshiftRequest request) Description copied from interface:AmazonMachineLearningAsyncCreates a
DataSourcefrom Amazon Redshift. ADataSourcereferences data that can be used to perform either CreateMLModel, CreateEvaluation or CreateBatchPrediction operations.CreateDataSourceFromRedshiftis an asynchronous operation. In response toCreateDataSourceFromRedshift, Amazon Machine Learning (Amazon ML) immediately returns and sets theDataSourcestatus toPENDING. After theDataSourceis created and ready for use, Amazon ML sets theStatusparameter toCOMPLETED.DataSourceinCOMPLETEDorPENDINGstatus can only be used to perform CreateMLModel, CreateEvaluation, or CreateBatchPrediction operations.If Amazon ML cannot accept the input source, it sets the
Statusparameter toFAILEDand includes an error message in theMessageattribute of the GetDataSource operation response.The observations should exist in the database hosted on an Amazon Redshift cluster and should be specified by a
SelectSqlQuery. Amazon ML executes Unload command in Amazon Redshift to transfer the result set ofSelectSqlQuerytoS3StagingLocation.After the
DataSourceis created, it's ready for use in evaluations and batch predictions. If you plan to use theDataSourceto train anMLModel, theDataSourcerequires another item -- a recipe. A recipe describes the observation variables that participate in training anMLModel. A recipe describes how each input variable will be used in training. Will the variable be included or excluded from training? Will the variable be manipulated, for example, combined with another variable or split apart into word combinations? The recipe provides answers to these questions. For more information, see the Amazon Machine Learning Developer Guide.- Specified by:
createDataSourceFromRedshiftAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the CreateDataSourceFromRedshift operation returned by the service.
-
createDataSourceFromRedshiftAsync
public Future<CreateDataSourceFromRedshiftResult> createDataSourceFromRedshiftAsync(CreateDataSourceFromRedshiftRequest request, AsyncHandler<CreateDataSourceFromRedshiftRequest, CreateDataSourceFromRedshiftResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncCreates a
DataSourcefrom Amazon Redshift. ADataSourcereferences data that can be used to perform either CreateMLModel, CreateEvaluation or CreateBatchPrediction operations.CreateDataSourceFromRedshiftis an asynchronous operation. In response toCreateDataSourceFromRedshift, Amazon Machine Learning (Amazon ML) immediately returns and sets theDataSourcestatus toPENDING. After theDataSourceis created and ready for use, Amazon ML sets theStatusparameter toCOMPLETED.DataSourceinCOMPLETEDorPENDINGstatus can only be used to perform CreateMLModel, CreateEvaluation, or CreateBatchPrediction operations.If Amazon ML cannot accept the input source, it sets the
Statusparameter toFAILEDand includes an error message in theMessageattribute of the GetDataSource operation response.The observations should exist in the database hosted on an Amazon Redshift cluster and should be specified by a
SelectSqlQuery. Amazon ML executes Unload command in Amazon Redshift to transfer the result set ofSelectSqlQuerytoS3StagingLocation.After the
DataSourceis created, it's ready for use in evaluations and batch predictions. If you plan to use theDataSourceto train anMLModel, theDataSourcerequires another item -- a recipe. A recipe describes the observation variables that participate in training anMLModel. A recipe describes how each input variable will be used in training. Will the variable be included or excluded from training? Will the variable be manipulated, for example, combined with another variable or split apart into word combinations? The recipe provides answers to these questions. For more information, see the Amazon Machine Learning Developer Guide.- Specified by:
createDataSourceFromRedshiftAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateDataSourceFromRedshift operation returned by the service.
-
createDataSourceFromS3Async
public Future<CreateDataSourceFromS3Result> createDataSourceFromS3Async(CreateDataSourceFromS3Request request) Description copied from interface:AmazonMachineLearningAsyncCreates a
DataSourceobject. ADataSourcereferences data that can be used to perform CreateMLModel, CreateEvaluation, or CreateBatchPrediction operations.CreateDataSourceFromS3is an asynchronous operation. In response toCreateDataSourceFromS3, Amazon Machine Learning (Amazon ML) immediately returns and sets theDataSourcestatus toPENDING. After theDataSourceis created and ready for use, Amazon ML sets theStatusparameter toCOMPLETED.DataSourceinCOMPLETEDorPENDINGstatus can only be used to perform CreateMLModel, CreateEvaluation or CreateBatchPrediction operations.If Amazon ML cannot accept the input source, it sets the
Statusparameter toFAILEDand includes an error message in theMessageattribute of the GetDataSource operation response.The observation data used in a
DataSourceshould be ready to use; that is, it should have a consistent structure, and missing data values should be kept to a minimum. The observation data must reside in one or more CSV files in an Amazon Simple Storage Service (Amazon S3) bucket, along with a schema that describes the data items by name and type. The same schema must be used for all of the data files referenced by theDataSource.After the
DataSourcehas been created, it's ready to use in evaluations and batch predictions. If you plan to use theDataSourceto train anMLModel, theDataSourcerequires another item: a recipe. A recipe describes the observation variables that participate in training anMLModel. A recipe describes how each input variable will be used in training. Will the variable be included or excluded from training? Will the variable be manipulated, for example, combined with another variable, or split apart into word combinations? The recipe provides answers to these questions. For more information, see the Amazon Machine Learning Developer Guide.- Specified by:
createDataSourceFromS3Asyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the CreateDataSourceFromS3 operation returned by the service.
-
createDataSourceFromS3Async
public Future<CreateDataSourceFromS3Result> createDataSourceFromS3Async(CreateDataSourceFromS3Request request, AsyncHandler<CreateDataSourceFromS3Request, CreateDataSourceFromS3Result> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncCreates a
DataSourceobject. ADataSourcereferences data that can be used to perform CreateMLModel, CreateEvaluation, or CreateBatchPrediction operations.CreateDataSourceFromS3is an asynchronous operation. In response toCreateDataSourceFromS3, Amazon Machine Learning (Amazon ML) immediately returns and sets theDataSourcestatus toPENDING. After theDataSourceis created and ready for use, Amazon ML sets theStatusparameter toCOMPLETED.DataSourceinCOMPLETEDorPENDINGstatus can only be used to perform CreateMLModel, CreateEvaluation or CreateBatchPrediction operations.If Amazon ML cannot accept the input source, it sets the
Statusparameter toFAILEDand includes an error message in theMessageattribute of the GetDataSource operation response.The observation data used in a
DataSourceshould be ready to use; that is, it should have a consistent structure, and missing data values should be kept to a minimum. The observation data must reside in one or more CSV files in an Amazon Simple Storage Service (Amazon S3) bucket, along with a schema that describes the data items by name and type. The same schema must be used for all of the data files referenced by theDataSource.After the
DataSourcehas been created, it's ready to use in evaluations and batch predictions. If you plan to use theDataSourceto train anMLModel, theDataSourcerequires another item: a recipe. A recipe describes the observation variables that participate in training anMLModel. A recipe describes how each input variable will be used in training. Will the variable be included or excluded from training? Will the variable be manipulated, for example, combined with another variable, or split apart into word combinations? The recipe provides answers to these questions. For more information, see the Amazon Machine Learning Developer Guide.- Specified by:
createDataSourceFromS3Asyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateDataSourceFromS3 operation returned by the service.
-
createEvaluationAsync
Description copied from interface:AmazonMachineLearningAsyncCreates a new
Evaluationof anMLModel. AnMLModelis evaluated on a set of observations associated to aDataSource. Like aDataSourcefor anMLModel, theDataSourcefor anEvaluationcontains values for the Target Variable. TheEvaluationcompares the predicted result for each observation to the actual outcome and provides a summary so that you know how effective theMLModelfunctions on the test data. Evaluation generates a relevant performance metric such as BinaryAUC, RegressionRMSE or MulticlassAvgFScore based on the correspondingMLModelType:BINARY,REGRESSIONorMULTICLASS.CreateEvaluationis an asynchronous operation. In response toCreateEvaluation, Amazon Machine Learning (Amazon ML) immediately returns and sets the evaluation status toPENDING. After theEvaluationis created and ready for use, Amazon ML sets the status toCOMPLETED.You can use the GetEvaluation operation to check progress of the evaluation during the creation operation.
- Specified by:
createEvaluationAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the CreateEvaluation operation returned by the service.
-
createEvaluationAsync
public Future<CreateEvaluationResult> createEvaluationAsync(CreateEvaluationRequest request, AsyncHandler<CreateEvaluationRequest, CreateEvaluationResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncCreates a new
Evaluationof anMLModel. AnMLModelis evaluated on a set of observations associated to aDataSource. Like aDataSourcefor anMLModel, theDataSourcefor anEvaluationcontains values for the Target Variable. TheEvaluationcompares the predicted result for each observation to the actual outcome and provides a summary so that you know how effective theMLModelfunctions on the test data. Evaluation generates a relevant performance metric such as BinaryAUC, RegressionRMSE or MulticlassAvgFScore based on the correspondingMLModelType:BINARY,REGRESSIONorMULTICLASS.CreateEvaluationis an asynchronous operation. In response toCreateEvaluation, Amazon Machine Learning (Amazon ML) immediately returns and sets the evaluation status toPENDING. After theEvaluationis created and ready for use, Amazon ML sets the status toCOMPLETED.You can use the GetEvaluation operation to check progress of the evaluation during the creation operation.
- Specified by:
createEvaluationAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateEvaluation operation returned by the service.
-
createMLModelAsync
Description copied from interface:AmazonMachineLearningAsyncCreates a new
MLModelusing the data files and the recipe as information sources.An
MLModelis nearly immutable. Users can only update theMLModelNameand theScoreThresholdin anMLModelwithout creating a newMLModel.CreateMLModelis an asynchronous operation. In response toCreateMLModel, Amazon Machine Learning (Amazon ML) immediately returns and sets theMLModelstatus toPENDING. After theMLModelis created and ready for use, Amazon ML sets the status toCOMPLETED.You can use the GetMLModel operation to check progress of the
MLModelduring the creation operation.CreateMLModel requires a
DataSourcewith computed statistics, which can be created by settingComputeStatisticstotruein CreateDataSourceFromRDS, CreateDataSourceFromS3, or CreateDataSourceFromRedshift operations.- Specified by:
createMLModelAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the CreateMLModel operation returned by the service.
-
createMLModelAsync
public Future<CreateMLModelResult> createMLModelAsync(CreateMLModelRequest request, AsyncHandler<CreateMLModelRequest, CreateMLModelResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncCreates a new
MLModelusing the data files and the recipe as information sources.An
MLModelis nearly immutable. Users can only update theMLModelNameand theScoreThresholdin anMLModelwithout creating a newMLModel.CreateMLModelis an asynchronous operation. In response toCreateMLModel, Amazon Machine Learning (Amazon ML) immediately returns and sets theMLModelstatus toPENDING. After theMLModelis created and ready for use, Amazon ML sets the status toCOMPLETED.You can use the GetMLModel operation to check progress of the
MLModelduring the creation operation.CreateMLModel requires a
DataSourcewith computed statistics, which can be created by settingComputeStatisticstotruein CreateDataSourceFromRDS, CreateDataSourceFromS3, or CreateDataSourceFromRedshift operations.- Specified by:
createMLModelAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateMLModel operation returned by the service.
-
createRealtimeEndpointAsync
public Future<CreateRealtimeEndpointResult> createRealtimeEndpointAsync(CreateRealtimeEndpointRequest request) Description copied from interface:AmazonMachineLearningAsyncCreates a real-time endpoint for the
MLModel. The endpoint contains the URI of theMLModel; that is, the location to send real-time prediction requests for the specifiedMLModel.- Specified by:
createRealtimeEndpointAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the CreateRealtimeEndpoint operation returned by the service.
-
createRealtimeEndpointAsync
public Future<CreateRealtimeEndpointResult> createRealtimeEndpointAsync(CreateRealtimeEndpointRequest request, AsyncHandler<CreateRealtimeEndpointRequest, CreateRealtimeEndpointResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncCreates a real-time endpoint for the
MLModel. The endpoint contains the URI of theMLModel; that is, the location to send real-time prediction requests for the specifiedMLModel.- Specified by:
createRealtimeEndpointAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateRealtimeEndpoint operation returned by the service.
-
deleteBatchPredictionAsync
public Future<DeleteBatchPredictionResult> deleteBatchPredictionAsync(DeleteBatchPredictionRequest request) Description copied from interface:AmazonMachineLearningAsyncAssigns the DELETED status to a
BatchPrediction, rendering it unusable.After using the
DeleteBatchPredictionoperation, you can use the GetBatchPrediction operation to verify that the status of theBatchPredictionchanged to DELETED.Caution: The result of the
DeleteBatchPredictionoperation is irreversible.- Specified by:
deleteBatchPredictionAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DeleteBatchPrediction operation returned by the service.
-
deleteBatchPredictionAsync
public Future<DeleteBatchPredictionResult> deleteBatchPredictionAsync(DeleteBatchPredictionRequest request, AsyncHandler<DeleteBatchPredictionRequest, DeleteBatchPredictionResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncAssigns the DELETED status to a
BatchPrediction, rendering it unusable.After using the
DeleteBatchPredictionoperation, you can use the GetBatchPrediction operation to verify that the status of theBatchPredictionchanged to DELETED.Caution: The result of the
DeleteBatchPredictionoperation is irreversible.- Specified by:
deleteBatchPredictionAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteBatchPrediction operation returned by the service.
-
deleteDataSourceAsync
Description copied from interface:AmazonMachineLearningAsyncAssigns the DELETED status to a
DataSource, rendering it unusable.After using the
DeleteDataSourceoperation, you can use the GetDataSource operation to verify that the status of theDataSourcechanged to DELETED.Caution: The results of the
DeleteDataSourceoperation are irreversible.- Specified by:
deleteDataSourceAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DeleteDataSource operation returned by the service.
-
deleteDataSourceAsync
public Future<DeleteDataSourceResult> deleteDataSourceAsync(DeleteDataSourceRequest request, AsyncHandler<DeleteDataSourceRequest, DeleteDataSourceResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncAssigns the DELETED status to a
DataSource, rendering it unusable.After using the
DeleteDataSourceoperation, you can use the GetDataSource operation to verify that the status of theDataSourcechanged to DELETED.Caution: The results of the
DeleteDataSourceoperation are irreversible.- Specified by:
deleteDataSourceAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteDataSource operation returned by the service.
-
deleteEvaluationAsync
Description copied from interface:AmazonMachineLearningAsyncAssigns the
DELETEDstatus to anEvaluation, rendering it unusable.After invoking the
DeleteEvaluationoperation, you can use the GetEvaluation operation to verify that the status of theEvaluationchanged toDELETED.Caution: The results of the
DeleteEvaluationoperation are irreversible.- Specified by:
deleteEvaluationAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DeleteEvaluation operation returned by the service.
-
deleteEvaluationAsync
public Future<DeleteEvaluationResult> deleteEvaluationAsync(DeleteEvaluationRequest request, AsyncHandler<DeleteEvaluationRequest, DeleteEvaluationResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncAssigns the
DELETEDstatus to anEvaluation, rendering it unusable.After invoking the
DeleteEvaluationoperation, you can use the GetEvaluation operation to verify that the status of theEvaluationchanged toDELETED.Caution: The results of the
DeleteEvaluationoperation are irreversible.- Specified by:
deleteEvaluationAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteEvaluation operation returned by the service.
-
deleteMLModelAsync
Description copied from interface:AmazonMachineLearningAsyncAssigns the DELETED status to an
MLModel, rendering it unusable.After using the
DeleteMLModeloperation, you can use the GetMLModel operation to verify that the status of theMLModelchanged to DELETED.Caution: The result of the
DeleteMLModeloperation is irreversible.- Specified by:
deleteMLModelAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DeleteMLModel operation returned by the service.
-
deleteMLModelAsync
public Future<DeleteMLModelResult> deleteMLModelAsync(DeleteMLModelRequest request, AsyncHandler<DeleteMLModelRequest, DeleteMLModelResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncAssigns the DELETED status to an
MLModel, rendering it unusable.After using the
DeleteMLModeloperation, you can use the GetMLModel operation to verify that the status of theMLModelchanged to DELETED.Caution: The result of the
DeleteMLModeloperation is irreversible.- Specified by:
deleteMLModelAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteMLModel operation returned by the service.
-
deleteRealtimeEndpointAsync
public Future<DeleteRealtimeEndpointResult> deleteRealtimeEndpointAsync(DeleteRealtimeEndpointRequest request) Description copied from interface:AmazonMachineLearningAsyncDeletes a real time endpoint of an
MLModel.- Specified by:
deleteRealtimeEndpointAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DeleteRealtimeEndpoint operation returned by the service.
-
deleteRealtimeEndpointAsync
public Future<DeleteRealtimeEndpointResult> deleteRealtimeEndpointAsync(DeleteRealtimeEndpointRequest request, AsyncHandler<DeleteRealtimeEndpointRequest, DeleteRealtimeEndpointResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncDeletes a real time endpoint of an
MLModel.- Specified by:
deleteRealtimeEndpointAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteRealtimeEndpoint operation returned by the service.
-
describeBatchPredictionsAsync
public Future<DescribeBatchPredictionsResult> describeBatchPredictionsAsync(DescribeBatchPredictionsRequest request) Description copied from interface:AmazonMachineLearningAsyncReturns a list of
BatchPredictionoperations that match the search criteria in the request.- Specified by:
describeBatchPredictionsAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribeBatchPredictions operation returned by the service.
-
describeBatchPredictionsAsync
public Future<DescribeBatchPredictionsResult> describeBatchPredictionsAsync(DescribeBatchPredictionsRequest request, AsyncHandler<DescribeBatchPredictionsRequest, DescribeBatchPredictionsResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncReturns a list of
BatchPredictionoperations that match the search criteria in the request.- Specified by:
describeBatchPredictionsAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeBatchPredictions operation returned by the service.
-
describeBatchPredictionsAsync
Simplified method form for invoking the DescribeBatchPredictions operation.- Specified by:
describeBatchPredictionsAsyncin interfaceAmazonMachineLearningAsync- See Also:
-
describeBatchPredictionsAsync
public Future<DescribeBatchPredictionsResult> describeBatchPredictionsAsync(AsyncHandler<DescribeBatchPredictionsRequest, DescribeBatchPredictionsResult> asyncHandler) Simplified method form for invoking the DescribeBatchPredictions operation with an AsyncHandler.- Specified by:
describeBatchPredictionsAsyncin interfaceAmazonMachineLearningAsync- See Also:
-
describeDataSourcesAsync
public Future<DescribeDataSourcesResult> describeDataSourcesAsync(DescribeDataSourcesRequest request) Description copied from interface:AmazonMachineLearningAsyncReturns a list of
DataSourcethat match the search criteria in the request.- Specified by:
describeDataSourcesAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribeDataSources operation returned by the service.
-
describeDataSourcesAsync
public Future<DescribeDataSourcesResult> describeDataSourcesAsync(DescribeDataSourcesRequest request, AsyncHandler<DescribeDataSourcesRequest, DescribeDataSourcesResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncReturns a list of
DataSourcethat match the search criteria in the request.- Specified by:
describeDataSourcesAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeDataSources operation returned by the service.
-
describeDataSourcesAsync
Simplified method form for invoking the DescribeDataSources operation.- Specified by:
describeDataSourcesAsyncin interfaceAmazonMachineLearningAsync- See Also:
-
describeDataSourcesAsync
public Future<DescribeDataSourcesResult> describeDataSourcesAsync(AsyncHandler<DescribeDataSourcesRequest, DescribeDataSourcesResult> asyncHandler) Simplified method form for invoking the DescribeDataSources operation with an AsyncHandler.- Specified by:
describeDataSourcesAsyncin interfaceAmazonMachineLearningAsync- See Also:
-
describeEvaluationsAsync
public Future<DescribeEvaluationsResult> describeEvaluationsAsync(DescribeEvaluationsRequest request) Description copied from interface:AmazonMachineLearningAsyncReturns a list of
DescribeEvaluationsthat match the search criteria in the request.- Specified by:
describeEvaluationsAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribeEvaluations operation returned by the service.
-
describeEvaluationsAsync
public Future<DescribeEvaluationsResult> describeEvaluationsAsync(DescribeEvaluationsRequest request, AsyncHandler<DescribeEvaluationsRequest, DescribeEvaluationsResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncReturns a list of
DescribeEvaluationsthat match the search criteria in the request.- Specified by:
describeEvaluationsAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeEvaluations operation returned by the service.
-
describeEvaluationsAsync
Simplified method form for invoking the DescribeEvaluations operation.- Specified by:
describeEvaluationsAsyncin interfaceAmazonMachineLearningAsync- See Also:
-
describeEvaluationsAsync
public Future<DescribeEvaluationsResult> describeEvaluationsAsync(AsyncHandler<DescribeEvaluationsRequest, DescribeEvaluationsResult> asyncHandler) Simplified method form for invoking the DescribeEvaluations operation with an AsyncHandler.- Specified by:
describeEvaluationsAsyncin interfaceAmazonMachineLearningAsync- See Also:
-
describeMLModelsAsync
Description copied from interface:AmazonMachineLearningAsyncReturns a list of
MLModelthat match the search criteria in the request.- Specified by:
describeMLModelsAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribeMLModels operation returned by the service.
-
describeMLModelsAsync
public Future<DescribeMLModelsResult> describeMLModelsAsync(DescribeMLModelsRequest request, AsyncHandler<DescribeMLModelsRequest, DescribeMLModelsResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncReturns a list of
MLModelthat match the search criteria in the request.- Specified by:
describeMLModelsAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeMLModels operation returned by the service.
-
describeMLModelsAsync
Simplified method form for invoking the DescribeMLModels operation.- Specified by:
describeMLModelsAsyncin interfaceAmazonMachineLearningAsync- See Also:
-
describeMLModelsAsync
public Future<DescribeMLModelsResult> describeMLModelsAsync(AsyncHandler<DescribeMLModelsRequest, DescribeMLModelsResult> asyncHandler) Simplified method form for invoking the DescribeMLModels operation with an AsyncHandler.- Specified by:
describeMLModelsAsyncin interfaceAmazonMachineLearningAsync- See Also:
-
getBatchPredictionAsync
Description copied from interface:AmazonMachineLearningAsyncReturns a
BatchPredictionthat includes detailed metadata, status, and data file information for aBatch Predictionrequest.- Specified by:
getBatchPredictionAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the GetBatchPrediction operation returned by the service.
-
getBatchPredictionAsync
public Future<GetBatchPredictionResult> getBatchPredictionAsync(GetBatchPredictionRequest request, AsyncHandler<GetBatchPredictionRequest, GetBatchPredictionResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncReturns a
BatchPredictionthat includes detailed metadata, status, and data file information for aBatch Predictionrequest.- Specified by:
getBatchPredictionAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GetBatchPrediction operation returned by the service.
-
getDataSourceAsync
Description copied from interface:AmazonMachineLearningAsyncReturns a
DataSourcethat includes metadata and data file information, as well as the current status of theDataSource.GetDataSourceprovides results in normal or verbose format. The verbose format adds the schema description and the list of files pointed to by the DataSource to the normal format.- Specified by:
getDataSourceAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the GetDataSource operation returned by the service.
-
getDataSourceAsync
public Future<GetDataSourceResult> getDataSourceAsync(GetDataSourceRequest request, AsyncHandler<GetDataSourceRequest, GetDataSourceResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncReturns a
DataSourcethat includes metadata and data file information, as well as the current status of theDataSource.GetDataSourceprovides results in normal or verbose format. The verbose format adds the schema description and the list of files pointed to by the DataSource to the normal format.- Specified by:
getDataSourceAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GetDataSource operation returned by the service.
-
getEvaluationAsync
Description copied from interface:AmazonMachineLearningAsyncReturns an
Evaluationthat includes metadata as well as the current status of theEvaluation.- Specified by:
getEvaluationAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the GetEvaluation operation returned by the service.
-
getEvaluationAsync
public Future<GetEvaluationResult> getEvaluationAsync(GetEvaluationRequest request, AsyncHandler<GetEvaluationRequest, GetEvaluationResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncReturns an
Evaluationthat includes metadata as well as the current status of theEvaluation.- Specified by:
getEvaluationAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GetEvaluation operation returned by the service.
-
getMLModelAsync
Description copied from interface:AmazonMachineLearningAsyncReturns an
MLModelthat includes detailed metadata, and data source information as well as the current status of theMLModel.GetMLModelprovides results in normal or verbose format.- Specified by:
getMLModelAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the GetMLModel operation returned by the service.
-
getMLModelAsync
public Future<GetMLModelResult> getMLModelAsync(GetMLModelRequest request, AsyncHandler<GetMLModelRequest, GetMLModelResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncReturns an
MLModelthat includes detailed metadata, and data source information as well as the current status of theMLModel.GetMLModelprovides results in normal or verbose format.- Specified by:
getMLModelAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GetMLModel operation returned by the service.
-
predictAsync
Description copied from interface:AmazonMachineLearningAsyncGenerates a prediction for the observation using the specified
ML Model.Note Not all response parameters will be populated. Whether a response parameter is populated depends on the type of model requested.
- Specified by:
predictAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the Predict operation returned by the service.
-
predictAsync
public Future<PredictResult> predictAsync(PredictRequest request, AsyncHandler<PredictRequest, PredictResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncGenerates a prediction for the observation using the specified
ML Model.Note Not all response parameters will be populated. Whether a response parameter is populated depends on the type of model requested.
- Specified by:
predictAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the Predict operation returned by the service.
-
updateBatchPredictionAsync
public Future<UpdateBatchPredictionResult> updateBatchPredictionAsync(UpdateBatchPredictionRequest request) Description copied from interface:AmazonMachineLearningAsyncUpdates the
BatchPredictionNameof aBatchPrediction.You can use the GetBatchPrediction operation to view the contents of the updated data element.
- Specified by:
updateBatchPredictionAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the UpdateBatchPrediction operation returned by the service.
-
updateBatchPredictionAsync
public Future<UpdateBatchPredictionResult> updateBatchPredictionAsync(UpdateBatchPredictionRequest request, AsyncHandler<UpdateBatchPredictionRequest, UpdateBatchPredictionResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncUpdates the
BatchPredictionNameof aBatchPrediction.You can use the GetBatchPrediction operation to view the contents of the updated data element.
- Specified by:
updateBatchPredictionAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the UpdateBatchPrediction operation returned by the service.
-
updateDataSourceAsync
Description copied from interface:AmazonMachineLearningAsyncUpdates the
DataSourceNameof aDataSource.You can use the GetDataSource operation to view the contents of the updated data element.
- Specified by:
updateDataSourceAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the UpdateDataSource operation returned by the service.
-
updateDataSourceAsync
public Future<UpdateDataSourceResult> updateDataSourceAsync(UpdateDataSourceRequest request, AsyncHandler<UpdateDataSourceRequest, UpdateDataSourceResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncUpdates the
DataSourceNameof aDataSource.You can use the GetDataSource operation to view the contents of the updated data element.
- Specified by:
updateDataSourceAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the UpdateDataSource operation returned by the service.
-
updateEvaluationAsync
Description copied from interface:AmazonMachineLearningAsyncUpdates the
EvaluationNameof anEvaluation.You can use the GetEvaluation operation to view the contents of the updated data element.
- Specified by:
updateEvaluationAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the UpdateEvaluation operation returned by the service.
-
updateEvaluationAsync
public Future<UpdateEvaluationResult> updateEvaluationAsync(UpdateEvaluationRequest request, AsyncHandler<UpdateEvaluationRequest, UpdateEvaluationResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncUpdates the
EvaluationNameof anEvaluation.You can use the GetEvaluation operation to view the contents of the updated data element.
- Specified by:
updateEvaluationAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the UpdateEvaluation operation returned by the service.
-
updateMLModelAsync
Description copied from interface:AmazonMachineLearningAsyncUpdates the
MLModelNameand theScoreThresholdof anMLModel.You can use the GetMLModel operation to view the contents of the updated data element.
- Specified by:
updateMLModelAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the UpdateMLModel operation returned by the service.
-
updateMLModelAsync
public Future<UpdateMLModelResult> updateMLModelAsync(UpdateMLModelRequest request, AsyncHandler<UpdateMLModelRequest, UpdateMLModelResult> asyncHandler) Description copied from interface:AmazonMachineLearningAsyncUpdates the
MLModelNameand theScoreThresholdof anMLModel.You can use the GetMLModel operation to view the contents of the updated data element.
- Specified by:
updateMLModelAsyncin interfaceAmazonMachineLearningAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the UpdateMLModel operation returned by the service.
-
shutdown
public void shutdown()Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should callgetExecutorService().shutdown()followed bygetExecutorService().awaitTermination()prior to calling this method.- Specified by:
shutdownin interfaceAmazonMachineLearning- Overrides:
shutdownin classAmazonWebServiceClient
-