Package org.apache.iceberg.transforms
Class UnknownTransform<S,T>
- java.lang.Object
- 
- org.apache.iceberg.transforms.UnknownTransform<S,T>
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- Transform<S,T>
 
 public class UnknownTransform<S,T> extends java.lang.Object implements Transform<S,T> - See Also:
- Serialized Form
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Tapply(S value)Transforms a value to its corresponding partition value.booleancanTransform(Type type)Checks whether this function can be applied to the givenType.booleanequals(java.lang.Object other)TypegetResultType(Type type)Returns theTypeproduced by this transform given a source type.inthashCode()UnboundPredicate<T>project(java.lang.String name, BoundPredicate<S> predicate)Transforms apredicateto an inclusive predicate on the partition values produced byTransform.apply(Object).UnboundPredicate<T>projectStrict(java.lang.String name, BoundPredicate<S> predicate)Transforms apredicateto a strict predicate on the partition values produced byTransform.apply(Object).java.lang.StringtoString()- 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.iceberg.transforms.TransformdedupName, isIdentity, preservesOrder, satisfiesOrderOf, toHumanString
 
- 
 
- 
- 
- 
Method Detail- 
applypublic T apply(S value) Description copied from interface:TransformTransforms a value to its corresponding partition value.
 - 
canTransformpublic boolean canTransform(Type type) Description copied from interface:TransformChecks whether this function can be applied to the givenType.- Specified by:
- canTransformin interface- Transform<S,T>
- Parameters:
- type- a type
- Returns:
- true if this transform can be applied to the type, false otherwise
 
 - 
getResultTypepublic Type getResultType(Type type) Description copied from interface:TransformReturns theTypeproduced by this transform given a source type.- Specified by:
- getResultTypein interface- Transform<S,T>
- Parameters:
- type- a type
- Returns:
- the result type created by the apply method for the given type
 
 - 
projectpublic UnboundPredicate<T> project(java.lang.String name, BoundPredicate<S> predicate) Description copied from interface:TransformTransforms apredicateto an inclusive predicate on the partition values produced byTransform.apply(Object).This inclusive transform guarantees that if pred(v) is true, then projected(apply(v)) is true. 
 - 
projectStrictpublic UnboundPredicate<T> projectStrict(java.lang.String name, BoundPredicate<S> predicate) Description copied from interface:TransformTransforms apredicateto a strict predicate on the partition values produced byTransform.apply(Object).This strict transform guarantees that if strict(apply(v)) is true, then pred(v) is also true. - Specified by:
- projectStrictin interface- Transform<S,T>
- Parameters:
- name- the field name for partition values
- predicate- a predicate for source values
- Returns:
- an inclusive predicate on partition values
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object other) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-