public class FieldDataWrapper extends Object
query/search interface.| 构造器和说明 |
|---|
FieldDataWrapper(@NonNull FieldData fieldData) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getDim()
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.
|
long |
getRowCount()
Gets the row count of a field
|
boolean |
isVectorField() |
public FieldDataWrapper(@NonNull
@NonNull 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 List<?> getFieldData() throws IllegalResponseException
IllegalResponseException if the field type is illegal.ListIllegalResponseExceptionCopyright © 2022. All rights reserved.