@Namespace(value="parquet") @NoOffset @Properties(inherit=parquet.class) public class LogicalType extends Pointer
Modifier and Type | Class and Description |
---|---|
static class |
LogicalType.TimeUnit |
static class |
LogicalType.Type |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
LogicalType(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
static LogicalType |
BSON() |
static LogicalType |
Date() |
static LogicalType |
Decimal(int precision) |
static LogicalType |
Decimal(int precision,
int scale) |
static LogicalType |
Enum() |
boolean |
Equals(LogicalType other)
\brief Return true if the given logical type is equivalent to this logical type.
|
static LogicalType |
FromConvertedType(ConvertedType.type converted_type) |
static LogicalType |
FromConvertedType(ConvertedType.type converted_type,
DecimalMetadata converted_decimal_metadata)
\brief If possible, return a logical type equivalent to the given legacy
converted type (and decimal metadata if applicable).
|
static LogicalType |
FromConvertedType(int converted_type) |
static LogicalType |
FromConvertedType(int converted_type,
DecimalMetadata converted_decimal_metadata) |
static LogicalType |
FromThrift(LogicalType thrift_logical_type)
\brief Return the logical type represented by the Thrift intermediary object.
|
static LogicalType |
Int(int bit_width,
boolean is_signed) |
static LogicalType |
Interval() |
boolean |
is_applicable(int primitive_type) |
boolean |
is_applicable(int primitive_type,
int primitive_length) |
boolean |
is_applicable(Type.type primitive_type) |
boolean |
is_applicable(Type.type primitive_type,
int primitive_length)
\brief Return true if this logical type is consistent with the given underlying
physical type.
|
boolean |
is_BSON() |
boolean |
is_compatible(ConvertedType.type converted_type) |
boolean |
is_compatible(ConvertedType.type converted_type,
DecimalMetadata converted_decimal_metadata)
\brief Return true if this logical type is equivalent to the given legacy converted
type (and decimal metadata if applicable).
|
boolean |
is_compatible(int converted_type) |
boolean |
is_compatible(int converted_type,
DecimalMetadata converted_decimal_metadata) |
boolean |
is_date() |
boolean |
is_decimal() |
boolean |
is_enum() |
boolean |
is_int() |
boolean |
is_interval() |
boolean |
is_invalid() |
boolean |
is_JSON() |
boolean |
is_list() |
boolean |
is_map() |
boolean |
is_nested()
\brief Return true if this logical type is suitable for a schema GroupNode.
|
boolean |
is_none() |
boolean |
is_nonnested() |
boolean |
is_null() |
boolean |
is_serialized()
\brief Return true if this logical type is included in the Thrift output for its
node.
|
boolean |
is_string() |
boolean |
is_time() |
boolean |
is_timestamp() |
boolean |
is_UUID() |
boolean |
is_valid()
\brief Return true if this logical type is of a known type.
|
static LogicalType |
JSON() |
static LogicalType |
List() |
static LogicalType |
Map() |
static LogicalType |
None()
\brief Create a placeholder for when no logical type is specified
|
static LogicalType |
Null()
\brief Create a logical type for data that's always null
Any physical type can be annotated with this logical type.
|
SortOrder.type |
sort_order()
\brief Return the appropriate sort order for this logical type.
|
static LogicalType |
String()
\brief Return the explicitly requested logical type.
|
static LogicalType |
Time(boolean is_adjusted_to_utc,
int time_unit) |
static LogicalType |
Time(boolean is_adjusted_to_utc,
LogicalType.TimeUnit.unit time_unit) |
static LogicalType |
Timestamp(boolean is_adjusted_to_utc,
int time_unit) |
static LogicalType |
Timestamp(boolean is_adjusted_to_utc,
int time_unit,
boolean is_from_converted_type,
boolean force_set_converted_type) |
static LogicalType |
Timestamp(boolean is_adjusted_to_utc,
LogicalType.TimeUnit.unit time_unit) |
static LogicalType |
Timestamp(boolean is_adjusted_to_utc,
LogicalType.TimeUnit.unit time_unit,
boolean is_from_converted_type,
boolean force_set_converted_type)
\brief Create a Timestamp logical type
|
ConvertedType.type |
ToConvertedType(DecimalMetadata out_decimal_metadata)
\brief If possible, return the legacy converted type (and decimal metadata if
applicable) equivalent to this logical type.
|
String |
ToJSON()
\brief Return a JSON representation of this logical type.
|
String |
ToString()
\brief Return a printable representation of this logical type.
|
LogicalType |
ToThrift()
\brief Return a serializable Thrift object for this logical type.
|
LogicalType.Type.type |
type()
\brief Return the enumerated type of this logical type.
|
static LogicalType |
UUID() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public LogicalType(Pointer p)
Pointer(Pointer)
.@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType FromConvertedType(ConvertedType.type converted_type, @Const @ByVal(nullValue="parquet::schema::DecimalMetadata({false, -1,-1})") DecimalMetadata converted_decimal_metadata)
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType FromConvertedType(ConvertedType.type converted_type)
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType FromConvertedType(@Cast(value="parquet::ConvertedType::type") int converted_type, @Const @ByVal(nullValue="parquet::schema::DecimalMetadata({false, -1,-1})") DecimalMetadata converted_decimal_metadata)
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType FromConvertedType(@Cast(value="parquet::ConvertedType::type") int converted_type)
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType FromThrift(@Const @ByRef LogicalType thrift_logical_type)
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType String()
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType Map()
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType List()
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType Enum()
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType Decimal(int precision, int scale)
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType Decimal(int precision)
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType Date()
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType Time(@Cast(value="bool") boolean is_adjusted_to_utc, LogicalType.TimeUnit.unit time_unit)
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType Time(@Cast(value="bool") boolean is_adjusted_to_utc, @Cast(value="parquet::LogicalType::TimeUnit::unit") int time_unit)
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType Timestamp(@Cast(value="bool") boolean is_adjusted_to_utc, LogicalType.TimeUnit.unit time_unit, @Cast(value="bool") boolean is_from_converted_type, @Cast(value="bool") boolean force_set_converted_type)
is_adjusted_to_utc
- [in] set true if the data is UTC-normalizedtime_unit
- [in] the resolution of the timestampis_from_converted_type
- [in] if true, the timestamp was generated
by translating a legacy converted type of TIMESTAMP_MILLIS or
TIMESTAMP_MICROS. Default is false.force_set_converted_type
- [in] if true, always set the
legacy ConvertedType TIMESTAMP_MICROS and TIMESTAMP_MILLIS
metadata. Default is false@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType Timestamp(@Cast(value="bool") boolean is_adjusted_to_utc, LogicalType.TimeUnit.unit time_unit)
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType Timestamp(@Cast(value="bool") boolean is_adjusted_to_utc, @Cast(value="parquet::LogicalType::TimeUnit::unit") int time_unit, @Cast(value="bool") boolean is_from_converted_type, @Cast(value="bool") boolean force_set_converted_type)
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType Timestamp(@Cast(value="bool") boolean is_adjusted_to_utc, @Cast(value="parquet::LogicalType::TimeUnit::unit") int time_unit)
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType Interval()
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType Int(int bit_width, @Cast(value="bool") boolean is_signed)
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType Null()
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType JSON()
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType BSON()
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType UUID()
@Cast(value="const parquet::LogicalType*") @SharedPtr @ByVal public static LogicalType None()
@Cast(value="bool") public boolean is_applicable(Type.type primitive_type, int primitive_length)
@Cast(value="bool") public boolean is_applicable(@Cast(value="parquet::Type::type") int primitive_type, int primitive_length)
@Cast(value="bool") public boolean is_applicable(@Cast(value="parquet::Type::type") int primitive_type)
@Cast(value="bool") public boolean is_compatible(ConvertedType.type converted_type, @ByVal(nullValue="parquet::schema::DecimalMetadata({false, -1, -1})") DecimalMetadata converted_decimal_metadata)
@Cast(value="bool") public boolean is_compatible(ConvertedType.type converted_type)
@Cast(value="bool") public boolean is_compatible(@Cast(value="parquet::ConvertedType::type") int converted_type, @ByVal(nullValue="parquet::schema::DecimalMetadata({false, -1, -1})") DecimalMetadata converted_decimal_metadata)
@Cast(value="bool") public boolean is_compatible(@Cast(value="parquet::ConvertedType::type") int converted_type)
public ConvertedType.type ToConvertedType(DecimalMetadata out_decimal_metadata)
@StdString public String ToString()
@StdString public String ToJSON()
@ByVal public LogicalType ToThrift()
@Cast(value="bool") public boolean Equals(@Const @ByRef LogicalType other)
public LogicalType.Type.type type()
public SortOrder.type sort_order()
@Cast(value="bool") public boolean is_valid()
@Cast(value="bool") public boolean is_nested()
Copyright © 2022. All rights reserved.