Package org.apache.iceberg.transforms
Class UnknownTransform<S,T>
java.lang.Object
org.apache.iceberg.transforms.UnknownTransform<S,T>
- All Implemented Interfaces:
Serializable
,Transform<S,
T>
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionTransforms a value to its corresponding partition value.Returns a function that applies this transform to values of the giventype
.boolean
canTransform
(Type type) Checks whether this function can be applied to the givenType
.boolean
getResultType
(Type type) Returns theType
produced by this transform given a source type.int
hashCode()
project
(String name, BoundPredicate<S> predicate) Transforms apredicate
to an inclusive predicate on the partition values produced by the transform.projectStrict
(String name, BoundPredicate<S> predicate) Transforms apredicate
to a strict predicate on the partition values produced by the transform.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.iceberg.transforms.Transform
dedupName, isIdentity, isVoid, preservesOrder, satisfiesOrderOf, toHumanString, toHumanString
-
Method Details
-
apply
Description copied from interface:Transform
Transforms a value to its corresponding partition value. -
bind
Description copied from interface:Transform
Returns a function that applies this transform to values of the giventype
. -
canTransform
Description copied from interface:Transform
Checks whether this function can be applied to the givenType
.- Specified by:
canTransform
in interfaceTransform<S,
T> - Parameters:
type
- a type- Returns:
- true if this transform can be applied to the type, false otherwise
-
getResultType
Description copied from interface:Transform
Returns theType
produced by this transform given a source type.- Specified by:
getResultType
in interfaceTransform<S,
T> - Parameters:
type
- a type- Returns:
- the result type created by the apply method for the given type
-
project
Description copied from interface:Transform
Transforms apredicate
to an inclusive predicate on the partition values produced by the transform.This inclusive transform guarantees that if pred(v) is true, then projected(apply(v)) is true.
-
projectStrict
Description copied from interface:Transform
Transforms apredicate
to a strict predicate on the partition values produced by the transform.This strict transform guarantees that if strict(apply(v)) is true, then pred(v) is also true.
- Specified by:
projectStrict
in interfaceTransform<S,
T> - Parameters:
name
- the field name for partition valuespredicate
- a predicate for source values- Returns:
- an inclusive predicate on partition values
-
toString
-
equals
-
hashCode
public int hashCode()
-