public class QueryResultsWrapper
extends java.lang.Object
query
interface.Modifier and Type | Class and Description |
---|---|
static class |
QueryResultsWrapper.RowRecord
Internal-use class to wrap response of
query interface. |
Constructor and Description |
---|
QueryResultsWrapper(@NonNull io.milvus.grpc.QueryResults results) |
Modifier and Type | Method and Description |
---|---|
FieldDataWrapper |
getDynamicWrapper()
Get the dynamic field.
|
FieldDataWrapper |
getFieldWrapper(@NonNull java.lang.String fieldName)
Gets
FieldDataWrapper for a field. |
long |
getRowCount()
Gets the row count of a query result.
|
QueryResultsWrapper.RowRecord |
getRowRecord(long index)
Gets a row record from query result.
|
java.util.List<QueryResultsWrapper.RowRecord> |
getRowRecords()
Gets row records list from query result.
|
public QueryResultsWrapper(@NonNull @NonNull io.milvus.grpc.QueryResults results)
public FieldDataWrapper getFieldWrapper(@NonNull @NonNull java.lang.String fieldName) throws ParamException
FieldDataWrapper
for a field.
Throws ParamException
if the field doesn't exist.fieldName
- field name to get output dataFieldDataWrapper
ParamException
public FieldDataWrapper getDynamicWrapper() throws ParamException
ParamException
if the dynamic field doesn't exist.FieldDataWrapper
ParamException
public long getRowCount()
long
row count of the query resultpublic QueryResultsWrapper.RowRecord getRowRecord(long index) throws ParamException
ParamException
if the index is illegal.RowRecord
a row record of the query resultParamException
public java.util.List<QueryResultsWrapper.RowRecord> getRowRecords()
List
a row records list of the query result