Class LogicalType

java.lang.Object
org.apache.thrift.TUnion<LogicalType,LogicalType._Fields>
org.apache.parquet.format.LogicalType
All Implemented Interfaces:
Serializable, Comparable<LogicalType>, org.apache.thrift.TBase<LogicalType,LogicalType._Fields>, org.apache.thrift.TSerializable

@Generated(value="Autogenerated by Thrift Compiler (0.23.0)", date="2026-08-06") public class LogicalType extends org.apache.thrift.TUnion<LogicalType,LogicalType._Fields>
LogicalType annotations to replace ConvertedType. To maintain compatibility, implementations using LogicalType for a SchemaElement must also set the corresponding ConvertedType (if any) from the following table.
See Also:
  • Field Details

    • metaDataMap

      public static final Map<LogicalType._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
  • Constructor Details

  • Method Details

    • deepCopy

      public LogicalType deepCopy()
    • STRING

      public static LogicalType STRING(StringType value)
    • MAP

      public static LogicalType MAP(MapType value)
    • LIST

      public static LogicalType LIST(ListType value)
    • ENUM

      public static LogicalType ENUM(EnumType value)
    • DECIMAL

      public static LogicalType DECIMAL(DecimalType value)
    • DATE

      public static LogicalType DATE(DateType value)
    • TIME

      public static LogicalType TIME(TimeType value)
    • TIMESTAMP

      public static LogicalType TIMESTAMP(TimestampType value)
    • INTEGER

      public static LogicalType INTEGER(IntType value)
    • UNKNOWN

      public static LogicalType UNKNOWN(NullType value)
    • JSON

      public static LogicalType JSON(JsonType value)
    • BSON

      public static LogicalType BSON(BsonType value)
    • UUID

      public static LogicalType UUID(UUIDType value)
    • FLOAT16

      public static LogicalType FLOAT16(Float16Type value)
    • VARIANT

      public static LogicalType VARIANT(VariantType value)
    • GEOMETRY

      public static LogicalType GEOMETRY(GeometryType value)
    • GEOGRAPHY

      public static LogicalType GEOGRAPHY(GeographyType value)
    • checkType

      protected void checkType(LogicalType._Fields setField, Object value) throws ClassCastException
      Specified by:
      checkType in class org.apache.thrift.TUnion<LogicalType,LogicalType._Fields>
      Throws:
      ClassCastException
    • standardSchemeReadValue

      protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TField field) throws org.apache.thrift.TException
      Specified by:
      standardSchemeReadValue in class org.apache.thrift.TUnion<LogicalType,LogicalType._Fields>
      Throws:
      org.apache.thrift.TException
    • standardSchemeWriteValue

      protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      standardSchemeWriteValue in class org.apache.thrift.TUnion<LogicalType,LogicalType._Fields>
      Throws:
      org.apache.thrift.TException
    • tupleSchemeReadValue

      protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, short fieldID) throws org.apache.thrift.TException
      Specified by:
      tupleSchemeReadValue in class org.apache.thrift.TUnion<LogicalType,LogicalType._Fields>
      Throws:
      org.apache.thrift.TException
    • tupleSchemeWriteValue

      protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      tupleSchemeWriteValue in class org.apache.thrift.TUnion<LogicalType,LogicalType._Fields>
      Throws:
      org.apache.thrift.TException
    • getFieldDesc

      protected org.apache.thrift.protocol.TField getFieldDesc(LogicalType._Fields setField)
      Specified by:
      getFieldDesc in class org.apache.thrift.TUnion<LogicalType,LogicalType._Fields>
    • getStructDesc

      protected org.apache.thrift.protocol.TStruct getStructDesc()
      Specified by:
      getStructDesc in class org.apache.thrift.TUnion<LogicalType,LogicalType._Fields>
    • enumForId

      protected LogicalType._Fields enumForId(short id)
      Specified by:
      enumForId in class org.apache.thrift.TUnion<LogicalType,LogicalType._Fields>
    • fieldForId

      public LogicalType._Fields fieldForId(int fieldId)
    • getSTRING

      public StringType getSTRING()
    • setSTRING

      public void setSTRING(StringType value)
    • getMAP

      public MapType getMAP()
    • setMAP

      public void setMAP(MapType value)
    • getLIST

      public ListType getLIST()
    • setLIST

      public void setLIST(ListType value)
    • getENUM

      public EnumType getENUM()
    • setENUM

      public void setENUM(EnumType value)
    • getDECIMAL

      public DecimalType getDECIMAL()
    • setDECIMAL

      public void setDECIMAL(DecimalType value)
    • getDATE

      public DateType getDATE()
    • setDATE

      public void setDATE(DateType value)
    • getTIME

      public TimeType getTIME()
    • setTIME

      public void setTIME(TimeType value)
    • getTIMESTAMP

      public TimestampType getTIMESTAMP()
    • setTIMESTAMP

      public void setTIMESTAMP(TimestampType value)
    • getINTEGER

      public IntType getINTEGER()
    • setINTEGER

      public void setINTEGER(IntType value)
    • getUNKNOWN

      public NullType getUNKNOWN()
    • setUNKNOWN

      public void setUNKNOWN(NullType value)
    • getJSON

      public JsonType getJSON()
    • setJSON

      public void setJSON(JsonType value)
    • getBSON

      public BsonType getBSON()
    • setBSON

      public void setBSON(BsonType value)
    • getUUID

      public UUIDType getUUID()
    • setUUID

      public void setUUID(UUIDType value)
    • getFLOAT16

      public Float16Type getFLOAT16()
    • setFLOAT16

      public void setFLOAT16(Float16Type value)
    • getVARIANT

      public VariantType getVARIANT()
    • setVARIANT

      public void setVARIANT(VariantType value)
    • getGEOMETRY

      public GeometryType getGEOMETRY()
    • setGEOMETRY

      public void setGEOMETRY(GeometryType value)
    • getGEOGRAPHY

      public GeographyType getGEOGRAPHY()
    • setGEOGRAPHY

      public void setGEOGRAPHY(GeographyType value)
    • isSetSTRING

      public boolean isSetSTRING()
    • isSetMAP

      public boolean isSetMAP()
    • isSetLIST

      public boolean isSetLIST()
    • isSetENUM

      public boolean isSetENUM()
    • isSetDECIMAL

      public boolean isSetDECIMAL()
    • isSetDATE

      public boolean isSetDATE()
    • isSetTIME

      public boolean isSetTIME()
    • isSetTIMESTAMP

      public boolean isSetTIMESTAMP()
    • isSetINTEGER

      public boolean isSetINTEGER()
    • isSetUNKNOWN

      public boolean isSetUNKNOWN()
    • isSetJSON

      public boolean isSetJSON()
    • isSetBSON

      public boolean isSetBSON()
    • isSetUUID

      public boolean isSetUUID()
    • isSetFLOAT16

      public boolean isSetFLOAT16()
    • isSetVARIANT

      public boolean isSetVARIANT()
    • isSetGEOMETRY

      public boolean isSetGEOMETRY()
    • isSetGEOGRAPHY

      public boolean isSetGEOGRAPHY()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(LogicalType other)
    • compareTo

      public int compareTo(LogicalType other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object