public interface IndexSetService
| Modifier and Type | Method and Description |
|---|---|
int |
delete(org.bson.types.ObjectId id)
Delete the index set with the given ID.
|
int |
delete(String id) |
List<IndexSetConfig> |
findAll()
Retrieve all index sets.
|
List<IndexSetConfig> |
findByIds(Set<String> ids)
Retrieve all index sets which match one of the specified IDs.
|
Optional<IndexSetConfig> |
findOne(org.mongojack.DBQuery.Query query)
Retrieve an index set based on the given
DBQuery.Query. |
List<IndexSetConfig> |
findPaginated(Set<String> indexSetIds,
int limit,
int skip)
Retrieve a paginated set of index set.
|
Optional<IndexSetConfig> |
get(org.bson.types.ObjectId id)
Retrieve index set with the given ID.
|
Optional<IndexSetConfig> |
get(String id) |
IndexSetConfig |
getDefault()
Retrieve the default index set.
|
IndexSetConfig |
save(IndexSetConfig indexSetConfig)
Save the given index set.
|
Optional<IndexSetConfig> get(org.bson.types.ObjectId id)
Optional<IndexSetConfig> get(String id)
get(ObjectId)IndexSetConfig getDefault()
IllegalStateException if the default index set does not exist.Optional<IndexSetConfig> findOne(org.mongojack.DBQuery.Query query)
DBQuery.Query.List<IndexSetConfig> findAll()
List<IndexSetConfig> findByIds(Set<String> ids)
List<IndexSetConfig> findPaginated(Set<String> indexSetIds, int limit, int skip)
indexSetIds - List of inde set ids to returnlimit - Maximum number of index setsskip - Number of index sets to skipIndexSetConfig save(IndexSetConfig indexSetConfig)
indexSetConfig - The index set to save.IndexSetConfig instance of the saved index set (with non-null id field).int delete(org.bson.types.ObjectId id)
id - The ID of the index set.int delete(String id)
delete(ObjectId)Copyright © 2012–2021 Graylog, Inc.. All rights reserved.