Class PartitionData

java.lang.Object
io.trino.plugin.iceberg.PartitionData
All Implemented Interfaces:
org.apache.iceberg.StructLike

public class PartitionData extends Object implements org.apache.iceberg.StructLike
  • Constructor Details

    • PartitionData

      public PartitionData(Object[] partitionValues)
  • Method Details

    • size

      public int size()
      Specified by:
      size in interface org.apache.iceberg.StructLike
    • get

      public <T> T get(int pos, Class<T> javaClass)
      Specified by:
      get in interface org.apache.iceberg.StructLike
    • set

      public <T> void set(int pos, T value)
      Specified by:
      set in interface org.apache.iceberg.StructLike
    • toJson

      public static String toJson(org.apache.iceberg.StructLike structLike)
    • fromJson

      public static PartitionData fromJson(String partitionDataAsJson, org.apache.iceberg.types.Type[] types)
    • getValue

      public static Object getValue(com.fasterxml.jackson.databind.JsonNode partitionValue, org.apache.iceberg.types.Type type)