Package io.druid.segment.incremental

Examples of io.druid.segment.incremental.IncrementalIndexSchema$Builder


  private static IncrementalIndex makeRealtimeIndex(final String resourceFilename, final boolean useOffheap)
  {
    final URL resource = TestIndex.class.getClassLoader().getResource(resourceFilename);
    log.info("Realtime loading index file[%s]", resource);
    final IncrementalIndexSchema schema = new IncrementalIndexSchema.Builder()
                                          .withMinTimestamp(new DateTime("2011-01-12T00:00:00.000Z").getMillis())
                                          .withQueryGranularity(QueryGranularity.NONE)
                                          .withMetrics(METRIC_AGGS)
                                          .build();
    final IncrementalIndex retVal;
View Full Code Here


    int aggsSize = 0;
    for (AggregatorFactory agg : schema.getAggregators()) {
      aggsSize += agg.getMaxIntermediateSize();
    }
    int bufferSize = aggsSize * config.getMaxRowsInMemory();
    final IncrementalIndexSchema indexSchema = new IncrementalIndexSchema.Builder()
        .withMinTimestamp(minTimestamp)
        .withQueryGranularity(schema.getGranularitySpec().getQueryGranularity())
        .withDimensionsSpec(schema.getParser())
        .withMetrics(schema.getAggregators())
        .build();
View Full Code Here

      for (AggregatorFactory agg : aggs) {
        aggsSize += agg.getMaxIntermediateSize();
      }
      final HadoopTuningConfig tuningConfig = config.getSchema().getTuningConfig();
      int bufferSize = aggsSize * tuningConfig.getRowFlushBoundary();
      final IncrementalIndexSchema indexSchema = new IncrementalIndexSchema.Builder()
          .withMinTimestamp(theBucket.time.getMillis())
          .withDimensionsSpec(config.getSchema().getDataSchema().getParser())
          .withQueryGranularity(config.getSchema().getDataSchema().getGranularitySpec().getQueryGranularity())
          .withMetrics(aggs)
          .build();
View Full Code Here

TOP

Related Classes of io.druid.segment.incremental.IncrementalIndexSchema$Builder

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.