public class HLLMetadata extends Object implements IHLLMetadata
IHLLMetadata
implemented as a simple struct.Constructor and Description |
---|
HLLMetadata(int schemaVersion,
HLLType type,
int registerCountLog2,
int registerWidth,
int log2ExplicitCutoff,
boolean explicitOff,
boolean explicitAuto,
boolean sparseEnabled) |
Modifier and Type | Method and Description |
---|---|
boolean |
explicitAuto() |
boolean |
explicitOff() |
HLLType |
HLLType() |
int |
log2ExplicitCutoff() |
int |
registerCountLog2() |
int |
registerWidth() |
int |
schemaVersion() |
boolean |
sparseEnabled() |
String |
toString() |
public HLLMetadata(int schemaVersion, HLLType type, int registerCountLog2, int registerWidth, int log2ExplicitCutoff, boolean explicitOff, boolean explicitAuto, boolean sparseEnabled)
schemaVersion
- the schema version number of the HLL. This must
be greater than or equal to zero.type
- the type
of the HLL. This cannot
be null
.registerCountLog2
- the log-base-2 register count parameter for
probabilistic HLLs. This must be greater than or equal to zero.registerWidth
- the register width parameter for probabilistic
HLLs. This must be greater than or equal to zero.log2ExplicitCutoff
- the log-base-2 of the explicit cardinality cutoff,
if it is explicitly defined. (If explicitOff
or
explicitAuto
is true
then this has no
meaning.)explicitOff
- the flag for 'explicit off'-mode, where the
HLLType.EXPLICIT
representation is not used. Both this and
explicitAuto
cannot be true
at the same
time.explicitAuto
- the flag for 'explicit auto'-mode, where the
HLLType.EXPLICIT
representation's promotion cutoff is
determined based on in-memory size automatically. Both this and
explicitOff
cannot be true
at the same
time.sparseEnabled
- the flag for 'sparse-enabled'-mode, where the
HLLType.SPARSE
representation is used.public int schemaVersion()
schemaVersion
in interface IHLLMetadata
null
.public HLLType HLLType()
HLLType
in interface IHLLMetadata
null
.public int registerCountLog2()
registerCountLog2
in interface IHLLMetadata
public int registerWidth()
registerWidth
in interface IHLLMetadata
public int log2ExplicitCutoff()
log2ExplicitCutoff
in interface IHLLMetadata
public boolean explicitOff()
explicitOff
in interface IHLLMetadata
true
if the HLLType.EXPLICIT
representation
has been disabled. false
otherwise.public boolean explicitAuto()
explicitAuto
in interface IHLLMetadata
true
if the HLLType.EXPLICIT
representation
cutoff cardinality is set to be automatically chosen,
false
otherwise.public boolean sparseEnabled()
sparseEnabled
in interface IHLLMetadata
true
if the HLLType.SPARSE
representation
is enabled.Copyright © 2014. All rights reserved.