Package org.apache.iceberg.util
Class DataFileSet
- java.lang.Object
-
- org.apache.iceberg.util.DataFileSet
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<DataFile>
,java.util.Collection<DataFile>
,java.util.Set<DataFile>
public class DataFileSet extends java.lang.Object
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(T obj)
boolean
addAll(java.util.Collection<? extends T> collection)
void
clear()
boolean
contains(java.lang.Object obj)
boolean
containsAll(java.util.Collection<?> collection)
static DataFileSet
create()
protected java.lang.Class<DataFile>
elementClass()
boolean
equals(java.lang.Object other)
int
hashCode()
boolean
isEmpty()
java.util.Iterator<T>
iterator()
static DataFileSet
of(java.lang.Iterable<? extends DataFile> iterable)
boolean
remove(java.lang.Object obj)
boolean
removeAll(java.util.Collection<?> collection)
boolean
retainAll(java.util.Collection<?> collection)
int
size()
java.lang.Object[]
toArray()
<X> X[]
toArray(X[] destArray)
java.lang.String
toString()
protected org.apache.iceberg.util.WrapperSet.Wrapper<DataFile>
wrap(DataFile dataFile)
protected org.apache.iceberg.util.WrapperSet.Wrapper<DataFile>
wrapper()
-
-
-
Method Detail
-
create
public static DataFileSet create()
-
of
public static DataFileSet of(java.lang.Iterable<? extends DataFile> iterable)
-
wrapper
protected org.apache.iceberg.util.WrapperSet.Wrapper<DataFile> wrapper()
-
elementClass
protected java.lang.Class<DataFile> elementClass()
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<T>
- Specified by:
size
in interfacejava.util.Set<T>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Collection<T>
- Specified by:
isEmpty
in interfacejava.util.Set<T>
-
contains
public boolean contains(java.lang.Object obj)
- Specified by:
contains
in interfacejava.util.Collection<T>
- Specified by:
contains
in interfacejava.util.Set<T>
-
iterator
public java.util.Iterator<T> iterator()
- Specified by:
iterator
in interfacejava.util.Collection<T>
- Specified by:
iterator
in interfacejava.lang.Iterable<T>
- Specified by:
iterator
in interfacejava.util.Set<T>
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interfacejava.util.Collection<T>
- Specified by:
toArray
in interfacejava.util.Set<T>
-
toArray
public <X> X[] toArray(X[] destArray)
- Specified by:
toArray
in interfacejava.util.Collection<T>
- Specified by:
toArray
in interfacejava.util.Set<T>
-
add
public boolean add(T obj)
- Specified by:
add
in interfacejava.util.Collection<T>
- Specified by:
add
in interfacejava.util.Set<T>
-
remove
public boolean remove(java.lang.Object obj)
- Specified by:
remove
in interfacejava.util.Collection<T>
- Specified by:
remove
in interfacejava.util.Set<T>
-
containsAll
public boolean containsAll(java.util.Collection<?> collection)
- Specified by:
containsAll
in interfacejava.util.Collection<T>
- Specified by:
containsAll
in interfacejava.util.Set<T>
-
addAll
public boolean addAll(java.util.Collection<? extends T> collection)
- Specified by:
addAll
in interfacejava.util.Collection<T>
- Specified by:
addAll
in interfacejava.util.Set<T>
-
retainAll
public boolean retainAll(java.util.Collection<?> collection)
- Specified by:
retainAll
in interfacejava.util.Collection<T>
- Specified by:
retainAll
in interfacejava.util.Set<T>
-
removeAll
public boolean removeAll(java.util.Collection<?> collection)
- Specified by:
removeAll
in interfacejava.util.Collection<T>
- Specified by:
removeAll
in interfacejava.util.Set<T>
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Collection<T>
- Specified by:
clear
in interfacejava.util.Set<T>
-
equals
public boolean equals(java.lang.Object other)
- Specified by:
equals
in interfacejava.util.Collection<T>
- Specified by:
equals
in interfacejava.util.Set<T>
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Collection<T>
- Specified by:
hashCode
in interfacejava.util.Set<T>
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-