Module spring.data.mongodb
Class SearchIndexInfo
java.lang.Object
org.springframework.data.mongodb.core.index.SearchIndexInfo
Index information for a MongoDB Search Index.
- Since:
- 4.5
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptiongetId()The id of the index.static SearchIndexInfoof(org.bson.Document indexDocument) Create an index from its BSONDocumentrepresentation into aSearchIndexInfo.static SearchIndexInfoParse a BSON document describing an index into aSearchIndexInfo.
-
Method Details
-
parse
Parse a BSON document describing an index into aSearchIndexInfo.- Parameters:
source- BSON document describing the index.- Returns:
- a new
SearchIndexInfoinstance.
-
of
Create an index from its BSONDocumentrepresentation into aSearchIndexInfo.- Parameters:
indexDocument- BSON document describing the index.- Returns:
- a new
SearchIndexInfoinstance.
-
getId
The id of the index. Can be null, eg. for an index not yet created.- Returns:
- can be null.
-
getStatus
- Returns:
- the current status of the index.
-
getIndexDefinition
- Returns:
- the current index definition.
-