Package org.graylog2.indexer.indexset
Interface IndexSetService
- All Known Implementing Classes:
MongoIndexSetService
public interface IndexSetService
-
Method Summary
Modifier and TypeMethodDescriptionint
int
delete
(org.bson.types.ObjectId id) Delete the index set with the given ID.findAll()
Retrieve all index sets.Retrieve all index sets which match one of the specified IDs.findMany
(org.mongojack.DBQuery.Query query) findOne
(org.mongojack.DBQuery.Query query) Retrieve an index set based on the givenDBQuery.Query
.findPaginated
(Set<String> indexSetIds, int limit, int skip) Retrieve a paginated set of index set.get
(org.bson.types.ObjectId id) Retrieve index set with the given ID.Retrieve the default index set.save
(IndexSetConfig indexSetConfig) Save the given index set.
-
Method Details
-
get
Retrieve index set with the given ID. -
get
- See Also:
-
getDefault
IndexSetConfig getDefault()Retrieve the default index set. Throws anIllegalStateException
if the default index set does not exist. -
findOne
Retrieve an index set based on the givenDBQuery.Query
.- Returns:
- index set
-
findAll
List<IndexSetConfig> findAll()Retrieve all index sets.- Returns:
- All index sets.
-
findByIds
Retrieve all index sets which match one of the specified IDs.- Returns:
- All index sets matching one of the given IDs.
-
findMany
-
findPaginated
Retrieve a paginated set of index set.- Parameters:
indexSetIds
- List of inde set ids to returnlimit
- Maximum number of index setsskip
- Number of index sets to skip- Returns:
- Paginated index sets
-
save
Save the given index set.- Parameters:
indexSetConfig
- The index set to save.- Returns:
- The
IndexSetConfig
instance of the saved index set (with non-nullid
field).
-
delete
int delete(org.bson.types.ObjectId id) Delete the index set with the given ID.- Parameters:
id
- The ID of the index set.- Returns:
- The number of deleted index sets.
-
delete
- See Also:
-