public class ByteFunctionHelpers extends Object
| Constructor and Description |
|---|
ByteFunctionHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static int |
compare(DrillBuf left,
int lStart,
int lEnd,
byte[] right,
int rStart,
int rEnd)
Helper function to compare a set of bytes in DrillBuf to a ByteArray.
|
static int |
compare(DrillBuf left,
int lStart,
int lEnd,
DrillBuf right,
int rStart,
int rEnd)
Helper function to compare a set of bytes in two DrillBuffers.
|
static int |
equal(DrillBuf left,
int lStart,
int lEnd,
DrillBuf right,
int rStart,
int rEnd)
Helper function to check for equality of bytes in two DrillBuffers
|
static int |
getInteger(byte[] b,
int index) |
static int |
getInteger(byte[] b,
int index,
boolean ignoreSign) |
static boolean |
getSign(byte[] b) |
static void |
setInteger(byte[] b,
int index,
int value) |
static void |
setSign(byte[] b,
boolean sign) |
public static final int equal(DrillBuf left, int lStart, int lEnd, DrillBuf right, int rStart, int rEnd)
left - Left DrillBuf for comparisonlStart - start offset in the bufferlEnd - end offset in the bufferright - Right DrillBuf for comparisonrStart - start offset in the bufferrEnd - end offset in the bufferpublic static final int compare(DrillBuf left, int lStart, int lEnd, DrillBuf right, int rStart, int rEnd)
left - Left DrillBuf to comparelStart - start offset in the bufferlEnd - end offset in the bufferright - Right DrillBuf to comparerStart - start offset in the bufferrEnd - end offset in the bufferpublic static final int compare(DrillBuf left, int lStart, int lEnd, byte[] right, int rStart, int rEnd)
left - Left DrillBuf 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 getInteger(byte[] b,
int index)
public static int getInteger(byte[] b,
int index,
boolean ignoreSign)
public static void setInteger(byte[] b,
int index,
int value)
public static void setSign(byte[] b,
boolean sign)
public static boolean getSign(byte[] b)
Copyright © 2021 The Apache Software Foundation. All rights reserved.