| 程序包 | 说明 |
|---|---|
| org.apache.paimon.codegen | |
| org.apache.paimon.data | |
| org.apache.paimon.data.serializer | |
| org.apache.paimon.predicate | |
| org.apache.paimon.types | |
| org.apache.paimon.utils |
| 限定符和类型 | 方法和说明 |
|---|---|
GeneratedClass<NormalizedKeyComputer> |
CodeGenerator.generateNormalizedKeyComputer(List<DataType> fieldTypes,
String name)
Generate a
NormalizedKeyComputer. |
GeneratedClass<RecordComparator> |
CodeGenerator.generateRecordComparator(List<DataType> fieldTypes,
String name)
Generate a
RecordComparator. |
GeneratedClass<RecordEqualiser> |
CodeGenerator.generateRecordEqualiser(List<DataType> fieldTypes,
String name)
Generate a
RecordEqualiser. |
| 限定符和类型 | 方法和说明 |
|---|---|
DataType |
PartitionInfo.getType(int i) |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
BinaryArray.calculateFixLengthPartSize(DataType type)
It store real value when type is primitive.
|
static InternalArray.ElementGetter |
InternalArray.createElementGetter(DataType elementType)
Creates an accessor for getting elements in an internal array data structure at the given
position.
|
static InternalRow.FieldGetter |
InternalRow.createFieldGetter(DataType fieldType,
int fieldPos)
Creates an accessor for getting elements in an internal row data structure at the given
position.
|
static BinaryArrayWriter.NullSetter |
BinaryArrayWriter.createNullSetter(DataType elementType)
Creates an for accessor setting the elements of an array writer to
null during
runtime. |
static BinaryWriter.ValueSetter |
BinaryWriter.createValueSetter(DataType elementType)
Creates an accessor for setting the elements of a binary writer during runtime.
|
static Class<?> |
InternalRow.getDataClass(DataType type)
Returns the data class for the given
DataType. |
static boolean |
BinaryRow.isInFixedLengthPart(DataType type)
If it is a fixed-length field, we can call this BinaryRow's setXX method for in-place
updates.
|
static boolean |
BinaryRow.isMutable(DataType type) |
void |
BinaryArrayWriter.setNullAt(int pos,
DataType type)
已过时。
Use
BinaryArrayWriter.createNullSetter(DataType) for avoiding logical types during
runtime. |
Map<?,?> |
BinaryMap.toJavaMap(DataType keyType,
DataType valueType) |
<T> T[] |
BinaryArray.toObjectArray(DataType elementType) |
static void |
BinaryWriter.write(BinaryWriter writer,
int pos,
Object o,
DataType type,
Serializer<?> serializer)
已过时。
Use
#createValueSetter(DataType) for avoiding logical types during
runtime. |
| 限定符和类型 | 方法和说明 |
|---|---|
DataType[] |
InternalRowSerializer.fieldTypes() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Map<Object,Object> |
InternalMapSerializer.convertToJavaMap(InternalMap map,
DataType keyType,
DataType valueType)
Converts a
InternalMap into Java Map, the keys and values of the Java map
still holds objects of internal data structures. |
static <T> Serializer<T> |
InternalSerializers.create(DataType type)
Creates a
Serializer for internal data structures of the given DataType. |
| 构造器和说明 |
|---|
InternalArraySerializer(DataType eleType) |
InternalMapSerializer(DataType keyType,
DataType valueType) |
InternalRowSerializer(DataType... types) |
InternalRowSerializer(DataType[] types,
Serializer<?>[] fieldSerializers) |
| 限定符和类型 | 方法和说明 |
|---|---|
DataType |
LeafPredicate.type() |
DataType |
FieldRef.type() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
CompareUtils.compareLiteral(DataType type,
Object v1,
Object v2) |
static Object |
PredicateBuilder.convertJavaObject(DataType literalType,
Object o) |
abstract boolean |
LeafUnaryFunction.test(DataType type,
long rowCount,
FieldStats fieldStats) |
boolean |
IsNotNull.test(DataType type,
long rowCount,
FieldStats fieldStats) |
boolean |
IsNull.test(DataType type,
long rowCount,
FieldStats fieldStats) |
boolean |
LeafUnaryFunction.test(DataType type,
long rowCount,
FieldStats fieldStats,
List<Object> literals) |
boolean |
NullFalseLeafBinaryFunction.test(DataType type,
long rowCount,
FieldStats fieldStats,
List<Object> literals) |
boolean |
In.test(DataType type,
long rowCount,
FieldStats fieldStats,
List<Object> literals) |
abstract boolean |
LeafFunction.test(DataType type,
long rowCount,
FieldStats fieldStats,
List<Object> literals) |
boolean |
NotIn.test(DataType type,
long rowCount,
FieldStats fieldStats,
List<Object> literals) |
boolean |
LessThan.test(DataType type,
long rowCount,
FieldStats fieldStats,
Object literal) |
abstract boolean |
NullFalseLeafBinaryFunction.test(DataType type,
long rowCount,
FieldStats fieldStats,
Object literal) |
boolean |
StartsWith.test(DataType type,
long rowCount,
FieldStats fieldStats,
Object patternLiteral) |
boolean |
LessOrEqual.test(DataType type,
long rowCount,
FieldStats fieldStats,
Object literal) |
boolean |
GreaterThan.test(DataType type,
long rowCount,
FieldStats fieldStats,
Object literal) |
boolean |
Equal.test(DataType type,
long rowCount,
FieldStats fieldStats,
Object literal) |
boolean |
GreaterOrEqual.test(DataType type,
long rowCount,
FieldStats fieldStats,
Object literal) |
boolean |
NotEqual.test(DataType type,
long rowCount,
FieldStats fieldStats,
Object literal) |
abstract boolean |
LeafUnaryFunction.test(DataType type,
Object value) |
boolean |
IsNotNull.test(DataType type,
Object field) |
boolean |
IsNull.test(DataType type,
Object field) |
boolean |
LeafUnaryFunction.test(DataType type,
Object value,
List<Object> literals) |
boolean |
NullFalseLeafBinaryFunction.test(DataType type,
Object field,
List<Object> literals) |
boolean |
In.test(DataType type,
Object field,
List<Object> literals) |
abstract boolean |
LeafFunction.test(DataType type,
Object field,
List<Object> literals) |
boolean |
NotIn.test(DataType type,
Object field,
List<Object> literals) |
boolean |
LessThan.test(DataType type,
Object field,
Object literal) |
abstract boolean |
NullFalseLeafBinaryFunction.test(DataType type,
Object field,
Object literal) |
boolean |
StartsWith.test(DataType type,
Object field,
Object patternLiteral) |
boolean |
LessOrEqual.test(DataType type,
Object field,
Object literal) |
boolean |
GreaterThan.test(DataType type,
Object field,
Object literal) |
boolean |
Equal.test(DataType type,
Object field,
Object literal) |
boolean |
GreaterOrEqual.test(DataType type,
Object field,
Object literal) |
boolean |
NotEqual.test(DataType type,
Object field,
Object literal) |
| 构造器和说明 |
|---|
FieldRef(int index,
String name,
DataType type) |
LeafPredicate(LeafFunction function,
DataType type,
int fieldIndex,
String fieldName,
List<Object> literals) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ArrayType
Data type of an array of elements with same subtype.
|
class |
BigIntType
Data type of an 8-byte signed integer with values from -9,223,372,036,854,775,808 to
9,223,372,036,854,775,807.
|
class |
BinaryType
Data type of a fixed-length binary string (=a sequence of bytes).
|
class |
BooleanType
Data type of a boolean with a (possibly) three-valued logic of
TRUE, FALSE, UNKNOWN. |
class |
CharType
Data type of a fixed-length character string.
|
class |
DateType
Data type of a date consisting of
year-month-day with values ranging from 0000-01-01 to 9999-12-31. |
class |
DecimalType
Data type of a decimal number with fixed precision and scale.
|
class |
DoubleType
Data type of an 8-byte double precision floating point number.
|
class |
FloatType
Data type of a 4-byte single precision floating point number.
|
class |
IntType
Data type of a 4-byte signed integer with values from -2,147,483,648 to 2,147,483,647.
|
class |
LocalZonedTimestampType
Data type of a timestamp WITH LOCAL time zone consisting of
year-month-day
hour:minute:second[.fractional] zone with up to nanosecond precision and values ranging from
0000-01-01 00:00:00.000000000 +14:59 to 9999-12-31 23:59:59.999999999 -14:59. |
class |
MapType
Data type of an associative array that maps keys (including
NULL) to values (including
NULL). |
class |
MultisetType
Data type of a multiset (=bag).
|
class |
RowType
Data type of a sequence of fields.
|
class |
SmallIntType
Data type of a 2-byte signed integer with values from -32,768 to 32,767.
|
class |
TimestampType
Data type of a timestamp WITHOUT time zone consisting of
year-month-day
hour:minute:second[.fractional] with up to nanosecond precision and values ranging from 0000-01-01 00:00:00.000000000 to 9999-12-31 23:59:59.999999999. |
class |
TimeType
Data type of a time WITHOUT time zone consisting of
hour:minute:second[.fractional] with
up to nanosecond precision and values ranging from 00:00:00.000000000 to 23:59:59.999999999. |
class |
TinyIntType
Data type of a 1-byte signed integer with values from -128 to 127.
|
class |
VarBinaryType
Data type of a variable-length binary string (=a sequence of bytes).
|
class |
VarCharType
Data type of a variable-length character string.
|
| 限定符和类型 | 方法和说明 |
|---|---|
DataType |
DataType.copy()
Returns a deep copy of this type.
|
DataType |
DateType.copy(boolean isNullable) |
DataType |
LocalZonedTimestampType.copy(boolean isNullable) |
DataType |
TimestampType.copy(boolean isNullable) |
DataType |
BooleanType.copy(boolean isNullable) |
DataType |
VarBinaryType.copy(boolean isNullable) |
DataType |
DoubleType.copy(boolean isNullable) |
DataType |
FloatType.copy(boolean isNullable) |
DataType |
MultisetType.copy(boolean isNullable) |
DataType |
CharType.copy(boolean isNullable) |
DataType |
TimeType.copy(boolean isNullable) |
DataType |
VarCharType.copy(boolean isNullable) |
DataType |
DecimalType.copy(boolean isNullable) |
DataType |
RowType.copy(boolean isNullable) |
DataType |
IntType.copy(boolean isNullable) |
DataType |
ArrayType.copy(boolean isNullable) |
abstract DataType |
DataType.copy(boolean isNullable)
Returns a deep copy of this type with possibly different nullability.
|
DataType |
BigIntType.copy(boolean isNullable) |
DataType |
BinaryType.copy(boolean isNullable) |
DataType |
TinyIntType.copy(boolean isNullable) |
DataType |
SmallIntType.copy(boolean isNullable) |
DataType |
MapType.copy(boolean isNullable) |
protected DataType |
ReassignFieldId.defaultMethod(DataType dataType) |
DataType |
MultisetType.getElementType() |
DataType |
ArrayType.getElementType() |
DataType |
MapType.getKeyType() |
DataType |
RowType.getTypeAt(int i) |
DataType |
MapType.getValueType() |
DataType |
DataType.notNull() |
DataType |
DataType.nullable() |
static DataType |
DataTypeJsonParser.parseDataType(org.apache.paimon.shade.jackson2.com.fasterxml.jackson.databind.JsonNode json) |
static DataType |
ReassignFieldId.reassign(DataType input,
AtomicInteger fieldId) |
DataType |
DataField.type() |
DataType |
ReassignFieldId.visit(ArrayType arrayType) |
DataType |
ReassignFieldId.visit(MapType mapType) |
DataType |
ReassignFieldId.visit(MultisetType multisetType) |
DataType |
ReassignFieldId.visit(RowType rowType) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<DataType> |
RowType.getFieldTypes() |
static List<DataType> |
DataTypeChecks.getFieldTypes(DataType dataType)
Returns the field types of row and structured types.
|
static List<DataType> |
DataTypeChecks.getNestedTypes(DataType dataType) |
| 限定符和类型 | 方法和说明 |
|---|---|
static ArrayType |
DataTypes.ARRAY(DataType element) |
protected abstract R |
DataTypeDefaultVisitor.defaultMethod(DataType dataType) |
protected DataType |
ReassignFieldId.defaultMethod(DataType dataType) |
boolean |
DataType.equalsIgnoreNullable(DataType o)
Compare two data types without nullable.
|
static DataField |
DataTypes.FIELD(int id,
String name,
DataType type) |
static DataField |
DataTypes.FIELD(int id,
String name,
DataType type,
String description) |
RowType.Builder |
RowType.Builder.field(String name,
DataType type) |
RowType.Builder |
RowType.Builder.field(String name,
DataType type,
String description) |
RowType.Builder |
RowType.Builder.fields(DataType... types) |
RowType.Builder |
RowType.Builder.fields(DataType[] types,
String[] names) |
static int |
DataTypeChecks.getFieldCount(DataType dataType)
Returns the field count of row and structured types.
|
static List<String> |
DataTypeChecks.getFieldNames(DataType dataType)
Returns the field names of row and structured types.
|
static List<DataType> |
DataTypeChecks.getFieldTypes(DataType dataType)
Returns the field types of row and structured types.
|
static OptionalInt |
DataTypes.getLength(DataType dataType) |
static int |
DataTypeChecks.getLength(DataType dataType) |
static List<DataType> |
DataTypeChecks.getNestedTypes(DataType dataType) |
static OptionalInt |
DataTypes.getPrecision(DataType dataType) |
static Integer |
DataTypeChecks.getPrecision(DataType dataType)
Returns the precision of all types that define a precision implicitly or explicitly.
|
static int |
DataTypeChecks.getScale(DataType dataType)
Returns the scale of all types that define a scale implicitly or explicitly.
|
static boolean |
DataTypeChecks.hasLength(DataType dataType,
int length) |
static boolean |
DataTypeChecks.hasPrecision(DataType dataType,
int precision)
Checks the precision of a type that defines a precision implicitly or explicitly.
|
static boolean |
DataTypeChecks.hasScale(DataType dataType,
int scale)
Checks the scale of all types that define a scale implicitly or explicitly.
|
static boolean |
DataTypeChecks.hasWellDefinedString(DataType dataType)
Checks whether the given
DataType has a well-defined string representation when
calling Object.toString() on the internal data structure. |
static boolean |
DataTypeChecks.isCompositeType(DataType dataType)
Checks if the given type is a composite type.
|
static MapType |
DataTypes.MAP(DataType keyType,
DataType valueType) |
static MultisetType |
DataTypes.MULTISET(DataType elementType) |
static RowType |
RowType.of(DataType... types) |
static RowType |
RowType.of(DataType[] types,
String[] names) |
static DataType |
ReassignFieldId.reassign(DataType input,
AtomicInteger fieldId) |
static RowType |
DataTypes.ROW(DataType... fieldTypes) |
static boolean |
DataTypeCasts.supportsCompatibleCast(DataType sourceType,
DataType targetType)
Returns whether the source type can be compatibly cast to the target type.
|
static boolean |
DataTypeCasts.supportsExplicitCast(DataType sourceType,
DataType targetType)
Returns whether the source type can be cast to the target type.
|
static boolean |
DataTypeCasts.supportsImplicitCast(DataType sourceType,
DataType targetType)
Returns whether the source type can be safely cast to the target type without loosing
information.
|
| 限定符和类型 | 方法和说明 |
|---|---|
RowType.Builder |
RowType.Builder.fields(List<DataType> types) |
| 构造器和说明 |
|---|
ArrayType(boolean isNullable,
DataType elementType) |
ArrayType(DataType elementType) |
DataField(int id,
String name,
DataType dataType) |
DataField(int id,
String name,
DataType type,
String description) |
MapType(boolean isNullable,
DataType keyType,
DataType valueType) |
MapType(DataType keyType,
DataType valueType) |
MultisetType(boolean isNullable,
DataType elementType) |
MultisetType(DataType elementType) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Object |
TypeUtils.castFromCdcValueString(String s,
DataType type) |
static Object |
TypeUtils.castFromString(String s,
DataType type) |
static Object |
TypeUtils.castFromStringInternal(String s,
DataType type,
boolean isCdcValue) |
static Object |
InternalRowUtils.copy(Object o,
DataType type) |
static InternalArray |
InternalRowUtils.copyArray(InternalArray from,
DataType eleType) |
static ColumnVector |
VectorMappingUtils.createFixedVector(DataType dataType,
BinaryRow partition,
int index) |
static InternalRow.FieldGetter |
InternalRowUtils.createNullCheckingFieldGetter(DataType dataType,
int index) |
static Object |
InternalRowUtils.get(DataGetters dataGetters,
int pos,
DataType fieldType) |
static boolean |
TypeCheckUtils.isArray(DataType type) |
static boolean |
TypeCheckUtils.isBinaryString(DataType type) |
static boolean |
TypeCheckUtils.isBoolean(DataType type) |
static boolean |
TypeCheckUtils.isCharacterString(DataType type) |
static boolean |
TypeCheckUtils.isComparable(DataType type) |
static boolean |
TypeCheckUtils.isDecimal(DataType type) |
static boolean |
TypeCheckUtils.isInteger(DataType type) |
static boolean |
TypeUtils.isInteroperable(DataType t1,
DataType t2)
Can the two types operate with each other.
|
static boolean |
TypeCheckUtils.isLong(DataType type) |
static boolean |
TypeCheckUtils.isMap(DataType type) |
static boolean |
TypeCheckUtils.isMultiset(DataType type) |
static boolean |
TypeCheckUtils.isMutable(DataType type) |
static boolean |
TypeCheckUtils.isNumeric(DataType type) |
static boolean |
TypeUtils.isPrimitive(DataType type) |
static boolean |
TypeCheckUtils.isReference(DataType type) |
static boolean |
TypeCheckUtils.isRow(DataType type) |
static boolean |
TypeCheckUtils.isTemporal(DataType type) |
static boolean |
TypeCheckUtils.isTimePoint(DataType type) |
static boolean |
TypeCheckUtils.isTimestamp(DataType type) |
static boolean |
TypeCheckUtils.isTimestampWithLocalZone(DataType type) |
static byte[] |
BinaryStringUtils.toBinaryString(byte[] byteArrayTerm,
DataType type) |
static BinaryString |
BinaryStringUtils.toCharacterString(BinaryString strData,
DataType type) |
| 限定符和类型 | 方法和说明 |
|---|---|
static InternalRow.FieldGetter[] |
InternalRowUtils.createFieldGetters(List<DataType> fieldTypes) |
Copyright © 2023 The Apache Software Foundation. All rights reserved.