Class FieldDataWrapper
- java.lang.Object
-
- io.milvus.response.FieldDataWrapper
-
public class FieldDataWrapper extends java.lang.Object
Utility class to wrap response ofquery/search
interface.
-
-
Constructor Summary
Constructor Description FieldDataWrapper(@NonNull io.milvus.grpc.FieldData fieldData)
-
Method Summary
Modifier and Type Method Description int
getDim()
Gets the dimension value of a vector field.java.util.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.long
getRowCount()
Gets the row count of a field.boolean
isVectorField()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
FieldDataWrapper
public FieldDataWrapper(@NonNull @NonNull io.milvus.grpc.FieldData fieldData)
-
-
Method Detail
-
isVectorField
public boolean isVectorField()
-
getDim
public int getDim() throws IllegalResponseException
Gets the dimension value of a vector field. ThrowIllegalResponseException
if the field is not a vector filed.- Returns:
int
dimension of the vector field- Throws:
IllegalResponseException
-
getRowCount
public long getRowCount() throws IllegalResponseException
Gets the row count of a field. * ThrowsIllegalResponseException
if the field type is illegal.- Returns:
long
row count of the field- Throws:
IllegalResponseException
-
getFieldData
public java.util.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. ThrowsIllegalResponseException
if the field type is illegal.- Returns:
List
- Throws:
IllegalResponseException
-
-