public class ByteFunctionHelpers extends Object
| Constructor and Description |
|---|
ByteFunctionHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static int |
compare(ArrowBuf left,
int lStart,
int lEnd,
ArrowBuf right,
int rStart,
int rEnd)
Helper function to compare a set of bytes in two ArrowBufs.
|
static int |
compare(ArrowBuf left,
int lStart,
int lEnd,
byte[] right,
int rStart,
int rEnd)
Helper function to compare a set of bytes in ArrowBuf to a ByteArray.
|
static int |
equal(ArrowBuf left,
int lStart,
int lEnd,
ArrowBuf right,
int rStart,
int rEnd)
Helper function to check for equality of bytes in two ArrowBufs
|
public static final int equal(ArrowBuf left, int lStart, int lEnd, ArrowBuf right, int rStart, int rEnd)
left - Left ArrowBuf for comparisonlStart - start offset in the bufferlEnd - end offset in the bufferright - Right ArrowBuf for comparisonrStart - start offset in the bufferrEnd - end offset in the bufferpublic static final int compare(ArrowBuf left, int lStart, int lEnd, ArrowBuf right, int rStart, int rEnd)
left - Left ArrowBuf to comparelStart - start offset in the bufferlEnd - end offset in the bufferright - Right ArrowBuf to comparerStart - start offset in the bufferrEnd - end offset in the bufferpublic static final int compare(ArrowBuf left, int lStart, int lEnd, byte[] right, int rStart, int rEnd)
left - Left ArrowBuf for comparison purposeslStart - start offset in the bufferlEnd - end offset in the bufferright - second input to be comparedrStart - start offset in the byte arrayrEnd - end offset in the byte arrayCopyright © 2016 The Apache Software Foundation. All rights reserved.