@Deprecated @InterfaceAudience.Private class KeyValueCompression extends Object
KeyValue
s written to the WAL. This is not
synchronized, so synchronization should be handled outside.
Class only compresses and uncompresses row keys, family names, and the
qualifier. More may be added depending on use patterns.Constructor and Description |
---|
KeyValueCompression()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
private static void |
checkLength(int len,
int max)
Deprecated.
|
static KeyValue |
readKV(DataInput in,
CompressionContext readContext)
Deprecated.
Uncompresses a KeyValue from a DataInput and returns it.
|
static void |
writeKV(DataOutput out,
KeyValue keyVal,
CompressionContext writeContext)
Deprecated.
Compresses and writes ourKV to out, a DataOutput.
|
public static KeyValue readKV(DataInput in, CompressionContext readContext) throws IOException
in
- the DataInputreadContext
- the compressionContext to use.IOException
private static void checkLength(int len, int max) throws IOException
IOException
public static void writeKV(DataOutput out, KeyValue keyVal, CompressionContext writeContext) throws IOException
out
- the DataOutputkeyVal
- the KV to compress and writewriteContext
- the compressionContext to use.IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.