Package com.redis.vl.schema
Class IndexSchema.Index
java.lang.Object
com.redis.vl.schema.IndexSchema.Index
- Enclosing class:
IndexSchema
Inner class to hold index configuration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the key separatorgetName()
Get the index nameGet the key prefixGet the storage typeint
hashCode()
void
setKeySeparator
(String keySeparator) Set the key separatorvoid
Set the index namevoid
Set the key prefixvoid
setStorageType
(IndexSchema.StorageType storageType) Set the storage type
-
Constructor Details
-
Index
public Index()Creates a new Index with default values -
Index
Creates a new Index with the given name- Parameters:
name
- the name of the index
-
-
Method Details
-
getName
Get the index name- Returns:
- the index name
-
setName
Set the index name- Parameters:
name
- the index name to set
-
getPrefix
Get the key prefix- Returns:
- the key prefix
-
setPrefix
Set the key prefix- Parameters:
prefix
- the key prefix to set
-
getKeySeparator
Get the key separator- Returns:
- the key separator
-
setKeySeparator
Set the key separator- Parameters:
keySeparator
- the key separator to set
-
getStorageType
Get the storage type- Returns:
- the storage type
-
setStorageType
Set the storage type- Parameters:
storageType
- the storage type to set
-
equals
-
hashCode
public int hashCode()
-