public final class DefaultDynamoDbAsyncIndex<T> extends Object implements DynamoDbAsyncIndex<T>
Modifier and Type | Method and Description |
---|---|
DynamoDbAsyncClient |
dynamoDbClient() |
boolean |
equals(Object o) |
int |
hashCode() |
String |
indexName()
Gets the physical secondary index name that operations performed by this object will be executed against.
|
Key |
keyFrom(T item)
Creates a
Key object from a modelled item. |
DynamoDbEnhancedClientExtension |
mapperExtension()
Gets the
DynamoDbEnhancedClientExtension associated with this mapped resource. |
SdkPublisher<Page<T>> |
query(Consumer<QueryEnhancedRequest.Builder> requestConsumer) |
SdkPublisher<Page<T>> |
query(QueryEnhancedRequest request) |
SdkPublisher<Page<T>> |
scan() |
SdkPublisher<Page<T>> |
scan(Consumer<ScanEnhancedRequest.Builder> requestConsumer) |
SdkPublisher<Page<T>> |
scan(ScanEnhancedRequest request) |
String |
tableName()
Gets the physical table name that operations performed by this object will be executed against.
|
TableSchema<T> |
tableSchema()
Gets the
TableSchema object that this mapped table was built with. |
public SdkPublisher<Page<T>> query(QueryEnhancedRequest request)
query
in interface DynamoDbAsyncIndex<T>
public SdkPublisher<Page<T>> query(Consumer<QueryEnhancedRequest.Builder> requestConsumer)
query
in interface DynamoDbAsyncIndex<T>
public SdkPublisher<Page<T>> scan(ScanEnhancedRequest request)
scan
in interface DynamoDbAsyncIndex<T>
public SdkPublisher<Page<T>> scan(Consumer<ScanEnhancedRequest.Builder> requestConsumer)
scan
in interface DynamoDbAsyncIndex<T>
public SdkPublisher<Page<T>> scan()
scan
in interface DynamoDbAsyncIndex<T>
public DynamoDbEnhancedClientExtension mapperExtension()
DynamoDbAsyncIndex
DynamoDbEnhancedClientExtension
associated with this mapped resource.mapperExtension
in interface DynamoDbAsyncIndex<T>
DynamoDbEnhancedClientExtension
associated with this mapped resource.public TableSchema<T> tableSchema()
DynamoDbAsyncIndex
TableSchema
object that this mapped table was built with.tableSchema
in interface DynamoDbAsyncIndex<T>
TableSchema
object for this mapped table.public DynamoDbAsyncClient dynamoDbClient()
public String tableName()
DynamoDbAsyncIndex
tableName
in interface DynamoDbAsyncIndex<T>
public String indexName()
DynamoDbAsyncIndex
indexName
in interface DynamoDbAsyncIndex<T>
public Key keyFrom(T item)
DynamoDbAsyncIndex
Key
object from a modelled item. This key can be used in query conditionals and get
operations to locate a specific record.keyFrom
in interface DynamoDbAsyncIndex<T>
item
- The item to extract the key fields from.Copyright © 2020. All rights reserved.