K - Encoded key component typepublic class EncodedKeyComponent<K> extends Object
| Constructor and Description |
|---|
EncodedKeyComponent(K component,
long effectiveSizeBytes)
Creates an EncodedKeyComponent corresponding to a single dimension.
|
| Modifier and Type | Method and Description |
|---|---|
K |
getComponent()
Encoded dimension value(s) to be used as a component for a row key.
|
long |
getEffectiveSizeBytes()
Effective size of the key component in bytes.
|
public EncodedKeyComponent(@Nullable K component, long effectiveSizeBytes)
component - The encoded dimension value(s)effectiveSizeBytes - Effective size of the key component in bytes. This
value is used to estimate on-heap memory usage and
must account for the footprint of both the original
and encoded dimension values, as applicable.@Nullable public K getComponent()
public long getEffectiveSizeBytes()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.