Uses of Interface
org.apache.cassandra.utils.bytecomparable.ByteComparable
Packages that use ByteComparable
Package
Description
-
Uses of ByteComparable in org.apache.cassandra.db
Subinterfaces of ByteComparable in org.apache.cassandra.dbClasses in org.apache.cassandra.db that implement ByteComparableModifier and TypeClassDescriptionclassclassclassRepresents a decorated key, handy for certain operations where just working with strings gets slow.classclassMethods in org.apache.cassandra.db that return ByteComparableModifier and TypeMethodDescription<V> ByteComparableClusteringComparator.asByteComparable(ClusteringPrefix<V> clustering) Produce a prefix-free byte-comparable representation of the given value, i.e.DecoratedKey.asComparableBound(boolean before) PartitionPosition.asComparableBound(boolean before) Produce a byte-comparable representation for the position before or after the key.DataRange.startAsByteComparable()The start of the partition key range queried by thisDataRange.DataRange.stopAsByteComparable()The end of the partition key range queried by thisDataRange.Methods in org.apache.cassandra.db with parameters of type ByteComparableModifier and TypeMethodDescription<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 BufferDecoratedKeyBufferDecoratedKey.fromByteComparable(ByteComparable byteComparable, ByteComparable.Version version, IPartitioner partitioner) A factory method that translates the given byte-comparable representation to aBufferDecoratedKeyinstance. -
Uses of ByteComparable in org.apache.cassandra.db.tries
Methods in org.apache.cassandra.db.tries that return types with arguments of type ByteComparableModifier and TypeMethodDescriptionTrie.entryIterator()Returns the ordered entry set of this trie's content in an iterator.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 ByteComparableModifier and TypeMethodDescriptionInMemoryReadTrie.get(ByteComparable path) Get the content mapped by the specified key.<R> voidInMemoryTrie.putRecursive(ByteComparable key, R value, InMemoryTrie.UpsertTransformer<T, R> transformer) Map-like put method, using a fast recursive implementation through the key bytes.<R> voidInMemoryTrie.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> voidInMemoryTrie.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.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.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 ByteComparableModifier and TypeMethodDescriptionvoidTrie.forEachEntry(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 ByteComparableModifierConstructorDescriptionSlicedTrie(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 ByteComparableMethods in org.apache.cassandra.dht that return ByteComparable -
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 ByteComparableModifier and TypeMethodDescriptionIterator<Pair<ByteComparable,com.carrotsearch.hppc.LongArrayList>> RowMapping.merge(MemtableIndex index) Link the term ->PrimaryKeysmappings from a providedMemtableIndexto thePrimaryKey-> row ID mappings maintained here inRowMapping.rowMappingto 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 ByteComparableModifier and TypeMethodDescriptionvoidKeyStoreWriter.add(ByteComparable key) Appends a key at the end of the sequence.longKeyLookup.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 ByteComparableModifier and TypeMethodDescriptionlongSegmentTrieBuffer.add(ByteComparable term, int termLength, int segmentRowId) LiteralIndexSegmentTermsReader.exactMatch(ByteComparable term, QueryEventListener.TrieIndexEventListener perQueryEventListener, QueryContext context) longLiteralIndexSegmentTermsReader.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 ByteComparableModifier and TypeMethodDescriptionvoidTrieTermsDictionaryWriter.add(ByteComparable term, long postingListOffset) longTrieTermsDictionaryReader.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 ByteComparableModifier and TypeMethodDescriptionabstract Iterator<Pair<ByteComparable,PrimaryKeys>> MemoryIndex.iterator()Iterate all Term->PrimaryKeys mappings in sorted orderMemtableIndex.iterator()TrieMemoryIndex.iterator()Returns anIteratorover the entire dataset contained in the trie.VectorMemoryIndex.iterator()Constructor parameters in org.apache.cassandra.index.sai.memory with type arguments of type ByteComparableModifierConstructorDescriptionMemtableTermsIterator(ByteBuffer minTerm, ByteBuffer maxTerm, 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.utilsModifier and TypeInterfaceDescriptioninterfaceRepresentation of the primary key for a row consisting of theDecoratedKeyandClusteringassociated with aRow.Fields in org.apache.cassandra.index.sai.utils declared as ByteComparableMethods in org.apache.cassandra.index.sai.utils with parameters of type ByteComparableModifier and TypeMethodDescriptionstatic IndexEntryIndexEntry.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 ByteComparableModifier and TypeMethodDescriptionRowIndexReader.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 ByteComparableMethods in org.apache.cassandra.io.tries that return ByteComparableModifier and TypeMethodDescriptionWalker.getMaxTerm()Walker.getMinTerm()protected ByteComparableValueIterator.nextCollectedValue()Walker.TransitionBytesCollector.toByteComparable()Methods in org.apache.cassandra.io.tries with parameters of type ByteComparableModifier and TypeMethodDescriptionvoidIncrementalTrieWriter.add(ByteComparable next, VALUE value) Add an entry to the trie with the associated value.voidIncrementalTrieWriterBase.add(ByteComparable next, VALUE value) intWalker.follow(ByteComparable key) Follows the given key while there are transitions in the trie for it.intWalker.followWithGreater(ByteComparable key) Follows the trie for a given key, remembering the closest greater branch.intWalker.followWithLesser(ByteComparable key) Follows the trie for a given key, remembering the closest lesser branch.<RESULT> RESULTWalker.prefix(ByteComparable key, Walker.Extractor<RESULT, CONCRETE> extractor) Takes a prefix of the given key.<RESULT> RESULTWalker.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 ByteComparableModifierConstructorDescriptionprotectedReverseValueIterator(Rebufferer source, long root, ByteComparable start, ByteComparable end, boolean admitPrefix) Constrained iterator.protectedValueIterator(Rebufferer source, long root, ByteComparable start, ByteComparable end, boolean admitPrefix) protectedValueIterator(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 ByteComparableMethods in org.apache.cassandra.utils.bytecomparable that return ByteComparableModifier and TypeMethodDescriptionstatic ByteComparableByteComparable.cut(ByteComparable src, int cutoff) static ByteComparableByteComparable.fixedLength(byte[] bytes) static ByteComparableByteComparable.fixedLength(byte[] bytes, int offset, int len) static ByteComparableByteComparable.fixedLength(ByteBuffer bytes) static ByteComparableByteComparable.of(int value) static ByteComparableByteComparable.of(long value) static ByteComparablestatic ByteComparableByteComparable.separatorGt(ByteComparable prevMax, ByteComparable currMin) Returns a separator for two byte comparable, i.e.static ByteComparableByteComparable.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 ByteComparableModifier and TypeMethodDescriptionstatic intByteComparable.compare(ByteComparable bytes1, ByteComparable bytes2, ByteComparable.Version version) Compare two byte-comparable values by their byte-comparable representation.static ByteComparableByteComparable.cut(ByteComparable src, int cutoff) static intByteComparable.diffPoint(ByteComparable bytes1, ByteComparable bytes2, ByteComparable.Version version) Returns the length of the minimum prefix that differentiates the two given byte-comparable representations.static intByteComparable.length(ByteComparable src, ByteComparable.Version version) Return the length of a byte comparable, not including the terminator byte.static ByteComparableByteComparable.separatorGt(ByteComparable prevMax, ByteComparable currMin) Returns a separator for two byte comparable, i.e.static ByteComparableByteComparable.separatorPrefix(ByteComparable prevMax, ByteComparable currMin) Returns a separator for two byte sources, i.e.