Package io.metaloom.qdrant.client.util
Class ModelHelper
java.lang.Object
io.metaloom.qdrant.client.util.ModelHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic Points.PointStructnamedPoint(Points.PointId id, String vectorName, float[] vectorData, Map<String, JsonWithInt.Value> payload) static Points.PointStructnamedPoint(Long id, String vectorName, float[] vectorData, Map<String, JsonWithInt.Value> payload) static Points.NamedVectorsnamedVector(String name, float[] vector) static 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 Points.PointVectorspointVector(long id, String name, float[] vector) static Points.PointsSelectorselectByIds(Long... ids) static JsonWithInt.ValueConvert the string into a value model.static Points.Vectorvector(float[] vector) Convert the float array into a vector model.vectorList(Float... vectors) static Points.WithPayloadSelectorstatic Points.WithVectorsSelector
-
Method Details
-
vector
Convert the float array into a vector model.- Parameters:
vector-- Returns:
-
vectorList
-
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:
-
namedPoint
public static Points.PointStruct namedPoint(Long id, String vectorName, float[] vectorData, Map<String, JsonWithInt.Value> payload) -
namedPoint
public static Points.PointStruct namedPoint(Points.PointId id, String vectorName, float[] vectorData, Map<String, JsonWithInt.Value> payload) -
selectByIds
-
withPayload
-
withVector
-
pointVector
-
namedVector
-