Package org.apache.iceberg.util
Class PartitionSet
- java.lang.Object
-
- org.apache.iceberg.util.PartitionSet
-
- All Implemented Interfaces:
java.lang.Iterable<Pair<java.lang.Integer,StructLike>>
,java.util.Collection<Pair<java.lang.Integer,StructLike>>
,java.util.Set<Pair<java.lang.Integer,StructLike>>
public class PartitionSet extends java.lang.Object implements java.util.Set<Pair<java.lang.Integer,StructLike>>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(int specId, StructLike struct)
boolean
add(Pair<java.lang.Integer,StructLike> pair)
boolean
addAll(java.util.Collection<? extends Pair<java.lang.Integer,StructLike>> pairs)
void
clear()
boolean
contains(int specId, StructLike struct)
boolean
contains(java.lang.Object o)
boolean
containsAll(java.util.Collection<?> objects)
static PartitionSet
create(java.util.Map<java.lang.Integer,PartitionSpec> specsById)
boolean
isEmpty()
java.util.Iterator<Pair<java.lang.Integer,StructLike>>
iterator()
boolean
remove(int specId, StructLike struct)
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection<?> objects)
boolean
retainAll(java.util.Collection<?> c)
int
size()
java.lang.Object[]
toArray()
<T> T[]
toArray(T[] destArray)
java.lang.String
toString()
-
-
-
Method Detail
-
create
public static PartitionSet create(java.util.Map<java.lang.Integer,PartitionSpec> specsById)
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<Pair<java.lang.Integer,StructLike>>
- Specified by:
size
in interfacejava.util.Set<Pair<java.lang.Integer,StructLike>>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Collection<Pair<java.lang.Integer,StructLike>>
- Specified by:
isEmpty
in interfacejava.util.Set<Pair<java.lang.Integer,StructLike>>
-
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains
in interfacejava.util.Collection<Pair<java.lang.Integer,StructLike>>
- Specified by:
contains
in interfacejava.util.Set<Pair<java.lang.Integer,StructLike>>
-
contains
public boolean contains(int specId, StructLike struct)
-
add
public boolean add(Pair<java.lang.Integer,StructLike> pair)
- Specified by:
add
in interfacejava.util.Collection<Pair<java.lang.Integer,StructLike>>
- Specified by:
add
in interfacejava.util.Set<Pair<java.lang.Integer,StructLike>>
-
add
public boolean add(int specId, StructLike struct)
-
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove
in interfacejava.util.Collection<Pair<java.lang.Integer,StructLike>>
- Specified by:
remove
in interfacejava.util.Set<Pair<java.lang.Integer,StructLike>>
-
remove
public boolean remove(int specId, StructLike struct)
-
iterator
public java.util.Iterator<Pair<java.lang.Integer,StructLike>> iterator()
- Specified by:
iterator
in interfacejava.util.Collection<Pair<java.lang.Integer,StructLike>>
- Specified by:
iterator
in interfacejava.lang.Iterable<Pair<java.lang.Integer,StructLike>>
- Specified by:
iterator
in interfacejava.util.Set<Pair<java.lang.Integer,StructLike>>
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interfacejava.util.Collection<Pair<java.lang.Integer,StructLike>>
- Specified by:
toArray
in interfacejava.util.Set<Pair<java.lang.Integer,StructLike>>
-
toArray
public <T> T[] toArray(T[] destArray)
- Specified by:
toArray
in interfacejava.util.Collection<Pair<java.lang.Integer,StructLike>>
- Specified by:
toArray
in interfacejava.util.Set<Pair<java.lang.Integer,StructLike>>
-
containsAll
public boolean containsAll(java.util.Collection<?> objects)
- Specified by:
containsAll
in interfacejava.util.Collection<Pair<java.lang.Integer,StructLike>>
- Specified by:
containsAll
in interfacejava.util.Set<Pair<java.lang.Integer,StructLike>>
-
addAll
public boolean addAll(java.util.Collection<? extends Pair<java.lang.Integer,StructLike>> pairs)
- Specified by:
addAll
in interfacejava.util.Collection<Pair<java.lang.Integer,StructLike>>
- Specified by:
addAll
in interfacejava.util.Set<Pair<java.lang.Integer,StructLike>>
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
- Specified by:
retainAll
in interfacejava.util.Collection<Pair<java.lang.Integer,StructLike>>
- Specified by:
retainAll
in interfacejava.util.Set<Pair<java.lang.Integer,StructLike>>
-
removeAll
public boolean removeAll(java.util.Collection<?> objects)
- Specified by:
removeAll
in interfacejava.util.Collection<Pair<java.lang.Integer,StructLike>>
- Specified by:
removeAll
in interfacejava.util.Set<Pair<java.lang.Integer,StructLike>>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Collection<Pair<java.lang.Integer,StructLike>>
- Specified by:
clear
in interfacejava.util.Set<Pair<java.lang.Integer,StructLike>>
-
-