Package com.datastax.astra.client.model
Class Sorts
java.lang.Object
com.datastax.astra.client.model.Sorts
Utility class to hold the sort options for a query.
-
Method Details
-
ascending
Build a sort clause ascending.- Parameters:
field
- current field- Returns:
- sort instance.
-
descending
Build a sort clause DESCENDING.- Parameters:
field
- current field- Returns:
- sort instance.
-
vector
Build a sort clause with a vector.- Parameters:
embeddings
- vector of embeddings- Returns:
- sort instance.
-
vectorize
Build a sort clause with vectorize.- Parameters:
vectorize
- vector of embeddings- Returns:
- sort instance.
-