public static final class SchemaBuilder.SchemaField extends Object
Constructor and Description |
---|
SchemaField()
Default constructor, for json
|
SchemaField(String name,
SchemaBuilder.SchemaFieldType type)
Create a schema field, specifying name and type
|
SchemaField(String name,
SchemaBuilder.SchemaFieldType type,
Map<String,String> options)
Create a schema field, specifying name, type, and options
|
SchemaField(String name,
SchemaBuilder.SchemaFieldType type,
String format)
Create a schema field, specifying name, type, and format
|
Modifier and Type | Method and Description |
---|---|
FieldDomain |
getDomain() |
String |
getFormat()
Returns the format of the field
|
String |
getName()
Returns the name of the field
|
Map<String,String> |
getOptions()
Returns the options for the field
|
TextDataType |
getTextType()
Returns the text type for this field based on
the configured options
|
String |
getType()
Returns the type of the field
|
void |
setDomain(FieldDomain domain) |
void |
setFormat(String format)
Sets the format of the field
|
void |
setName(String name)
Sets the name of the field
|
void |
setOptions(Map<String,String> options)
Sets the options for the field
|
void |
setType(String type)
Sets the type of the field
|
public SchemaField()
public SchemaField(String name, SchemaBuilder.SchemaFieldType type)
name
- the name of the fieldtype
- the type of the fieldpublic SchemaField(String name, SchemaBuilder.SchemaFieldType type, String format)
name
- the name of the fieldtype
- the type of the fieldformat
- the format of the fieldpublic SchemaField(String name, SchemaBuilder.SchemaFieldType type, Map<String,String> options)
name
- the name of the fieldtype
- the type of the fieldoptions
- map of arbitrary optionspublic String getName()
public void setName(String name)
name
- the name of the fieldpublic String getType()
public void setType(String type)
type
- the type of the fieldpublic String getFormat()
public void setFormat(String format)
format
- the format of the fieldpublic Map<String,String> getOptions()
public void setOptions(Map<String,String> options)
options
- the options for the fieldpublic TextDataType getTextType()
public FieldDomain getDomain()
public void setDomain(FieldDomain domain)
Copyright © 2024 Actian Corporation. All rights reserved.