Class Schema.Options

java.lang.Object
org.apache.beam.sdk.schemas.Schema.Options
All Implemented Interfaces:
Serializable
Enclosing class:
Schema

public static class Schema.Options extends Object implements Serializable
See Also:
  • Method Details

    • toString

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

      public Set<String> getOptionNames()
    • hasOptions

      public boolean hasOptions()
    • hasOption

      public boolean hasOption(String name)
    • equals

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

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

      public static Schema.Options.Builder builder()
    • none

      public static Schema.Options none()
    • getValue

      public <T> T getValue(String optionName)
      Get the value of an option. If the option is not found null is returned.
    • getValue

      public <T> T getValue(String optionName, Class<T> valueClass)
      Get the value of an option. If the option is not found null is returned.
    • getValueOrDefault

      public <T> T getValueOrDefault(String optionName, T defaultValue)
      Get the value of an option. If the option is not found the default value is returned.
    • getType

      public Schema.FieldType getType(String optionName)
      Get the type of an option.
    • setOption

      public static Schema.Options.Builder setOption(String optionName, Schema.FieldType fieldType, Object value)
    • setOption

      public static Schema.Options.Builder setOption(String optionName, Row value)