net.sf.farrago.fennel.tuple
Class FennelAttributeAccessor.FennelFixedWidthAccessor

java.lang.Object
  extended by net.sf.farrago.fennel.tuple.FennelAttributeAccessor
      extended by net.sf.farrago.fennel.tuple.FennelAttributeAccessor.FennelFixedWidthAccessor
Enclosing class:
FennelAttributeAccessor

public static final class FennelAttributeAccessor.FennelFixedWidthAccessor
extends FennelAttributeAccessor

marshalls fixed-width byte arrays.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.farrago.fennel.tuple.FennelAttributeAccessor
FennelAttributeAccessor.FennelBitAccessor, FennelAttributeAccessor.FennelByteAccessor, FennelAttributeAccessor.FennelFixedWidthAccessor, FennelAttributeAccessor.FennelIntAccessor, FennelAttributeAccessor.FennelLongAccessor, FennelAttributeAccessor.FennelShortAccessor, FennelAttributeAccessor.FennelVarWidthAccessor
 
Field Summary
 
Fields inherited from class net.sf.farrago.fennel.tuple.FennelAttributeAccessor
capacity, endIndirectOffset, fixedOffset, nullableBitMask, nullableBitOffset, nullBitNdx, valueBitMask, valueBitNdx, valueBitOffset
 
Constructor Summary
FennelAttributeAccessor.FennelFixedWidthAccessor()
           
 
Method Summary
 void marshalValueData(ByteBuffer pDestData, FennelTupleDatum value)
          Marshalls value data for the attribute.
 void unmarshalValue(FennelTupleAccessor tupleAccessor, FennelTupleDatum value)
          Unmarshalls the attribute's value into a tupledatum holder.
 
Methods inherited from class net.sf.farrago.fennel.tuple.FennelAttributeAccessor
computeBitAccessors, isPresent, setPresent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FennelAttributeAccessor.FennelFixedWidthAccessor

public FennelAttributeAccessor.FennelFixedWidthAccessor()
Method Detail

marshalValueData

public void marshalValueData(ByteBuffer pDestData,
                             FennelTupleDatum value)
                      throws NullPointerException
Description copied from class: FennelAttributeAccessor
Marshalls value data for the attribute. Only deals with the data bytes, not length and null indicators.

Specified by:
marshalValueData in class FennelAttributeAccessor
Parameters:
pDestData - the target address where the data should be marshalled
value - the value to be marshalled
Throws:
NullPointerException

unmarshalValue

public void unmarshalValue(FennelTupleAccessor tupleAccessor,
                           FennelTupleDatum value)
Description copied from class: FennelAttributeAccessor
Unmarshalls the attribute's value into a tupledatum holder. Unlike the C++ version, this *does* actually copy data.

Specified by:
unmarshalValue in class FennelAttributeAccessor
Parameters:
tupleAccessor - containing FennelTupleAccessor set up with the current tuple image to be accessed
value - receives the reference to the unmarshalled value