Class LongCombiner.FixedLenEncoder

All Implemented Interfaces:
Encoder<Long>, Lexicoder<Long>
Enclosing class:
LongCombiner

public static class LongCombiner.FixedLenEncoder extends AbstractLexicoder<Long>
An Encoder that uses an 8-byte encoding for Longs.
  • Constructor Details

    • FixedLenEncoder

      public FixedLenEncoder()
  • Method Details

    • encode

      public byte[] encode(Long l)
    • decode

      public Long decode(byte[] b)
      Specified by:
      decode in interface Encoder<Long>
      Overrides:
      decode in class AbstractEncoder<Long>
    • decodeUnchecked

      protected Long decodeUnchecked(byte[] b, int offset, int len)
      Description copied from class: AbstractEncoder
      Decodes a byte array without checking if the offset and len exceed the bounds of the actual array.
      Specified by:
      decodeUnchecked in class AbstractEncoder<Long>
    • decode

      public static long decode(byte[] b, int offset)
    • decodeStatic

      public static long decodeStatic(byte[] b, int offset, int len)