Package org.apache.iceberg.util
Class StructLikeWrapper
java.lang.Object
org.apache.iceberg.util.StructLikeWrapper
Wrapper to adapt StructLike for use in maps and sets by implementing equals and hashCode.
- 
Method SummaryModifier and TypeMethodDescriptioncopyFor(StructLike newStruct) Creates a copy of this wrapper that wraps a struct.booleanstatic StructLikeWrapperforType(Types.StructType type) static StructLikeWrapperforType(Types.StructType type, Comparator<StructLike> comparator) get()inthashCode()set(StructLike newStruct) 
- 
Method Details- 
forType
- 
forType
- 
copyForCreates a copy of this wrapper that wraps a struct.This is equivalent to new StructLikeWrapper(type).set(newStruct)but is cheaper because no analysis of the type is necessary.- Parameters:
- newStruct- a- StructLikerow
- Returns:
- a copy of this wrapper wrapping the give struct
 
- 
set
- 
get
- 
equals
- 
hashCodepublic int hashCode()
 
-