Package org.apache.cassandra.locator
Class RangesAtEndpoint.Builder
java.lang.Object
org.apache.cassandra.locator.AbstractReplicaCollection<RangesAtEndpoint>
org.apache.cassandra.locator.RangesAtEndpoint
org.apache.cassandra.locator.RangesAtEndpoint.Builder
- All Implemented Interfaces:
Iterable<Replica>,ReplicaCollection<RangesAtEndpoint>,ReplicaCollection.Builder<RangesAtEndpoint>
- Enclosing class:
- RangesAtEndpoint
public static class RangesAtEndpoint.Builder
extends RangesAtEndpoint
implements ReplicaCollection.Builder<RangesAtEndpoint>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.cassandra.locator.RangesAtEndpoint
RangesAtEndpoint.BuilderNested classes/interfaces inherited from class org.apache.cassandra.locator.AbstractReplicaCollection
AbstractReplicaCollection.ReplicaList, AbstractReplicaCollection.ReplicaMap<K>Nested classes/interfaces inherited from interface org.apache.cassandra.locator.ReplicaCollection
ReplicaCollection.Builder<C extends ReplicaCollection<C>>Nested classes/interfaces inherited from interface org.apache.cassandra.locator.ReplicaCollection.Builder
ReplicaCollection.Builder.Conflict -
Field Summary
Fields inherited from class org.apache.cassandra.locator.AbstractReplicaCollection
EMPTY_LIST, list -
Constructor Summary
ConstructorsConstructorDescriptionBuilder(InetAddressAndPort endpoint) Builder(InetAddressAndPort endpoint, int capacity) -
Method Summary
Modifier and TypeMethodDescriptionadd(Replica replica, ReplicaCollection.Builder.Conflict ignoreConflict) build()snapshot()Methods inherited from class org.apache.cassandra.locator.RangesAtEndpoint
builder, builder, byRange, collector, concat, contains, contains, copyOf, empty, endpoint, endpoints, isDummyList, newBuilder, of, of, onlyFull, onlyTransient, ranges, snapshot, toDummyList, unwrapMethods inherited from class org.apache.cassandra.locator.AbstractReplicaCollection
anyMatch, asList, collector, count, equals, filter, filter, filterLazily, filterLazily, forEach, get, hashCode, isEmpty, iterator, size, sorted, stream, subList, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.apache.cassandra.locator.ReplicaCollection
contains, count, endpoints, equals, filter, filter, filterLazily, filterLazily, get, hashCode, isEmpty, iterator, size, sorted, stream, subList, toStringMethods inherited from interface org.apache.cassandra.locator.ReplicaCollection.Builder
addAll, addAll
-
Constructor Details
-
Builder
-
Builder
-
-
Method Details
-
add
- Specified by:
addin interfaceReplicaCollection.Builder<RangesAtEndpoint>
-
add
public RangesAtEndpoint.Builder add(Replica replica, ReplicaCollection.Builder.Conflict ignoreConflict) - Specified by:
addin interfaceReplicaCollection.Builder<RangesAtEndpoint>- Parameters:
replica- add this replica to the end of the collectionignoreConflict- conflicts to ignore, seeReplicaCollection.Builder.Conflict
-
snapshot
- Specified by:
snapshotin interfaceReplicaCollection.Builder<RangesAtEndpoint>- Overrides:
snapshotin classRangesAtEndpoint- Returns:
- an Immutable clone that assumes this Builder will be modified again
-
build
- Specified by:
buildin interfaceReplicaCollection.Builder<RangesAtEndpoint>- Returns:
- an Immutable clone that assumes this Builder will never be modified again, so its contents can be reused. This Builder should enforce that it is no longer modified.
-