public abstract static class Types.BasePrimitiveBuilder<P,THIS extends Types.BasePrimitiveBuilder<P,THIS>> extends Types.Builder<THIS,P>
id, logicalTypeAnnotation, newLogicalTypeSet, parent, repetition, returnClass| Modifier and Type | Method and Description |
|---|---|
protected PrimitiveType |
build(String name) |
THIS |
columnOrder(ColumnOrder columnOrder)
Adds the column order for the primitive type.
|
protected DecimalMetadata |
decimalMetadata() |
THIS |
length(int length)
Adds the length for a FIXED_LEN_BYTE_ARRAY.
|
THIS |
precision(int precision)
Deprecated.
use
Types.Builder.as(LogicalTypeAnnotation) with the corresponding decimal type instead |
THIS |
scale(int scale)
Deprecated.
use
Types.Builder.as(LogicalTypeAnnotation) with the corresponding decimal type instead |
protected abstract THIS |
self() |
as, as, getOriginalType, id, named, repetitionprotected abstract THIS self()
self in class Types.Builder<THIS extends Types.BasePrimitiveBuilder<P,THIS>,P>public THIS length(int length)
length - an int length@Deprecated public THIS precision(int precision)
Types.Builder.as(LogicalTypeAnnotation) with the corresponding decimal type insteadThis value is required for decimals and must be less than or equal to the maximum number of base-10 digits in the underlying type. A 4-byte fixed, for example, can store up to 9 base-10 digits.
precision - an int precision value for the DECIMAL@Deprecated public THIS scale(int scale)
Types.Builder.as(LogicalTypeAnnotation) with the corresponding decimal type insteadThis value must be less than the maximum precision of the type and must be a positive number. If not set, the default scale is 0.
The scale specifies the number of digits of the underlying unscaled
that are to the right of the decimal point. The decimal interpretation
of values in this column is: value*10^(-scale).
scale - an int scale value for the DECIMALpublic THIS columnOrder(ColumnOrder columnOrder)
In case of not set the default column order is ColumnOrder.ColumnOrderName.TYPE_DEFINED_ORDER except the type
PrimitiveType.PrimitiveTypeName.INT96 and the types annotated by OriginalType.INTERVAL where the default column
order is ColumnOrder.ColumnOrderName.UNDEFINED.
columnOrder - the column order for the primitive typeprotected PrimitiveType build(String name)
build in class Types.Builder<THIS extends Types.BasePrimitiveBuilder<P,THIS>,P>protected DecimalMetadata decimalMetadata()
Copyright © 2023 The Apache Software Foundation. All rights reserved.