FilterParams.
| Modifier and Type | Field and Description |
|---|---|
| protected MysqlxDatatypes. | |
| protected MysqlxCrud. | |
| private MysqlxExpr. | |
| protected String | |
| protected List | |
| protected String[] | |
| private List | |
| private MysqlxExpr. | |
| pack-priv String | |
| protected boolean | |
| protected Long | |
| protected FilterParams. | |
| protected FilterParams. | |
| protected Long | |
| private List | |
| protected String[] | |
| private Map | |
| protected String[] | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| public | AbstractFilterParams(String
Schema name schemaName, String Collection name collectionName, boolean Whether offset is supported or not supportsOffset, boolean Are relational columns identifiers allowed? isRelational)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addArg(String
bind key name, Object bind value value)Implements com. Set binding. |
| public void | |
| public Object | |
| public Object | getCollection()
Implements com. Get X Protocol Collection object. |
| public Object | |
| public Object | getFields()
Implements com. Get X Protocol Projection objects. |
| public Object | getGrouping()
Implements com. Get X Protocol Expr objects for groupBy. |
| public Object | getGroupingCriteria()
Implements com. Get X Protocol Expr objects for grouping criteria. |
| public Long | |
| public FilterParams. | |
| public FilterParams. | getLockOption()
Implements com. Get |
| public Long | getOffset()
Implements com. Get number of rows to skip before finding others. |
| public Object | |
| public boolean | isRelational()
Implements com. Are relational columns identifiers allowed? |
| public void | setCriteria(String
expression criteriaString)Implements com. Parse criteriaString into X Protocol Expr object. |
| public abstract void | setFields(String...
projection expression projection)Redeclares com. Parse projection expressions into X Protocol Projection objects. |
| public void | setGrouping(String...
groupBy expression groupBy)Implements com. Parse groupBy expressions into X Protocol Expr objects. |
| public void | setGroupingCriteria(String
having expression having)Implements com. Parse having expressions into X Protocol Expr objects. |
| public void | setLimit(Long
maximum rows to find limit)Implements com. Set maximum rows to find. |
| public void | setLock(FilterParams.
Implements com. Set |
| public void | setLockOption(FilterParams.
Implements com. Set |
| public void | setOffset(Long
maximum rows to skip offset)Implements com. Set number of rows to skip before finding others. |
| public void | setOrder(String...
order expressions orderExpression)Implements com. Parse order expressions into X Protocol Order objects. |
| public boolean | supportsOffset()
Implements com. Whether offset clause is supported in the statement or not. |
| public void | verifyAllArgsBound()
Implements com. Verify that all arguments are bound. |
| args | back to summary |
|---|---|
| protected MysqlxDatatypes. | |
| collection | back to summary |
|---|---|
| protected MysqlxCrud. | |
| criteria | back to summary |
|---|---|
| private MysqlxExpr. | |
| criteriaStr | back to summary |
|---|---|
| protected String criteriaStr | |
| fields | back to summary |
|---|---|
| protected List<MysqlxCrud. | |
| groupBy | back to summary |
|---|---|
| protected String[] groupBy | |
| grouping | back to summary |
|---|---|
| private List<MysqlxExpr. | |
| groupingCriteria | back to summary |
|---|---|
| private MysqlxExpr. | |
| having | back to summary |
|---|---|
| pack-priv String having | |
| isRelational | back to summary |
|---|---|
| protected boolean isRelational | |
| limit | back to summary |
|---|---|
| protected Long limit | |
| lock | back to summary |
|---|---|
| protected FilterParams. | |
| lockOption | back to summary |
|---|---|
| protected FilterParams. | |
| offset | back to summary |
|---|---|
| protected Long offset | |
| order | back to summary |
|---|---|
| private List<MysqlxCrud. | |
| orderExpr | back to summary |
|---|---|
| protected String[] orderExpr | |
| placeholderNameToPosition | back to summary |
|---|---|
| private Map<String, Integer> placeholderNameToPosition | |
| projection | back to summary |
|---|---|
| protected String[] projection | |
| supportsOffset | back to summary |
|---|---|
| protected boolean supportsOffset | |
| AbstractFilterParams | back to summary |
|---|---|
| public AbstractFilterParams(String schemaName, String collectionName, boolean supportsOffset, boolean isRelational) Constructor. | |
| addArg | back to summary |
|---|---|
| public void addArg(String name, Object value) Implements com. Doc from com. Set binding.
this.collection.find("a = :arg1 or b = :arg2").bind("arg1", 1).bind("arg2", 2).execute();
| |
| clearArgs | back to summary |
|---|---|
| public void clearArgs() Implements com. Doc from com. Remove all current bindings.
| |
| getArgs | back to summary |
|---|---|
| public Object getArgs() Implements com. Doc from com. Get binding arguments. | |
| getCollection | back to summary |
|---|---|
| public Object getCollection() Implements com. Doc from com. Get X Protocol Collection object. | |
| getCriteria | back to summary |
|---|---|
| public Object getCriteria() Implements com. Doc from com. Get the search criteria. | |
| getFields | back to summary |
|---|---|
| public Object getFields() Implements com. Doc from com. Get X Protocol Projection objects. | |
| getGrouping | back to summary |
|---|---|
| public Object getGrouping() Implements com. Doc from com. Get X Protocol Expr objects for groupBy. | |
| getGroupingCriteria | back to summary |
|---|---|
| public Object getGroupingCriteria() Implements com. Doc from com. Get X Protocol Expr objects for grouping criteria. | |
| getLimit | back to summary |
|---|---|
| public Long getLimit() Implements com. Doc from com. Get max number of rows to filter. | |
| getLock | back to summary |
|---|---|
| public FilterParams. Implements com. Doc from com. Get
| |
| getLockOption | back to summary |
|---|---|
| public FilterParams. Implements com. Doc from com. Get
| |
| getOffset | back to summary |
|---|---|
| public Long getOffset() Implements com. Doc from com. Get number of rows to skip before finding others. | |
| getOrder | back to summary |
|---|---|
| public Object getOrder() Implements com. Doc from com. Get X Protocol Order objects. | |
| isRelational | back to summary |
|---|---|
| public boolean isRelational() Implements com. Doc from com. Are relational columns identifiers allowed?
| |
| setCriteria | back to summary |
|---|---|
| public void setCriteria(String criteriaString) Implements com. Doc from com. Parse criteriaString into X Protocol Expr object.
docs = this.collection.find("$.x1 = 29 | 15").execute();
table.delete().where("age == 13").execute();
| |
| setFields | back to summary |
|---|---|
| public abstract void setFields(String... projection) Redeclares com. Doc from com. Parse projection expressions into X Protocol Projection objects.
collection.find().fields("CAST($.x as SIGNED) as x").execute();
table.select("_id, name, birthday, age").execute();
table.select("age as age_group, count(name) as cnt, something").execute();
| |
| setGrouping | back to summary |
|---|---|
| public void setGrouping(String... groupBy) Implements com. Doc from com. Parse groupBy expressions into X Protocol Expr objects.
SelectStatement stmt = table.select("age as age_group, count(name) as cnt, something");
stmt.groupBy("something", "age_group");
| |
| setGroupingCriteria | back to summary |
|---|---|
| public void setGroupingCriteria(String having) Implements com. Doc from com. Parse having expressions into X Protocol Expr objects.
SelectStatement stmt = table.select("age as age_group, count(name) as cnt, something");
stmt.groupBy("something", "age_group");
stmt.having("cnt > 1");
| |
| setLimit | back to summary |
|---|---|
| public void setLimit(Long limit) Implements com. Doc from com. Set maximum rows to find. For example, to find the 3 first rows:
docs = this.collection.find().orderBy("$._id").limit(3).execute();
| |
| setLock | back to summary |
|---|---|
| public void setLock(FilterParams. Implements com. Doc from com. Set
| |
| setLockOption | back to summary |
|---|---|
| public void setLockOption(FilterParams. Implements com. Doc from com. Set
| |
| setOffset | back to summary |
|---|---|
| public void setOffset(Long offset) Implements com. Doc from com. Set number of rows to skip before finding others. For example, to skip 1 row and find other 3 rows:
docs = this.collection.find().orderBy("$._id").limit(3).skip(1).execute();
| |
| setOrder | back to summary |
|---|---|
| public void setOrder(String... orderExpression) Implements com. Doc from com. Parse order expressions into X Protocol Order objects.
DocResult docs = this.collection.find().orderBy("$._id").execute();
docs = this.collection.find().sort("$.x", "$.y").execute();
| |
| supportsOffset | back to summary |
|---|---|
| public boolean supportsOffset() Implements com. Doc from com. Whether offset clause is supported in the statement or not. Note that setting offset values is always possible, even if they are not supported.
| |
| verifyAllArgsBound | back to summary |
|---|---|
| public void verifyAllArgsBound() Implements com. Doc from com. Verify that all arguments are bound. Throws
| |