Class DateInlineIndexKeyType
- java.lang.Object
-
- org.apache.ignite.internal.cache.query.index.sorted.inline.types.NullableInlineIndexKeyType<DateIndexKey>
-
- org.apache.ignite.internal.cache.query.index.sorted.inline.types.DateInlineIndexKeyType
-
- All Implemented Interfaces:
InlineIndexKeyType
public class DateInlineIndexKeyType extends NullableInlineIndexKeyType<DateIndexKey>
Inline index key implementation for inliningDateIndexKeyvalues.
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.cache.query.index.sorted.inline.types.NullableInlineIndexKeyType
CANT_BE_COMPARE, COMPARE_UNSUPPORTED, keySize, VARTYPE_HEADER_SIZE
-
-
Constructor Summary
Constructors Constructor Description DateInlineIndexKeyType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare0(long pageAddr, int off, IndexKey key)Compares inlined and given value.protected DateIndexKeyget0(long pageAddr, int off)Restores value from inline.protected intinlineSize0(DateIndexKey key)Return inlined size for specified key.booleanisComparableTo(IndexKey key)protected intput0(long pageAddr, int off, DateIndexKey key, int maxSize)Puts given value into inline index tree.-
Methods inherited from class org.apache.ignite.internal.cache.query.index.sorted.inline.types.NullableInlineIndexKeyType
compare, get, inlinedFullValue, inlineSize, inlineSize, inlineSize, isNull, keySize, put, readBytes, type
-
-
-
-
Method Detail
-
isComparableTo
public boolean isComparableTo(IndexKey key)
- Returns:
Trueif inlined value can be compared to index key.
-
compare0
public int compare0(long pageAddr, int off, IndexKey key)Compares inlined and given value.- Specified by:
compare0in classNullableInlineIndexKeyType<DateIndexKey>- Parameters:
pageAddr- Page address.off- Offset.key- Value that should be compare.- Returns:
- -1, 0 or 1 if inlined value less, equal or greater
than given respectively,
NullableInlineIndexKeyType.CANT_BE_COMPAREif inlined part is not enough to compare, orNullableInlineIndexKeyType.COMPARE_UNSUPPORTEDif given value can't be compared with inlined part at all.
-
put0
protected int put0(long pageAddr, int off, DateIndexKey key, int maxSize)Puts given value into inline index tree.- Specified by:
put0in classNullableInlineIndexKeyType<DateIndexKey>- Parameters:
pageAddr- Page address.off- Offset.key- Value.maxSize- Max size.- Returns:
- Amount of bytes actually stored.
-
get0
protected DateIndexKey get0(long pageAddr, int off)
Restores value from inline.- Specified by:
get0in classNullableInlineIndexKeyType<DateIndexKey>- Parameters:
pageAddr- Page address.off- Offset.- Returns:
- Inline value.
-
inlineSize0
protected int inlineSize0(DateIndexKey key)
Return inlined size for specified key.- Specified by:
inlineSize0in classNullableInlineIndexKeyType<DateIndexKey>
-
-