Class MongoIndexer
java.lang.Object
dev.getelements.elements.dao.mongo.MongoIndexer
- All Implemented Interfaces:
IndexDao.Indexer,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionMongoIndexer(dev.morphia.Datastore datastore, MongoDBUtils mongoDBUtils, Map<IndexableType, Indexable> indexablesByType) -
Method Summary
Modifier and TypeMethodDescriptionvoidBuilds all custom indexes (eg metadata)voidbuildCustomIndexesFor(IndexableType indexableType) Builds for a specific indexable type.voidclose()Ends the indexing process.
-
Constructor Details
-
MongoIndexer
@Inject public MongoIndexer(dev.morphia.Datastore datastore, MongoDBUtils mongoDBUtils, Map<IndexableType, Indexable> indexablesByType)
-
-
Method Details
-
buildAllCustom
public void buildAllCustom()Description copied from interface:IndexDao.IndexerBuilds all custom indexes (eg metadata)- Specified by:
buildAllCustomin interfaceIndexDao.Indexer
-
buildCustomIndexesFor
Description copied from interface:IndexDao.IndexerBuilds for a specific indexable type.- Specified by:
buildCustomIndexesForin interfaceIndexDao.Indexer- Parameters:
indexableType- the indexable type
-
close
public void close()Description copied from interface:IndexDao.IndexerEnds the indexing process.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceIndexDao.Indexer
-