Package com.yahoo.document.select
Class BucketSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.HashSet<BucketId>
-
- com.yahoo.document.select.BucketSet
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<BucketId>
,Collection<BucketId>
,Set<BucketId>
public class BucketSet extends HashSet<BucketId>
A set of bucket ids covered by a document selector.- Author:
- Simon Thoresen Hult
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BucketSet
intersection(BucketSet rhs)
Returns the intersection between this bucket set and another.BucketSet
union(BucketSet rhs)
Returns the union between this bucket set and another.-
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator
-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Constructor Detail
-
BucketSet
public BucketSet()
Constructs a new bucket set that contains no ids.
-
BucketSet
public BucketSet(BucketId id)
Constructs a new bucket set that contains a single id.- Parameters:
id
- The id to add to this as initial value.
-
BucketSet
public BucketSet(BucketSet set)
Constructs a new bucket set that is a copy of another.- Parameters:
set
- The set to copy.
-
-