public static class Schema.Options
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Schema.Options.Builder |
Modifier and Type | Method and Description |
---|---|
static Schema.Options.Builder |
builder() |
boolean |
equals(@Nullable java.lang.Object o) |
java.util.Set<java.lang.String> |
getOptionNames() |
Schema.FieldType |
getType(java.lang.String optionName)
Get the type of an option.
|
<T> T |
getValue(java.lang.String optionName)
Get the value of an option.
|
<T> T |
getValue(java.lang.String optionName,
java.lang.Class<T> valueClass)
Get the value of an option.
|
<T> T |
getValueOrDefault(java.lang.String optionName,
T defaultValue)
Get the value of an option.
|
int |
hashCode() |
boolean |
hasOption(java.lang.String name) |
boolean |
hasOptions() |
static Schema.Options |
none() |
static Schema.Options.Builder |
setOption(java.lang.String optionName,
Row value) |
static Schema.Options.Builder |
setOption(java.lang.String optionName,
Schema.FieldType fieldType,
java.lang.Object value) |
java.lang.String |
toString() |
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<java.lang.String> getOptionNames()
public boolean hasOptions()
public boolean hasOption(java.lang.String name)
public boolean equals(@Nullable java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static Schema.Options.Builder builder()
public static Schema.Options none()
public <T> T getValue(java.lang.String optionName)
public <T> T getValue(java.lang.String optionName, java.lang.Class<T> valueClass)
public <T> T getValueOrDefault(java.lang.String optionName, T defaultValue)
public Schema.FieldType getType(java.lang.String optionName)
public static Schema.Options.Builder setOption(java.lang.String optionName, Schema.FieldType fieldType, java.lang.Object value)
public static Schema.Options.Builder setOption(java.lang.String optionName, Row value)