Package oracle.nosql.driver.ops
Class GetIndexesRequest
- java.lang.Object
-
- oracle.nosql.driver.ops.Request
-
- oracle.nosql.driver.ops.GetIndexesRequest
-
public class GetIndexesRequest extends Request
Represents the argument of aNoSQLHandle.getIndexes(oracle.nosql.driver.ops.GetIndexesRequest)operation which returns the information of a specific index or all indexes of the specified table, as returned inGetIndexesResult.The table name is a required parameter.
-
-
Constructor Summary
Constructors Constructor Description GetIndexesRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description oracle.nosql.driver.ops.serde.SerializercreateDeserializer(oracle.nosql.driver.ops.serde.SerializerFactory factory)oracle.nosql.driver.ops.serde.SerializercreateSerializer(oracle.nosql.driver.ops.serde.SerializerFactory factory)java.lang.StringgetIndexName()Gets the index name to use for the requestjava.lang.StringgetTableName()Gets the table name to use for the requestGetIndexesRequestsetCompartment(java.lang.String compartment)Cloud service only.GetIndexesRequestsetIndexName(java.lang.String indexName)Sets the index name to use for the request.GetIndexesRequestsetTableName(java.lang.String tableName)Sets the table name to use for the requestGetIndexesRequestsetTimeout(int timeoutMs)Sets the request timeout value, in milliseconds.-
Methods inherited from class oracle.nosql.driver.ops.Request
getCompartment
-
-
-
-
Method Detail
-
setTableName
public GetIndexesRequest setTableName(java.lang.String tableName)
Sets the table name to use for the request- Parameters:
tableName- the table name. This is a required parameter.- Returns:
- this
-
setCompartment
public GetIndexesRequest setCompartment(java.lang.String compartment)
Cloud 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 pathcompartmentA.compartmentB, but exclude the name of the root compartment (tenant).- Returns:
- this
-
getTableName
public java.lang.String getTableName()
Gets the table name to use for the request- Returns:
- the table name
-
setIndexName
public GetIndexesRequest setIndexName(java.lang.String indexName)
Sets the index name to use for the request. If not set, this request will return all indexes of the table.- Parameters:
indexName- the index name.- Returns:
- this
-
getIndexName
public java.lang.String getIndexName()
Gets the index name to use for the request- Returns:
- the index name
-
setTimeout
public GetIndexesRequest setTimeout(int timeoutMs)
Sets the request timeout value, in milliseconds. This overrides any default value set inNoSQLHandleConfig. The value must be positive.- Parameters:
timeoutMs- the timeout value, in milliseconds- Returns:
- this
- Throws:
java.lang.IllegalArgumentException- if the timeout value is less than or equal to 0
-
createSerializer
public oracle.nosql.driver.ops.serde.Serializer createSerializer(oracle.nosql.driver.ops.serde.SerializerFactory factory)
-
createDeserializer
public oracle.nosql.driver.ops.serde.Serializer createDeserializer(oracle.nosql.driver.ops.serde.SerializerFactory factory)
-
-