public interface Field extends Named, ScalarTyped
RecordTokenType
schema.
All record types have a schema, comprised of zero or more Field
objects, which describes the structure of the record type. Every
Field
has both a name and a type. A Field
is
uniquely identified by name within the containing schema's context.
Modifier and Type | Method and Description |
---|---|
FieldDomain |
getDomain()
Returns the domain of this field.
|
String |
getName()
Gets the name of the field.
|
Map<String,String> |
getProperties()
Returns a map of key-value pairs associated with this field.
|
ScalarTokenType |
getType()
Gets the token type of the field.
|
boolean |
isPrimaryKey()
Returns whether this field is the primary key of the record.
|
String getName()
ScalarTokenType getType()
getType
in interface ScalarTyped
getType
in interface TokenTyped
Map<String,String> getProperties()
FieldDomain getDomain()
FieldDomain.UNSPECIFIED
.boolean isPrimaryKey()
Comparable
type and must be unique within the record.
Note that the framework will not make any attempt to enforce uniqueness; rather this is purely
a declaration. Finally, a given record may have at most one primary key.Copyright © 2016 Actian Corporation. All rights reserved.