Class IndexRowImpl
- java.lang.Object
-
- org.apache.ignite.internal.cache.query.index.sorted.IndexRowImpl
-
- All Implemented Interfaces:
IndexRow
- Direct Known Subclasses:
DefragIndexFactory.DefragIndexRowImpl
public class IndexRowImpl extends Object implements IndexRow
This class represents a row inSortedSegmentedIndex.
-
-
Constructor Summary
Constructors Constructor Description IndexRowImpl(InlineIndexRowHandler rowHnd, CacheDataRow row)Constructor.IndexRowImpl(InlineIndexRowHandler rowHnd, CacheDataRow row, IndexKey[] keys)Constructor with prefilling of keys cache.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheDataRowcacheDataRow()intcacheId()booleanindexPlainRow()IndexKeykey(int idx)intkeysCount()longlink()voidprepareCache()Initialize a cache for index keys.InlineIndexRowHandlerrowHandler()StringtoString()CacheObjectvalue()
-
-
-
Constructor Detail
-
IndexRowImpl
public IndexRowImpl(InlineIndexRowHandler rowHnd, CacheDataRow row)
Constructor.
-
IndexRowImpl
public IndexRowImpl(InlineIndexRowHandler rowHnd, CacheDataRow row, IndexKey[] keys)
Constructor with prefilling of keys cache.
-
-
Method Detail
-
value
public CacheObject value()
- Returns:
- Indexed value.
-
key
public IndexKey key(int idx)
-
rowHandler
public InlineIndexRowHandler rowHandler()
- Specified by:
rowHandlerin interfaceIndexRow- Returns:
- Schema of an index.
-
cacheDataRow
public CacheDataRow cacheDataRow()
- Specified by:
cacheDataRowin interfaceIndexRow- Returns:
- Cache row.
-
cacheId
public int cacheId()
- Returns:
- Cache ID or
0if cache ID is not defined.
-
prepareCache
public void prepareCache()
Initialize a cache for index keys. Useful for inserting rows as there are a lot of comparisons.
-
indexPlainRow
public boolean indexPlainRow()
- Specified by:
indexPlainRowin interfaceIndexRow- Returns:
Truefor rows used for index search (as opposed to rows stored inInlineIndexTree.
-
-