public class StringDimensionMergerLegacy extends StringDimensionMergerV9 implements DimensionMergerLegacy<int[]>
StringDimensionMergerV9.ConvertingIndexedInts, StringDimensionMergerV9.IndexSeeker, StringDimensionMergerV9.IndexSeekerWithConversion, StringDimensionMergerV9.IndexSeekerWithoutConversion
adapters, bitmapWriter, capabilities, cardinality, convertMissingValues, dictionaryWriter, dimConversions, dimensionName, EMPTY_STR_DIM_ARRAY, EMPTY_STR_DIM_VAL, hasNull, indexSpec, ioPeon, nullRowsBitmap, outDir, progress, rowCount, spatialWriter, SPLITTER
Constructor and Description |
---|
StringDimensionMergerLegacy(String dimensionName,
IndexSpec indexSpec,
File outDir,
IOPeon ioPeon,
ColumnCapabilities capabilities,
ProgressIndicator progress) |
Modifier and Type | Method and Description |
---|---|
File |
makeDimFile() |
protected void |
processMergedRowHelper(int[] vals) |
protected void |
setupEncodedValueWriter() |
void |
writeIndexes(List<IntBuffer> segmentRowNumConversions,
com.google.common.io.Closer closer)
Internally construct any index structures relevant to this DimensionMerger.
|
void |
writeIndexesToFiles(com.google.common.io.ByteSink invertedIndexFile,
com.google.common.io.OutputSupplier<FileOutputStream> spatialIndexFile)
Write this dimension's bitmap and spatial indexes to a file.
|
void |
writeRowValuesToFile(FileOutputSupplier rowValueFile)
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, isNullColumn, makeColumnDescriptor, processMergedRow, toIndexSeekers, writeMergedValueMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
makeColumnDescriptor
canSkip, convertSegmentRowValuesToMergedRowValues, processMergedRow, writeMergedValueMetadata
public StringDimensionMergerLegacy(String dimensionName, IndexSpec indexSpec, File outDir, IOPeon ioPeon, ColumnCapabilities capabilities, ProgressIndicator progress)
protected void setupEncodedValueWriter() throws IOException
setupEncodedValueWriter
in class StringDimensionMergerV9
IOException
protected void processMergedRowHelper(int[] vals) throws IOException
processMergedRowHelper
in class StringDimensionMergerV9
IOException
public void writeIndexes(List<IntBuffer> segmentRowNumConversions, com.google.common.io.Closer closer) throws IOException
DimensionMerger
writeIndexes
in interface DimensionMerger<int[]>
writeIndexes
in class StringDimensionMergerV9
segmentRowNumConversions
- A list of row number conversion IntBuffer objects.closer
- Add Closeables for resource cleanup to this Closer if neededIOException
public void writeValueMetadataToFile(FileOutputSupplier valueEncodingFile) throws IOException
DimensionMergerLegacy
writeValueMetadataToFile
in interface DimensionMergerLegacy<int[]>
valueEncodingFile
- Destination fileIOException
public void writeRowValuesToFile(FileOutputSupplier rowValueFile) throws IOException
DimensionMergerLegacy
writeRowValuesToFile
in interface DimensionMergerLegacy<int[]>
rowValueFile
- Destination fileIOException
public void writeIndexesToFiles(com.google.common.io.ByteSink invertedIndexFile, com.google.common.io.OutputSupplier<FileOutputStream> spatialIndexFile) throws IOException
DimensionMergerLegacy
writeIndexesToFiles
in interface DimensionMergerLegacy<int[]>
invertedIndexFile
- Destination file for bitmap indexesspatialIndexFile
- Destination file for spatial indexesIOException
public File makeDimFile() throws IOException
makeDimFile
in interface DimensionMergerLegacy<int[]>
IOException
Copyright © 2011–2017. All rights reserved.