public interface IndexService
| 限定符和类型 | 方法和说明 |
|---|---|
Iterator<GenericRecord> |
getQueryAllIterator()
Return an iterator to query all records of a tablespace
This is friendly to memory since only one page is loaded per batch
|
Iterator<GenericRecord> |
getRangeQueryIterator(Object lowerInclusiveKey,
Object upperExclusiveKey)
Return an iterator to do range query records by primary key in a tablespace
This is friendly to memory since only one page is loaded per batch
|
List<GenericRecord> |
queryAll(Optional<java.util.function.Predicate<GenericRecord>> recordPredicate)
query all records of a tablespace
Note this will cause out-of-memory if the table is too big
|
List<GenericRecord> |
queryByPageNumber(int pageNumber)
query all records by single page
|
List<GenericRecord> |
queryByPageNumber(long pageNumber)
query all records by single page
|
GenericRecord |
queryByPrimaryKey(Object key)
query record by primary key in a tablespace
|
List<GenericRecord> |
rangeQueryByPrimaryKey(Object lowerInclusiveKey,
Object upperExclusiveKey,
Optional<java.util.function.Predicate<GenericRecord>> recordPredicate)
range query records by primary key in a tablespace
Note this will cause out-of-memory if there are too many records within the range
|
List<GenericRecord> queryByPageNumber(int pageNumber)
pageNumber - page number (int type), can be leaf or non-leaf pageList<GenericRecord> queryByPageNumber(long pageNumber)
pageNumber - page number (long type), can be leaf or non-leaf pageGenericRecord queryByPrimaryKey(Object key)
key - primary keyList<GenericRecord> queryAll(Optional<java.util.function.Predicate<GenericRecord>> recordPredicate)
Note this will cause out-of-memory if the table is too big
recordPredicate - optional. evaluating record, if true then it will be added to result set, else skip itList<GenericRecord> rangeQueryByPrimaryKey(Object lowerInclusiveKey, Object upperExclusiveKey, Optional<java.util.function.Predicate<GenericRecord>> recordPredicate)
Note this will cause out-of-memory if there are too many records within the range
lowerInclusiveKey - lower bound, inclusive, if set to null means no limit for lowerupperExclusiveKey - upper bound, exclusive, if set to null means no limit for upperrecordPredicate - optional. evaluating record, if true then it will be added to result set, else skip itIterator<GenericRecord> getQueryAllIterator()
This is friendly to memory since only one page is loaded per batch
Iterator<GenericRecord> getRangeQueryIterator(Object lowerInclusiveKey, Object upperExclusiveKey)
This is friendly to memory since only one page is loaded per batch
lowerInclusiveKey - lower bound, inclusive, if set to null means no limit for lowerupperExclusiveKey - upper bound, exclusive, if set to null means no limit for upperCopyright © 2019–2020 Alibaba Group Holding Limited. All rights reserved.