Class GRPC

java.lang.Object
io.weaviate.client.v1.grpc.GRPC

public class GRPC extends Object
  • Constructor Details

  • Method Details

    • raw

      public Raw raw()
    • arguments

      public GRPC.Arguments arguments()
    • toByteString

      public static com.google.protobuf.ByteString toByteString(Float[] vector)
      Encode Float[] to ByteString.
    • toByteString

      public static com.google.protobuf.ByteString toByteString(float[] vector)
      Encode float[] to ByteString.
    • toByteString

      public static com.google.protobuf.ByteString toByteString(Float[][] vectors)
      Encode Float[][] to ByteString.

      The first 2 bytes of the resulting ByteString encode the number of dimensions (uint16 / short) followed by concatenated vectors (4 bytes per element).

    • fromByteString

      public static Float[] fromByteString(com.google.protobuf.ByteString bs)
      Decode ByteString into a Float[]. ByteString size must be a multiple of Float.BYTES, throws IllegalArgumentException otherwise.
    • fromByteStringMulti

      public static Float[][] fromByteStringMulti(com.google.protobuf.ByteString bs)
      Decode ByteString into a Float[][].