Uses of Interface
org.apache.cassandra.utils.bytecomparable.ByteComparable
-
-
Uses of ByteComparable in org.apache.cassandra.db
Subinterfaces of ByteComparable in org.apache.cassandra.db Modifier and Type Interface Description interface
PartitionPosition
Classes in org.apache.cassandra.db that implement ByteComparable Modifier and Type Class Description class
BufferDecoratedKey
class
CachedHashDecoratedKey
class
DecoratedKey
Represents a decorated key, handy for certain operations where just working with strings gets slow.class
NativeDecoratedKey
class
PreHashedDecoratedKey
Methods in org.apache.cassandra.db that return ByteComparable Modifier and Type Method Description <V> ByteComparable
ClusteringComparator. asByteComparable(ClusteringPrefix<V> clustering)
Produce a prefix-free byte-comparable representation of the given value, i.e.ByteComparable
DecoratedKey. asComparableBound(boolean before)
ByteComparable
PartitionPosition. asComparableBound(boolean before)
Produce a byte-comparable representation for the position before or after the key.ByteComparable
DataRange. startAsByteComparable()
The start of the partition key range queried by thisDataRange
.ByteComparable
DataRange. stopAsByteComparable()
The end of the partition key range queried by thisDataRange
.Methods in org.apache.cassandra.db with parameters of type ByteComparable Modifier and Type Method Description <V> ClusteringBoundary<V>
ClusteringComparator. boundaryFromByteComparable(ValueAccessor<V> accessor, ByteComparable comparable)
Produces a clustering boundary from the given byte-comparable value.<V> ClusteringBound<V>
ClusteringComparator. boundFromByteComparable(ValueAccessor<V> accessor, ByteComparable comparable, boolean isEnd)
Produces a clustering bound from the given byte-comparable value.<V> Clustering<V>
ClusteringComparator. clusteringFromByteComparable(ValueAccessor<V> accessor, ByteComparable comparable)
Produces a clustering from the given byte-comparable value.static BufferDecoratedKey
BufferDecoratedKey. fromByteComparable(ByteComparable byteComparable, ByteComparable.Version version, IPartitioner partitioner)
A factory method that translates the given byte-comparable representation to aBufferDecoratedKey
instance. -
Uses of ByteComparable in org.apache.cassandra.db.tries
Methods in org.apache.cassandra.db.tries that return types with arguments of type ByteComparable Modifier and Type Method Description java.util.Iterator<java.util.Map.Entry<ByteComparable,T>>
Trie. entryIterator()
Returns the ordered entry set of this trie's content in an iterator.java.lang.Iterable<java.util.Map.Entry<ByteComparable,T>>
Trie. entrySet()
Returns the ordered entry set of this trie's content as an iterable.Methods in org.apache.cassandra.db.tries with parameters of type ByteComparable Modifier and Type Method Description T
InMemoryReadTrie. get(ByteComparable path)
Get the content mapped by the specified key.<R> void
InMemoryTrie. putRecursive(ByteComparable key, R value, InMemoryTrie.UpsertTransformer<T,R> transformer)
Map-like put method, using a fast recursive implementation through the key bytes.<R> void
InMemoryTrie. putSingleton(ByteComparable key, R value, InMemoryTrie.UpsertTransformer<T,? super R> transformer)
Map-like put method, using the apply machinery above which cannot run into stack overflow.<R> void
InMemoryTrie. putSingleton(ByteComparable key, R value, InMemoryTrie.UpsertTransformer<T,? super R> transformer, boolean useRecursive)
A version of putSingleton which uses recursive put if the last argument is true.static <T> Trie<T>
Trie. singleton(ByteComparable b, T v)
Returns a singleton trie mapping the given byte path to content.Trie<T>
Trie. subtrie(ByteComparable left, boolean includeLeft, ByteComparable right, boolean includeRight)
Returns a view of the subtrie containing everything in this trie whose keys fall between the given boundaries.Trie<T>
Trie. subtrie(ByteComparable left, ByteComparable right)
Returns a view of the subtrie containing everything in this trie whose keys fall between the given boundaries, left-inclusive and right-exclusive.Method parameters in org.apache.cassandra.db.tries with type arguments of type ByteComparable Modifier and Type Method Description void
Trie. forEachEntry(java.util.function.BiConsumer<ByteComparable,T> consumer)
Call the given consumer on all (path, content) pairs with non-null content in the trie in order.Constructors in org.apache.cassandra.db.tries with parameters of type ByteComparable Constructor Description SlicedTrie(Trie<T> source, ByteComparable left, boolean includeLeft, ByteComparable right, boolean includeRight)
-
Uses of ByteComparable in org.apache.cassandra.dht
Classes in org.apache.cassandra.dht that implement ByteComparable Modifier and Type Class Description static class
Token.KeyBound
Methods in org.apache.cassandra.dht that return ByteComparable Modifier and Type Method Description ByteComparable
Token.KeyBound. asComparableBound(boolean before)
-
Uses of ByteComparable in org.apache.cassandra.index.sai.disk
Methods in org.apache.cassandra.index.sai.disk that return types with arguments of type ByteComparable Modifier and Type Method Description java.util.Iterator<Pair<ByteComparable,com.carrotsearch.hppc.LongArrayList>>
RowMapping. merge(MemtableIndex index)
Link the term ->PrimaryKeys
mappings from a providedMemtableIndex
to thePrimaryKey
-> row ID mappings maintained here inRowMapping.rowMapping
to produce mappings of terms to their postings lists. -
Uses of ByteComparable in org.apache.cassandra.index.sai.disk.v1.keystore
Methods in org.apache.cassandra.index.sai.disk.v1.keystore with parameters of type ByteComparable Modifier and Type Method Description void
KeyStoreWriter. add(ByteComparable key)
Appends a key at the end of the sequence.long
KeyLookup.Cursor. clusteredSeekToKey(ByteComparable key, long startingPointId, long endingPointId)
Finds the pointId for a clustering key within a range of pointIds. -
Uses of ByteComparable in org.apache.cassandra.index.sai.disk.v1.segment
Methods in org.apache.cassandra.index.sai.disk.v1.segment with parameters of type ByteComparable Modifier and Type Method Description long
SegmentTrieBuffer. add(ByteComparable term, int termLength, int segmentRowId)
PostingList
LiteralIndexSegmentTermsReader. exactMatch(ByteComparable term, QueryEventListener.TrieIndexEventListener perQueryEventListener, QueryContext context)
long
LiteralIndexSegmentTermsReader.TermQuery. lookupPostingsOffset(ByteComparable term)
-
Uses of ByteComparable in org.apache.cassandra.index.sai.disk.v1.trie
Methods in org.apache.cassandra.index.sai.disk.v1.trie with parameters of type ByteComparable Modifier and Type Method Description void
TrieTermsDictionaryWriter. add(ByteComparable term, long postingListOffset)
long
TrieTermsDictionaryReader. exactMatch(ByteComparable key)
-
Uses of ByteComparable in org.apache.cassandra.index.sai.memory
Methods in org.apache.cassandra.index.sai.memory that return types with arguments of type ByteComparable Modifier and Type Method Description abstract java.util.Iterator<Pair<ByteComparable,PrimaryKeys>>
MemoryIndex. iterator()
Iterate all Term->PrimaryKeys mappings in sorted orderjava.util.Iterator<Pair<ByteComparable,PrimaryKeys>>
MemtableIndex. iterator()
java.util.Iterator<Pair<ByteComparable,PrimaryKeys>>
TrieMemoryIndex. iterator()
Returns anIterator
over the entire dataset contained in the trie.java.util.Iterator<Pair<ByteComparable,PrimaryKeys>>
VectorMemoryIndex. iterator()
Constructor parameters in org.apache.cassandra.index.sai.memory with type arguments of type ByteComparable Constructor Description MemtableTermsIterator(java.nio.ByteBuffer minTerm, java.nio.ByteBuffer maxTerm, java.util.Iterator<Pair<ByteComparable,com.carrotsearch.hppc.LongArrayList>> iterator)
-
Uses of ByteComparable in org.apache.cassandra.index.sai.utils
Subinterfaces of ByteComparable in org.apache.cassandra.index.sai.utils Modifier and Type Interface Description interface
PrimaryKey
Representation of the primary key for a row consisting of theDecoratedKey
andClustering
associated with aRow
.Fields in org.apache.cassandra.index.sai.utils declared as ByteComparable Modifier and Type Field Description ByteComparable
IndexEntry. term
Methods in org.apache.cassandra.index.sai.utils with parameters of type ByteComparable Modifier and Type Method Description static IndexEntry
IndexEntry. create(ByteComparable term, PostingList postingList)
-
Uses of ByteComparable in org.apache.cassandra.io.sstable.format.bti
Methods in org.apache.cassandra.io.sstable.format.bti with parameters of type ByteComparable Modifier and Type Method Description RowIndexReader.IndexInfo
RowIndexReader. separatorFloor(ByteComparable key)
Computes the floor for a given key. -
Uses of ByteComparable in org.apache.cassandra.io.tries
Fields in org.apache.cassandra.io.tries declared as ByteComparable Modifier and Type Field Description protected ByteComparable
IncrementalTrieWriterBase. prev
Methods in org.apache.cassandra.io.tries that return ByteComparable Modifier and Type Method Description ByteComparable
Walker. getMaxTerm()
ByteComparable
Walker. getMinTerm()
protected ByteComparable
ValueIterator. nextCollectedValue()
ByteComparable
Walker.TransitionBytesCollector. toByteComparable()
Methods in org.apache.cassandra.io.tries with parameters of type ByteComparable Modifier and Type Method Description void
IncrementalTrieWriter. add(ByteComparable next, VALUE value)
Add an entry to the trie with the associated value.void
IncrementalTrieWriterBase. add(ByteComparable next, VALUE value)
int
Walker. follow(ByteComparable key)
Follows the given key while there are transitions in the trie for it.int
Walker. followWithGreater(ByteComparable key)
Follows the trie for a given key, remembering the closest greater branch.int
Walker. followWithLesser(ByteComparable key)
Follows the trie for a given key, remembering the closest lesser branch.<RESULT> RESULT
Walker. prefix(ByteComparable key, Walker.Extractor<RESULT,CONCRETE> extractor)
Takes a prefix of the given key.<RESULT> RESULT
Walker. prefixAndNeighbours(ByteComparable key, Walker.Extractor<RESULT,CONCRETE> extractor)
Follows the trie for a given key, taking a prefix (in the sense above) and searching for neighboring values.Constructors in org.apache.cassandra.io.tries with parameters of type ByteComparable Constructor Description ReverseValueIterator(Rebufferer source, long root, ByteComparable start, ByteComparable end, boolean admitPrefix)
Constrained iterator.ValueIterator(Rebufferer source, long root, ByteComparable start, ByteComparable end, boolean admitPrefix)
ValueIterator(Rebufferer source, long root, ByteComparable start, ByteComparable end, boolean admitPrefix, boolean collecting)
Constrained iterator. -
Uses of ByteComparable in org.apache.cassandra.utils.bytecomparable
Fields in org.apache.cassandra.utils.bytecomparable declared as ByteComparable Modifier and Type Field Description static ByteComparable
ByteComparable. EMPTY
Methods in org.apache.cassandra.utils.bytecomparable that return ByteComparable Modifier and Type Method Description static ByteComparable
ByteComparable. cut(ByteComparable src, int cutoff)
static ByteComparable
ByteComparable. fixedLength(byte[] bytes)
static ByteComparable
ByteComparable. fixedLength(byte[] bytes, int offset, int len)
static ByteComparable
ByteComparable. fixedLength(java.nio.ByteBuffer bytes)
static ByteComparable
ByteComparable. of(int value)
static ByteComparable
ByteComparable. of(long value)
static ByteComparable
ByteComparable. of(java.lang.String s)
static ByteComparable
ByteComparable. separatorGt(ByteComparable prevMax, ByteComparable currMin)
Returns a separator for two byte comparable, i.e.static ByteComparable
ByteComparable. separatorPrefix(ByteComparable prevMax, ByteComparable currMin)
Returns a separator for two byte sources, i.e.Methods in org.apache.cassandra.utils.bytecomparable with parameters of type ByteComparable Modifier and Type Method Description static int
ByteComparable. compare(ByteComparable bytes1, ByteComparable bytes2, ByteComparable.Version version)
Compare two byte-comparable values by their byte-comparable representation.static ByteComparable
ByteComparable. cut(ByteComparable src, int cutoff)
static int
ByteComparable. diffPoint(ByteComparable bytes1, ByteComparable bytes2, ByteComparable.Version version)
Returns the length of the minimum prefix that differentiates the two given byte-comparable representations.static int
ByteComparable. length(ByteComparable src, ByteComparable.Version version)
Return the length of a byte comparable, not including the terminator byte.static ByteComparable
ByteComparable. separatorGt(ByteComparable prevMax, ByteComparable currMin)
Returns a separator for two byte comparable, i.e.static ByteComparable
ByteComparable. separatorPrefix(ByteComparable prevMax, ByteComparable currMin)
Returns a separator for two byte sources, i.e.
-