Enum Class IndexType

java.lang.Object
java.lang.Enum<IndexType>
edu.caltech.nanodb.indexes.IndexType
All Implemented Interfaces:
Serializable, Comparable<IndexType>, Constable

public enum IndexType extends Enum<IndexType>
This enumeration represents the different kinds of indexes that NanoDB supports, since different kinds of indexes facilitate different kinds of lookups with different performance characteristics.
  • Enum Constant Details

    • ORDERED_INDEX

      public static final IndexType ORDERED_INDEX
      Represents indexes that order values to determine a tuple's location.
    • HASHED_INDEX

      public static final IndexType HASHED_INDEX
      Represents indexes that hash values to determine a tuple's location.
  • Constructor Details

    • IndexType

      private IndexType()
  • Method Details

    • values

      public static IndexType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IndexType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null