@Generated(value="OracleSDKGenerator", comments="API Version: 20190828") public interface NosqlAsync extends AutoCloseable
The control plane API for NoSQL Database Cloud Service HTTPS provides endpoints to perform NDCS operations, including creation and deletion of tables and indexes; population and access of data in tables; and access of table usage metrics.
close
void refreshClient()
Rebuilds the client from scratch. Useful to refresh certificates.
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint
- The endpoint of the serice.String getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
void setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).
Note, this will call setEndpoint
after resolving the
endpoint. If the service is not available in this region, however, an
IllegalArgumentException will be raised.
region
- The region of the service.void setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).
Note, this will first try to map the region ID to a known Region and call setRegion
.
If no known Region could be determined, it will create an endpoint based on the default
endpoint format (Region.formatDefaultRegionEndpoint(Service, String)
and then call setEndpoint
.
regionId
- The public region ID.void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled)
Determines whether realm specific endpoint should be used or not. Set realmSpecificEndpointTemplateEnabled to “true” if the user wants to enable use of realm specific endpoint template, otherwise set it to “false”
realmSpecificEndpointTemplateEnabled
- flag to enable the use of realm specific endpoint
templateFuture<ChangeTableCompartmentResponse> changeTableCompartment(ChangeTableCompartmentRequest request, AsyncHandler<ChangeTableCompartmentRequest,ChangeTableCompartmentResponse> handler)
Change a table’s compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateIndexResponse> createIndex(CreateIndexRequest request, AsyncHandler<CreateIndexRequest,CreateIndexResponse> handler)
Create a new index on the table identified by tableNameOrId.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateReplicaResponse> createReplica(CreateReplicaRequest request, AsyncHandler<CreateReplicaRequest,CreateReplicaResponse> handler)
Add a replica for this table
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateTableResponse> createTable(CreateTableRequest request, AsyncHandler<CreateTableRequest,CreateTableResponse> handler)
Create a new table.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteIndexResponse> deleteIndex(DeleteIndexRequest request, AsyncHandler<DeleteIndexRequest,DeleteIndexResponse> handler)
Delete an index from the table identified by tableNameOrId.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteReplicaResponse> deleteReplica(DeleteReplicaRequest request, AsyncHandler<DeleteReplicaRequest,DeleteReplicaResponse> handler)
Delete the specified replica table in the remote region.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteRowResponse> deleteRow(DeleteRowRequest request, AsyncHandler<DeleteRowRequest,DeleteRowResponse> handler)
Delete a single row from the table, by primary key.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteTableResponse> deleteTable(DeleteTableRequest request, AsyncHandler<DeleteTableRequest,DeleteTableResponse> handler)
Delete a table by tableNameOrId.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteWorkRequestResponse> deleteWorkRequest(DeleteWorkRequestRequest request, AsyncHandler<DeleteWorkRequestRequest,DeleteWorkRequestResponse> handler)
Cancel a work request operation with the given ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetIndexResponse> getIndex(GetIndexRequest request, AsyncHandler<GetIndexRequest,GetIndexResponse> handler)
Get information about a single index.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetRowResponse> getRow(GetRowRequest request, AsyncHandler<GetRowRequest,GetRowResponse> handler)
Get a single row from the table by primary key.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetTableResponse> getTable(GetTableRequest request, AsyncHandler<GetTableRequest,GetTableResponse> handler)
Get table info by identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetWorkRequestResponse> getWorkRequest(GetWorkRequestRequest request, AsyncHandler<GetWorkRequestRequest,GetWorkRequestResponse> handler)
Get the status of the work request with the given ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListIndexesResponse> listIndexes(ListIndexesRequest request, AsyncHandler<ListIndexesRequest,ListIndexesResponse> handler)
Get a list of indexes on a table.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListTableUsageResponse> listTableUsage(ListTableUsageRequest request, AsyncHandler<ListTableUsageRequest,ListTableUsageResponse> handler)
Get table usage info.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListTablesResponse> listTables(ListTablesRequest request, AsyncHandler<ListTablesRequest,ListTablesResponse> handler)
Get a list of tables in a compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestErrorsResponse> listWorkRequestErrors(ListWorkRequestErrorsRequest request, AsyncHandler<ListWorkRequestErrorsRequest,ListWorkRequestErrorsResponse> handler)
Return a (paginated) list of errors for a given work request.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestLogsResponse> listWorkRequestLogs(ListWorkRequestLogsRequest request, AsyncHandler<ListWorkRequestLogsRequest,ListWorkRequestLogsResponse> handler)
Return a (paginated) list of logs for a given work request.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestsResponse> listWorkRequests(ListWorkRequestsRequest request, AsyncHandler<ListWorkRequestsRequest,ListWorkRequestsResponse> handler)
List the work requests in a compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<PrepareStatementResponse> prepareStatement(PrepareStatementRequest request, AsyncHandler<PrepareStatementRequest,PrepareStatementResponse> handler)
Prepare a SQL statement for use in a query with variable substitution.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<QueryResponse> query(QueryRequest request, AsyncHandler<QueryRequest,QueryResponse> handler)
Execute a SQL query.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<SummarizeStatementResponse> summarizeStatement(SummarizeStatementRequest request, AsyncHandler<SummarizeStatementRequest,SummarizeStatementResponse> handler)
Check the syntax and return a brief summary of a SQL statement.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateRowResponse> updateRow(UpdateRowRequest request, AsyncHandler<UpdateRowRequest,UpdateRowResponse> handler)
Write a single row into the table.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateTableResponse> updateTable(UpdateTableRequest request, AsyncHandler<UpdateTableRequest,UpdateTableResponse> handler)
Alter the table identified by tableNameOrId, changing schema, limits, or tags
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Copyright © 2016–2024. All rights reserved.