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 java.lang.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.utils.bytecomparable.ByteSource
ByteSource.AbstractEscaper, ByteSource.AccessorEscaper<V>, ByteSource.ArrayEscaper, ByteSource.BufferEscaper, ByteSource.MemoryEscaper, ByteSource.Multi, ByteSource.Number, ByteSource.Peekable, ByteSource.Separator, ByteSource.SignedFixedLengthFloat<V>, ByteSource.SignedFixedLengthNumber<V>, ByteSource.VariableLengthInteger, ByteSource.VariableLengthUnsignedInteger
-
-
Field Summary
-
Fields inherited from interface org.apache.cassandra.utils.bytecomparable.ByteSource
EMPTY, END_OF_STREAM, ESCAPE, ESCAPED_0_CONT, ESCAPED_0_DONE, EXCLUDED, GT_NEXT_COMPONENT, GTGT_NEXT_COMPONENT, LT_NEXT_COMPONENT, LTLT_NEXT_COMPONENT, MAX_NEXT_COMPONENT, MAX_SEPARATOR, MIN_NEXT_COMPONENT, MIN_SEPARATOR, NEXT_COMPONENT, NEXT_COMPONENT_EMPTY, NEXT_COMPONENT_EMPTY_REVERSED, NEXT_COMPONENT_NULL, TERMINATOR
-
-
Constructor Summary
Constructors Constructor Description SignedFixedLengthFloat(ValueAccessor<V> accessor, V data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
next()
Consume the next byte, unsigned.
-
-
-
Constructor Detail
-
SignedFixedLengthFloat
public SignedFixedLengthFloat(ValueAccessor<V> accessor, V data)
-
-
Method Detail
-
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 interfaceByteSource
-
-