public class StoredTableIndex extends Named
Constructor and Description |
---|
StoredTableIndex(java.lang.String name)
creates an index with a name (but not field specified yet)
|
Modifier and Type | Method and Description |
---|---|
void |
addStoredFieldSchame(StoredFieldSchema indexfield)
adds a new stored field in the index
|
StoredFieldSchema[] |
getAllFields()
get all fields of the index
|
StoredFieldSchema |
getField(int i)
gets a field in the index
|
int |
getFieldNumber()
get the number of fields in this index
|
java.lang.String |
getFullName()
generates the name in the database
|
StoredTableSchema |
getParent()
gets the parent table schema
|
void |
setParent(StoredTableSchema parent) |
changeName, cleanName, equals, getName
public StoredTableIndex(java.lang.String name)
name
- name of the indexpublic StoredTableSchema getParent()
public StoredFieldSchema[] getAllFields()
public void setParent(StoredTableSchema parent)
parent
- specifies the tableschemapublic void addStoredFieldSchame(StoredFieldSchema indexfield)
indexfield
- the field to add at current position in the indexpublic int getFieldNumber()
public StoredFieldSchema getField(int i)
i
- a field between 0 (included) and getFieldNumber() (excluded)public java.lang.String getFullName()