Package com.mckoi.database
Class DataIndexDef
java.lang.Object
com.mckoi.database.DataIndexDef
Represents index meta-information on a table. This information is part of
DataIndexSetDef and is stored with the contents of a table.
- Author:
- Tobias Downer
-
Constructor Summary
ConstructorsConstructorDescriptionDataIndexDef
(DataIndexDef def) DataIndexDef
(String index_name, String[] column_names, int index_pointer, String index_type, boolean unique) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionString[]
Returns the column names that make up this index.getName()
Returns the name of this index.int
Returns the pointer to the index in the IndexSet.getType()
Returns a String that describes the type of index this is.boolean
Returns true if this is a unique index.static DataIndexDef
Reads a DataIndexDef from the given DataInput object.void
write
(DataOutput dout) Writes this object to the given DataOutputStream.
-
Constructor Details
-
Method Details
-
getName
Returns the name of this index. -
getColumnNames
Returns the column names that make up this index. -
getPointer
public int getPointer()Returns the pointer to the index in the IndexSet. -
getType
Returns a String that describes the type of index this is. -
isUniqueIndex
public boolean isUniqueIndex()Returns true if this is a unique index. -
write
Writes this object to the given DataOutputStream.- Throws:
IOException
-
read
Reads a DataIndexDef from the given DataInput object.- Throws:
IOException
-