T - The type of the modelled object.public interface MappedTable<T> extends MappedTableResource<T>
| Modifier and Type | Method and Description |
|---|---|
<R> SdkIterable<R> |
execute(PaginatedTableOperation<T,?,?,R> operationToPerform)
Executes a command that is expected to return a paginated list of data items against the database with the
context of the primary index of the specific table this object is linked to.
|
<R> R |
execute(TableOperation<T,?,?,R> operationToPerform)
Executes a command that is expected to return a single data item against the database with the context of the
primary index of the specific table this object is linked to.
|
MappedIndex<T> |
index(String indexName)
Returns a mapped index that can be used to execute commands against a secondary index belonging to the table
being mapped by this object.
|
keyFrom, mapperExtension, tableName, tableSchemaMappedIndex<T> index(String indexName)
indexName - The name of the secondary index to build the command interface for.MappedIndex object that can be used to execute database commands against.<R> R execute(TableOperation<T,?,?,R> operationToPerform)
R - The expected return type from the operation. This is typically inferred by the compiler.operationToPerform - The operation to be performed in the context of the primary index of the table.<R> SdkIterable<R> execute(PaginatedTableOperation<T,?,?,R> operationToPerform)
R - The expected return type from the operation. This is typically inferred by the compiler.operationToPerform - The operation to be performed in the context of the primary index of the table.SdkIterable that will return successive pages of result data items as it is iterated over.Copyright © 2020. All rights reserved.