public class TextPartiallyRawComparator extends Object implements PartiallyRawComparator<Text>, org.apache.ignite.internal.processors.hadoop.io.PartiallyOffheapRawComparatorEx<Text>
Text
data type.
Implementation is borrowed from org.apache.hadoop.io.FastByteComparisons
and adopted to Ignite
infrastructure.
Constructor and Description |
---|
TextPartiallyRawComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Text val1,
long val2Ptr,
int val2Len)
Perform compare.
|
int |
compare(Text val1,
RawMemory val2Buf)
Do compare.
|
public int compare(Text val1, RawMemory val2Buf)
compare
in interface PartiallyRawComparator<Text>
val1
- First value (deserialized).val2Buf
- Second value (serialized).public int compare(Text val1, long val2Ptr, int val2Len)
compare
in interface org.apache.ignite.internal.processors.hadoop.io.PartiallyOffheapRawComparatorEx<Text>
val1
- First value.val2Ptr
- Pointer to the second value data.val2Len
- Length of the second value data.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019