Package oracle.nosql.driver.ops
Class GetTableRequest
java.lang.Object
oracle.nosql.driver.ops.Request
oracle.nosql.driver.ops.GetTableRequest
Represents the argument of a 
NoSQLHandle.getTable(oracle.nosql.driver.ops.GetTableRequest) operation which
 returns static information associated with a table, as returned in
 TableResult. This information only changes in response to a change
 in table schema or a change in provisioned throughput or capacity for the
 table.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the operation id to use for the request, null if not set.Returns the type name of the request.setCompartment(String compartment) Cloud service only.setNamespace(String namespace) Sets the optional namespace.setOperationId(String operationId) Sets the operation id to use for the request.setTableName(String tableName) Sets the table name to use for the requestsetTimeout(int timeoutMs) Sets the request timeout value, in milliseconds.Methods inherited from class oracle.nosql.driver.ops.RequestgetCompartment, getNamespace, getRateLimitDelayedMs, getReadRateLimiter, getRetryStats, getTableName, getWriteRateLimiter, setReadRateLimiter, setWriteRateLimiter
- 
Constructor Details- 
GetTableRequestpublic GetTableRequest()
 
- 
- 
Method Details- 
setTableNameSets the table name to use for the request- Parameters:
- tableName- the table name. This is a required parameter.
- Returns:
- this
 
- 
setCompartmentCloud service only.Sets the name or id of a compartment to be used for this operation. The compartment may be specified as either a name (or path for nested compartments) or as an id (OCID). A name (vs id) can only be used when authenticated using a specific user identity. It is not available if authenticated as an Instance Principal which can be done when calling the service from a compute instance in the Oracle Cloud Infrastructure. See SignatureProvider.createWithInstancePrincipal()- Parameters:
- compartment- the name or id. If using a nested compartment, specify the full compartment path- compartmentA.compartmentB, but exclude the name of the root compartment (tenant).
- Returns:
- this
 
- 
setOperationIdSets the operation id to use for the request. The operation id can be obtained viaTableResult.getOperationId(). This parameter is optional. If non-null, it represents an asynchronous table operation that may be in progress. It is used to examine the result of the operation and if the operation has failed an exception will be thrown in response to aNoSQLHandle.getTable(oracle.nosql.driver.ops.GetTableRequest)operation. If the operation is in progress or has completed successfully, the state of the table is returned.- Parameters:
- operationId- the operationId. This is optional.
- Returns:
- this
 
- 
getOperationIdReturns the operation id to use for the request, null if not set.- Returns:
- the operation id
 
- 
setTimeoutSets the request timeout value, in milliseconds. This overrides any default value set withNoSQLHandleConfig.setRequestTimeout(int). The value must be positive.- Parameters:
- timeoutMs- the timeout value, in milliseconds
- Returns:
- this
- Throws:
- IllegalArgumentException- if the timeout value is less than or equal to 0
 
- 
setNamespaceSets the optional namespace. On-premises only. This overrides any default value set withNoSQLHandleConfig.setDefaultNamespace(java.lang.String). Note: if a namespace is specified in the table name for the request (using the namespace:tablename format), that value will override this setting.- Parameters:
- namespace- the namespace to use for the operation
- Returns:
- this
- Since:
- 5.4.10
 
- 
getTypeNameDescription copied from class:RequestReturns the type name of the request. This is used for stats.- Specified by:
- getTypeNamein class- Request
- Returns:
- the type name of the request
 
 
-