public class ClientInlineIndex extends AbstractClientIndex implements InlineIndex
| Constructor and Description |
|---|
ClientInlineIndex(String idxName,
int inlineSize) |
| 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.
|
boolean |
created()
true if index is created and false if it is restored from disk. |
GridCursor<IndexRow> |
find(IndexRow lower,
IndexRow upper,
boolean lowIncl,
boolean upIncl,
IndexQueryContext qryCtx)
Finds index rows by specified range in all tree segments with cache filtering.
|
GridCursor<IndexRow> |
find(IndexRow lower,
IndexRow upper,
boolean lowIncl,
boolean upIncl,
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> |
findLast(int segment,
IndexQueryContext qryCtx)
Finds last index row for specified tree segment and cache filter.
|
UUID |
id()
Unique ID.
|
int |
inlineSize() |
String |
name()
Index name.
|
InlineIndexTree |
segment(int segment) |
int |
segmentsCount()
Returns amount of index tree segments.
|
long |
totalCount()
Counts index rows for all segments.
|
canHandle, destroy, onUpdate, unsupportedmarkIndexRebuild, rebuildInProgress, unwrappublic ClientInlineIndex(String idxName, int inlineSize)
public int inlineSize()
inlineSize in interface InlineIndexpublic boolean created()
true if index is created and false if it is restored from disk.created in interface InlineIndexpublic InlineIndexTree segment(int segment)
segment in interface InlineIndexsegment - Number of tree segment.public GridCursor<IndexRow> find(IndexRow lower, IndexRow upper, boolean lowIncl, boolean upIncl, int segment, IndexQueryContext qryCtx)
find in interface SortedSegmentedIndexlower - Nullable lower bound.upper - Nullable upper bound.lowIncl - true for inclusive lower bound, otherwise false.upIncl - true for inclusive upper bound, otherwise false.segment - Number of tree segment to find.qryCtx - External index query context.public GridCursor<IndexRow> find(IndexRow lower, IndexRow upper, boolean lowIncl, boolean upIncl, IndexQueryContext qryCtx)
find in interface SortedSegmentedIndexlower - Nullable lower bound.upper - Nullable upper bound.lowIncl - true for inclusive lower bound, otherwise false.upIncl - true for inclusive upper bound, otherwise false.qryCtx - External index query context.public GridCursor<IndexRow> findFirst(int segment, IndexQueryContext qryCtx)
findFirst in interface SortedSegmentedIndexsegment - Number of tree segment to find.qryCtx - External index qyery context.public GridCursor<IndexRow> findLast(int segment, IndexQueryContext qryCtx)
findLast in interface SortedSegmentedIndexsegment - Number of tree segment to find.qryCtx - External index qyery context.public long count(int segment)
count in interface SortedSegmentedIndexsegment - Number of tree segment to find.public long totalCount()
totalCount in interface SortedSegmentedIndexpublic long count(int segment,
IndexQueryContext qryCtx)
count in interface SortedSegmentedIndexsegment - Number of tree segment to find.qryCtx - Index query context.public int segmentsCount()
segmentsCount in interface SortedSegmentedIndex
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.14.0 Release Date : September 29 2022