Examples of OffheapIncrementalIndex


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

Examples of io.druid.segment.incremental.OffheapIncrementalIndex

        .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

Examples of io.druid.segment.incremental.OffheapIncrementalIndex

          }
        }
    );
    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

Examples of io.druid.segment.incremental.OffheapIncrementalIndex

          .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
Copyright © 2018 www.massapi.com. 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.