Package dev.getelements.elements.sdk.dao
Interface IndexDao
- All Known Implementing Classes:
MongoIndexDao
public interface IndexDao
Provides an abstract way to apply indexes to the database.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceExecutes an index operation within a scope which controls multiple concurrent accesses -
Method Summary
Modifier and TypeMethodDescriptionStarts the index process.Pagination<IndexPlan<?>> getPlans(int offset, int count) Gets all plans in the system.voidplanAll()Plans all index operations.voidplanType(IndexableType type) Plans a specific type.
-
Method Details
-
planAll
void planAll()Plans all index operations. -
planType
Plans a specific type.- Parameters:
type- the type
-
beginIndexing
IndexDao.Indexer beginIndexing()Starts the index process.- Returns:
- the
IndexDao.Indexer
-
getPlans
Gets all plans in the system.- Parameters:
offset-count-- Returns:
-