public class IndexMerger extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
IndexMerger.ProgressIndicator |
Constructor and Description |
---|
IndexMerger() |
Modifier and Type | Method and Description |
---|---|
static File |
append(List<IndexableAdapter> indexes,
File outDir) |
static File |
append(List<IndexableAdapter> indexes,
File outDir,
IndexMerger.ProgressIndicator progress) |
static void |
createIndexDrdFile(byte versionId,
File inDir,
GenericIndexed<String> availableDimensions,
GenericIndexed<String> availableMetrics,
org.joda.time.Interval dataInterval) |
static File |
merge(List<IndexableAdapter> indexes,
AggregatorFactory[] metricAggs,
File outDir) |
static File |
merge(List<IndexableAdapter> indexes,
AggregatorFactory[] metricAggs,
File outDir,
IndexMerger.ProgressIndicator progress) |
static File |
mergeQueryableIndex(List<QueryableIndex> indexes,
AggregatorFactory[] metricAggs,
File outDir) |
static File |
mergeQueryableIndex(List<QueryableIndex> indexes,
AggregatorFactory[] metricAggs,
File outDir,
IndexMerger.ProgressIndicator progress) |
static File |
persist(IncrementalIndex index,
File outDir) |
static File |
persist(IncrementalIndex index,
org.joda.time.Interval dataInterval,
File outDir)
This is *not* thread-safe and havok will ensue if this is called and writes are still occurring
on the IncrementalIndex object.
|
static File |
persist(IncrementalIndex index,
org.joda.time.Interval dataInterval,
File outDir,
IndexMerger.ProgressIndicator progress) |
public static File persist(IncrementalIndex index, File outDir) throws IOException
IOException
public static File persist(IncrementalIndex index, org.joda.time.Interval dataInterval, File outDir) throws IOException
index
- the IncrementalIndex to persistdataInterval
- the Interval that the data representsoutDir
- the directory to persist the data toIOException
- if an IO error occurs persisting the indexpublic static File persist(IncrementalIndex index, org.joda.time.Interval dataInterval, File outDir, IndexMerger.ProgressIndicator progress) throws IOException
IOException
public static File mergeQueryableIndex(List<QueryableIndex> indexes, AggregatorFactory[] metricAggs, File outDir) throws IOException
IOException
public static File mergeQueryableIndex(List<QueryableIndex> indexes, AggregatorFactory[] metricAggs, File outDir, IndexMerger.ProgressIndicator progress) throws IOException
IOException
public static File merge(List<IndexableAdapter> indexes, AggregatorFactory[] metricAggs, File outDir) throws IOException
IOException
public static File merge(List<IndexableAdapter> indexes, AggregatorFactory[] metricAggs, File outDir, IndexMerger.ProgressIndicator progress) throws IOException
IOException
public static File append(List<IndexableAdapter> indexes, File outDir) throws IOException
IOException
public static File append(List<IndexableAdapter> indexes, File outDir, IndexMerger.ProgressIndicator progress) throws IOException
IOException
public static void createIndexDrdFile(byte versionId, File inDir, GenericIndexed<String> availableDimensions, GenericIndexed<String> availableMetrics, org.joda.time.Interval dataInterval) throws IOException
IOException
Copyright © 2015. All rights reserved.