Class StringNoCompareInlineIndexKeyType
- java.lang.Object
-
- org.apache.ignite.internal.cache.query.index.sorted.inline.types.NullableInlineIndexKeyType<StringIndexKey>
-
- org.apache.ignite.internal.cache.query.index.sorted.inline.types.StringNoCompareInlineIndexKeyType
-
- All Implemented Interfaces:
InlineIndexKeyType
public class StringNoCompareInlineIndexKeyType extends NullableInlineIndexKeyType<StringIndexKey>
Skip optimized String comparison implemented inStringInlineIndexKeyType.
-
-
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 StringNoCompareInlineIndexKeyType()
-
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 StringIndexKeyget0(long pageAddr, int off)Restores value from inline.booleaninlinedFullValue(long pageAddr, int off, int maxSize)Whether inline contains full index key.protected intinlineSize0(StringIndexKey key)Return inlined size for specified key.protected intput0(long pageAddr, int off, StringIndexKey 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, inlineSize, inlineSize, inlineSize, isNull, keySize, put, readBytes, type
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.cache.query.index.sorted.inline.InlineIndexKeyType
isComparableTo
-
-
-
-
Method Detail
-
put0
protected int put0(long pageAddr, int off, StringIndexKey key, int maxSize)Puts given value into inline index tree.- Specified by:
put0in classNullableInlineIndexKeyType<StringIndexKey>- Parameters:
pageAddr- Page address.off- Offset.key- Value.maxSize- Max size.- Returns:
- Amount of bytes actually stored.
-
get0
protected StringIndexKey get0(long pageAddr, int off)
Restores value from inline.- Specified by:
get0in classNullableInlineIndexKeyType<StringIndexKey>- Parameters:
pageAddr- Page address.off- Offset.- Returns:
- Inline value.
-
compare0
public int compare0(long pageAddr, int off, IndexKey key)Compares inlined and given value.- Specified by:
compare0in classNullableInlineIndexKeyType<StringIndexKey>- 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.
-
inlineSize0
protected int inlineSize0(StringIndexKey key)
Return inlined size for specified key.- Specified by:
inlineSize0in classNullableInlineIndexKeyType<StringIndexKey>
-
inlinedFullValue
public boolean inlinedFullValue(long pageAddr, int off, int maxSize)Whether inline contains full index key.- Specified by:
inlinedFullValuein interfaceInlineIndexKeyType- Overrides:
inlinedFullValuein classNullableInlineIndexKeyType<StringIndexKey>- Parameters:
pageAddr- Page address.off- Offset.maxSize- Remaining inlined buffer size (max available bytes to read for the current row).- Returns:
trueif inline contains full index key. Can befalsefor truncated variable length types.
-
-