Package io.metaloom.qdrant.client.util
Class ModelHelper
java.lang.Object
io.metaloom.qdrant.client.util.ModelHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic Points.PointStructpoint(long id, float[] vectorData, Map<String, JsonWithInt.Value> payload) static Points.PointStructpoint(Points.PointId id, float[] vectorData, Map<String, JsonWithInt.Value> payload) Construct a newPoints.PointStructusing the provided data.static Points.PointStructpoint(String uuid, float[] vectorData, Map<String, JsonWithInt.Value> payload) static Points.PointStructpoint(UUID uuid, float[] vectorData, Map<String, JsonWithInt.Value> payload) static Points.PointIdpointId(long id) Convert the number into aPoints.PointIdobject.static Points.PointIdConstruct aPoints.PointIdfrom the provided uuid string.static Points.PointIdConstruct aPoints.PointIdfrom the provided uuid.static List<Points.PointId>pointIds(long... ids) Create a list ofPoints.PointIddstatic JsonWithInt.ValueConvert the string into a value model.static Points.Vectorvector(float[] vector) Convert the float array into a vector model.static Points.WithPayloadSelectorstatic Points.WithVectorsSelector
-
Method Details
-
vector
Convert the float array into a vector model.- Parameters:
vector-- Returns:
-
value
Convert the string into a value model.- Parameters:
text-- Returns:
-
pointId
Convert the number into aPoints.PointIdobject.- Parameters:
id-- Returns:
-
pointId
Construct aPoints.PointIdfrom the provided uuid.- Parameters:
uuid-- Returns:
-
pointId
Construct aPoints.PointIdfrom the provided uuid string.- Parameters:
uuid-- Returns:
-
pointIds
Create a list ofPoints.PointIdd- Parameters:
ids-- Returns:
-
point
public static Points.PointStruct point(String uuid, float[] vectorData, Map<String, JsonWithInt.Value> payload) -
point
public static Points.PointStruct point(UUID uuid, float[] vectorData, Map<String, JsonWithInt.Value> payload) -
point
public static Points.PointStruct point(long id, float[] vectorData, Map<String, JsonWithInt.Value> payload) -
point
public static Points.PointStruct point(Points.PointId id, float[] vectorData, Map<String, JsonWithInt.Value> payload) Construct a newPoints.PointStructusing the provided data.- Parameters:
id-vectorData-payload-- Returns:
-
withPayload
-
withVector
-