Class PayloadUtil

java.lang.Object
io.qdrant.client.utils.PayloadUtil

public class PayloadUtil extends Object
Utility class for working with Payloads.
  • Constructor Details

    • PayloadUtil

      public PayloadUtil()
  • Method Details

    • toPayloadStruct

      public static JsonWithInt.Struct toPayloadStruct(Map<String,Object> inputMap)
      Converts a map to a payload struct.
      Parameters:
      inputMap - The input map to convert.
      Returns:
      The converted payload struct.
    • toPayload

      public static Map<String,JsonWithInt.Value> toPayload(Map<String,Object> inputMap)
      Converts a map to a payload map.
      Parameters:
      inputMap - The input map to convert.
      Returns:
      The converted payload map.
    • payloadStructToHashMap

      public static Map<String,Object> payloadStructToHashMap(JsonWithInt.Struct struct)
      Converts a payload struct to a Java Map.
      Parameters:
      struct - The payload struct to convert.
      Returns:
      The converted hash map.
    • toHashMap

      public static Map<String,Object> toHashMap(Map<String,JsonWithInt.Value> payload)
      Converts a payload map to a Java Map.
      Parameters:
      payload - The payload map to convert.
      Returns:
      The converted hash map.