Class TableFilterParams

java.lang.Object
com.mysql.cj.xdevapi.AbstractFilterParams
com.mysql.cj.xdevapi.TableFilterParams
All Implemented Interfaces:
FilterParams

public class TableFilterParams
extends AbstractFilterParams
FilterParams implementation for Table syntax.
  • Constructor Details

    • TableFilterParams

      public TableFilterParams​(java.lang.String schemaName, java.lang.String collectionName)
      Constructor.
      Parameters:
      schemaName - Schema name
      collectionName - Collection name
    • TableFilterParams

      public TableFilterParams​(java.lang.String schemaName, java.lang.String collectionName, boolean supportsOffset)
      Constructor.
      Parameters:
      schemaName - Schema name
      collectionName - Collection name
      supportsOffset - Whether offset is supported or not
  • Method Details

    • setFields

      public void setFields​(java.lang.String... projection)
      Description copied from interface: FilterParams
      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();
       
      Specified by:
      setFields in interface FilterParams
      Specified by:
      setFields in class AbstractFilterParams
      Parameters:
      projection - projection expression