Class ByteSource.SignedFixedLengthNumber<V>

java.lang.Object
org.apache.cassandra.utils.bytecomparable.ByteSource.SignedFixedLengthNumber<V>
All Implemented Interfaces:
ByteSource
Enclosing interface:
ByteSource

public static class ByteSource.SignedFixedLengthNumber<V> extends Object implements ByteSource
Fixed length signed number encoding. Inverts first bit (so that neg < pos), then just posts all bytes from the buffer. Assumes buffer is of correct length.
  • Constructor Details

    • SignedFixedLengthNumber

      public SignedFixedLengthNumber(ValueAccessor<V> accessor, V data)
  • Method Details

    • next

      public int next()
      Description copied from interface: ByteSource
      Consume the next byte, unsigned. Must be between 0 and 255, or END_OF_STREAM if there are no more bytes.
      Specified by:
      next in interface ByteSource