Package org.apache.beam.sdk.schemas
Class Schema.Options
java.lang.Object
org.apache.beam.sdk.schemas.Schema.Options
- All Implemented Interfaces:
Serializable
- Enclosing class:
Schema
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Schema.Options.Builder
builder()
boolean
Get the type of an option.<T> T
Get the value of an option.<T> T
Get the value of an option.<T> T
getValueOrDefault
(String optionName, T defaultValue) Get the value of an option.int
hashCode()
boolean
boolean
static Schema.Options
none()
static Schema.Options.Builder
setOption
(String optionName, Schema.FieldType fieldType, Object value) static Schema.Options.Builder
toString()
-
Method Details
-
toString
-
getOptionNames
-
hasOptions
public boolean hasOptions() -
hasOption
-
equals
-
hashCode
public int hashCode() -
builder
-
none
-
getValue
Get the value of an option. If the option is not found null is returned. -
getValue
Get the value of an option. If the option is not found null is returned. -
getValueOrDefault
Get the value of an option. If the option is not found the default value is returned. -
getType
Get the type of an option. -
setOption
public static Schema.Options.Builder setOption(String optionName, Schema.FieldType fieldType, Object value) -
setOption
-