Package org.apache.iceberg.util
Class PartitionSet
- All Implemented Interfaces:
Iterable<Pair<Integer,
,StructLike>> Collection<Pair<Integer,
,StructLike>> Set<Pair<Integer,
StructLike>>
-
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(int specId, StructLike struct) boolean
add
(Pair<Integer, StructLike> pair) boolean
addAll
(Collection<? extends Pair<Integer, StructLike>> pairs) void
clear()
boolean
contains
(int specId, StructLike struct) boolean
boolean
containsAll
(Collection<?> objects) static PartitionSet
create
(Map<Integer, PartitionSpec> specsById) boolean
isEmpty()
iterator()
boolean
remove
(int specId, StructLike struct) boolean
boolean
removeAll
(Collection<?> objects) boolean
retainAll
(Collection<?> c) int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] destArray) toString()
Methods inherited from class java.util.AbstractSet
equals, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
spliterator
-
Method Details
-
create
-
size
public int size()- Specified by:
size
in interfaceCollection<Pair<Integer,
StructLike>> - Specified by:
size
in interfaceSet<Pair<Integer,
StructLike>> - Specified by:
size
in classAbstractCollection<Pair<Integer,
StructLike>>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<Pair<Integer,
StructLike>> - Specified by:
isEmpty
in interfaceSet<Pair<Integer,
StructLike>> - Overrides:
isEmpty
in classAbstractCollection<Pair<Integer,
StructLike>>
-
contains
- Specified by:
contains
in interfaceCollection<Pair<Integer,
StructLike>> - Specified by:
contains
in interfaceSet<Pair<Integer,
StructLike>> - Overrides:
contains
in classAbstractCollection<Pair<Integer,
StructLike>>
-
contains
-
add
- Specified by:
add
in interfaceCollection<Pair<Integer,
StructLike>> - Specified by:
add
in interfaceSet<Pair<Integer,
StructLike>> - Overrides:
add
in classAbstractCollection<Pair<Integer,
StructLike>>
-
add
-
remove
- Specified by:
remove
in interfaceCollection<Pair<Integer,
StructLike>> - Specified by:
remove
in interfaceSet<Pair<Integer,
StructLike>> - Overrides:
remove
in classAbstractCollection<Pair<Integer,
StructLike>>
-
remove
-
iterator
- Specified by:
iterator
in interfaceCollection<Pair<Integer,
StructLike>> - Specified by:
iterator
in interfaceIterable<Pair<Integer,
StructLike>> - Specified by:
iterator
in interfaceSet<Pair<Integer,
StructLike>> - Specified by:
iterator
in classAbstractCollection<Pair<Integer,
StructLike>>
-
toArray
- Specified by:
toArray
in interfaceCollection<Pair<Integer,
StructLike>> - Specified by:
toArray
in interfaceSet<Pair<Integer,
StructLike>> - Overrides:
toArray
in classAbstractCollection<Pair<Integer,
StructLike>>
-
toArray
public <T> T[] toArray(T[] destArray) - Specified by:
toArray
in interfaceCollection<Pair<Integer,
StructLike>> - Specified by:
toArray
in interfaceSet<Pair<Integer,
StructLike>> - Overrides:
toArray
in classAbstractCollection<Pair<Integer,
StructLike>>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<Pair<Integer,
StructLike>> - Specified by:
containsAll
in interfaceSet<Pair<Integer,
StructLike>> - Overrides:
containsAll
in classAbstractCollection<Pair<Integer,
StructLike>>
-
addAll
- Specified by:
addAll
in interfaceCollection<Pair<Integer,
StructLike>> - Specified by:
addAll
in interfaceSet<Pair<Integer,
StructLike>> - Overrides:
addAll
in classAbstractCollection<Pair<Integer,
StructLike>>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<Pair<Integer,
StructLike>> - Specified by:
retainAll
in interfaceSet<Pair<Integer,
StructLike>> - Overrides:
retainAll
in classAbstractCollection<Pair<Integer,
StructLike>>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<Pair<Integer,
StructLike>> - Specified by:
removeAll
in interfaceSet<Pair<Integer,
StructLike>> - Overrides:
removeAll
in classAbstractSet<Pair<Integer,
StructLike>>
-
toString
- Overrides:
toString
in classAbstractCollection<Pair<Integer,
StructLike>>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<Pair<Integer,
StructLike>> - Specified by:
clear
in interfaceSet<Pair<Integer,
StructLike>> - Overrides:
clear
in classAbstractCollection<Pair<Integer,
StructLike>>
-