Uses of Interface
org.apache.cassandra.utils.bytecomparable.ByteSource
Packages that use ByteSource
Package
Description
-
Uses of ByteSource in org.apache.cassandra.db
Methods in org.apache.cassandra.db that return ByteSourceModifier and TypeMethodDescriptionDecoratedKey.asComparableBytes(ByteComparable.Version version) PartitionPosition.asComparableBytes(ByteComparable.Version version) Produce a prefix-free byte-comparable representation of the key, i.e.protected ByteSourceDecoratedKey.keyComparableBytes(ByteComparable.Version version) protected ByteSourceNativeDecoratedKey.keyComparableBytes(ByteComparable.Version version) -
Uses of ByteSource in org.apache.cassandra.db.marshal
Methods in org.apache.cassandra.db.marshal that return ByteSourceModifier and TypeMethodDescription<V> ByteSourceAbstractTimeUUIDType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) final ByteSourceAbstractType.asComparableBytes(ByteBuffer byteBuffer, ByteComparable.Version version) <V> ByteSourceAbstractType.asComparableBytes(ValueAccessor<V> accessor, V value, ByteComparable.Version version) Produce a byte-comparable representation of the given value, i.e.<V> ByteSourceBooleanType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) <V> ByteSourceByteType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) <V> ByteSourceCompositeType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) <V> ByteSourceDateType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) Deprecated.<V> ByteSourceDecimalType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) Constructs a byte-comparable representation.<V> ByteSourceDoubleType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) <V> ByteSourceDynamicCompositeType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) <V> ByteSourceEmptyType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) <V> ByteSourceFloatType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) <V> ByteSourceInt32Type.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) <V> ByteSourceIntegerType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) Constructs a byte-comparable representation of the number.<V> ByteSourceLexicalUUIDType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) <V> ByteSourceListType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) <V> ByteSourceLongType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) <T> ByteSourceMapType.asComparableBytes(ValueAccessor<T> accessor, T data, ByteComparable.Version version) <V> ByteSourcePartitionerDefinedOrder.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) <V> ByteSourceReversedType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) <V> ByteSourceSetType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) <V> ByteSourceShortType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) <V> ByteSourceSimpleDateType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) <V> ByteSourceTimestampType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) <V> ByteSourceTimeType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) <V> ByteSourceTupleType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version version) <V> ByteSourceUUIDType.asComparableBytes(ValueAccessor<V> accessor, V data, ByteComparable.Version v) <V> ByteSourceVectorType.asComparableBytes(ValueAccessor<V> accessor, V value, ByteComparable.Version version) -
Uses of ByteSource in org.apache.cassandra.dht
Methods in org.apache.cassandra.dht that return ByteSourceModifier and TypeMethodDescriptionByteOrderedPartitioner.BytesToken.asComparableBytes(ByteComparable.Version version) LocalPartitioner.LocalToken.asComparableBytes(ByteComparable.Version version) Murmur3Partitioner.LongToken.asComparableBytes(ByteComparable.Version version) OrderPreservingPartitioner.StringToken.asComparableBytes(ByteComparable.Version version) RandomPartitioner.BigIntegerToken.asComparableBytes(ByteComparable.Version version) abstract ByteSourceToken.asComparableBytes(ByteComparable.Version version) Produce a weakly prefix-free byte-comparable representation of the token, i.e.Token.KeyBound.asComparableBytes(ByteComparable.Version version) 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 ByteSourceModifier and TypeMethodDescriptionKeyLookup.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 ByteSourceModifier and TypeMethodDescriptionIndexTermType.asComparableBytes(ByteBuffer value, ByteComparable.Version version) PrimaryKey.asComparableBytes(ByteComparable.Version version) Returns thePrimaryKeyas aByteSourcebyte comparable representation.Methods in org.apache.cassandra.index.sai.utils with parameters of type ByteSourceModifier and TypeMethodDescriptionClustering<?>PrimaryKey.Factory.clusteringFromByteComparable(ByteSource byteSource) Create aClusteringfrom aByteSource.PrimaryKey.Factory.fromComparableBytes(ByteSource byteSource) Create aPrimaryKeyfrom aByteSource.PrimaryKey.Factory.partitionKeyFromComparableBytes(ByteSource byteSource) Create aDecoratedKeyfrom aByteSource. -
Uses of ByteSource in org.apache.cassandra.utils.bytecomparable
Classes in org.apache.cassandra.utils.bytecomparable that implement ByteSourceModifier and TypeClassDescriptionstatic classVariable-length encoding.static classstatic classstatic classstatic classstatic classCombination of multiple byte sources.static classstatic classstatic classConstruct the shortest common prefix of prevMax and currMin that separates those two byte streams.static classFixed length signed floating point number encoding.static classFixed length signed number encoding.static classVariable-length encoding for signed integers.static classVariable-length encoding for unsigned integers.Fields in org.apache.cassandra.utils.bytecomparable declared as ByteSourceMethods in org.apache.cassandra.utils.bytecomparable that return ByteSourceModifier and TypeMethodDescriptionByteComparable.asComparableBytes(ByteComparable.Version version) Returns a source that generates the byte-comparable representation of the value byte by byte.static ByteSourceByteSource.cut(ByteSource src, int cutoff) static ByteSourceByteSource.cutOrRightPad(ByteSource src, int cutoff, int padding) Wrap a ByteSource in a length-fixing facade.static ByteSourceByteSource.fixedLength(byte[] b) A byte source of the given bytes without any encoding.static ByteSourceByteSource.fixedLength(byte[] b, int offset, int length) static ByteSourceByteSource.fixedLength(ByteBuffer b) A byte source of the given bytes without any encoding.static <V> ByteSourceByteSource.fixedLength(ValueAccessor<V> accessor, V data) A byte source of the given bytes without any encoding.static ByteSourceByteSource.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 ByteSourceByteSource.of(int value) static ByteSourceByteSource.of(long value) static ByteSourceByteSource.of(String s, ByteComparable.Version version) static ByteSourceByteSource.of(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> ByteSourceByteSource.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 ByteSourceByteSource.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 ByteSourceByteSource.oneByte(int i) static <V> ByteSourceByteSource.optionalFixedLength(ValueAccessor<V> accessor, V data) static <V> ByteSourceByteSource.optionalSignedFixedLengthFloat(ValueAccessor<V> accessor, V data) Produce a source for a signed fixed-length floating-point number, also translating empty to null.static <V> ByteSourceByteSource.optionalSignedFixedLengthNumber(ValueAccessor<V> accessor, V data) Produce a source for a signed fixed-length number, also translating empty to null.static ByteSourceByteSource.separatorGt(ByteSource prevMax, ByteSource currMin) Returns a separator for two byte sources, i.e.static ByteSourceByteSource.separatorPrefix(ByteSource prevMax, ByteSource currMin) Returns a separator for two byte sources, i.e.static <V> ByteSourceByteSource.signedFixedLengthFloat(ValueAccessor<V> accessor, V data) Produce a source for a signed fixed-length floating-point number.static <V> ByteSourceByteSource.signedFixedLengthNumber(ValueAccessor<V> accessor, V data) Produce a source for a signed fixed-length number.static ByteSourceByteSourceInverse.unescape(ByteSource.Peekable byteSource) As above, but converts the result to a ByteSource.static ByteSourceByteSource.variableLengthInteger(long value) Produce a source for a signed integer, stored using variable length encoding.static ByteSourceByteSource.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 ByteSourceByteSource.withTerminatorLegacy(int terminator, ByteSource... srcs) As above, but permits any separator.static ByteSourceByteSource.withTerminatorMaybeLegacy(ByteComparable.Version version, int legacyTerminator, ByteSource... srcs) Methods in org.apache.cassandra.utils.bytecomparable with parameters of type ByteSourceModifier and TypeMethodDescriptionstatic voidByteSourceInverse.copyBytes(ByteSource byteSource, byte[] bytes) static ByteSourceByteSource.cut(ByteSource src, int cutoff) static ByteSourceByteSource.cutOrRightPad(ByteSource src, int cutoff, int padding) Wrap a ByteSource in a length-fixing facade.static <V> VByteSourceInverse.getFixedLength(ValueAccessor<V> accessor, ByteSource byteSource, int length) Consume the next length bytes from the source unchanged.static <V> VByteSourceInverse.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> VByteSourceInverse.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> VByteSourceInverse.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 byteByteSourceInverse.getSignedByte(ByteSource byteSource) Converts the givenByteSourceto abyte.static <V> VByteSourceInverse.getSignedFixedLength(ValueAccessor<V> accessor, ByteSource byteSource, int length) Produce the bytes for an encoded signed fixed-length number.static <V> VByteSourceInverse.getSignedFixedLengthFloat(ValueAccessor<V> accessor, ByteSource byteSource, int length) Produce the bytes for an encoded signed fixed-length floating-point number.static intByteSourceInverse.getSignedInt(ByteSource byteSource) Consume the nextintfrom the current position of the givenByteSource.static longByteSourceInverse.getSignedLong(ByteSource byteSource) Consume the nextlongfrom the current position of the givenByteSource.static shortByteSourceInverse.getSignedShort(ByteSource byteSource) Converts the givenByteSourceto ashort.static longByteSourceInverse.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 longByteSourceInverse.getVariableLengthInteger(ByteSource byteSource) Decode a variable-length signed integer.static longByteSourceInverse.getVariableLengthUnsignedIntegerXoring(ByteSource byteSource, int xorWith) Decode a variable-length unsigned integer, passing all bytes read through XOR with the given xorWith parameter.static ByteSource.PeekableByteSource.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 ByteSourceByteSource.separatorGt(ByteSource prevMax, ByteSource currMin) Returns a separator for two byte sources, i.e.static ByteSourceByteSource.separatorPrefix(ByteSource prevMax, ByteSource currMin) Returns a separator for two byte sources, i.e.static ByteSourceByteSource.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 ByteSourceByteSource.withTerminatorLegacy(int terminator, ByteSource... srcs) As above, but permits any separator.static ByteSourceByteSource.withTerminatorMaybeLegacy(ByteComparable.Version version, int legacyTerminator, ByteSource... srcs) Constructors in org.apache.cassandra.utils.bytecomparable with parameters of type ByteSource