public class ClientInlineIndex extends AbstractClientIndex implements InlineIndex
| Constructor and Description |
|---|
ClientInlineIndex(IndexDefinition def,
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> |
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.
|
UUID |
id()
Unique ID.
|
IndexDefinition |
indexDefinition() |
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(IndexDefinition def, 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 GridCursor<IndexRow> findFirstOrLast(IndexQueryContext qryCtx, boolean first)
findFirstOrLast in interface SortedSegmentedIndexqryCtx - External index qyery context.first - True to take first index value. False to take last index value.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 SortedSegmentedIndexpublic IndexDefinition indexDefinition()
indexDefinition in interface InlineIndex
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023