Class ByteSource.SignedFixedLengthFloat<V>

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

public static class ByteSource.SignedFixedLengthFloat<V> extends Object implements ByteSource
Fixed length signed floating point number encoding. First bit is sign. If positive, add sign bit value to make greater than all negatives. If not, invert all content to make negatives with bigger magnitude smaller.
  • Constructor Details

    • SignedFixedLengthFloat

      public SignedFixedLengthFloat(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