Uses of Class
org.apache.cassandra.utils.Pair
Packages that use Pair
Package
Description
-
Uses of Pair in org.apache.cassandra.auth
Methods in org.apache.cassandra.auth that return types with arguments of type PairModifier and TypeMethodDescriptionCassandraAuthorizer.bulkLoader()Get an initial set of permissions to load into the PermissionsCache at startupCIDRGroupsMappingManager.retrieveCidrsFromRow(UntypedResultSet.Row row) -
Uses of Pair in org.apache.cassandra.cache
Methods in org.apache.cassandra.cache that return types with arguments of type Pair -
Uses of Pair in org.apache.cassandra.cql3
Fields in org.apache.cassandra.cql3 with type parameters of type PairMethod parameters in org.apache.cassandra.cql3 with type arguments of type PairModifier and TypeMethodDescriptionstatic <T> MapType<?,?> Maps.getExactMapTypeIfKnown(List<Pair<T, T>> entries, Function<T, AbstractType<?>> mapper) Returns the exact MapType from the entries if it can be known.static <T> MapType<?,?> Maps.getPreferredCompatibleType(List<Pair<T, T>> entries, Function<T, AbstractType<?>> mapper) static <T> StringMaps.mapToString(List<Pair<T, T>> entries) Create aStringrepresentation of the list containing the specified elements.static <T> StringMaps.mapToString(List<Pair<T, T>> items, Function<T, String> mapper) Create aStringrepresentation of the map from the specified items associated to the map entries.static <T extends AssignmentTestable>
AssignmentTestable.TestResultMaps.testMapAssignment(ColumnSpecification receiver, List<Pair<T, T>> entries) Tests that the map with the specified entries can be assigned to the specified column.Constructor parameters in org.apache.cassandra.cql3 with type arguments of type Pair -
Uses of Pair in org.apache.cassandra.cql3.selection
Constructor parameters in org.apache.cassandra.cql3.selection with type arguments of type PairModifierConstructorDescriptionRaw(List<Pair<Selectable.Raw, Selectable.Raw>> raws) WithMapOrUdt(TableMetadata cfm, List<Pair<Selectable.Raw, Selectable.Raw>> raws) -
Uses of Pair in org.apache.cassandra.cql3.statements
Methods in org.apache.cassandra.cql3.statements that return types with arguments of type PairConstructor parameters in org.apache.cassandra.cql3.statements with type arguments of type PairModifierConstructorDescriptionprotectedParsed(QualifiedName name, StatementType type, Attributes.Raw attrs, List<Pair<ColumnIdentifier, ColumnCondition.Raw>> conditions, boolean ifNotExists, boolean ifExists) ParsedUpdate(QualifiedName name, Attributes.Raw attrs, List<Pair<ColumnIdentifier, Operation.RawUpdate>> updates, WhereClause whereClause, List<Pair<ColumnIdentifier, ColumnCondition.Raw>> conditions, boolean ifExists) Creates a new UpdateStatement from a column family name, columns map, consistency level, and key term. -
Uses of Pair in org.apache.cassandra.db
Methods in org.apache.cassandra.db that return types with arguments of type PairModifier and TypeMethodDescriptionSystemKeyspace.getViewBuildStatus(String ksname, String viewName) Method parameters in org.apache.cassandra.db with type arguments of type PairModifier and TypeMethodDescriptionstatic voidSystemKeyspace.updateSizeEstimates(String keyspace, String table, Map<Range<Token>, Pair<Long, Long>> estimates) Writes the current partition count and size estimates into SIZE_ESTIMATES_CFstatic voidSystemKeyspace.updateTableEstimates(String keyspace, String table, String type, Map<Range<Token>, Pair<Long, Long>> estimates) Writes the current partition count and size estimates into table_estimates -
Uses of Pair in org.apache.cassandra.db.compaction
Methods in org.apache.cassandra.db.compaction that return PairModifier and TypeMethodDescriptionTimeWindowCompactionStrategy.getWindowBoundsInMillis(TimeUnit windowTimeUnit, int windowTimeSize, long timestampInMillis) Find the lowest and highest timestamps in a given timestamp/unit pair Returns milliseconds, caller should adjust accordinglyMethods in org.apache.cassandra.db.compaction that return types with arguments of type PairModifier and TypeMethodDescriptionstatic List<Pair<SSTableReader,Long>> SizeTieredCompactionStrategy.createSSTableAndLengthPairs(Iterable<SSTableReader> sstables) Method parameters in org.apache.cassandra.db.compaction with type arguments of type PairModifier and TypeMethodDescriptionSizeTieredCompactionStrategy.getBuckets(Collection<Pair<T, Long>> files, double bucketHigh, double bucketLow, long minSSTableSize) -
Uses of Pair in org.apache.cassandra.db.marshal
Methods in org.apache.cassandra.db.marshal that return PairMethods in org.apache.cassandra.db.marshal that return types with arguments of type PairModifier and TypeMethodDescriptionTypeParser.getUserTypeParameters()TypeParser.getUserTypeParameters() -
Uses of Pair in org.apache.cassandra.dht
Methods in org.apache.cassandra.dht that return PairModifier and TypeMethodDescriptionabstract Pair<AbstractBounds<T>,AbstractBounds<T>> Given token T and AbstractBounds ?L,R?, returns Pair(?L,T], (T,R?), where ? means that the same type of AbstractBounds is returned as the original. -
Uses of Pair in org.apache.cassandra.gms
Method parameters in org.apache.cassandra.gms with type arguments of type PairModifier and TypeMethodDescriptionvoidGossiper.addLocalApplicationStates(List<Pair<ApplicationState, VersionedValue>> states) -
Uses of Pair in org.apache.cassandra.index
Methods in org.apache.cassandra.index that return PairModifier and TypeMethodDescriptionstatic Pair<ColumnMetadata,IndexTarget.Type> TargetParser.parse(TableMetadata metadata, String target) static Pair<ColumnMetadata,IndexTarget.Type> TargetParser.parse(TableMetadata metadata, IndexMetadata indexDef) -
Uses of Pair in org.apache.cassandra.index.sai
Methods in org.apache.cassandra.index.sai that return PairModifier and TypeMethodDescriptionSSTableContextManager.update(Collection<SSTableReader> removed, Iterable<SSTableReader> added, IndexValidation validation) InitializeSSTableContexts if they are not already initialized. -
Uses of Pair in org.apache.cassandra.index.sai.disk
Methods in org.apache.cassandra.index.sai.disk that return types with arguments of type PairModifier 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 Pair in org.apache.cassandra.index.sai.memory
Methods in org.apache.cassandra.index.sai.memory that return types with arguments of type PairModifier 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 PairModifierConstructorDescriptionMemtableTermsIterator(ByteBuffer minTerm, ByteBuffer maxTerm, Iterator<Pair<ByteComparable, com.carrotsearch.hppc.LongArrayList>> iterator) -
Uses of Pair in org.apache.cassandra.index.sasi.disk
Methods in org.apache.cassandra.index.sasi.disk that return PairModifier and TypeMethodDescriptionprotected Pair<Long,AbstractTokenTreeBuilder.InteriorNode> AbstractTokenTreeBuilder.InteriorNode.splitBlock()Methods in org.apache.cassandra.index.sasi.disk that return types with arguments of type PairModifier and TypeMethodDescriptionDynamicTokenTreeBuilder.iterator()StaticTokenTreeBuilder.iterator()Methods in org.apache.cassandra.index.sasi.disk with parameters of type PairModifier and TypeMethodDescriptionprotected voidOnDiskIndexBuilder.finish(Descriptor descriptor, Pair<ByteBuffer, ByteBuffer> range, File file, TermIterator terms) voidOnDiskIndexBuilder.finish(Pair<ByteBuffer, ByteBuffer> range, File file, TermIterator terms) Method parameters in org.apache.cassandra.index.sasi.disk with type arguments of type Pair -
Uses of Pair in org.apache.cassandra.index.sasi.utils
Methods in org.apache.cassandra.index.sasi.utils that return PairModifier and TypeMethodDescriptionprotected Pair<IndexedTerm,TokenTreeBuilder> CombinedTermIterator.computeNext() -
Uses of Pair in org.apache.cassandra.io.sstable
Methods in org.apache.cassandra.io.sstable that return PairModifier and TypeMethodDescriptionstatic Pair<Descriptor,Component> Descriptor.fromFileWithComponent(File file) Parse a sstable filename, extracting both theDescriptorandComponentpart.static Pair<Descriptor,Component> Descriptor.fromFileWithComponent(File file, boolean validateDirs) static Pair<Descriptor,Component> Descriptor.fromFileWithComponent(File file, String keyspace, String table) Parse a sstable filename, extracting both theDescriptorandComponentpart.static Pair<Descriptor,Component> SSTable.tryComponentFromFilename(File file) Parse a sstable filename into both aDescriptorandComponentobject.static Pair<Descriptor,Component> SSTable.tryComponentFromFilename(File file, String keyspace, String table) Parse a sstable filename into both aDescriptorandComponentobject. -
Uses of Pair in org.apache.cassandra.io.sstable.format
Methods in org.apache.cassandra.io.sstable.format that return PairModifier and TypeMethodDescriptionSSTableFormat.SSTableReaderFactory.readKeyRange(Descriptor descriptor, IPartitioner partitioner) Retrieves a key range for the given sstable at the lowest cost - that is, without opening all sstables files if possible. -
Uses of Pair in org.apache.cassandra.io.sstable.format.big
Methods in org.apache.cassandra.io.sstable.format.big that return PairModifier and TypeMethodDescriptionstatic Pair<DecoratedKey,DecoratedKey> IndexSummaryComponent.loadFirstAndLastKey(File summaryFile, IPartitioner partitioner) -
Uses of Pair in org.apache.cassandra.io.sstable.format.bti
Methods in org.apache.cassandra.io.sstable.format.bti that return PairModifier and TypeMethodDescriptionstatic Pair<DecoratedKey,DecoratedKey> PartitionIndex.readFirstAndLastKey(File file, IPartitioner partitioner) -
Uses of Pair in org.apache.cassandra.io.sstable.indexsummary
Methods in org.apache.cassandra.io.sstable.indexsummary that return PairModifier and TypeMethodDescriptionIndexSummary.IndexSummarySerializer.deserializeFirstLastKey(DataInputPlus.DataInputStreamPlus in, IPartitioner partitioner) Deserializes the first and last key stored in the summary -
Uses of Pair in org.apache.cassandra.locator
Methods in org.apache.cassandra.locator that return PairMethods in org.apache.cassandra.locator that return types with arguments of type PairModifier and TypeMethodDescriptionTokenMetadata.getMovingEndpoints()Endpoints which are migrating to the new tokensConstructors in org.apache.cassandra.locator with parameters of type Pair -
Uses of Pair in org.apache.cassandra.metrics
Fields in org.apache.cassandra.metrics with type parameters of type Pair -
Uses of Pair in org.apache.cassandra.repair
Methods in org.apache.cassandra.repair with parameters of type PairModifier and TypeMethodDescriptionvoidRepairSession.trackSyncCompletion(Pair<RepairJobDesc, SyncNodePair> key, CompletableRemoteSyncTask task) voidRepairSession.trackValidationCompletion(Pair<RepairJobDesc, InetAddressAndPort> key, ValidationTask task) -
Uses of Pair in org.apache.cassandra.repair.consistent
Methods in org.apache.cassandra.repair.consistent that return types with arguments of type Pair -
Uses of Pair in org.apache.cassandra.schema
Methods in org.apache.cassandra.schema that return Pair -
Uses of Pair in org.apache.cassandra.service
Methods in org.apache.cassandra.service that return PairModifier and TypeMethodDescriptionstatic Pair<RangesAtEndpoint,RangesAtEndpoint> RangeRelocator.calculateStreamAndFetchRanges(RangesAtEndpoint currentRanges, RangesAtEndpoint updatedRanges) Calculate pair of ranges to stream/fetch for given two range collections (current ranges for keyspace and ranges after move to new token) With transient replication the added wrinkle is that if a range transitions from full to transient then we need to stream the range despite the fact that we are retaining it as transient.ActiveRepairService.getRepairStatus(Integer cmd) StorageService.repair(String keyspace, Map<String, String> repairSpec, List<ProgressListener> listeners) StorageService.repair(String keyspace, RepairOption option, List<ProgressListener> listeners) Methods in org.apache.cassandra.service that return types with arguments of type PairModifier and TypeMethodDescriptionCacheService.CounterCacheSerializer.deserialize(DataInputPlus in) CacheService.KeyCacheSerializer.deserialize(DataInputPlus input) CacheService.RowCacheSerializer.deserialize(DataInputPlus in) DataResurrectionCheck.getExcludedTables(Map<String, Object> config) StorageService.getPreparedStatements() -
Uses of Pair in org.apache.cassandra.transport
Methods in org.apache.cassandra.transport that return PairModifier and TypeMethodDescriptionDataType.Codec.decodeOne(io.netty.buffer.ByteBuf body, ProtocolVersion version) DataType.fromType(AbstractType type, ProtocolVersion version) static Pair<List<String>,List<ByteBuffer>> CBUtil.readNameAndValueList(io.netty.buffer.ByteBuf cb, ProtocolVersion protocolVersion) Methods in org.apache.cassandra.transport with parameters of type PairModifier and TypeMethodDescriptionintDataType.Codec.oneSerializedSize(Pair<DataType, Object> option, ProtocolVersion version) static AbstractTypevoidDataType.Codec.writeOne(Pair<DataType, Object> option, io.netty.buffer.ByteBuf dest, ProtocolVersion version) -
Uses of Pair in org.apache.cassandra.utils
Methods in org.apache.cassandra.utils that return PairModifier and TypeMethodDescriptionstatic <X,Y> Pair<X, Y> Pair.create(X x, Y y) static Pair<BigInteger,Boolean> FBUtilities.midpoint(BigInteger left, BigInteger right, int sigbits) Given two bit arrays represented as BigIntegers, containing the given number of significant bits, calculate a midpoint.