T
- type of the DynamoDB entitypublic interface ScanBuilder<T> extends DetachedScan<T>
Modifier and Type | Method and Description |
---|---|
default ScanBuilder<T> |
and(groovy.lang.Closure<RangeConditionCollector<T>> conditions)
One or more filter conditions in conjunction.
|
default ScanBuilder<T> |
and(java.util.function.Consumer<RangeConditionCollector<T>> conditions)
One or more filter conditions in conjunction.
|
default ScanBuilder<T> |
configure(groovy.lang.Closure<java.lang.Object> configurer)
Configures the native scan expression.
|
ScanBuilder<T> |
configure(java.util.function.Consumer<com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBScanExpression> configurer)
Configures the native scan expression.
|
ScanBuilder<T> |
consistent(com.agorapulse.micronaut.aws.dynamodb.builder.Builders.Read read)
Demand consistent reads.
|
default ScanBuilder<T> |
filter(groovy.lang.Closure<RangeConditionCollector<T>> conditions)
One or more filter conditions.
|
ScanBuilder<T> |
filter(com.amazonaws.services.dynamodbv2.model.ConditionalOperator or)
Sets the conditional operator for the filter.
|
ScanBuilder<T> |
filter(java.util.function.Consumer<RangeConditionCollector<T>> conditions)
One or more filter conditions.
|
ScanBuilder<T> |
inconsistent(com.agorapulse.micronaut.aws.dynamodb.builder.Builders.Read read)
Demand inconsistent reads.
|
ScanBuilder<T> |
index(java.lang.String name)
Select the index on which this scan will be executed.
|
ScanBuilder<T> |
limit(int max)
Sets the maximum number of items to be returned from the queries.
|
default ScanBuilder<T> |
offset(java.lang.Object exclusiveStartKeyValue)
Sets the scan offset by defining the exclusive start hash key (hash key of the last entity returned).
|
ScanBuilder<T> |
offset(java.lang.Object exclusiveStartKeyValue,
java.lang.Object exclusiveRangeStartKey)
Sets the scan offset by defining the exclusive start hash and range key (hash and range key of the last entity returned).
|
default ScanBuilder<T> |
only(groovy.lang.Closure<java.lang.Object> collector)
Limits which properties of the returned entities will be populated.
|
ScanBuilder<T> |
only(java.lang.Iterable<java.lang.String> propertyPaths)
Limits which properties of the returned entities will be populated.
|
default ScanBuilder<T> |
only(java.lang.String... propertyPaths)
Limits which properties of the returned entities will be populated.
|
default ScanBuilder<T> |
or(groovy.lang.Closure<RangeConditionCollector<T>> conditions)
One or more filter conditions in disjunction.
|
default ScanBuilder<T> |
or(java.util.function.Consumer<RangeConditionCollector<T>> conditions)
One or more filter conditions in disjunction.
|
ScanBuilder<T> |
page(int page)
Sets the desired pagination of the scans.
|
count, resolveExpression, scan
ScanBuilder<T> consistent(com.agorapulse.micronaut.aws.dynamodb.builder.Builders.Read read)
read
- the read keywordScanBuilder<T> inconsistent(com.agorapulse.micronaut.aws.dynamodb.builder.Builders.Read read)
read
- the read keywordScanBuilder<T> index(java.lang.String name)
name
- the name of the index to be usedScanBuilder<T> filter(java.util.function.Consumer<RangeConditionCollector<T>> conditions)
conditions
- consumer to build the conditionsdefault ScanBuilder<T> and(java.util.function.Consumer<RangeConditionCollector<T>> conditions)
conditions
- consumer to build the conditionsdefault ScanBuilder<T> or(java.util.function.Consumer<RangeConditionCollector<T>> conditions)
conditions
- consumer to build the conditionsdefault ScanBuilder<T> filter(@DelegatesTo(type="com.agorapulse.micronaut.aws.dynamodb.builder.RangeConditionCollector<T>",strategy=1) groovy.lang.Closure<RangeConditionCollector<T>> conditions)
conditions
- closure to build the conditionsdefault ScanBuilder<T> or(@DelegatesTo(type="com.agorapulse.micronaut.aws.dynamodb.builder.RangeConditionCollector<T>",strategy=1) groovy.lang.Closure<RangeConditionCollector<T>> conditions)
conditions
- closure to build the conditionsdefault ScanBuilder<T> and(@DelegatesTo(type="com.agorapulse.micronaut.aws.dynamodb.builder.RangeConditionCollector<T>",strategy=1) groovy.lang.Closure<RangeConditionCollector<T>> conditions)
conditions
- closure to build the conditionsScanBuilder<T> filter(com.amazonaws.services.dynamodbv2.model.ConditionalOperator or)
and
or
- the conditional operator, usually or
to switch to disjunction of filter conditionsScanBuilder<T> page(int page)
io.reactivex.Flowable#take(long)
to limit the number results returned from the scan.page
- number of entities loaded by one scan request (not a number of total entities returned)ScanBuilder<T> limit(int max)
io.reactivex.Flowable#take(long)
on the result Flowable.max
- the maximum number of items returnedScanBuilder<T> offset(java.lang.Object exclusiveStartKeyValue, java.lang.Object exclusiveRangeStartKey)
exclusiveStartKeyValue
- exclusive start key hash valueexclusiveRangeStartKey
- exclusive start key range valuedefault ScanBuilder<T> offset(java.lang.Object exclusiveStartKeyValue)
exclusiveStartKeyValue
- exclusive start key hash valueScanBuilder<T> configure(java.util.function.Consumer<com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBScanExpression> configurer)
configurer
- consumer to configure the native scan expressiondefault ScanBuilder<T> configure(@DelegatesTo(type="com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBScanExpression",strategy=1) groovy.lang.Closure<java.lang.Object> configurer)
configurer
- closure to configure the native scan expressionScanBuilder<T> only(java.lang.Iterable<java.lang.String> propertyPaths)
propertyPaths
- property paths to be populated in the returned entitiesdefault ScanBuilder<T> only(java.lang.String... propertyPaths)
propertyPaths
- property paths to be populated in the returned entitiesdefault ScanBuilder<T> only(@DelegatesTo(type="T",strategy=3) groovy.lang.Closure<java.lang.Object> collector)
collector
- closure to collect the property paths