Class TimeValidationTransformer
- java.lang.Object
-
- org.apache.pinot.segment.local.recordtransformer.TimeValidationTransformer
-
- All Implemented Interfaces:
Serializable,RecordTransformer
public class TimeValidationTransformer extends Object implements RecordTransformer
TheTimeValidationTransformerclass will validate the time column value.NOTE: should put this after the
DataTypeTransformerso that all values follow the data types inFieldSpec, and before theNullValueTransformerso that the invalidated value can be filled.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TimeValidationTransformer(TableConfig tableConfig, Schema schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisNoOp()Returnstrueif the transformer is no-op (can be skipped),falseotherwise.GenericRowtransform(GenericRow record)Transforms a record based on some custom rules.
-
-
-
Constructor Detail
-
TimeValidationTransformer
public TimeValidationTransformer(TableConfig tableConfig, Schema schema)
-
-
Method Detail
-
isNoOp
public boolean isNoOp()
Description copied from interface:RecordTransformerReturnstrueif the transformer is no-op (can be skipped),falseotherwise.- Specified by:
isNoOpin interfaceRecordTransformer
-
transform
public GenericRow transform(GenericRow record)
Description copied from interface:RecordTransformerTransforms a record based on some custom rules.- Specified by:
transformin interfaceRecordTransformer- Parameters:
record- Record to transform- Returns:
- Transformed record, or
nullif the record does not follow certain rules.
-
-