Package io.druid.segment.incremental

Examples of io.druid.segment.incremental.OffheapIncrementalIndex


                                          .withQueryGranularity(QueryGranularity.NONE)
                                          .withMetrics(METRIC_AGGS)
                                          .build();
    final IncrementalIndex retVal;
    if (useOffheap) {
      retVal = new OffheapIncrementalIndex(
          schema,
          TestQueryRunners.pool
      );
    } else {
      retVal = new IncrementalIndex(
View Full Code Here


        .withDimensionsSpec(schema.getParser())
        .withMetrics(schema.getAggregators())
        .build();
    final IncrementalIndex newIndex;
    if (config.isIngestOffheap()) {
      newIndex = new OffheapIncrementalIndex(
          indexSchema,
          new OffheapBufferPool(bufferSize)
      );
    } else {
      newIndex = new IncrementalIndex(
View Full Code Here

          }
        }
    );
    final IncrementalIndex index;
    if(query.getContextValue("useOffheap", false)){
      index = new OffheapIncrementalIndex(
          // use granularity truncated min timestamp
          // since incoming truncated timestamps may precede timeStart
          granTimeStart,
          gran,
          aggs.toArray(new AggregatorFactory[aggs.size()]),
View Full Code Here

          .withDimensionsSpec(config.getSchema().getDataSchema().getParser())
          .withQueryGranularity(config.getSchema().getDataSchema().getGranularitySpec().getQueryGranularity())
          .withMetrics(aggs)
          .build();
      if (tuningConfig.isIngestOffheap()) {
        return new OffheapIncrementalIndex(
            indexSchema,
            new OffheapBufferPool(bufferSize)
        );
      } else {
        return new IncrementalIndex(
View Full Code Here

TOP

Related Classes of io.druid.segment.incremental.OffheapIncrementalIndex

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.