Package org.apache.iceberg.util
Class StructLikeWrapper
- java.lang.Object
- 
- org.apache.iceberg.util.StructLikeWrapper
 
- 
 public class StructLikeWrapper extends java.lang.ObjectWrapper to adapt StructLike for use in maps and sets by implementing equals and hashCode.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StructLikeWrappercopyFor(StructLike newStruct)Creates a copy of this wrapper that wraps a struct.booleanequals(java.lang.Object other)static StructLikeWrapperforType(Types.StructType struct)StructLikeget()inthashCode()StructLikeWrapperset(StructLike newStruct)
 
- 
- 
- 
Method Detail- 
forTypepublic static StructLikeWrapper forType(Types.StructType struct) 
 - 
copyForpublic StructLikeWrapper copyFor(StructLike newStruct) Creates 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
 
 - 
setpublic StructLikeWrapper set(StructLike newStruct) 
 - 
getpublic StructLike get() 
 - 
equalspublic boolean equals(java.lang.Object other) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-