public class StoredTableSchema extends Named
Constructor and Description |
---|
StoredTableSchema(java.lang.String name)
creates a blank table schema
|
Modifier and Type | Method and Description |
---|---|
void |
addField(StoredFieldSchema field)
adds a new stored field in the table shcema
|
void |
addIndex(StoredTableIndex index)
adds a new index to this table schema
|
StoredTableIndex |
getIndex(int i)
gets the index at specified index
|
int |
getIndexSize() |
StoredFieldSchema |
getStoredField(int index)
gets the field schema at the specified index
|
int |
getStoredFieldNumber()
gets the number of stored fields in this table schema
|
StoredFieldSchema |
lookupFieldByName(java.lang.String name)
looks-up a field schema by name
|
java.lang.String |
toString() |
changeName, cleanName, equals, getName
public StoredTableSchema(java.lang.String name)
name
- name of the table schemapublic int getIndexSize()
public StoredTableIndex getIndex(int i)
i
- the index between 0 (included) and getIndexSize() (excluded)public void addField(StoredFieldSchema field)
field
- a stored field schemapublic int getStoredFieldNumber()
public StoredFieldSchema getStoredField(int index)
index
- a number between 0 (included) and getStoredFieldNumber() (excluded)public StoredFieldSchema lookupFieldByName(java.lang.String name)
name
- name of the fieldpublic void addIndex(StoredTableIndex index)
index
- the indexpublic java.lang.String toString()
toString
in class java.lang.Object