Object

org.locationtech.geomesa.utils.index

ByteArrays

Related Doc: package index

Permalink

object ByteArrays

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ByteArrays
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. implicit val ByteOrdering: Ordering[Array[Byte]]

    Permalink
  5. val MaxByte: Byte

    Permalink
  6. val OneByte: Byte

    Permalink
  7. val OneByteArray: Array[Byte]

    Permalink
  8. implicit val UnsignedByteOrdering: Ordering[Byte]

    Permalink
  9. val ZeroByte: Byte

    Permalink
  10. val ZeroByteArray: Array[Byte]

    Permalink
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def concat(bytes: Array[Byte]*): Array[Byte]

    Permalink

    Concatenate byte arrays

    Concatenate byte arrays

    bytes

    arrays

  14. def concat(first: Array[Byte], second: Array[Byte]): Array[Byte]

    Permalink

    Concatenate byte arrays

    Concatenate byte arrays

    first

    first array

    second

    second array

  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. def readInt(bytes: Array[Byte], offset: Int = 0): Int

    Permalink

    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

    bytes

    array to read from

    offset

    offset to start reading

  25. def readLong(bytes: Array[Byte], offset: Int = 0): Long

    Permalink

    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

    bytes

    array to read from

    offset

    offset to start reading

  26. def readOrderedLong(bytes: Array[Byte], offset: Int = 0): Long

    Permalink

    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

    bytes

    array to read from

    offset

    offset to start reading

  27. def readOrderedShort(bytes: Array[Byte], offset: Int = 0): Short

    Permalink

    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

    bytes

    array to read from

    offset

    offset to start reading

  28. def readShort(bytes: Array[Byte], offset: Int = 0): Short

    Permalink

    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

    bytes

    array to read from

    offset

    offset to start reading

  29. def rowFollowingPrefix(prefix: Array[Byte]): Array[Byte]

    Permalink

    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

    prefix

    to follow

    returns

    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)

  30. def rowFollowingRow(bytes: Array[Byte]*): Array[Byte]

    Permalink

    Returns a row that immediately follows the row.

    Returns a row that immediately follows the row. Useful for inclusive endpoints.

    bytes

    row

  31. def rowFollowingRow(row: Array[Byte]): Array[Byte]

    Permalink

    Returns a row that immediately follows the row.

    Returns a row that immediately follows the row. Useful for inclusive endpoints.

    row

    row

  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def toBytes(bin: Array[Byte], z: Long): Array[Byte]

    Permalink

    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)

    bin

    time bin, already converted to 2 bytes

    z

    z value

  34. def toBytes(bin: Short, s: Long, time: Int): Array[Byte]

    Permalink

    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

    bin

    s

    s value

    time

    time offset

  35. def toBytes(bin: Short, z: Long): Array[Byte]

    Permalink

    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)

    bin

    time bin

    z

    z value

  36. def toBytes(long: Long): Array[Byte]

    Permalink

    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

    long

    value to encode

  37. def toBytes(int: Int): Array[Byte]

    Permalink

    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

    int

    value to encode

  38. def toBytes(short: Short): Array[Byte]

    Permalink

    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

    short

    value to encode

  39. def toBytesFollowingPrefix(bin: Short, z: Long): Array[Byte]

    Permalink

    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)

    bin

    epoch bin

    z

    z value

  40. def toBytesFollowingPrefix(z: Long): Array[Byte]

    Permalink

    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

    z value

  41. def toBytesFollowingPrefix(bin: Short, s: Long, time: Int): Array[Byte]

    Permalink

    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

    bin

    s

    s value

    time

    time offset

  42. def toBytesFollowingRow(bin: Short, z: Long): Array[Byte]

    Permalink
  43. def toBytesFollowingRow(long: Long): Array[Byte]

    Permalink
  44. def toHex(bytes: Array[Byte], offset: Int, length: Int): String

    Permalink

    Converts an unsigned byte array into a hex string

    Converts an unsigned byte array into a hex string

    bytes

    unsigned byte array

  45. def toHex(bytes: Array[Byte]): String

    Permalink

    Converts an unsigned byte array into a hex string

    Converts an unsigned byte array into a hex string

    bytes

    unsigned byte array

  46. def toHex(b: Byte): String

    Permalink

    Converts an unsigned byte into a hex string

    Converts an unsigned byte into a hex string

    b

    unsigned byte

  47. def toOrderedBytes(bin: Short, z: Long): Array[Byte]

    Permalink

    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

    bin

    time bin

    z

    z value

  48. def toOrderedBytes(long: Long): Array[Byte]

    Permalink

    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

    long

    value to encode

  49. def toOrderedBytes(short: Short): Array[Byte]

    Permalink

    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

    short

    value to encode

  50. def toOrderedBytesFollowingPrefix(bin: Short, z: Long): Array[Byte]

    Permalink

    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).

    bin

    epoch bin

    z

    z value

  51. def toOrderedBytesFollowingRow(bin: Short, z: Long): Array[Byte]

    Permalink
  52. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  53. def uuidFromBytes(bytes: Array[Byte], offset: Int = 0): (Long, Long)

    Permalink

    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

    bytes

    returns

    (most significant bits, least significant bits)

  54. def uuidToBytes(msb: Long, lsb: Long): Array[Byte]

    Permalink

    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)

    msb

    most significant bits

    lsb

    least significant bits

  55. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. def writeInt(int: Int, bytes: Array[Byte], offset: Int = 0): Unit

    Permalink

    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

    int to write

    bytes

    byte array to write to, must have length at least offset + 8

    offset

    offset to start writing

  59. def writeLong(long: Long, bytes: Array[Byte], offset: Int = 0): Unit

    Permalink

    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

    long to write

    bytes

    byte array to write to, must have length at least offset + 8

    offset

    offset to start writing

  60. def writeOrderedLong(long: Long, bytes: Array[Byte], offset: Int = 0): Unit

    Permalink

    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

    long to write

    bytes

    bytes array to write to, must have length at least offset + 8

    offset

    offset to start writing

  61. def writeOrderedShort(short: Short, bytes: Array[Byte], offset: Int = 0): Unit

    Permalink

    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

    short to write

    bytes

    bytes array to write to, must have length at least offset + 2

    offset

    offset to start writing

  62. def writeShort(short: Short, bytes: Array[Byte], offset: Int = 0): Unit

    Permalink

    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

    short to write

    bytes

    byte array to write to, must have length at least offset + 2

    offset

    offset to start writing

Inherited from AnyRef

Inherited from Any

Ungrouped