com.amazon.carbonado.raw
Class CompressedEncodingStrategy<S extends Storable>
java.lang.Object
com.amazon.carbonado.raw.GenericEncodingStrategy<S>
com.amazon.carbonado.raw.CompressedEncodingStrategy<S>
public class CompressedEncodingStrategy<S extends Storable>
- extends GenericEncodingStrategy<S>
Extension of GenericEncodingStrategy that allows for compression.
- Author:
- Olga Kuznetsova, Brian S O'Neill
| Methods inherited from class com.amazon.carbonado.raw.GenericEncodingStrategy |
buildDataDecoding, buildDataEncoding, buildKeyDecoding, buildKeyEncoding, buildSerialDecoding, buildSerialEncoding, checkSupport, checkSupport, gatherAllDataProperties, gatherAllKeyProperties, gatherAllProperties, getConstantKeyPrefixLength, getDataPrefixPadding, getDataSuffixPadding, getKeyPrefixPadding, getKeySuffixPadding, getPrimaryKeyIndex, getType, isSupported, isSupported, loadPropertyValue, loadPropertyValue, pushDecodingInstanceVar, pushRawSupport, storePropertyValue |
CompressedEncodingStrategy
public CompressedEncodingStrategy(Class<S> type,
StorableIndex<S> pkIndex,
CompressionType compressionType)
extraDataEncoding
protected void extraDataEncoding(CodeAssembler a,
LocalVariable dataVar,
int prefix,
int suffix)
- Description copied from class:
GenericEncodingStrategy
- Second phase encoding, which does nothing by default.
- Overrides:
extraDataEncoding in class GenericEncodingStrategy<S extends Storable>
dataVar - local variable referencing a byte array with dataprefix - prefix of byte array to preservesuffix - suffix of byte array to preserve
extraDataDecoding
protected void extraDataDecoding(CodeAssembler a,
LocalVariable dataVar,
int prefix,
int suffix)
- Description copied from class:
GenericEncodingStrategy
- Second phase decoding, which does nothing by default.
- Overrides:
extraDataDecoding in class GenericEncodingStrategy<S extends Storable>
dataVar - local variable referencing a byte array with data
equals
public boolean equals(Object obj)
- Overrides:
equals in class GenericEncodingStrategy<S extends Storable>
hashCode
public int hashCode()
- Overrides:
hashCode in class GenericEncodingStrategy<S extends Storable>
Copyright © 2006-2009 Amazon Technologies, Inc.. All Rights Reserved.