Concatenate byte arrays
Concatenate byte arrays
arrays
Concatenate byte arrays
Concatenate byte arrays
first array
second array
Reads 4 bytes from the provided array as an int, starting at offset
Reads 4 bytes from the provided array as an int, starting at offset
array to read from
offset to start reading
Reads 8 bytes from the provided array as a long, starting at offset
Reads 8 bytes from the provided array as a long, starting at offset
array to read from
offset to start reading
Reads 8 bytes from the provided array as a long, starting at offset
Reads 8 bytes from the provided array as a long, starting at offset
array to read from
offset to start reading
Reads 2 bytes from the provided array as a short, starting at offset
Reads 2 bytes from the provided array as a short, starting at offset
array to read from
offset to start reading
Reads 2 bytes from the provided array as a short, starting at offset
Reads 2 bytes from the provided array as a short, starting at offset
array to read from
offset to start reading
Returns a row that sorts just after all rows beginning with a prefix.
Returns a row that sorts just after all rows beginning with a prefix. Copied from Accumulo Range
to follow
prefix that immediately follows the given prefix when sorted, or an empty array if no prefix can follow (i.e., the string is all 0xff bytes)
Returns a row that immediately follows the row.
Returns a row that immediately follows the row. Useful for inclusive endpoints.
row
Returns a row that immediately follows the row.
Returns a row that immediately follows the row. Useful for inclusive endpoints.
row
Creates a byte array with a short and a long.
Creates a byte array with a short and a long.
Code based on the following methods, but avoids allocating extra byte arrays:
com.google.common.primitives.Shorts#toByteArray(short) com.google.common.primitives.Longs#toByteArray(long)
time bin, already converted to 2 bytes
z value
Creates a byte array with a short and a long and an int
Creates a byte array with a short and a long and an int
bin
s value
time offset
Creates a byte array with a short and a long.
Creates a byte array with a short and a long.
Code based on the following methods, but avoids allocating extra byte arrays:
com.google.common.primitives.Shorts#toByteArray(short) com.google.common.primitives.Longs#toByteArray(long)
time bin
z value
Allocates a new array of length eight and writes the long to it
Allocates a new array of length eight and writes the long to it
value to encode
Allocates a new array of length four and writes the int to it
Allocates a new array of length four and writes the int to it
value to encode
Allocates a new array of length two and writes the short to it
Allocates a new array of length two and writes the short to it
value to encode
Creates a byte array that sorts directly after the z-value (as converted into a byte array).
Creates a byte array that sorts directly after the z-value (as converted into a byte array).
Code based on the following methods, but avoids allocating extra byte arrays:
org.apache.accumulo.core.data.Range#followingPrefix(org.apache.hadoop.io.Text) com.google.common.primitives.Shorts#toByteArray(short) com.google.common.primitives.Longs#toByteArray(long)
epoch bin
z value
Creates a byte array that sorts directly after the z-value (as converted into a byte array).
Creates a byte array that sorts directly after the z-value (as converted into a byte array).
Code based on the following methods, but avoids allocating extra byte arrays:
org.apache.accumulo.core.data.Range#followingPrefix(org.apache.hadoop.io.Text) com.google.common.primitives.Longs#toByteArray(long)
z value
Creates a byte array with a short and a long and an int
Creates a byte array with a short and a long and an int
bin
s value
time offset
Converts an unsigned byte array into a hex string
Converts an unsigned byte array into a hex string
unsigned byte array
Converts an unsigned byte array into a hex string
Converts an unsigned byte array into a hex string
unsigned byte array
Converts an unsigned byte into a hex string
Converts an unsigned byte into a hex string
unsigned byte
Creates a byte array with a short and a long, preserving the sort order of the short for negative values
Creates a byte array with a short and a long, preserving the sort order of the short for negative values
time bin
z value
Allocates a new array of length eight and writes the long to it, preserving sort order for negative values
Allocates a new array of length eight and writes the long to it, preserving sort order for negative values
value to encode
Allocates a new array of length two and writes the short to it, preserving sort order for negative values
Allocates a new array of length two and writes the short to it, preserving sort order for negative values
value to encode
Creates a byte array that sorts directly after the z-value (as converted into a byte array).
Creates a byte array that sorts directly after the z-value (as converted into a byte array).
epoch bin
z value
Converts a byte array into a UUID.
Converts a byte array into a UUID.
Code based on the following method:
com.google.common.primitives.Longs#fromByteArray(bytes)
bytes
(most significant bits, least significant bits)
Converts a UUID into a byte array.
Converts a UUID into a byte array.
Code based on the following method, but avoids allocating extra byte arrays:
com.google.common.primitives.Longs#toByteArray(long)
most significant bits
least significant bits
Writes the int as 4 bytes in the provided array, starting at offset
Writes the int as 4 bytes in the provided array, starting at offset
int to write
byte array to write to, must have length at least offset
+ 8
offset to start writing
Writes the long as 8 bytes in the provided array, starting at offset
Writes the long as 8 bytes in the provided array, starting at offset
long to write
byte array to write to, must have length at least offset
+ 8
offset to start writing
Writes the long as 8 bytes in the provided array, starting at offset, and preserving sort order for negative values
Writes the long as 8 bytes in the provided array, starting at offset, and preserving sort order for negative values
long to write
bytes array to write to, must have length at least offset
+ 8
offset to start writing
Writes the short as 2 bytes in the provided array, starting at offset, and preserving sort order for negative values
Writes the short as 2 bytes in the provided array, starting at offset, and preserving sort order for negative values
short to write
bytes array to write to, must have length at least offset
+ 2
offset to start writing
Writes the short as 2 bytes in the provided array, starting at offset
Writes the short as 2 bytes in the provided array, starting at offset
short to write
byte array to write to, must have length at least offset
+ 2
offset to start writing