Class IndexSchema.Index

java.lang.Object
com.redis.vl.schema.IndexSchema.Index
Enclosing class:
IndexSchema

public static class IndexSchema.Index extends Object
Inner class to hold index configuration
  • Constructor Details

    • Index

      public Index()
      Creates a new Index with default values
    • Index

      public Index(String name)
      Creates a new Index with the given name
      Parameters:
      name - the name of the index
  • Method Details

    • getName

      public String getName()
      Get the index name
      Returns:
      the index name
    • setName

      public void setName(String name)
      Set the index name
      Parameters:
      name - the index name to set
    • getPrefix

      public String getPrefix()
      Get the key prefix
      Returns:
      the key prefix
    • setPrefix

      public void setPrefix(String prefix)
      Set the key prefix
      Parameters:
      prefix - the key prefix to set
    • getKeySeparator

      public String getKeySeparator()
      Get the key separator
      Returns:
      the key separator
    • setKeySeparator

      public void setKeySeparator(String keySeparator)
      Set the key separator
      Parameters:
      keySeparator - the key separator to set
    • getStorageType

      public IndexSchema.StorageType getStorageType()
      Get the storage type
      Returns:
      the storage type
    • setStorageType

      public void setStorageType(IndexSchema.StorageType storageType)
      Set the storage type
      Parameters:
      storageType - the storage type to set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object