Uses of Interface
org.apache.cassandra.utils.bytecomparable.ByteSource
-
-
Uses of ByteSource in org.apache.cassandra.db
Methods in org.apache.cassandra.db that return ByteSource Modifier and Type Method Description ByteSource
DecoratedKey. asComparableBytes(ByteComparable.Version version)
ByteSource
PartitionPosition. asComparableBytes(ByteComparable.Version version)
Produce a prefix-free byte-comparable representation of the key, i.e.protected ByteSource
DecoratedKey. keyComparableBytes(ByteComparable.Version version)
protected ByteSource
NativeDecoratedKey. keyComparableBytes(ByteComparable.Version version)
-
Uses of ByteSource in org.apache.cassandra.db.marshal
-
Uses of ByteSource in org.apache.cassandra.dht
Methods in org.apache.cassandra.dht that return ByteSource Modifier and Type Method Description ByteSource
ByteOrderedPartitioner.BytesToken. asComparableBytes(ByteComparable.Version version)
ByteSource
LocalPartitioner.LocalToken. asComparableBytes(ByteComparable.Version version)
ByteSource
Murmur3Partitioner.LongToken. asComparableBytes(ByteComparable.Version version)
ByteSource
OrderPreservingPartitioner.StringToken. asComparableBytes(ByteComparable.Version version)
ByteSource
RandomPartitioner.BigIntegerToken. asComparableBytes(ByteComparable.Version version)
abstract ByteSource
Token. asComparableBytes(ByteComparable.Version version)
Produce a weakly prefix-free byte-comparable representation of the token, i.e.ByteSource
Token.KeyBound. asComparableBytes(ByteComparable.Version version)
ByteSource
Token.TokenFactory. asComparableBytes(Token token, ByteComparable.Version version)
Produce a byte-comparable representation of the token. -
Uses of ByteSource in org.apache.cassandra.index.sai.disk.v1.keystore
Methods in org.apache.cassandra.index.sai.disk.v1.keystore that return ByteSource Modifier and Type Method Description ByteSource
KeyLookup.Cursor. seekToPointId(long pointId)
Positions the cursor on the target point id and reads the key at the target to the current key buffer. -
Uses of ByteSource in org.apache.cassandra.index.sai.utils
Methods in org.apache.cassandra.index.sai.utils that return ByteSource Modifier and Type Method Description ByteSource
IndexTermType. asComparableBytes(java.nio.ByteBuffer value, ByteComparable.Version version)
ByteSource
PrimaryKey. asComparableBytes(ByteComparable.Version version)
Returns thePrimaryKey
as aByteSource
byte comparable representation.Methods in org.apache.cassandra.index.sai.utils with parameters of type ByteSource Modifier and Type Method Description Clustering<?>
PrimaryKey.Factory. clusteringFromByteComparable(ByteSource byteSource)
Create aClustering
from aByteSource
.PrimaryKey
PrimaryKey.Factory. fromComparableBytes(ByteSource byteSource)
Create aPrimaryKey
from aByteSource
.DecoratedKey
PrimaryKey.Factory. partitionKeyFromComparableBytes(ByteSource byteSource)
Create aDecoratedKey
from aByteSource
. -
Uses of ByteSource in org.apache.cassandra.utils.bytecomparable
Classes in org.apache.cassandra.utils.bytecomparable that implement ByteSource Modifier and Type Class Description static class
ByteSource.AbstractEscaper
Variable-length encoding.static class
ByteSource.AccessorEscaper<V>
static class
ByteSource.ArrayEscaper
static class
ByteSource.BufferEscaper
static class
ByteSource.MemoryEscaper
static class
ByteSource.Multi
Combination of multiple byte sources.static class
ByteSource.Number
static class
ByteSource.Peekable
static class
ByteSource.Separator
Construct the shortest common prefix of prevMax and currMin that separates those two byte streams.static class
ByteSource.SignedFixedLengthFloat<V>
Fixed length signed floating point number encoding.static class
ByteSource.SignedFixedLengthNumber<V>
Fixed length signed number encoding.static class
ByteSource.VariableLengthInteger
Variable-length encoding for signed integers.static class
ByteSource.VariableLengthUnsignedInteger
Variable-length encoding for unsigned integers.Fields in org.apache.cassandra.utils.bytecomparable declared as ByteSource Modifier and Type Field Description static ByteSource
ByteSource. EMPTY
Methods in org.apache.cassandra.utils.bytecomparable that return ByteSource Modifier and Type Method Description ByteSource
ByteComparable. asComparableBytes(ByteComparable.Version version)
Returns a source that generates the byte-comparable representation of the value byte by byte.static ByteSource
ByteSource. cut(ByteSource src, int cutoff)
static ByteSource
ByteSource. cutOrRightPad(ByteSource src, int cutoff, int padding)
Wrap a ByteSource in a length-fixing facade.static ByteSource
ByteSource. fixedLength(byte[] b)
A byte source of the given bytes without any encoding.static ByteSource
ByteSource. fixedLength(byte[] b, int offset, int length)
static ByteSource
ByteSource. fixedLength(java.nio.ByteBuffer b)
A byte source of the given bytes without any encoding.static <V> ByteSource
ByteSource. fixedLength(ValueAccessor<V> accessor, V data)
A byte source of the given bytes without any encoding.static ByteSource
ByteSource. of(byte[] buf, ByteComparable.Version version)
Encodes a byte array as a byte-comparable source that has 0s escaped and finishes in an escape.static ByteSource
ByteSource. of(int value)
static ByteSource
ByteSource. of(long value)
static ByteSource
ByteSource. of(java.lang.String s, ByteComparable.Version version)
static ByteSource
ByteSource. of(java.nio.ByteBuffer buf, ByteComparable.Version version)
Encodes a byte buffer as a byte-comparable source that has 0s escaped and finishes in an escape.static <V> ByteSource
ByteSource. of(ValueAccessor<V> accessor, V data, ByteComparable.Version version)
Encodes byte-accessible data as a byte-comparable source that has 0s escaped and finishes in an escaped state.static ByteSource
ByteSource. ofMemory(long address, int length, ByteComparable.Version version)
Encodes a memory range as a byte-comparable source that has 0s escaped and finishes in an escape.static ByteSource
ByteSource. oneByte(int i)
static <V> ByteSource
ByteSource. optionalFixedLength(ValueAccessor<V> accessor, V data)
static <V> ByteSource
ByteSource. optionalSignedFixedLengthFloat(ValueAccessor<V> accessor, V data)
Produce a source for a signed fixed-length floating-point number, also translating empty to null.static <V> ByteSource
ByteSource. optionalSignedFixedLengthNumber(ValueAccessor<V> accessor, V data)
Produce a source for a signed fixed-length number, also translating empty to null.static ByteSource
ByteSource. separatorGt(ByteSource prevMax, ByteSource currMin)
Returns a separator for two byte sources, i.e.static ByteSource
ByteSource. separatorPrefix(ByteSource prevMax, ByteSource currMin)
Returns a separator for two byte sources, i.e.static <V> ByteSource
ByteSource. signedFixedLengthFloat(ValueAccessor<V> accessor, V data)
Produce a source for a signed fixed-length floating-point number.static <V> ByteSource
ByteSource. signedFixedLengthNumber(ValueAccessor<V> accessor, V data)
Produce a source for a signed fixed-length number.static ByteSource
ByteSourceInverse. unescape(ByteSource.Peekable byteSource)
As above, but converts the result to a ByteSource.static ByteSource
ByteSource. variableLengthInteger(long value)
Produce a source for a signed integer, stored using variable length encoding.static ByteSource
ByteSource. withTerminator(int terminator, ByteSource... srcs)
Combines a chain of sources, turning their weak-prefix-free byte-comparable representation into the combination's prefix-free byte-comparable representation, with the included terminator character.static ByteSource
ByteSource. withTerminatorLegacy(int terminator, ByteSource... srcs)
As above, but permits any separator.static ByteSource
ByteSource. withTerminatorMaybeLegacy(ByteComparable.Version version, int legacyTerminator, ByteSource... srcs)
Methods in org.apache.cassandra.utils.bytecomparable with parameters of type ByteSource Modifier and Type Method Description static void
ByteSourceInverse. copyBytes(ByteSource byteSource, byte[] bytes)
static ByteSource
ByteSource. cut(ByteSource src, int cutoff)
static ByteSource
ByteSource. cutOrRightPad(ByteSource src, int cutoff, int padding)
Wrap a ByteSource in a length-fixing facade.static <V> V
ByteSourceInverse. getFixedLength(ValueAccessor<V> accessor, ByteSource byteSource, int length)
Consume the next length bytes from the source unchanged.static <V> V
ByteSourceInverse. getOptionalFixedLength(ValueAccessor<V> accessor, ByteSource byteSource, int length)
Consume the next length bytes from the source unchanged, also translating null to an empty buffer.static <V> V
ByteSourceInverse. getOptionalSignedFixedLength(ValueAccessor<V> accessor, ByteSource byteSource, int length)
Produce the bytes for an encoded signed fixed-length number, also translating null to empty buffer.static <V> V
ByteSourceInverse. getOptionalSignedFixedLengthFloat(ValueAccessor<V> accessor, ByteSource byteSource, int length)
Produce the bytes for an encoded signed fixed-length floating-point number, also translating null to an empty buffer.static byte
ByteSourceInverse. getSignedByte(ByteSource byteSource)
Converts the givenByteSource
to abyte
.static <V> V
ByteSourceInverse. getSignedFixedLength(ValueAccessor<V> accessor, ByteSource byteSource, int length)
Produce the bytes for an encoded signed fixed-length number.static <V> V
ByteSourceInverse. getSignedFixedLengthFloat(ValueAccessor<V> accessor, ByteSource byteSource, int length)
Produce the bytes for an encoded signed fixed-length floating-point number.static int
ByteSourceInverse. getSignedInt(ByteSource byteSource)
Consume the nextint
from the current position of the givenByteSource
.static long
ByteSourceInverse. getSignedLong(ByteSource byteSource)
Consume the nextlong
from the current position of the givenByteSource
.static short
ByteSourceInverse. getSignedShort(ByteSource byteSource)
Converts the givenByteSource
to ashort
.static long
ByteSourceInverse. getUnsignedFixedLengthAsLong(ByteSource byteSource, int length)
Consume the given number of bytes and produce a long from them, effectively treating the bytes as a big-endian unsigned encoding of the number.static long
ByteSourceInverse. getVariableLengthInteger(ByteSource byteSource)
Decode a variable-length signed integer.static long
ByteSourceInverse. getVariableLengthUnsignedIntegerXoring(ByteSource byteSource, int xorWith)
Decode a variable-length unsigned integer, passing all bytes read through XOR with the given xorWith parameter.static ByteSource.Peekable
ByteSource. peekable(ByteSource p)
static byte[]
ByteSourceInverse. readBytes(ByteSource byteSource)
Reads the bytes of the given source into a byte array.static byte[]
ByteSourceInverse. readBytes(ByteSource byteSource, int initialBufferCapacity)
Reads the bytes of the given source into a byte array.static ByteSource
ByteSource. separatorGt(ByteSource prevMax, ByteSource currMin)
Returns a separator for two byte sources, i.e.static ByteSource
ByteSource. separatorPrefix(ByteSource prevMax, ByteSource currMin)
Returns a separator for two byte sources, i.e.static ByteSource
ByteSource. withTerminator(int terminator, ByteSource... srcs)
Combines a chain of sources, turning their weak-prefix-free byte-comparable representation into the combination's prefix-free byte-comparable representation, with the included terminator character.static ByteSource
ByteSource. withTerminatorLegacy(int terminator, ByteSource... srcs)
As above, but permits any separator.static ByteSource
ByteSource. withTerminatorMaybeLegacy(ByteComparable.Version version, int legacyTerminator, ByteSource... srcs)
Constructors in org.apache.cassandra.utils.bytecomparable with parameters of type ByteSource Constructor Description Peekable(ByteSource wrapped)
-