All byte[] (or {@link ImmutableBytesWritable}) passed into the constructor are only ever read once - when writing this onto the wire. They are never copied into another array or reused. This has the advantage of being much more efficient than the usual {@link KeyValue}
The down side is that we no longer can support some of the usual methods like {@link #getBuffer()} or {@link #getKey()} since its is backed with multiple byte[] andshould only be used by the client to send information
WARNING: should only be used by advanced users who know how to construct their own KeyValues
All byte[] (or {@link ImmutableBytesWritable}) passed into the constructor are only ever read once - when writing this onto the wire. They are never copied into another array or reused. This has the advantage of being much more efficient than the usual {@link KeyValue}
The down side is that we no longer can support some of the usual methods like {@link #getBuffer()} or {@link #getKey()} since its is backed with multiple byte[] andshould only be used by the client to send information
WARNING: should only be used by advanced users who know how to construct their own KeyValues
|
|
|
|
|
|
|
|