Package io.druid.query.filter

Examples of io.druid.query.filter.RegexDimFilter


  {
    GroupByQuery.Builder builder = GroupByQuery
        .builder()
        .setDataSource(QueryRunnerTestHelper.dataSource)
        .setInterval("2011-04-02/2011-04-04")
        .setDimFilter(new RegexDimFilter("quality", "auto.*"))
        .setDimensions(Lists.<DimensionSpec>newArrayList(new DefaultDimensionSpec("quality", "quality")))
        .setAggregatorSpecs(
            Arrays.<AggregatorFactory>asList(
                QueryRunnerTestHelper.rowsCount
            )
View Full Code Here


  public void testTimeseriesWithRegexFilter()
  {
    TimeseriesQuery query = Druids.newTimeseriesQueryBuilder()
                                  .dataSource(QueryRunnerTestHelper.dataSource)
                                  .granularity(QueryRunnerTestHelper.dayGran)
        .filters(new RegexDimFilter(QueryRunnerTestHelper.marketDimension, "^.p.*$")) // spot and upfront
        .intervals(QueryRunnerTestHelper.firstToThird)
        .aggregators(
            Arrays.<AggregatorFactory>asList(
                QueryRunnerTestHelper.rowsCount,
                QueryRunnerTestHelper.indexLongSum,
View Full Code Here

          extractionDimFilter.getDimension(),
          extractionDimFilter.getValue(),
          extractionDimFilter.getDimExtractionFn()
      );
    } else if (dimFilter instanceof RegexDimFilter) {
      final RegexDimFilter regexDimFilter = (RegexDimFilter) dimFilter;

      filter = new RegexFilter(regexDimFilter.getDimension(), regexDimFilter.getPattern());
    } else if (dimFilter instanceof SearchQueryDimFilter) {
      final SearchQueryDimFilter searchQueryFilter = (SearchQueryDimFilter) dimFilter;

      filter = new SearchQueryFilter(searchQueryFilter.getDimension(), searchQueryFilter.getQuery());
    } else if (dimFilter instanceof JavaScriptDimFilter) {
View Full Code Here

TOP

Related Classes of io.druid.query.filter.RegexDimFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.