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 TypeMethodDescriptionvoid
Builds all custom indexes (eg metadata)void
buildCustomIndexesFor
(IndexableType indexableType) Builds for a specific indexable type.void
close()
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.Indexer
Builds all custom indexes (eg metadata)- Specified by:
buildAllCustom
in interfaceIndexDao.Indexer
-
buildCustomIndexesFor
Description copied from interface:IndexDao.Indexer
Builds for a specific indexable type.- Specified by:
buildCustomIndexesFor
in interfaceIndexDao.Indexer
- Parameters:
indexableType
- the indexable type
-
close
public void close()Description copied from interface:IndexDao.Indexer
Ends the indexing process.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceIndexDao.Indexer
-