类 DocFilterParams

    • 构造器详细资料

      • DocFilterParams

        public DocFilterParams​(String schemaName,
                               String collectionName)
        Constructor.
        参数:
        schemaName - Schema name
        collectionName - Collection name
      • DocFilterParams

        public DocFilterParams​(String schemaName,
                               String collectionName,
                               boolean supportsOffset)
        Constructor.
        参数:
        schemaName - Schema name
        collectionName - Collection name
        supportsOffset - Whether OFFSET is supported or not
    • 方法详细资料

      • setFields

        public void setFields​(Expression docProjection)
        Parse projection expressions into X Protocol Projection objects.
        参数:
        docProjection - projection expression
      • setFields

        public void setFields​(String... projection)
        从接口复制的说明: 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();
         
        指定者:
        setFields 在接口中 FilterParams
        指定者:
        setFields 在类中 AbstractFilterParams
        参数:
        projection - projection expression