public class StringInlineIndexKeyType extends NullableInlineIndexKeyType<StringIndexKey>
String values.| Modifier and Type | Field and Description |
|---|---|
protected static Charset |
CHARSET
Default charset.
|
CANT_BE_COMPARE, COMPARE_UNSUPPORTED, keySize| Constructor and Description |
|---|
StringInlineIndexKeyType()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare0(long pageAddr,
int off,
StringIndexKey key)
Compares inlined and given value.
|
protected @Nullable StringIndexKey |
get0(long pageAddr,
int off)
Restores value from inline.
|
protected int |
inlineSize0(StringIndexKey key)
Return inlined size for specified key.
|
protected int |
put0(long pageAddr,
int off,
StringIndexKey str,
int maxSize)
Puts given value into inline index tree.
|
static byte[] |
trimUTF8(byte[] bytes,
int limit)
Convert String to byte[] with size limit, according to UTF-8 encoding.
|
compare, get, inlineSize, inlineSize, inlineSize, put, readBytes, typeprotected static final Charset CHARSET
protected int put0(long pageAddr,
int off,
StringIndexKey str,
int maxSize)
put0 in class NullableInlineIndexKeyType<StringIndexKey>pageAddr - Page address.off - Offset.str - Value.maxSize - Max size.@Nullable protected @Nullable StringIndexKey get0(long pageAddr, int off)
get0 in class NullableInlineIndexKeyType<StringIndexKey>pageAddr - Page address.off - Offset.null if value can't be restored.public int compare0(long pageAddr,
int off,
StringIndexKey key)
compare0 in class NullableInlineIndexKeyType<StringIndexKey>pageAddr - Page address.off - Offset.key - Value that should be compare.NullableInlineIndexKeyType.CANT_BE_COMPARE if inlined part
is not enough to compare, or NullableInlineIndexKeyType.COMPARE_UNSUPPORTED if given value
can't be compared with inlined part at all.public static byte[] trimUTF8(byte[] bytes,
int limit)
bytes - byte[].limit - Size limit.protected int inlineSize0(StringIndexKey key)
inlineSize0 in class NullableInlineIndexKeyType<StringIndexKey>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021