public class BytesWritablePartiallyRawComparator extends Object implements PartiallyRawComparator<BytesWritable>, org.apache.ignite.internal.processors.hadoop.io.PartiallyOffheapRawComparatorEx<BytesWritable>
BytesWritable data type.
Implementation is borrowed from org.apache.hadoop.io.FastByteComparisons and adopted to Ignite
infrastructure.
| Constructor and Description |
|---|
BytesWritablePartiallyRawComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(BytesWritable val1,
long val2Ptr,
int val2Len)
Perform compare.
|
int |
compare(BytesWritable val1,
RawMemory val2Buf)
Do compare.
|
public int compare(BytesWritable val1, RawMemory val2Buf)
compare in interface PartiallyRawComparator<BytesWritable>val1 - First value (deserialized).val2Buf - Second value (serialized).public int compare(BytesWritable val1, long val2Ptr, int val2Len)
compare in interface org.apache.ignite.internal.processors.hadoop.io.PartiallyOffheapRawComparatorEx<BytesWritable>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