public class Projections
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Projections.ProjectionEvaluator
A class that projects expressions for a table's data rows into expressions on the table's
partition values, for a table's
partition spec. |
| Modifier and Type | Method and Description |
|---|---|
static Projections.ProjectionEvaluator |
inclusive(PartitionSpec spec)
Creates an inclusive
ProjectionEvaluator for the spec, defaulting
to case sensitive mode. |
static Projections.ProjectionEvaluator |
inclusive(PartitionSpec spec,
boolean caseSensitive)
Creates an inclusive
ProjectionEvaluator for the spec. |
static Projections.ProjectionEvaluator |
strict(PartitionSpec spec)
Creates a strict
ProjectionEvaluator for the spec, defaulting to
case sensitive mode. |
static Projections.ProjectionEvaluator |
strict(PartitionSpec spec,
boolean caseSensitive)
Creates a strict
ProjectionEvaluator for the spec. |
public static Projections.ProjectionEvaluator inclusive(PartitionSpec spec)
ProjectionEvaluator for the spec, defaulting
to case sensitive mode.
An evaluator is used to project expressions for a table's data rows into expressions on the table's partition values. The evaluator returned by this function is inclusive and will build expressions with the following guarantee: if the original expression matches a row, then the projected expression will match that row's partition.
Each predicate in the expression is projected using Transform.project(String,
BoundPredicate).
spec - a partition specInclusive transform used for each predicatepublic static Projections.ProjectionEvaluator inclusive(PartitionSpec spec, boolean caseSensitive)
ProjectionEvaluator for the spec.
An evaluator is used to project expressions for a table's data rows into expressions on the table's partition values. The evaluator returned by this function is inclusive and will build expressions with the following guarantee: if the original expression matches a row, then the projected expression will match that row's partition.
Each predicate in the expression is projected using Transform.project(String,
BoundPredicate).
spec - a partition speccaseSensitive - whether the Projection should consider case sensitivity on column names or
not.Inclusive transform used for each predicatepublic static Projections.ProjectionEvaluator strict(PartitionSpec spec)
ProjectionEvaluator for the spec, defaulting to
case sensitive mode.
An evaluator is used to project expressions for a table's data rows into expressions on the table's partition values. The evaluator returned by this function is strict and will build expressions with the following guarantee: if the projected expression matches a partition, then the original expression will match all rows in that partition.
Each predicate in the expression is projected using Transform.projectStrict(String,
BoundPredicate).
spec - a partition specStrict transform used for each predicatepublic static Projections.ProjectionEvaluator strict(PartitionSpec spec, boolean caseSensitive)
ProjectionEvaluator for the spec.
An evaluator is used to project expressions for a table's data rows into expressions on the table's partition values. The evaluator returned by this function is strict and will build expressions with the following guarantee: if the projected expression matches a partition, then the original expression will match all rows in that partition.
Each predicate in the expression is projected using Transform.projectStrict(String,
BoundPredicate).
spec - a partition speccaseSensitive - whether the Projection should consider case sensitivity on column names or
not.Strict transform used for each predicate