com.amazon.carbonado.raw
Class CompressedEncodingStrategy<S extends Storable>

java.lang.Object
  extended by com.amazon.carbonado.raw.GenericEncodingStrategy<S>
      extended by 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

Constructor Summary
CompressedEncodingStrategy(Class<S> type, StorableIndex<S> pkIndex, CompressionType compressionType)
           
 
Method Summary
 boolean equals(Object obj)
           
protected  void extraDataDecoding(CodeAssembler a, LocalVariable dataVar, int prefix, int suffix)
          Second phase decoding, which does nothing by default.
protected  void extraDataEncoding(CodeAssembler a, LocalVariable dataVar, int prefix, int suffix)
          Second phase encoding, which does nothing by default.
 int hashCode()
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompressedEncodingStrategy

public CompressedEncodingStrategy(Class<S> type,
                                  StorableIndex<S> pkIndex,
                                  CompressionType compressionType)
Method Detail

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 data
prefix - prefix of byte array to preserve
suffix - 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.