Package stroom.query.api.v2
Class Sort.Builder
- java.lang.Object
-
- stroom.query.api.v2.Sort.Builder
-
-
Method Summary
Modifier and Type Method Description Sort
build()
Sort.Builder
direction(Sort.SortDirection value)
Sort.Builder
order(java.lang.Integer value)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(Sort sort)
-
-
Method Detail
-
order
public Sort.Builder order(java.lang.Integer value)
- Parameters:
value
- Where multiple fields are sorted this value describes the sort order, with 0 being the first field to sort on- Returns:
- The
Sort.Builder
, enabling method chaining
-
direction
public Sort.Builder direction(Sort.SortDirection value)
- Parameters:
value
- The direction to sort in, ASCENDING or DESCENDING- Returns:
- The
Sort.Builder
, enabling method chaining
-
build
public Sort build()
-
-