Class FieldDataWrapper


  • public class FieldDataWrapper
    extends java.lang.Object
    Utility class to wrap response of query/search interface.
    • Constructor Summary

      Constructors 
      Constructor Description
      FieldDataWrapper​(@NonNull io.milvus.grpc.FieldData fieldData)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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 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()  
      • 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()
      • getFieldData

        public java.util.List<?> getFieldData()
                                       throws IllegalResponseException
        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. Throws IllegalResponseException if the field type is illegal.
        Returns:
        List
        Throws:
        IllegalResponseException