Class FieldMetadata

Object
io.delta.kernel.types.FieldMetadata

public final class FieldMetadata extends Object
The metadata for a given StructField. The contents are immutable.
  • Method Details

    • getEntries

      public Map<String,Object> getEntries()
      Returns:
      list of the key-value pairs in this FieldMetadata
    • contains

      public boolean contains(String key)
      Parameters:
      key - the key to check for
      Returns:
      True if this contains a mapping for the given key, False otherwise
    • get

      public Object get(String key)
      Parameters:
      key - the key to check for
      Returns:
      the value to which the specified key is mapped, or null if there is no mapping for the given key
    • toJson

      public String toJson()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • builder

      public static FieldMetadata.Builder builder()
      Returns:
      a new FieldMetadata.Builder
    • empty

      public static FieldMetadata empty()
      Returns:
      an empty FieldMetadata instance