Package io.milvus.Response
Class FieldDataWrapper
- java.lang.Object
-
- io.milvus.Response.FieldDataWrapper
-
public class FieldDataWrapper extends Object
Utility class to wrap response ofquery/searchinterface.
-
-
Constructor Summary
Constructors Constructor Description FieldDataWrapper(@NonNull FieldData fieldData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDim()Gets the dimension value of a vector field.List<?>getFieldData()Returns the field data according to its type: float vector field return List<List<Float>>, binary vector field return List<ByteBuffer>, int64 field return List<Long>, boolean field return List<Boolean>, etc.longgetRowCount()Gets the row count of a field.booleanisVectorField()
-
-
-
Constructor Detail
-
FieldDataWrapper
public FieldDataWrapper(@NonNull @NonNull FieldData fieldData)
-
-
Method Detail
-
isVectorField
public boolean isVectorField()
-
getDim
public int getDim() throws IllegalResponseExceptionGets the dimension value of a vector field. ThrowIllegalResponseExceptionif the field is not a vector filed.- Returns:
intdimension of the vector field- Throws:
IllegalResponseException
-
getRowCount
public long getRowCount() throws IllegalResponseExceptionGets the row count of a field. * ThrowsIllegalResponseExceptionif the field type is illegal.- Returns:
longrow count of the field- Throws:
IllegalResponseException
-
getFieldData
public List<?> getFieldData() throws IllegalResponseException
Returns the field data according to its type: float vector field return List<List<Float>>, binary vector field return List<ByteBuffer>, int64 field return List<Long>, boolean field return List<Boolean>, etc. ThrowsIllegalResponseExceptionif the field type is illegal.- Returns:
List- Throws:
IllegalResponseException
-
-