FilterParams implementation for com.mysql.cj.xdevapi.Collection syntax.
| Access | Constructor and Description |
|---|---|
| public | |
| public | DocFilterParams(String
Schema name schemaName, String Collection name collectionName, boolean Whether OFFSET is supported or not supportsOffset)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | setFields(Expression
projection expression docProjection)Parse projection expressions into X Protocol Projection objects. |
| public void | setFields(String...
projection expression projection)Implements abstract com. Implements com. Parse projection expressions into X Protocol Projection objects. |
| DocFilterParams | back to summary |
|---|---|
| public DocFilterParams(String schemaName, String collectionName) Constructor. | |
| DocFilterParams | back to summary |
|---|---|
| public DocFilterParams(String schemaName, String collectionName, boolean supportsOffset) Constructor. | |
| setFields | back to summary |
|---|---|
| public void setFields(Expression docProjection) Parse projection expressions into X Protocol Projection objects.
| |
| setFields | back to summary |
|---|---|
| public void setFields(String... projection) Implements abstract com. Implements 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();
| |