public class LongDimensionMergerLegacy extends LongDimensionMergerV9 implements DimensionMergerLegacy<Long>
capabilities, dimensionName, indexSpec, ioPeon, outDir, progress, serializer
Constructor and Description |
---|
LongDimensionMergerLegacy(String dimensionName,
IndexSpec indexSpec,
File outDir,
IOPeon ioPeon,
ColumnCapabilities capabilities,
ProgressIndicator progress) |
Modifier and Type | Method and Description |
---|---|
File |
makeDimFile() |
void |
processMergedRow(Long rowValues)
Process a key component from the merged sequence of rows and update the DimensionMerger's internal state.
|
protected void |
setupEncodedValueWriter() |
void |
writeIndexesToFiles(com.google.common.io.ByteSink invertedOut,
com.google.common.io.OutputSupplier<FileOutputStream> spatialOut)
Write this dimension's bitmap and spatial indexes to a file.
|
void |
writeRowValuesToFile(FileOutputSupplier rowValueOut)
Write this dimension's sequence of row values to a file.
|
void |
writeValueMetadataToFile(FileOutputSupplier valueEncodingFile)
Write this dimension's value metadata to a file.
|
canSkip, convertSegmentRowValuesToMergedRowValues, makeColumnDescriptor, writeIndexes, writeMergedValueMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
makeColumnDescriptor
canSkip, convertSegmentRowValuesToMergedRowValues, writeIndexes, writeMergedValueMetadata
public LongDimensionMergerLegacy(String dimensionName, IndexSpec indexSpec, File outDir, IOPeon ioPeon, ColumnCapabilities capabilities, ProgressIndicator progress)
protected void setupEncodedValueWriter() throws IOException
setupEncodedValueWriter
in class LongDimensionMergerV9
IOException
public void processMergedRow(Long rowValues) throws IOException
DimensionMerger
processMergedRow
in interface DimensionMerger<Long>
processMergedRow
in class LongDimensionMergerV9
rowValues
- The row values to be added.IOException
public void writeValueMetadataToFile(FileOutputSupplier valueEncodingFile) throws IOException
DimensionMergerLegacy
writeValueMetadataToFile
in interface DimensionMergerLegacy<Long>
valueEncodingFile
- Destination fileIOException
public void writeRowValuesToFile(FileOutputSupplier rowValueOut) throws IOException
DimensionMergerLegacy
writeRowValuesToFile
in interface DimensionMergerLegacy<Long>
rowValueOut
- Destination fileIOException
public void writeIndexesToFiles(com.google.common.io.ByteSink invertedOut, com.google.common.io.OutputSupplier<FileOutputStream> spatialOut) throws IOException
DimensionMergerLegacy
writeIndexesToFiles
in interface DimensionMergerLegacy<Long>
invertedOut
- Destination file for bitmap indexesspatialOut
- Destination file for spatial indexesIOException
public File makeDimFile() throws IOException
makeDimFile
in interface DimensionMergerLegacy<Long>
IOException
Copyright © 2011–2017. All rights reserved.