Package io.qdrant.client.utils
Class PayloadUtil
java.lang.Object
io.qdrant.client.utils.PayloadUtil
Utility class for working with Payloads.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConverts a payload struct to a Java Map.toHashMap
(Map<String, JsonWithInt.Value> payload) Converts a payload map to a Java Map.static Map<String,
JsonWithInt.Value> Converts a map to a payload map.static JsonWithInt.Struct
toPayloadStruct
(Map<String, Object> inputMap) Converts a map to a payload struct.
-
Constructor Details
-
PayloadUtil
public PayloadUtil()
-
-
Method Details
-
toPayloadStruct
Converts a map to a payload struct.- Parameters:
inputMap
- The input map to convert.- Returns:
- The converted payload struct.
-
toPayload
Converts a map to a payload map.- Parameters:
inputMap
- The input map to convert.- Returns:
- The converted payload map.
-
payloadStructToHashMap
Converts a payload struct to a Java Map.- Parameters:
struct
- The payload struct to convert.- Returns:
- The converted hash map.
-
toHashMap
Converts a payload map to a Java Map.- Parameters:
payload
- The payload map to convert.- Returns:
- The converted hash map.
-