Class PassThroughLogicalType<T>
java.lang.Object
org.apache.beam.sdk.schemas.logicaltypes.PassThroughLogicalType<T>
- All Implemented Interfaces:
Serializable,Schema.LogicalType<T,T>
- Direct Known Subclasses:
CalciteUtils.TimeWithLocalTzType,FixedBytes,FixedPrecisionNumeric,FixedString,ProtoSchemaLogicalTypes.Fixed32,ProtoSchemaLogicalTypes.Fixed64,ProtoSchemaLogicalTypes.SFixed32,ProtoSchemaLogicalTypes.SFixed64,ProtoSchemaLogicalTypes.SInt32,ProtoSchemaLogicalTypes.SInt64,ProtoSchemaLogicalTypes.UInt32,ProtoSchemaLogicalTypes.UInt64,SbeLogicalTypes.Uint16,SbeLogicalTypes.Uint32,SbeLogicalTypes.Uint64,SbeLogicalTypes.Uint8,UnknownLogicalType,VariableBytes,VariableString
A base class for LogicalTypes that use the same Java type as the underlying base type.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPassThroughLogicalType(String identifier, Schema.FieldType argumentType, Object argument, Schema.FieldType fieldType) -
Method Summary
Modifier and TypeMethodDescription<ArgumentT>
ArgumentTAn optional argument to configure the type.A schema type representing how to interpret the argument.The baseSchema.FieldTypeused to store values of this type.The unique identifier for this type.toBaseType(@NonNull T input) Convert the input type to the type Java type used by the baseSchema.FieldType.toInputType(@NonNull T base) Convert the Java type used by the baseSchema.FieldTypeto the input type.
-
Constructor Details
-
PassThroughLogicalType
protected PassThroughLogicalType(String identifier, Schema.FieldType argumentType, Object argument, Schema.FieldType fieldType)
-
-
Method Details
-
getIdentifier
Description copied from interface:Schema.LogicalTypeThe unique identifier for this type.- Specified by:
getIdentifierin interfaceSchema.LogicalType<T,T>
-
getArgumentType
Description copied from interface:Schema.LogicalTypeA schema type representing how to interpret the argument.nullindicates this logical type is not parameterized by an argument.- Specified by:
getArgumentTypein interfaceSchema.LogicalType<T,T>
-
getArgument
public <ArgumentT> ArgumentT getArgument()Description copied from interface:Schema.LogicalTypeAn optional argument to configure the type.- Specified by:
getArgumentin interfaceSchema.LogicalType<T,T>
-
getBaseType
Description copied from interface:Schema.LogicalTypeThe baseSchema.FieldTypeused to store values of this type.- Specified by:
getBaseTypein interfaceSchema.LogicalType<T,T>
-
toBaseType
Description copied from interface:Schema.LogicalTypeConvert the input type to the type Java type used by the baseSchema.FieldType.- Specified by:
toBaseTypein interfaceSchema.LogicalType<T,T>
-
toInputType
Description copied from interface:Schema.LogicalTypeConvert the Java type used by the baseSchema.FieldTypeto the input type.- Specified by:
toInputTypein interfaceSchema.LogicalType<T,T>
-