public class Schema extends Object implements Serializable
Constructor and Description |
---|
Schema()
Creates an empty schema.
|
Modifier and Type | Method and Description |
---|---|
void |
add(String fldName,
Schema sch)
Adds a field in another schema having the specified name to this schema.
|
void |
addAll(Schema sch)
Adds all of the fields in the specified schema to this schema.
|
void |
addField(String fldName,
Type type)
Adds a field to this schema having a specified name and type.
|
boolean |
equals(Object obj) |
SortedSet<String> |
fields()
Returns a sorted set containing the field names in this schema, sorted by
their natural ordering.
|
boolean |
hasField(String fldName)
Returns true if the specified field is in this schema.
|
int |
hashCode() |
String |
toString() |
Type |
type(String fldName)
Returns the type of the specified field.
|
public void addField(String fldName, Type type)
fldName
- the name of the fieldtype
- the type of the field, according to the constants in
Type
public void add(String fldName, Schema sch)
fldName
- the name of the fieldsch
- the other schemapublic void addAll(Schema sch)
sch
- the other schemapublic SortedSet<String> fields()
public boolean hasField(String fldName)
fldName
- the name of the fieldpublic Type type(String fldName)
fldName
- the name of the fieldCopyright © 2022 VanillaDB Organization. All rights reserved.