public class ByteFunctionHelpers extends Object
| コンストラクタと説明 |
|---|
ByteFunctionHelpers() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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
|
static int |
unsignedLongCompare(long a,
long b)
Compares the two specified
long values, treating them as unsigned values between
0 and 2^64 - 1 inclusive. |
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 arraypublic static int unsignedLongCompare(long a,
long b)
long values, treating them as unsigned values between
0 and 2^64 - 1 inclusive.a - the first unsigned long to compareb - the second unsigned long to comparea is less than b; a positive value if a is
greater than b; or zero if they are equalCopyright © 2018 The Apache Software Foundation. All rights reserved.