public class FieldDataWrapper
extends java.lang.Object
query/search interface.| Constructor and Description |
|---|
FieldDataWrapper(@NonNull io.milvus.grpc.FieldData fieldData) |
| Modifier and Type | Method and 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 of List Float,
binary vector field return List of ByteBuffer
int64 field return List of Long
int32/int16/int8 field return List of Integer
boolean field return List of Boolean
float field return List of Float
double field return List of Double
varchar field return List of String
etc.
|
long |
getRowCount()
Gets the row count of a field.
|
boolean |
isVectorField() |
public FieldDataWrapper(@NonNull
@NonNull io.milvus.grpc.FieldData fieldData)
public boolean isVectorField()
public int getDim()
throws IllegalResponseException
IllegalResponseException if the field is not a vector filed.int dimension of the vector fieldIllegalResponseExceptionpublic long getRowCount()
throws IllegalResponseException
IllegalResponseException if the field type is illegal.long row count of the fieldIllegalResponseExceptionpublic java.util.List<?> getFieldData()
throws IllegalResponseException
IllegalResponseException if the field type is illegal.ListIllegalResponseException