Class DataIndexDef

java.lang.Object
com.mckoi.database.DataIndexDef

public class DataIndexDef extends Object
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 Details

    • DataIndexDef

      public DataIndexDef(String index_name, String[] column_names, int index_pointer, String index_type, boolean unique)
      Constructor.
    • DataIndexDef

      public DataIndexDef(DataIndexDef def)
  • Method Details

    • getName

      public String getName()
      Returns the name of this index.
    • getColumnNames

      public String[] getColumnNames()
      Returns the column names that make up this index.
    • getPointer

      public int getPointer()
      Returns the pointer to the index in the IndexSet.
    • getType

      public String 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

      public void write(DataOutput dout) throws IOException
      Writes this object to the given DataOutputStream.
      Throws:
      IOException
    • read

      public static DataIndexDef read(DataInput din) throws IOException
      Reads a DataIndexDef from the given DataInput object.
      Throws:
      IOException