public class InlineIndexHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static List<Integer> |
AVAILABLE_TYPES |
| Constructor and Description |
|---|
InlineIndexHelper(int type,
int colIdx,
int sortType,
org.h2.value.CompareMode compareMode) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canRelyOnCompare(int c,
org.h2.value.Value shortVal,
org.h2.value.Value v2) |
static void |
clearCurrentInlineIndexes()
Clears current context.
|
int |
columnIndex() |
int |
compare(long pageAddr,
int off,
int maxSize,
org.h2.value.Value v,
Comparator<org.h2.value.Value> comp) |
static int |
fixSort(int c,
int sortType)
Perform sort order correction.
|
int |
fullSize(long pageAddr,
int off) |
org.h2.value.Value |
get(long pageAddr,
int off,
int maxSize) |
static List<InlineIndexHelper> |
getCurrentInlineIndexes() |
protected boolean |
isValueFull(long pageAddr,
int off) |
int |
put(long pageAddr,
int off,
org.h2.value.Value val,
int maxSize) |
static void |
setCurrentInlineIndexes(List<InlineIndexHelper> inlineIdxs)
Sets page context for current thread.
|
short |
size() |
int |
sortType() |
static byte[] |
trimUTF8(byte[] bytes,
int limit)
Convert String to byte[] with size limit, according to UTF-8 encoding.
|
int |
type() |
public InlineIndexHelper(int type,
int colIdx,
int sortType,
org.h2.value.CompareMode compareMode)
type - Index type (see Value).colIdx - Index column index.sortType - Column sort type (see IndexColumn.sortType).public int type()
public int columnIndex()
public int sortType()
public static List<InlineIndexHelper> getCurrentInlineIndexes()
public static void setCurrentInlineIndexes(List<InlineIndexHelper> inlineIdxs)
public static void clearCurrentInlineIndexes()
public short size()
public int fullSize(long pageAddr,
int off)
pageAddr - Page address.off - Offset.public org.h2.value.Value get(long pageAddr,
int off,
int maxSize)
pageAddr - Page address.off - Offset.protected boolean isValueFull(long pageAddr,
int off)
pageAddr - Page address.off - Offset.True if string is not truncated on save.public int compare(long pageAddr,
int off,
int maxSize,
org.h2.value.Value v,
Comparator<org.h2.value.Value> comp)
pageAddr - Page address.off - Offset.maxSize - Maximum size to read.v - Value to compare.comp - Comparator.public int put(long pageAddr,
int off,
org.h2.value.Value val,
int maxSize)
pageAddr - Page address.off - Offset.val - Value.public static byte[] trimUTF8(byte[] bytes,
int limit)
bytes - byte[].limit - Size limit.protected boolean canRelyOnCompare(int c,
org.h2.value.Value shortVal,
org.h2.value.Value v2)
c - Compare result.shortVal - Short value.v2 - Second value;true if we can rely on compare result.public static int fixSort(int c,
int sortType)
c - Compare result.sortType - Sort type.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018