Package io.milvus.response
Class QueryResultsWrapper
java.lang.Object
io.milvus.response.basic.RowRecordWrapper
io.milvus.response.QueryResultsWrapper
Utility class to wrap response of
query interface.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classInternal-use class to wrap response ofqueryinterface. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected QueryResultsWrapper.RowRecordbuildRowRecord(long index) Gets a row record from result.getFieldWrapper(@NonNull String fieldName) GetsFieldDataWrapperfor a field.longGets the row count of the result.Gets row records list from query result.Methods inherited from class io.milvus.response.basic.RowRecordWrapper
buildRowRecord, getDynamicWrapper, getFieldWrapperInternal
-
Constructor Details
-
QueryResultsWrapper
-
-
Method Details
-
getFieldWrapper
GetsFieldDataWrapperfor a field. ThrowsParamExceptionif the field doesn't exist.- Parameters:
fieldName- field name to get output data- Returns:
FieldDataWrapper- Throws:
ParamException
-
getRowRecords
Gets row records list from query result.- Specified by:
getRowRecordsin classRowRecordWrapper- Returns:
- List of
QueryResultsWrapper.RowRecorda row records list of the query result
-
buildRowRecord
Gets a row record from result. ThrowsParamExceptionif the index is illegal.- Parameters:
index- index of a row- Returns:
RowRecorda row record of the result
-
getRowCount
public long getRowCount()Gets the row count of the result.- Returns:
longrow count of the result
-
getFieldDataList
- Specified by:
getFieldDataListin classRowRecordWrapper
-
getOutputFields
- Specified by:
getOutputFieldsin classRowRecordWrapper
-