public interface SortedSegmentedIndex extends Index
| Modifier and Type | Method and Description |
|---|---|
long |
count(int segment)
Counts index rows in specified tree segment.
|
long |
count(int segment,
IndexQueryContext qryCtx)
Counts index rows in specified tree segment with cache filter.
|
GridCursor<IndexRow> |
find(@Nullable IndexRow lower,
@Nullable IndexRow upper,
boolean lowerIncl,
boolean upperIncl,
IndexQueryContext qryCtx)
Finds index rows by specified range in all tree segments with cache filtering.
|
GridCursor<IndexRow> |
find(@Nullable IndexRow lower,
@Nullable IndexRow upper,
boolean lowerIncl,
boolean upperIncl,
int segment,
IndexQueryContext qryCtx)
Finds index rows by specified range in specifed tree segment with cache filtering.
|
GridCursor<IndexRow> |
findFirst(int segment,
IndexQueryContext qryCtx)
Finds first index row for specified tree segment and cache filter.
|
GridCursor<IndexRow> |
findFirstOrLast(IndexQueryContext qryCtx,
boolean first)
Takes only one first or last index record.
|
GridCursor<IndexRow> |
findLast(int segment,
IndexQueryContext qryCtx)
Finds last index row for specified tree segment and cache filter.
|
int |
segmentsCount()
Returns amount of index tree segments.
|
long |
totalCount()
Counts index rows for all segments.
|
GridCursor<IndexRow> find(@Nullable @Nullable IndexRow lower, @Nullable @Nullable IndexRow upper, boolean lowerIncl, boolean upperIncl, int segment, IndexQueryContext qryCtx) throws IgniteCheckedException
lower - Nullable lower bound.upper - Nullable upper bound.lowerIncl - true for inclusive lower bound, otherwise false.upperIncl - true for inclusive upper bound, otherwise false.segment - Number of tree segment to find.qryCtx - External index query context.IgniteCheckedExceptionGridCursor<IndexRow> find(@Nullable @Nullable IndexRow lower, @Nullable @Nullable IndexRow upper, boolean lowerIncl, boolean upperIncl, IndexQueryContext qryCtx) throws IgniteCheckedException
lower - Nullable lower bound.upper - Nullable upper bound.lowerIncl - true for inclusive lower bound, otherwise false.upperIncl - true for inclusive upper bound, otherwise false.qryCtx - External index query context.IgniteCheckedExceptionGridCursor<IndexRow> findFirst(int segment, IndexQueryContext qryCtx) throws IgniteCheckedException
segment - Number of tree segment to find.qryCtx - External index qyery context.IgniteCheckedExceptionGridCursor<IndexRow> findLast(int segment, IndexQueryContext qryCtx) throws IgniteCheckedException
segment - Number of tree segment to find.qryCtx - External index qyery context.IgniteCheckedExceptionGridCursor<IndexRow> findFirstOrLast(IndexQueryContext qryCtx, boolean first) throws IgniteCheckedException
qryCtx - External index qyery context.first - True to take first index value. False to take last index value.IgniteCheckedExceptionlong count(int segment)
throws IgniteCheckedException
segment - Number of tree segment to find.IgniteCheckedExceptionlong count(int segment,
IndexQueryContext qryCtx)
throws IgniteCheckedException
segment - Number of tree segment to find.qryCtx - Index query context.IgniteCheckedExceptionlong totalCount()
throws IgniteCheckedException
IgniteCheckedExceptionint segmentsCount()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023