public class IndexDefinition extends Object
Constructor and Description |
---|
IndexDefinition()
Initializes a new instance of the
IndexDefinition class. |
IndexDefinition(String map) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Map<String,String> |
getAnalyzers()
Index field analyzer settings.
|
List<String> |
getFields()
List of queryable fields in index.
|
Map<String,FieldIndexing> |
getIndexes()
Index field indexing settings.
|
int |
getIndexHash()
Provide a cached version of the index hash code, which is used when generating
the index etag.
|
int |
getIndexId()
Index identifier (internal).
|
IndexLockMode |
getLockMode()
Index lock mode:
- Unlock - all index definition changes acceptable
- LockedIgnore - all index definition changes will be ignored, only log entry will be created
- LockedError - all index definition changes will raise exception
|
String |
getMap() |
Set<String> |
getMaps() |
Long |
getMaxIndexOutputsPerDocument()
Index specific setting that limits the number of map outputs that an index is allowed to create for a one source document.
|
String |
getName()
This is the means by which the outside world refers to this index definition
|
String |
getReduce()
Index reduce function
|
Map<String,SortOptions> |
getSortOptions()
Index field sorting settings.
|
Map<String,SpatialOptions> |
getSpatialIndexes()
Index field spatial settings.
|
Map<String,FieldStorage> |
getStores()
Index field storage settings.
|
Map<String,SuggestionOptions> |
getSuggestions()
Index field suggestion settings.
|
Map<String,FieldTermVector> |
getTermVectors()
Index field term vector settings.
|
String |
getType() |
int |
hashCode() |
boolean |
isCompiled()
Internal use only.
|
boolean |
isDisableInMemoryIndexing()
Prevent index from being kept in memory.
|
boolean |
isMapReduce()
Gets a value indicating whether this instance is map reduce index definition
|
boolean |
isSideBySideIndex() |
boolean |
isTextIndex() |
void |
removeDefaultValues()
Remove the default values that we don't actually need
|
void |
setAnalyzers(Map<String,String> analyzers)
Index field analyzer settings.
|
void |
setCompiled(boolean isCompiled)
Internal use only.
|
void |
setDisableInMemoryIndexing(boolean disableInMemoryIndexing)
Prevent index from being kept in memory.
|
void |
setFields(List<String> fields)
List of queryable fields in index.
|
void |
setIndexes(Map<String,FieldIndexing> indexes)
Index field indexing settings.
|
void |
setIndexId(int indexId)
Index identifier (internal).
|
void |
setLockMode(IndexLockMode lockMode)
Index lock mode:
- Unlock - all index definition changes acceptable
- LockedIgnore - all index definition changes will be ignored, only log entry will be created
- LockedError - all index definition changes will raise exception
|
void |
setMap(String value) |
void |
setMaps(Set<String> maps) |
void |
setMaxIndexOutputsPerDocument(Long maxIndexOutputsPerDocument)
Index specific setting that limits the number of map outputs that an index is allowed to create for a one source document.
|
void |
setName(String name)
This is the means by which the outside world refers to this index definition
|
void |
setReduce(String reduce)
Index reduce function
|
void |
setSideBySideIndex(boolean isSideBySideIndex) |
void |
setSortOptions(Map<String,SortOptions> sortOptions)
Index field sorting settings.
|
void |
setSpatialIndexes(Map<String,SpatialOptions> spatialIndexes)
Index field spatial settings.
|
void |
setStores(Map<String,FieldStorage> stores)
Index field storage settings.
|
void |
setSuggestions(Map<String,SuggestionOptions> suggestions)
Index field suggestion settings.
|
void |
setTermVectors(Map<String,FieldTermVector> termVectors)
Index field term vector settings.
|
void |
setTextIndex(boolean isTextIndex) |
String |
toString() |
public IndexDefinition()
IndexDefinition
class.public IndexDefinition(String map)
public boolean isTextIndex()
public void setTextIndex(boolean isTextIndex)
isTextIndex
- whatever this is a temporary test only indexpublic boolean isSideBySideIndex()
public void setSideBySideIndex(boolean isSideBySideIndex)
isSideBySideIndex
- whatever this is a side by side indexpublic Long getMaxIndexOutputsPerDocument()
public void setMaxIndexOutputsPerDocument(Long maxIndexOutputsPerDocument)
maxIndexOutputsPerDocument
- public boolean isDisableInMemoryIndexing()
public void setDisableInMemoryIndexing(boolean disableInMemoryIndexing)
disableInMemoryIndexing
- public int getIndexId()
public void setIndexId(int indexId)
indexId
- public Map<String,FieldTermVector> getTermVectors()
public void setTermVectors(Map<String,FieldTermVector> termVectors)
termVectors
- public Map<String,SpatialOptions> getSpatialIndexes()
public void setSpatialIndexes(Map<String,SpatialOptions> spatialIndexes)
spatialIndexes
- public IndexLockMode getLockMode()
public void setAnalyzers(Map<String,String> analyzers)
analyzers
- public void setFields(List<String> fields)
fields
- public Map<String,SuggestionOptions> getSuggestions()
public void setSuggestions(Map<String,SuggestionOptions> suggestions)
suggestions
- public Map<String,FieldStorage> getStores()
public void setStores(Map<String,FieldStorage> stores)
stores
- public Map<String,FieldIndexing> getIndexes()
public void setIndexes(Map<String,FieldIndexing> indexes)
indexes
- public Map<String,SortOptions> getSortOptions()
public void setSortOptions(Map<String,SortOptions> sortOptions)
sortOptions
- public void setLockMode(IndexLockMode lockMode)
lockMode
- public String getName()
public void setName(String name)
name
- public Set<String> getMaps()
This property only exists for backward compatibility purposes
public String getReduce()
public void setReduce(String reduce)
reduce
- public String getMap()
public void setMap(String value)
public boolean isMapReduce()
public boolean isCompiled()
public void setCompiled(boolean isCompiled)
isCompiled
- public int getIndexHash()
public String getType()
public void removeDefaultValues()
Copyright © 2016. All Rights Reserved.