Package org.apache.iceberg.util
Class StructLikeSet
- All Implemented Interfaces:
Iterable<StructLike>,Collection<StructLike>,Set<StructLike>
-
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(StructLike struct) booleanaddAll(Collection<? extends StructLike> structs) voidclear()booleanbooleancontainsAll(Collection<?> objects) static StructLikeSetcreate(Types.StructType type) booleaninthashCode()booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> objects) booleanretainAll(Collection<?> objects) intsize()Object[]toArray()<T> T[]toArray(T[] destArray) Methods inherited from class java.util.AbstractCollection
toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
spliterator
-
Method Details
-
create
-
size
public int size()- Specified by:
sizein interfaceCollection<StructLike>- Specified by:
sizein interfaceSet<StructLike>- Specified by:
sizein classAbstractCollection<StructLike>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<StructLike>- Specified by:
isEmptyin interfaceSet<StructLike>- Overrides:
isEmptyin classAbstractCollection<StructLike>
-
contains
- Specified by:
containsin interfaceCollection<StructLike>- Specified by:
containsin interfaceSet<StructLike>- Overrides:
containsin classAbstractCollection<StructLike>
-
iterator
- Specified by:
iteratorin interfaceCollection<StructLike>- Specified by:
iteratorin interfaceIterable<StructLike>- Specified by:
iteratorin interfaceSet<StructLike>- Specified by:
iteratorin classAbstractCollection<StructLike>
-
toArray
- Specified by:
toArrayin interfaceCollection<StructLike>- Specified by:
toArrayin interfaceSet<StructLike>- Overrides:
toArrayin classAbstractCollection<StructLike>
-
toArray
public <T> T[] toArray(T[] destArray) - Specified by:
toArrayin interfaceCollection<StructLike>- Specified by:
toArrayin interfaceSet<StructLike>- Overrides:
toArrayin classAbstractCollection<StructLike>
-
add
- Specified by:
addin interfaceCollection<StructLike>- Specified by:
addin interfaceSet<StructLike>- Overrides:
addin classAbstractCollection<StructLike>
-
remove
- Specified by:
removein interfaceCollection<StructLike>- Specified by:
removein interfaceSet<StructLike>- Overrides:
removein classAbstractCollection<StructLike>
-
containsAll
- Specified by:
containsAllin interfaceCollection<StructLike>- Specified by:
containsAllin interfaceSet<StructLike>- Overrides:
containsAllin classAbstractCollection<StructLike>
-
addAll
- Specified by:
addAllin interfaceCollection<StructLike>- Specified by:
addAllin interfaceSet<StructLike>- Overrides:
addAllin classAbstractCollection<StructLike>
-
retainAll
- Specified by:
retainAllin interfaceCollection<StructLike>- Specified by:
retainAllin interfaceSet<StructLike>- Overrides:
retainAllin classAbstractCollection<StructLike>
-
removeAll
- Specified by:
removeAllin interfaceCollection<StructLike>- Specified by:
removeAllin interfaceSet<StructLike>- Overrides:
removeAllin classAbstractSet<StructLike>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<StructLike>- Specified by:
clearin interfaceSet<StructLike>- Overrides:
clearin classAbstractCollection<StructLike>
-
equals
- Specified by:
equalsin interfaceCollection<StructLike>- Specified by:
equalsin interfaceSet<StructLike>- Overrides:
equalsin classAbstractSet<StructLike>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<StructLike>- Specified by:
hashCodein interfaceSet<StructLike>- Overrides:
hashCodein classAbstractSet<StructLike>
-