public class LogicalTypes extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LogicalTypes.Date
Date represents a date without a time
|
static class |
LogicalTypes.Decimal
Decimal represents arbitrary-precision fixed-scale decimal numbers
|
static interface |
LogicalTypes.LogicalTypeFactory |
static class |
LogicalTypes.TimeMicros
TimeMicros represents a time in microseconds without a date
|
static class |
LogicalTypes.TimeMillis
TimeMillis represents a time in milliseconds without a date
|
static class |
LogicalTypes.TimestampMicros
TimestampMicros represents a date and time in microseconds
|
static class |
LogicalTypes.TimestampMillis
TimestampMillis represents a date and time in milliseconds
|
Constructor and Description |
---|
LogicalTypes() |
Modifier and Type | Method and Description |
---|---|
static LogicalTypes.Date |
date() |
static LogicalTypes.Decimal |
decimal(int precision)
Create a Decimal LogicalType with the given precision and scale 0
|
static LogicalTypes.Decimal |
decimal(int precision,
int scale)
Create a Decimal LogicalType with the given precision and scale
|
static LogicalType |
fromSchema(Schema schema)
Returns the
LogicalType from the schema, if one is present. |
static LogicalType |
fromSchemaIgnoreInvalid(Schema schema) |
static void |
register(String logicalTypeName,
LogicalTypes.LogicalTypeFactory factory) |
static LogicalTypes.TimeMicros |
timeMicros() |
static LogicalTypes.TimeMillis |
timeMillis() |
static LogicalTypes.TimestampMicros |
timestampMicros() |
static LogicalTypes.TimestampMillis |
timestampMillis() |
static LogicalType |
uuid() |
public static void register(String logicalTypeName, LogicalTypes.LogicalTypeFactory factory)
public static LogicalType fromSchema(Schema schema)
LogicalType
from the schema, if one is present.public static LogicalType fromSchemaIgnoreInvalid(Schema schema)
public static LogicalTypes.Decimal decimal(int precision)
public static LogicalTypes.Decimal decimal(int precision, int scale)
public static LogicalType uuid()
public static LogicalTypes.Date date()
public static LogicalTypes.TimeMillis timeMillis()
public static LogicalTypes.TimeMicros timeMicros()
public static LogicalTypes.TimestampMillis timestampMillis()
public static LogicalTypes.TimestampMicros timestampMicros()
Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.