Class IndexNames
- java.lang.Object
-
- org.hibernate.search.backend.elasticsearch.index.layout.impl.IndexNames
-
public final class IndexNames extends Object
-
-
Constructor Summary
Constructors Constructor Description IndexNames(String hibernateSearch, URLEncodedString write, boolean writeIsAlias, URLEncodedString read, boolean readIsAlias)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static URLEncodedStringencodeName(String name)StringhibernateSearchIndex()static StringnormalizeName(String indexName)URLEncodedStringread()booleanreadIsAlias()StringtoString()URLEncodedStringwrite()booleanwriteIsAlias()
-
-
-
Constructor Detail
-
IndexNames
public IndexNames(String hibernateSearch, URLEncodedString write, boolean writeIsAlias, URLEncodedString read, boolean readIsAlias)
-
-
Method Detail
-
encodeName
public static URLEncodedString encodeName(String name)
-
hibernateSearchIndex
public String hibernateSearchIndex()
- Returns:
- The Hibernate Search index name, i.e. the name that Hibernate Search uses internally to designate that index, for example in configuration files.
-
write
public URLEncodedString write()
- Returns:
- The write name, i.e. the name that Hibernate Search is supposed to use when indexing or purging the index.
-
writeIsAlias
public boolean writeIsAlias()
- Returns:
- Whether the
write nameis an alias (true) or not (false).
-
read
public URLEncodedString read()
- Returns:
- The read name, i.e. the name that Hibernate Search is supposed to use when executing searches on the index.
-
readIsAlias
public boolean readIsAlias()
- Returns:
- Whether the
write nameis an alias (true) or not (false).
-
-