Uses of Class org.apache.cassandra.dht.Range (apache-cassandra API)
Date: 2014-10-21

## Uses of Class
org.apache.cassandra.dht.Range

- Packages that use Range
  Package | Description
  --- | ---
  org.apache.cassandra.client |
  org.apache.cassandra.db |
  org.apache.cassandra.db.compaction |
  org.apache.cassandra.dht |
  org.apache.cassandra.io.sstable |
  org.apache.cassandra.locator |
  org.apache.cassandra.repair |
  org.apache.cassandra.repair.messages |
  org.apache.cassandra.service |
  org.apache.cassandra.streaming |
  org.apache.cassandra.utils |

- - ### Uses of Range in org.apache.cassandra.client

    Methods in org.apache.cassandra.client that return Range
    Modifier and Type | Method and Description
    --- | ---
    `Range<Token>` | RingCache.`getRange(java.nio.ByteBuffer key)`

    Methods in org.apache.cassandra.client with parameters of type Range
    Modifier and Type | Method and Description
    --- | ---
    `java.util.List<java.net.InetAddress>` | RingCache.`getEndpoint(Range<Token> range)` ListMultimap promises to return a List for get(K)

  - ### Uses of Range in org.apache.cassandra.db

    Methods in org.apache.cassandra.db with parameters of type Range
    Modifier and Type | Method and Description
    --- | ---
    `long` | ColumnFamilyStore.`estimatedKeysForRange(Range<Token> range)`
    `static DataRange` | DataRange.`forKeyRange(Range<Token> keyRange)`
    `java.lang.Iterable<DecoratedKey>` | ColumnFamilyStore.`keySamples(Range<Token> range)`

  - ### Uses of Range in org.apache.cassandra.db.compaction

    Methods in org.apache.cassandra.db.compaction with parameters of type Range
    Modifier and Type | Method and Description
    --- | ---
    `AbstractCompactionStrategy.ScannerList` | AbstractCompactionStrategy.`getScanners(java.util.Collection<SSTableReader> sstables, Range<Token> range)` Returns a list of KeyScanners given sstables and a range on which to scan.
    `AbstractCompactionStrategy.ScannerList` | LeveledCompactionStrategy.`getScanners(java.util.Collection<SSTableReader> sstables, Range<Token> range)`

    Method parameters in org.apache.cassandra.db.compaction with type arguments of type Range
    Modifier and Type | Method and Description
    --- | ---
    `void` | CompactionManager.`performAnticompaction(ColumnFamilyStore cfs, java.util.Collection<Range<Token>> ranges, java.util.Collection<SSTableReader> validatedForRepair, long repairedAt)` Make sure the {validatedForRepair} are marked for compaction before calling this.
    `java.util.concurrent.Future<?>` | CompactionManager.`submitAntiCompaction(ColumnFamilyStore cfs, java.util.Collection<Range<Token>> ranges, java.util.Collection<SSTableReader> validatedForRepair, long repairedAt)`

  - ### Uses of Range in org.apache.cassandra.dht

    Methods in org.apache.cassandra.dht that return Range
    Modifier and Type | Method and Description
    --- | ---
    `static Range<RowPosition>` | Range.`makeRowRange(Token left, Token right, IPartitioner partitioner)` Compute a range of keys corresponding to a given range of token.

    Methods in org.apache.cassandra.dht that return types with arguments of type Range
    Modifier and Type | Method and Description
    --- | ---
    `java.util.Set<Range<T>>` | Range.`differenceToFetch(Range<T> rhs)` Calculate set of the difference ranges of given two ranges (as current (A, B] and rhs is (C, D]) which node will need to fetch when moving to a given new token
    `static com.google.common.collect.Multimap<java.net.InetAddress,Range<Token>>` | RangeStreamer.`getWorkMap(com.google.common.collect.Multimap<Range<Token>,java.net.InetAddress> rangesWithSourceTarget)`
    `java.util.Set<Range<T>>` | Range.`intersectionWith(Range<T> that)`
    `static <T extends RingPosition> java.util.List<Range<T>>` | Range.`normalize(java.util.Collection<Range<T>> ranges)`
    `static <T extends RingPosition> java.util.Set<Range<T>>` | Range.`rangeSet(Range<T>... ranges)`
    `static <T extends RingPosition> java.util.Set<Range<T>>` | Range.`rangeSet(Range<T> range)`
    `java.util.Set<Range<T>>` | Range.`subtract(Range<T> rhs)`
    `java.util.List<Range<T>>` | Range.`unwrap()`

    Methods in org.apache.cassandra.dht with parameters of type Range
    Modifier and Type | Method and Description
    --- | ---
    `int` | Range.`compareTo(Range<T> rhs)`
    `boolean` | Range.`contains(Range<T> that)`
    `java.util.Set<Range<T>>` | Range.`differenceToFetch(Range<T> rhs)` Calculate set of the difference ranges of given two ranges (as current (A, B] and rhs is (C, D]) which node will need to fetch when moving to a given new token
    `java.util.Set<Range<T>>` | Range.`intersectionWith(Range<T> that)`
    `boolean` | Range.`intersects(Range<T> that)`
    `static <T extends RingPosition> java.util.Set<Range<T>>` | Range.`rangeSet(Range<T>... ranges)`
    `static <T extends RingPosition> java.util.Set<Range<T>>` | Range.`rangeSet(Range<T> range)`
    `java.util.Set<Range<T>>` | Range.`subtract(Range<T> rhs)`

    Method parameters in org.apache.cassandra.dht with type arguments of type Range
    Modifier and Type | Method and Description
    --- | ---
    `void` | RangeStreamer.`addRanges(java.lang.String keyspaceName, java.util.Collection<Range<Token>> ranges)`
    `static com.google.common.collect.Multimap<java.net.InetAddress,Range<Token>>` | RangeStreamer.`getWorkMap(com.google.common.collect.Multimap<Range<Token>,java.net.InetAddress> rangesWithSourceTarget)`
    `boolean` | AbstractBounds.`intersects(java.lang.Iterable<Range<T>> ranges)` return true if @param range intersects any of the given @param ranges
    `static <T extends RingPosition> boolean` | Range.`isInRanges(T token, java.lang.Iterable<Range<T>> ranges)`
    `static <T extends RingPosition> java.util.List<Range<T>>` | Range.`normalize(java.util.Collection<Range<T>> ranges)`

  - ### Uses of Range in org.apache.cassandra.io.sstable

    Methods in org.apache.cassandra.io.sstable that return types with arguments of type Range
    Modifier and Type | Method and Description
    --- | ---
    `java.util.Map<java.net.InetAddress,java.util.Collection<Range<Token>>>` | SSTableLoader.Client.`getEndpointToRangesMap()`

    Methods in org.apache.cassandra.io.sstable with parameters of type Range
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | SSTableLoader.Client.`addRangeForEndpoint(Range<Token> range, java.net.InetAddress endpoint)`
    `java.lang.Iterable<DecoratedKey>` | SSTableReader.`getKeySamples(Range<Token> range)`
    `ICompactionScanner` | SSTableReader.`getScanner(Range<Token> range, com.google.common.util.concurrent.RateLimiter limiter)` Direct I/O SSTableScanner over a defined range of tokens.

    Method parameters in org.apache.cassandra.io.sstable with type arguments of type Range
    Modifier and Type | Method and Description
    --- | ---
    `long` | SSTableReader.`estimatedKeysForRanges(java.util.Collection<Range<Token>> ranges)`
    `java.util.List<Pair<java.lang.Long,java.lang.Long>>` | SSTableReader.`getPositionsForRanges(java.util.Collection<Range<Token>> ranges)` Determine the minimal set of sections that can be extracted from this SSTable to cover the given ranges.
    `ICompactionScanner` | SSTableReader.`getScanner(java.util.Collection<Range<Token>> ranges, com.google.common.util.concurrent.RateLimiter limiter)` Direct I/O SSTableScanner over a defined collection of ranges of tokens.
    `protected java.util.Collection<SSTableReader>` | SSTableLoader.`openSSTables(java.util.Map<java.net.InetAddress,java.util.Collection<Range<Token>>> ranges)`

  - ### Uses of Range in org.apache.cassandra.locator

    Methods in org.apache.cassandra.locator that return Range
    Modifier and Type | Method and Description
    --- | ---
    `Range<Token>` | TokenMetadata.`getPrimaryRangeFor(Token right)` Deprecated.

    Methods in org.apache.cassandra.locator that return types with arguments of type Range
    Modifier and Type | Method and Description
    --- | ---
    `com.google.common.collect.Multimap<java.net.InetAddress,Range<Token>>` | AbstractReplicationStrategy.`getAddressRanges()`
    `com.google.common.collect.Multimap<java.net.InetAddress,Range<Token>>` | AbstractReplicationStrategy.`getAddressRanges(TokenMetadata metadata)`
    `java.util.Collection<Range<Token>>` | AbstractReplicationStrategy.`getPendingAddressRanges(TokenMetadata metadata, java.util.Collection<Token> pendingTokens, java.net.InetAddress pendingAddress)`
    `java.util.Collection<Range<Token>>` | AbstractReplicationStrategy.`getPendingAddressRanges(TokenMetadata metadata, Token pendingToken, java.net.InetAddress pendingAddress)`
    `java.util.Map<Range<Token>,java.util.Collection<java.net.InetAddress>>` | TokenMetadata.`getPendingRanges(java.lang.String keyspaceName)` a mutable map may be returned but caller should not modify it
    `java.util.List<Range<Token>>` | TokenMetadata.`getPendingRanges(java.lang.String keyspaceName, java.net.InetAddress endpoint)`
    `java.util.Collection<Range<Token>>` | TokenMetadata.`getPrimaryRangesFor(java.util.Collection<Token> tokens)`
    `com.google.common.collect.Multimap<Range<Token>,java.net.InetAddress>` | AbstractReplicationStrategy.`getRangeAddresses(TokenMetadata metadata)`

    Method parameters in org.apache.cassandra.locator with type arguments of type Range
    Modifier and Type | Method and Description
    --- | ---
    `void` | TokenMetadata.`setPendingRanges(java.lang.String keyspaceName, com.google.common.collect.Multimap<Range<Token>,java.net.InetAddress> rangeMap)`

  - ### Uses of Range in org.apache.cassandra.repair

    Fields in org.apache.cassandra.repair declared as Range
    Modifier and Type | Field and Description
    --- | ---
    `Range<Token>` | RepairJobDesc.`range` repairing range
    `Range<Token>` | RepairSession.`range` Range to repair

    Fields in org.apache.cassandra.repair with type parameters of type Range
    Modifier and Type | Field and Description
    --- | ---
    `java.util.List<Range<Token>>` | Differencer.`differences`

    Methods in org.apache.cassandra.repair that return Range
    Modifier and Type | Method and Description
    --- | ---
    `Range<Token>` | RepairSession.`getRange()`

    Constructors in org.apache.cassandra.repair with parameters of type Range
    Constructor and Description
    `RepairJob(IRepairJobEventListener listener, java.util.UUID parentSessionId, java.util.UUID sessionId, java.lang.String keyspace, java.lang.String columnFamily, Range<Token> range, boolean isSequential, com.google.common.util.concurrent.ListeningExecutorService taskExecutor)` Create repair job to run on specific columnfamily
    `RepairJobDesc(java.util.UUID parentSessionId, java.util.UUID sessionId, java.lang.String keyspace, java.lang.String columnFamily, Range<Token> range)`
    `RepairSession(java.util.UUID parentRepairSession, Range<Token> range, java.lang.String keyspace, boolean isSequential, java.util.Set<java.net.InetAddress> endpoints, java.lang.String... cfnames)` Create new repair session.
    `RepairSession(java.util.UUID parentRepairSession, java.util.UUID id, Range<Token> range, java.lang.String keyspace, boolean isSequential, java.util.Set<java.net.InetAddress> endpoints, java.lang.String[] cfnames)`

  - ### Uses of Range in org.apache.cassandra.repair.messages

    Fields in org.apache.cassandra.repair.messages with type parameters of type Range
    Modifier and Type | Field and Description
    --- | ---
    `java.util.Collection<Range<Token>>` | PrepareMessage.`ranges`
    `java.util.Collection<Range<Token>>` | SyncRequest.`ranges`

    Constructor parameters in org.apache.cassandra.repair.messages with type arguments of type Range
    Constructor and Description
    `PrepareMessage(java.util.UUID parentRepairSession, java.util.List<java.util.UUID> cfIds, java.util.Collection<Range<Token>> ranges)`
    `SyncRequest(RepairJobDesc desc, java.net.InetAddress initiator, java.net.InetAddress src, java.net.InetAddress dst, java.util.Collection<Range<Token>> ranges)`

  - ### Uses of Range in org.apache.cassandra.service

    Fields in org.apache.cassandra.service with type parameters of type Range
    Modifier and Type | Field and Description
    --- | ---
    `java.util.Collection<Range<Token>>` | ActiveRepairService.ParentRepairSession.`ranges`

    Methods in org.apache.cassandra.service that return types with arguments of type Range
    Modifier and Type | Method and Description
    --- | ---
    `Pair<java.util.Set<Range<Token>>,java.util.Set<Range<Token>>>` | StorageService.`calculateStreamAndFetchRanges(java.util.Collection<Range<Token>> current, java.util.Collection<Range<Token>> updated)` Calculate pair of ranges to stream/fetch for given two range collections (current ranges for keyspace and ranges after move to new token)
    `Pair<java.util.Set<Range<Token>>,java.util.Set<Range<Token>>>` | StorageService.`calculateStreamAndFetchRanges(java.util.Collection<Range<Token>> current, java.util.Collection<Range<Token>> updated)` Calculate pair of ranges to stream/fetch for given two range collections (current ranges for keyspace and ranges after move to new token)
    `java.util.List<Range<Token>>` | StorageService.`getAllRanges(java.util.List<Token> sortedTokens)` Get all ranges that span the ring given a set of tokens.
    `java.util.Collection<Range<Token>>` | StorageService.`getLocalRanges(java.lang.String keyspaceName)`
    `java.util.Collection<Range<Token>>` | StorageService.`getPrimaryRangeForEndpointWithinDC(java.lang.String keyspace, java.net.InetAddress referenceEndpoint)` Get the "primary ranges" within local DC for the specified keyspace and endpoint.
    `java.util.Collection<Range<Token>>` | StorageService.`getPrimaryRanges(java.lang.String keyspace)`
    `java.util.Collection<Range<Token>>` | StorageService.`getPrimaryRangesForEndpoint(java.lang.String keyspace, java.net.InetAddress ep)` Get the "primary ranges" for the specified keyspace and endpoint.
    `java.util.Collection<Range<Token>>` | StorageService.`getPrimaryRangesWithinDC(java.lang.String keyspace)`
    `java.util.Map<Range<Token>,java.util.List<java.net.InetAddress>>` | StorageService.`getRangeToAddressMap(java.lang.String keyspace)`
    `java.util.Map<Range<Token>,java.util.List<java.net.InetAddress>>` | StorageService.`getRangeToAddressMapInLocalDC(java.lang.String keyspace)`
    `java.util.List<Pair<Range<Token>,java.lang.Long>>` | StorageService.`getSplits(java.lang.String keyspaceName, java.lang.String cfName, Range<Token> range, int keysPerSplit)`

    Methods in org.apache.cassandra.service with parameters of type Range
    Modifier and Type | Method and Description
    --- | ---
    `static java.util.Set<java.net.InetAddress>` | ActiveRepairService.`getNeighbors(java.lang.String keyspaceName, Range<Token> toRepair, java.util.Collection<java.lang.String> dataCenters, java.util.Collection<java.lang.String> hosts)` Return all of the neighbors with whom we share the provided range.
    `java.util.List<Pair<Range<Token>,java.lang.Long>>` | StorageService.`getSplits(java.lang.String keyspaceName, java.lang.String cfName, Range<Token> range, int keysPerSplit)`
    `RepairFuture` | ActiveRepairService.`submitRepairSession(java.util.UUID parentRepairSession, Range<Token> range, java.lang.String keyspace, boolean isSequential, java.util.Set<java.net.InetAddress> endpoints, java.lang.String... cfnames)` Requests repairs for the given keyspace and column families.

    Method parameters in org.apache.cassandra.service with type arguments of type Range
    Modifier and Type | Method and Description
    --- | ---
    `Pair<java.util.Set<Range<Token>>,java.util.Set<Range<Token>>>` | StorageService.`calculateStreamAndFetchRanges(java.util.Collection<Range<Token>> current, java.util.Collection<Range<Token>> updated)` Calculate pair of ranges to stream/fetch for given two range collections (current ranges for keyspace and ranges after move to new token)
    `Pair<java.util.Set<Range<Token>>,java.util.Set<Range<Token>>>` | StorageService.`calculateStreamAndFetchRanges(java.util.Collection<Range<Token>> current, java.util.Collection<Range<Token>> updated)` Calculate pair of ranges to stream/fetch for given two range collections (current ranges for keyspace and ranges after move to new token)
    `int` | StorageService.`forceRepairAsync(java.lang.String keyspace, boolean isSequential, boolean isLocal, java.util.Collection<Range<Token>> ranges, boolean fullRepair, java.lang.String... columnFamilies)`
    `int` | StorageService.`forceRepairAsync(java.lang.String keyspace, boolean isSequential, java.util.Collection<java.lang.String> dataCenters, java.util.Collection<java.lang.String> hosts, java.util.Collection<Range<Token>> ranges, boolean fullRepair, java.lang.String... columnFamilies)`
    `java.util.UUID` | ActiveRepairService.`prepareForRepair(java.util.Set<java.net.InetAddress> endpoints, java.util.Collection<Range<Token>> ranges, java.util.List<ColumnFamilyStore> columnFamilyStores)`
    `void` | ActiveRepairService.`registerParentRepairSession(java.util.UUID parentRepairSession, java.util.List<ColumnFamilyStore> columnFamilyStores, java.util.Collection<Range<Token>> ranges)`

    Constructor parameters in org.apache.cassandra.service with type arguments of type Range
    Constructor and Description
    `ActiveRepairService.ParentRepairSession(java.util.List<ColumnFamilyStore> columnFamilyStores, java.util.Collection<Range<Token>> ranges, java.util.Map<java.util.UUID,java.util.Set<SSTableReader>> sstables, long repairedAt)`

  - ### Uses of Range in org.apache.cassandra.streaming

    Fields in org.apache.cassandra.streaming with type parameters of type Range
    Modifier and Type | Field and Description
    --- | ---
    `java.util.Collection<Range<Token>>` | StreamRequest.`ranges`

    Method parameters in org.apache.cassandra.streaming with type arguments of type Range
    Modifier and Type | Method and Description
    --- | ---
    `void` | StreamSession.`addStreamRequest(java.lang.String keyspace, java.util.Collection<Range<Token>> ranges, java.util.Collection<java.lang.String> columnFamilies, long repairedAt)` Request data fetch task to this session.
    `void` | StreamSession.`addTransferRanges(java.lang.String keyspace, java.util.Collection<Range<Token>> ranges, java.util.Collection<java.lang.String> columnFamilies, boolean flushTables, long repairedAt)` Set up transfer for specific keyspace/ranges/CFs Used in repair - a streamed sstable in repair will be marked with the given repairedAt time
    `StreamPlan` | StreamPlan.`requestRanges(java.net.InetAddress from, java.net.InetAddress connecting, java.lang.String keyspace, java.util.Collection<Range<Token>> ranges)` Request data in `keyspace` and `ranges` from specific node.
    `StreamPlan` | StreamPlan.`requestRanges(java.net.InetAddress from, java.net.InetAddress connecting, java.lang.String keyspace, java.util.Collection<Range<Token>> ranges, java.lang.String... columnFamilies)` Request data in `columnFamilies` under `keyspace` and `ranges` from specific node.
    `StreamPlan` | StreamPlan.`transferRanges(java.net.InetAddress to, java.net.InetAddress connecting, java.lang.String keyspace, java.util.Collection<Range<Token>> ranges)` Add transfer task to send data of specific keyspace and ranges.
    `StreamPlan` | StreamPlan.`transferRanges(java.net.InetAddress to, java.net.InetAddress connecting, java.lang.String keyspace, java.util.Collection<Range<Token>> ranges, java.lang.String... columnFamilies)` Add transfer task to send data of specific `columnFamilies` under `keyspace` and `ranges`.
    `StreamPlan` | StreamPlan.`transferRanges(java.net.InetAddress to, java.lang.String keyspace, java.util.Collection<Range<Token>> ranges, java.lang.String... columnFamilies)` Add transfer task to send data of specific `columnFamilies` under `keyspace` and `ranges`.

    Constructor parameters in org.apache.cassandra.streaming with type arguments of type Range
    Constructor and Description
    `StreamRequest(java.lang.String keyspace, java.util.Collection<Range<Token>> ranges, java.util.Collection<java.lang.String> columnFamilies, long repairedAt)`

  - ### Uses of Range in org.apache.cassandra.utils

    Subclasses of Range in org.apache.cassandra.utils
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `MerkleTree.TreeDifference`
    `static class` | `MerkleTree.TreeRange` The public interface to a range in the tree.

    Fields in org.apache.cassandra.utils declared as Range
    Modifier and Type | Field and Description
    --- | ---
    `Range<Token>` | MerkleTree.`fullRange` The top level range that this MerkleTree covers.

    Methods in org.apache.cassandra.utils with parameters of type Range
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | MerkleTree.`hash(Range<Token> range)` Hash the given range in the tree.
    `static void` | FBUtilities.`sortSampledKeys(java.util.List<DecoratedKey> keys, Range<Token> range)`

    Constructors in org.apache.cassandra.utils with parameters of type Range
    Constructor and Description
    `MerkleTree(IPartitioner partitioner, Range<Token> range, byte hashdepth, long maxsize)`

Copyright © 2014 The Apache Software Foundation