public class AbstractIndexCreationTask extends AbstractCommonApiForIndexesAndTransformers
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<com.mysema.query.types.Path<?>,java.lang.String> |
analyzers |
protected java.util.Map<java.lang.String,java.lang.String> |
analyzersStrings |
protected DocumentConvention |
conventions |
protected boolean |
disableInMemoryIndexing |
protected java.util.Map<com.mysema.query.types.Path<?>,FieldIndexing> |
indexes |
protected java.util.Map<java.lang.String,FieldIndexing> |
indexesStrings |
protected java.util.Map<com.mysema.query.types.Path<?>,SortOptions> |
indexSortOptions |
protected java.util.Map<java.lang.String,SortOptions> |
indexSortOptionsStrings |
protected java.util.Map<com.mysema.query.types.Path<?>,SuggestionOptions> |
indexSuggestions |
protected java.lang.String |
map |
protected java.lang.Long |
maxIndexOutputsPerDocument |
protected java.lang.String |
reduce |
protected java.util.Map<com.mysema.query.types.Path<?>,SpatialOptions> |
spatialIndexes |
protected java.util.Map<java.lang.String,SpatialOptions> |
spatialIndexesStrings |
protected java.util.Map<com.mysema.query.types.Path<?>,FieldStorage> |
stores |
protected java.util.Map<java.lang.String,FieldStorage> |
storesStrings |
protected java.util.Map<com.mysema.query.types.Path<?>,FieldTermVector> |
termVectors |
protected java.util.Map<java.lang.String,FieldTermVector> |
termVectorsStrings |
Constructor and Description |
---|
AbstractIndexCreationTask() |
Modifier and Type | Method and Description |
---|---|
protected void |
analyze(com.mysema.query.types.Path<?> field,
java.lang.String analyzer)
Register a field to be analyzed
|
protected void |
analyze(java.lang.String field,
java.lang.String analyzer)
Register a field to be analyzed
|
IndexDefinition |
createIndexDefinition() |
void |
execute(IDatabaseCommands databaseCommands,
DocumentConvention documentConvention)
Executes the index creation against the specified document database using the specified conventions
|
void |
execute(IDocumentStore store)
Executes the index creation against the specified document store.
|
DocumentConvention |
getConventions() |
java.lang.String |
getIndexName() |
java.lang.Long |
getMaxIndexOutputsPerDocument() |
protected void |
index(com.mysema.query.types.Path<?> field,
FieldIndexing indexing)
Register a field to be indexed
|
protected void |
index(java.lang.String field,
FieldIndexing indexing)
Register a field to be indexed
|
boolean |
isDisableInMemoryIndexing() |
boolean |
isMapReduce() |
void |
setConventions(DocumentConvention conventions) |
void |
setDisableInMemoryIndexing(boolean disableInMemoryIndexing) |
void |
setMaxIndexOutputsPerDocument(java.lang.Long maxIndexOutputsPerDocument)
Max number of allowed indexing outputs per one source document
|
protected void |
sort(com.mysema.query.types.Path<?> field,
SortOptions sort)
Register a field to be sorted
|
protected void |
sort(java.lang.String field,
SortOptions sort)
Register a field to be sorted
|
protected void |
spatial(com.mysema.query.types.Path<?> field,
SpatialOptions indexing)
Register a field to be spatially indexed
Note: using
SpatialOptionsFactory might be very helpful! |
protected void |
spatial(java.lang.String field,
SpatialOptions indexing)
Register a field to be spatially indexed
Note: using
SpatialOptionsFactory might be very helpful! |
protected void |
store(com.mysema.query.types.Path<?> field,
FieldStorage storage)
Register a field to be stored
|
protected void |
store(java.lang.String field,
FieldStorage storage)
Register a field to be stored
|
protected void |
storeAllFields(FieldStorage storage) |
protected void |
suggestion(com.mysema.query.types.Path<?> field)
Register a field to be sorted
|
protected void |
suggestion(com.mysema.query.types.Path<?> field,
SuggestionOptions suggestion)
Register a field to be sorted
|
protected void |
termVector(com.mysema.query.types.Path<?> field,
FieldTermVector termVector)
Register a field to have term vectors
|
protected void |
termVector(java.lang.String field,
FieldTermVector termVector)
Register a field to have term vectors
|
getReplicationOperation, updateIndexInReplication
protected DocumentConvention conventions
protected java.lang.String map
protected java.lang.String reduce
protected java.lang.Long maxIndexOutputsPerDocument
protected boolean disableInMemoryIndexing
protected java.util.Map<com.mysema.query.types.Path<?>,FieldStorage> stores
protected java.util.Map<java.lang.String,FieldStorage> storesStrings
protected java.util.Map<com.mysema.query.types.Path<?>,SortOptions> indexSortOptions
protected java.util.Map<java.lang.String,SortOptions> indexSortOptionsStrings
protected java.util.Map<com.mysema.query.types.Path<?>,java.lang.String> analyzers
protected java.util.Map<java.lang.String,java.lang.String> analyzersStrings
protected java.util.Map<com.mysema.query.types.Path<?>,SuggestionOptions> indexSuggestions
protected java.util.Map<com.mysema.query.types.Path<?>,FieldTermVector> termVectors
protected java.util.Map<java.lang.String,FieldTermVector> termVectorsStrings
protected java.util.Map<com.mysema.query.types.Path<?>,SpatialOptions> spatialIndexes
protected java.util.Map<java.lang.String,SpatialOptions> spatialIndexesStrings
protected java.util.Map<com.mysema.query.types.Path<?>,FieldIndexing> indexes
protected java.util.Map<java.lang.String,FieldIndexing> indexesStrings
public DocumentConvention getConventions()
public void setConventions(DocumentConvention conventions)
public java.lang.String getIndexName()
public boolean isDisableInMemoryIndexing()
public void setDisableInMemoryIndexing(boolean disableInMemoryIndexing)
public void execute(IDocumentStore store)
store
- public void execute(IDatabaseCommands databaseCommands, DocumentConvention documentConvention)
databaseCommands
- documentConvention
- public IndexDefinition createIndexDefinition()
public boolean isMapReduce()
protected void index(com.mysema.query.types.Path<?> field, FieldIndexing indexing)
field
- indexing
- protected void index(java.lang.String field, FieldIndexing indexing)
field
- indexing
- protected void spatial(com.mysema.query.types.Path<?> field, SpatialOptions indexing)
SpatialOptionsFactory
might be very helpful!field
- indexing
- protected void spatial(java.lang.String field, SpatialOptions indexing)
SpatialOptionsFactory
might be very helpful!field
- indexing
- protected void store(com.mysema.query.types.Path<?> field, FieldStorage storage)
field
- storage
- protected void storeAllFields(FieldStorage storage)
protected void store(java.lang.String field, FieldStorage storage)
field
- storage
- protected void analyze(com.mysema.query.types.Path<?> field, java.lang.String analyzer)
field
- analyzer
- public java.lang.Long getMaxIndexOutputsPerDocument()
public void setMaxIndexOutputsPerDocument(java.lang.Long maxIndexOutputsPerDocument)
maxIndexOutputsPerDocument
- protected void analyze(java.lang.String field, java.lang.String analyzer)
field
- analyzer
- protected void termVector(com.mysema.query.types.Path<?> field, FieldTermVector termVector)
field
- termVector
- protected void termVector(java.lang.String field, FieldTermVector termVector)
field
- termVector
- protected void sort(com.mysema.query.types.Path<?> field, SortOptions sort)
field
- sort
- protected void sort(java.lang.String field, SortOptions sort)
field
- sort
- protected void suggestion(com.mysema.query.types.Path<?> field, SuggestionOptions suggestion)
field
- suggestion
- protected void suggestion(com.mysema.query.types.Path<?> field)
field
- Copyright © 2014. All Rights Reserved.