Class Property


  • public class Property
    extends Object
    • Method Detail

      • createIndex

        public Index createIndex​(Schema.INDEX_TYPE type,
                                 boolean unique)
        Creates an index on this property.
        Parameters:
        type - Index type between LSM_TREE and FULL_TEXT
        unique - true if the index is unique
        Returns:
        The index instance
      • getOrCreateIndex

        public Index getOrCreateIndex​(Schema.INDEX_TYPE type,
                                      boolean unique)
        Returns an index on this property or creates it if not exists.
        Parameters:
        type - Index type between LSM_TREE and FULL_TEXT
        unique - true if the index is unique
        Returns:
        The index instance
      • getName

        public String getName()
      • getType

        public Type getType()
      • getId

        public int getId()
      • getDefaultValue

        public Object getDefaultValue()
      • setDefaultValue

        public void setDefaultValue​(Object defaultValue)
      • getCustomKeys

        public Set<String> getCustomKeys()
      • getCustomValue

        public Object getCustomValue​(String key)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object