Package io.druid.query.spec

Examples of io.druid.query.spec.LegacySegmentSpec


  @Test
  public void testFullSelectNoResults()
  {
    SelectQuery query = new SelectQuery(
        new TableDataSource(QueryRunnerTestHelper.dataSource),
        new LegacySegmentSpec(new Interval("2011-01-12/2011-01-14")),
        new AndDimFilter(
            Arrays.<DimFilter>asList(
                new SelectorDimFilter(QueryRunnerTestHelper.marketDimension, "spot"),
                new SelectorDimFilter(QueryRunnerTestHelper.marketDimension, "foo")
            )
View Full Code Here


  @Test
  public void testFullSelectNoDimensionAndMetric()
  {
    SelectQuery query = new SelectQuery(
        new TableDataSource(QueryRunnerTestHelper.dataSource),
        new LegacySegmentSpec(new Interval("2011-01-12/2011-01-14")),
        null,
        QueryRunnerTestHelper.allGran,
        Lists.<String>newArrayList("foo"),
        Lists.<String>newArrayList("foo2"),
        new PagingSpec(null, 3),
View Full Code Here

      return this;
    }

    public TimeseriesQueryBuilder intervals(String s)
    {
      querySegmentSpec = new LegacySegmentSpec(s);
      return this;
    }
View Full Code Here

      return this;
    }

    public TimeseriesQueryBuilder intervals(List<Interval> l)
    {
      querySegmentSpec = new LegacySegmentSpec(l);
      return this;
    }
View Full Code Here

      return this;
    }

    public SearchQueryBuilder intervals(String s)
    {
      querySegmentSpec = new LegacySegmentSpec(s);
      return this;
    }
View Full Code Here

      return this;
    }

    public SearchQueryBuilder intervals(List<Interval> l)
    {
      querySegmentSpec = new LegacySegmentSpec(l);
      return this;
    }
View Full Code Here

      return this;
    }

    public TimeBoundaryQueryBuilder intervals(String s)
    {
      querySegmentSpec = new LegacySegmentSpec(s);
      return this;
    }
View Full Code Here

      return this;
    }

    public TimeBoundaryQueryBuilder intervals(List<Interval> l)
    {
      querySegmentSpec = new LegacySegmentSpec(l);
      return this;
    }
View Full Code Here

TOP

Related Classes of io.druid.query.spec.LegacySegmentSpec

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.