java.lang.Object
com.pervasive.datarush.schema.SchemaBuilder.SchemaField
- Enclosing class:
- SchemaBuilder
An internal class used to transform schemas to/from JSON.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor, for jsonSchemaField(String name, SchemaBuilder.SchemaFieldType type) Create a schema field, specifying name and typeSchemaField(String name, SchemaBuilder.SchemaFieldType type, String format) Create a schema field, specifying name, type, and formatSchemaField(String name, SchemaBuilder.SchemaFieldType type, Map<String, String> options) Create a schema field, specifying name, type, and options -
Method Summary
Modifier and TypeMethodDescriptionReturns the format of the fieldgetName()Returns the name of the fieldReturns the options for the fieldReturns the text type for this field based on the configured optionsgetType()Returns the type of the fieldvoidsetDomain(FieldDomain domain) voidSets the format of the fieldvoidSets the name of the fieldvoidsetOptions(Map<String, String> options) Sets the options for the fieldvoidSets the type of the field
-
Constructor Details
-
SchemaField
public SchemaField()Default constructor, for json -
SchemaField
Create a schema field, specifying name and type- Parameters:
name- the name of the fieldtype- the type of the field
-
SchemaField
Create a schema field, specifying name, type, and format- Parameters:
name- the name of the fieldtype- the type of the fieldformat- the format of the field
-
SchemaField
Create a schema field, specifying name, type, and options- Parameters:
name- the name of the fieldtype- the type of the fieldoptions- map of arbitrary options
-
-
Method Details
-
getName
Returns the name of the field- Returns:
- the name of the field
-
setName
Sets the name of the field- Parameters:
name- the name of the field
-
getType
Returns the type of the field- Returns:
- the type of the field
-
setType
Sets the type of the field- Parameters:
type- the type of the field
-
getFormat
Returns the format of the field- Returns:
- the format of the field
-
setFormat
Sets the format of the field- Parameters:
format- the format of the field
-
getOptions
Returns the options for the field- Returns:
- the options for the field
-
setOptions
Sets the options for the field- Parameters:
options- the options for the field
-
getTextType
Returns the text type for this field based on the configured options- Returns:
- the text type
-
getDomain
-
setDomain
-