Class AggregateDataSetBuilder

    • Constructor Detail

      • AggregateDataSetBuilder

        public AggregateDataSetBuilder​(String id)
        Creates a NonAggregateDataSetBuilder that will build a dataset with the specified id.
        Parameters:
        id - the id of the dataset to build
    • Method Detail

      • isAggregate

        public boolean isAggregate()
        Description copied from interface: DataSetBuilder
        Gets whether or not this DataSetBuilder builds an aggregate DataSet.
        Specified by:
        isAggregate in interface DataSetBuilder<AggregateDataSource>
        Returns:
        true if this builder builds an aggregate DataSet, otherwise false.
      • addDataSource

        public void addDataSource​(AggregateDataSource dataSource)
        Adds the specified data source to this builder. The data source will be source of data for the data set created by this builder.
        Specified by:
        addDataSource in interface DataSetBuilder<AggregateDataSource>
        Parameters:
        dataSource - the data source to add
      • defineMethodDataSource

        public void defineMethodDataSource​(String id,
                                           AggregateOp aggType,
                                           Class<?> objType,
                                           String methodName)
        Defines a method data sources to be added to the data set built by this builder. The data source will be named by the id, and call the specified method on objects of the specified type.
        Parameters:
        id -
        objType -
        methodName -
      • defineCountDataSource

        public void defineCountDataSource​(String id,
                                          Class<?> objType)
        Defines a CountDataSource with the specified id that will return the count of objects of the specified type.
        Parameters:
        id -
        objType -