Package io.milvus.response
Class DescIndexResponseWrapper
- java.lang.Object
-
- io.milvus.response.DescIndexResponseWrapper
-
public class DescIndexResponseWrapper extends Object
Util class to wrap response ofdescribeIndexinterface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDescIndexResponseWrapper.IndexDescInternal-use class to wrap response ofdescribeIndexinterface.
-
Constructor Summary
Constructors Constructor Description DescIndexResponseWrapper(DescribeIndexResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescIndexResponseWrapper.IndexDescgetIndexDescByFieldName(String fieldName)Get index description by field name.DescIndexResponseWrapper.IndexDescgetIndexDescByIndexName(String indexName)Get index description by index name.List<DescIndexResponseWrapper.IndexDesc>getIndexDescriptions()Get index description of fields.
-
-
-
Constructor Detail
-
DescIndexResponseWrapper
public DescIndexResponseWrapper(DescribeIndexResponse response)
-
-
Method Detail
-
getIndexDescriptions
public List<DescIndexResponseWrapper.IndexDesc> getIndexDescriptions()
Get index description of fields.- Returns:
- List of IndexDesc, index description of fields
-
getIndexDescByFieldName
public DescIndexResponseWrapper.IndexDesc getIndexDescByFieldName(String fieldName)
Get index description by field name. Return null if the field doesn't exist- Parameters:
fieldName- field name to get index description- Returns:
DescIndexResponseWrapper.IndexDescdescription of the index
-
getIndexDescByIndexName
public DescIndexResponseWrapper.IndexDesc getIndexDescByIndexName(String indexName)
Get index description by index name. Return null if the index doesn't exist- Parameters:
indexName- index name to get index description- Returns:
DescIndexResponseWrapper.IndexDescdescription of the index
-
-