public class AbstractIndexCreationTask extends AbstractCommonApiForIndexesAndTransformers
Constructor and Description |
---|
AbstractIndexCreationTask() |
Modifier and Type | Method and Description |
---|---|
void |
afterExecute(IDatabaseCommands databaseCommands,
DocumentConvention documentConvention) |
protected void |
analyze(com.mysema.query.types.Path<?> field,
String analyzer)
Register a field to be analyzed
|
protected void |
analyze(String field,
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()
Gets the conventions that should be used when index definition is created.
|
String |
getIndexName()
Generates index name from type name replacing all _ with /
e.g.
|
Long |
getMaxIndexOutputsPerDocument()
Index specific setting that limits the number of map outputs that an index is allowed to create for a one source document.
|
IndexStats.IndexingPriority |
getPriority()
index can have a priority that controls how much power of the indexing process it is allowed to consume.
|
protected void |
index(com.mysema.query.types.Path<?> field,
FieldIndexing indexing)
Register a field to be indexed
|
protected void |
index(String field,
FieldIndexing indexing)
Register a field to be indexed
|
boolean |
isDisableInMemoryIndexing() |
boolean |
isMapReduce()
Gets a value indicating whether this instance is map reduce index definition
|
void |
setConventions(DocumentConvention conventions)
Sets the conventions that should be used when index definition is created.
|
void |
setDisableInMemoryIndexing(boolean disableInMemoryIndexing) |
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 |
setPriority(IndexStats.IndexingPriority priority)
index can have a priority that controls how much power of the indexing process it is allowed to consume.
|
void |
sideBySideExecute(IDatabaseCommands databaseCommands,
DocumentConvention documentConvention,
Etag minimumEtagBeforeReplace,
Date replaceTimeUtc)
Executes the index creation using in side-by-side mode.
|
void |
sideBySideExecute(IDocumentStore store) |
void |
sideBySideExecute(IDocumentStore store,
Etag minimumEtagBeforeReplace,
Date replaceTimeUtc) |
protected void |
sort(com.mysema.query.types.Path<?> field,
SortOptions sort)
Register a field to be sorted
|
protected void |
sort(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(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(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(String field,
FieldTermVector termVector)
Register a field to have term vectors
|
protected DocumentConvention conventions
protected String map
protected String reduce
protected Long maxIndexOutputsPerDocument
protected boolean disableInMemoryIndexing
protected Map<com.mysema.query.types.Path<?>,FieldStorage> stores
protected Map<String,FieldStorage> storesStrings
protected Map<com.mysema.query.types.Path<?>,SortOptions> indexSortOptions
protected Map<String,SortOptions> indexSortOptionsStrings
protected Map<com.mysema.query.types.Path<?>,SuggestionOptions> indexSuggestions
protected Map<com.mysema.query.types.Path<?>,FieldTermVector> termVectors
protected Map<String,FieldTermVector> termVectorsStrings
protected Map<com.mysema.query.types.Path<?>,SpatialOptions> spatialIndexes
protected Map<String,SpatialOptions> spatialIndexesStrings
protected Map<com.mysema.query.types.Path<?>,FieldIndexing> indexes
protected Map<String,FieldIndexing> indexesStrings
public IndexStats.IndexingPriority getPriority()
public void setPriority(IndexStats.IndexingPriority priority)
priority
- Default value: null means that the priority of the index is Normal.public DocumentConvention getConventions()
public void setConventions(DocumentConvention conventions)
public String getIndexName()
'Orders_Totals'
then index name would be 'Orders/Totals'
public boolean isDisableInMemoryIndexing()
public void setDisableInMemoryIndexing(boolean disableInMemoryIndexing)
public void sideBySideExecute(IDocumentStore store)
public void sideBySideExecute(IDocumentStore store, Etag minimumEtagBeforeReplace, Date replaceTimeUtc)
public void execute(IDocumentStore store)
store
- public void sideBySideExecute(IDatabaseCommands databaseCommands, DocumentConvention documentConvention, Etag minimumEtagBeforeReplace, Date replaceTimeUtc)
public void execute(IDatabaseCommands databaseCommands, DocumentConvention documentConvention)
databaseCommands
- documentConvention
- public void afterExecute(IDatabaseCommands databaseCommands, DocumentConvention documentConvention)
public IndexDefinition createIndexDefinition()
public boolean isMapReduce()
true
if this instance is map reduce; otherwise, false
.protected void index(com.mysema.query.types.Path<?> field, FieldIndexing indexing)
field
- indexing
- protected void index(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(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(String field, FieldStorage storage)
field
- storage
- protected void analyze(com.mysema.query.types.Path<?> field, String analyzer)
field
- analyzer
- public Long getMaxIndexOutputsPerDocument()
public void setMaxIndexOutputsPerDocument(Long maxIndexOutputsPerDocument)
protected void analyze(String field, String analyzer)
field
- analyzer
- protected void termVector(com.mysema.query.types.Path<?> field, FieldTermVector termVector)
field
- termVector
- protected void termVector(String field, FieldTermVector termVector)
field
- termVector
- protected void sort(com.mysema.query.types.Path<?> field, SortOptions sort)
field
- sort
- protected void sort(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 © 2016. All Rights Reserved.