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 IHLLMetadatanull.public HLLType HLLType()
HLLType in interface IHLLMetadatanull.public int registerCountLog2()
registerCountLog2 in interface IHLLMetadatapublic int registerWidth()
registerWidth in interface IHLLMetadatapublic int log2ExplicitCutoff()
log2ExplicitCutoff in interface IHLLMetadatapublic boolean explicitOff()
explicitOff in interface IHLLMetadatatrue if the HLLType.EXPLICIT representation
has been disabled. false otherwise.public boolean explicitAuto()
explicitAuto in interface IHLLMetadatatrue if the HLLType.EXPLICIT representation
cutoff cardinality is set to be automatically chosen,
false otherwise.public boolean sparseEnabled()
sparseEnabled in interface IHLLMetadatatrue if the HLLType.SPARSE representation
is enabled.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.23-p1 Release Date : November 19 2025