public class CompressionSettingsBuilder extends Object
Constructor and Description |
---|
CompressionSettingsBuilder() |
Modifier and Type | Method and Description |
---|---|
CompressionSettingsBuilder |
addValidCompression(ColGroup.CompressionType cp)
Add a single valid compression type to the EnumSet of valid compressions.
|
CompressionSettingsBuilder |
clearValidCompression()
Clear all the compression types allowed in the compression.
|
CompressionSettingsBuilder |
copySettings(CompressionSettings that)
Copy the settings from another CompressionSettings Builder, modifies this, not that.
|
CompressionSettings |
create()
Create the CompressionSettings object to use in the compression.
|
CompressionSettingsBuilder |
setAllowSharedDictionary(boolean allowSharedDictionary)
Allow the Dictionaries to be shared between different column groups.
|
CompressionSettingsBuilder |
setColumnPartitioner(PlanningCoCoder.PartitionerType columnPartitioner)
Set the type of CoCoding Partitioner type to use for combining columns together.
|
CompressionSettingsBuilder |
setInvestigateEstimate(boolean investigateEstimate)
Set if the compression should be investigated while compressing.
|
CompressionSettingsBuilder |
setLossy(boolean lossy)
Set the Compression to use Lossy compression.
|
CompressionSettingsBuilder |
setmaxStaticColGroupCoCode(int maxStaticColGroupCoCode)
Set the maximum number of columns to CoCode together in the static CoCoding strategy.
|
CompressionSettingsBuilder |
setSamplingRatio(double samplingRatio)
Set the sampling ratio in percent to sample the input matrix.
|
CompressionSettingsBuilder |
setSeed(int seed)
Set the seed for the compression operation.
|
CompressionSettingsBuilder |
setSkipList(boolean skipList)
Specify if the Offset list encoding should utilize skip lists.
|
CompressionSettingsBuilder |
setSortValuesByLength(boolean sortValuesByLength)
Set the sortValuesByLength flag.
|
CompressionSettingsBuilder |
setTransposeInput(boolean transposeInput)
Specify if the input matrix should be transposed before compression.
|
CompressionSettingsBuilder |
setValidCompressions(EnumSet<ColGroup.CompressionType> validCompressions)
Set the valid compression strategies used for the compression.
|
public CompressionSettingsBuilder copySettings(CompressionSettings that)
that
- The other CompressionSettingsBuilder to copy settings from.public CompressionSettingsBuilder setLossy(boolean lossy)
lossy
- A boolean specifying if the compression should be lossypublic CompressionSettingsBuilder setSamplingRatio(double samplingRatio)
samplingRatio
- The ratio to sample from the inputpublic CompressionSettingsBuilder setSortValuesByLength(boolean sortValuesByLength)
sortValuesByLength
- A boolean specifying if the values should be sortedpublic CompressionSettingsBuilder setAllowSharedDictionary(boolean allowSharedDictionary)
allowSharedDictionary
- A boolean specifying if the dictionary can be shared between column groups.public CompressionSettingsBuilder setTransposeInput(boolean transposeInput)
transposeInput
- boolean specifying if the input should be transposed before compressionpublic CompressionSettingsBuilder setSkipList(boolean skipList)
skipList
- a boolean specifying if the skiplist function is enabledpublic CompressionSettingsBuilder setSeed(int seed)
seed
- The seed used in sampling the matrix and general operations in the compression.public CompressionSettingsBuilder setInvestigateEstimate(boolean investigateEstimate)
investigateEstimate
- A boolean specifying it the input should be estimated.public CompressionSettingsBuilder setValidCompressions(EnumSet<ColGroup.CompressionType> validCompressions)
validCompressions
- An EnumSet of CompressionTypes to use in the compressionpublic CompressionSettingsBuilder addValidCompression(ColGroup.CompressionType cp)
cp
- The compression type to add to the valid ones.public CompressionSettingsBuilder clearValidCompression()
public CompressionSettingsBuilder setColumnPartitioner(PlanningCoCoder.PartitionerType columnPartitioner)
columnPartitioner
- The Strategy to select from PartitionerTypepublic CompressionSettingsBuilder setmaxStaticColGroupCoCode(int maxStaticColGroupCoCode)
maxStaticColGroupCoCode
- The max selected.public CompressionSettings create()
Copyright © 2020 The Apache Software Foundation. All rights reserved.