org.openfast.template.operator
Class AlwaysPresentOperatorCodec

java.lang.Object
  extended by org.openfast.template.operator.OperatorCodec
      extended by org.openfast.template.operator.AlwaysPresentOperatorCodec
All Implemented Interfaces:
java.io.Serializable

public abstract class AlwaysPresentOperatorCodec
extends OperatorCodec

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openfast.template.operator.OperatorCodec
CONSTANT_ALL, COPY_ALL, DEFAULT_ALL, DELTA_DECIMAL, DELTA_INTEGER, DELTA_STRING, INCREMENT_INTEGER, NONE_ALL, TAIL
 
Constructor Summary
protected AlwaysPresentOperatorCodec(Operator operator, Type[] types)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 ScalarValue getValueToEncode(ScalarValue value, ScalarValue priorValue, Scalar scalar, BitVectorBuilder presenceMapBuilder)
           
 boolean usesPresenceMapBit(boolean optional)
          Use this to show that there is a MapBit present
 
Methods inherited from class org.openfast.template.operator.OperatorCodec
canEncode, decodeEmptyValue, decodeValue, getCodec, getOperator, getValueToEncode, isPresenceMapBitSet, shouldDecodeType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlwaysPresentOperatorCodec

protected AlwaysPresentOperatorCodec(Operator operator,
                                     Type[] types)
Method Detail

usesPresenceMapBit

public boolean usesPresenceMapBit(boolean optional)
Description copied from class: OperatorCodec
Use this to show that there is a MapBit present

Overrides:
usesPresenceMapBit in class OperatorCodec
Parameters:
optional - The Optional boolean
Returns:
Returns false

getValueToEncode

public ScalarValue getValueToEncode(ScalarValue value,
                                    ScalarValue priorValue,
                                    Scalar scalar,
                                    BitVectorBuilder presenceMapBuilder)
Overrides:
getValueToEncode in class OperatorCodec
Returns:
the value that should be encoded given the previous value

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class OperatorCodec


Copyright © 2006-2008 The LaSalle Technology Group, LLC. All Rights Reserved.