Package io.stargate.sdk.rest.domain
Class SearchTableQuery
java.lang.Object
io.stargate.sdk.rest.domain.SearchTableQuery
Build a queyr with filter clause
- Author:
- Cedrick LUNVEN (@clunven) QueryDocument.builder() .withPageSize(in) .where("").isGreatherThan("") .where("").isGreatherThan("")
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder pattern.static classHelper to build a where clause in natural language (fluent API) TODO the WHERE CLAUSE CAN HAVE MULTIPLE CRITERIA FOR A FIELD where("field").greaterThan(40) .lessThan(50); -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intNumber of records to retrieve on a page.static final intLimit set for the API. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static accees to a builder instance.Getter accessor for attribute 'fieldsToRetrieve'.Getter accessor for attribute 'fieldsToSort'.intGetter accessor for attribute 'pageSize'.Getter accessor for attribute 'pageState'.getWhere()Getter accessor for attribute 'where'.
-
Field Details
-
PAGING_SIZE_MAX
public static final int PAGING_SIZE_MAXLimit set for the API.- See Also:
-
DEFAULT_PAGING_SIZE
public static final int DEFAULT_PAGING_SIZENumber of records to retrieve on a page. MAXIMUM 100.- See Also:
-
-
Method Details
-
builder
static accees to a builder instance.- Returns:
- SearchTableQueryBuilder
-
getPageSize
public int getPageSize()Getter accessor for attribute 'pageSize'.- Returns:
- current value of 'pageSize'
-
getPageState
Getter accessor for attribute 'pageState'.- Returns:
- current value of 'pageState'
-
getWhere
Getter accessor for attribute 'where'.- Returns:
- current value of 'where'
-
getFieldsToRetrieve
Getter accessor for attribute 'fieldsToRetrieve'.- Returns:
- current value of 'fieldsToRetrieve'
-
getFieldsToSort
Getter accessor for attribute 'fieldsToSort'.- Returns:
- current value of 'fieldsToSort'
-