Package io.qdrant.client.utils
Class SelectorUtil
java.lang.Object
io.qdrant.client.utils.SelectorUtil
Utility class for working with Selectors.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Points.PointsSelector
filterSelector
(Points.Filter filter) Creates aPoints.PointsSelector
with the specified Filter.static Points.PointsSelector
idsSelector
(Points.PointId... ids) Creates aPoints.PointsSelector
with the specified array of point IDs.static Points.PointsSelector
idsSelector
(List<Points.PointId> ids) Creates aPoints.PointsSelector
with the specified list of point IDs.static Points.WithPayloadSelector
Creates aPoints.WithPayloadSelector
with the enable flag set to true.static Points.WithPayloadSelector
withPayload
(String... fields) Creates aPoints.WithPayloadSelector
with the specified fields included in the payload.static Points.WithVectorsSelector
Creates aPoints.WithVectorsSelector
with the enable flag set to true.static Points.WithVectorsSelector
withVectors
(String... vectors) Creates aPoints.WithVectorsSelector
with the specified vector fields included.
-
Constructor Details
-
SelectorUtil
public SelectorUtil()
-
-
Method Details
-
withPayload
Creates aPoints.WithPayloadSelector
with the enable flag set to true.- Returns:
- The created
Points.WithPayloadSelector
object.
-
withVectors
Creates aPoints.WithVectorsSelector
with the enable flag set to true.- Returns:
- The created
Points.WithVectorsSelector
object.
-
withPayload
Creates aPoints.WithPayloadSelector
with the specified fields included in the payload.- Parameters:
fields
- The fields to include in the payload.- Returns:
- The created
Points.WithPayloadSelector
object.
-
withVectors
Creates aPoints.WithVectorsSelector
with the specified vector fields included.- Parameters:
vectors
- The names of the vectors to include.- Returns:
- The created
Points.WithVectorsSelector
object.
-
idsSelector
Creates aPoints.PointsSelector
with the specified list of point IDs.- Parameters:
ids
- The list of point IDs.- Returns:
- The created
Points.PointsSelector
object.
-
idsSelector
Creates aPoints.PointsSelector
with the specified array of point IDs.- Parameters:
ids
- The array of point IDs.- Returns:
- The created
Points.PointsSelector
object.
-
filterSelector
Creates aPoints.PointsSelector
with the specified Filter.- Parameters:
filter
- The Filter for the selector.- Returns:
- The created
Points.PointsSelector
object.
-