public class StringDimensionMergerLegacy extends StringDimensionMergerV9 implements DimensionMergerLegacy<int[]>
StringDimensionMergerV9.ConvertingIndexedInts, StringDimensionMergerV9.IndexSeeker, StringDimensionMergerV9.IndexSeekerWithConversion, StringDimensionMergerV9.IndexSeekerWithoutConversionadapters, 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, writeMergedValueMetadataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmakeColumnDescriptorcanSkip, convertSegmentRowValuesToMergedRowValues, processMergedRow, writeMergedValueMetadatapublic StringDimensionMergerLegacy(String dimensionName, IndexSpec indexSpec, File outDir, IOPeon ioPeon, ColumnCapabilities capabilities, ProgressIndicator progress)
protected void setupEncodedValueWriter()
throws IOException
setupEncodedValueWriter in class StringDimensionMergerV9IOExceptionprotected void processMergedRowHelper(int[] vals)
throws IOException
processMergedRowHelper in class StringDimensionMergerV9IOExceptionpublic void writeIndexes(List<IntBuffer> segmentRowNumConversions, com.google.common.io.Closer closer) throws IOException
DimensionMergerwriteIndexes in interface DimensionMerger<int[]>writeIndexes in class StringDimensionMergerV9segmentRowNumConversions - A list of row number conversion IntBuffer objects.closer - Add Closeables for resource cleanup to this Closer if neededIOExceptionpublic void writeValueMetadataToFile(FileOutputSupplier valueEncodingFile) throws IOException
DimensionMergerLegacywriteValueMetadataToFile in interface DimensionMergerLegacy<int[]>valueEncodingFile - Destination fileIOExceptionpublic void writeRowValuesToFile(FileOutputSupplier rowValueFile) throws IOException
DimensionMergerLegacywriteRowValuesToFile in interface DimensionMergerLegacy<int[]>rowValueFile - Destination fileIOExceptionpublic void writeIndexesToFiles(com.google.common.io.ByteSink invertedIndexFile,
com.google.common.io.OutputSupplier<FileOutputStream> spatialIndexFile)
throws IOException
DimensionMergerLegacywriteIndexesToFiles in interface DimensionMergerLegacy<int[]>invertedIndexFile - Destination file for bitmap indexesspatialIndexFile - Destination file for spatial indexesIOExceptionpublic File makeDimFile() throws IOException
makeDimFile in interface DimensionMergerLegacy<int[]>IOExceptionCopyright © 2011–2017. All rights reserved.