net.sf.farrago.runtime
Class FennelOnlyTupleReader
java.lang.Object
net.sf.farrago.runtime.FennelOnlyTupleReader
- All Implemented Interfaces:
- FennelTupleReader
public class FennelOnlyTupleReader
- extends Object
- implements FennelTupleReader
FennelOnlyTupleReader implements the FennelTupleReader interface for reading
tuples from a query plan that can be executed exclusively in Fennel.
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/runtime/FennelOnlyTupleReader.java#5 $
- Author:
- Zelaine Fong
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tupleAccessor
private final FennelTupleAccessor tupleAccessor
tupleData
private final FennelTupleData tupleData
FennelOnlyTupleReader
public FennelOnlyTupleReader(FennelTupleDescriptor tupleDesc,
FennelTupleData tupleData)
- Parameters:
tupleDesc
- tuple descriptor of the tuples to be readtupleData
- tuple data that the tuples read will be unmarshalled
into
unmarshalTuple
public Object unmarshalTuple(ByteBuffer byteBuffer,
byte[] byteArray,
ByteBuffer sliceBuffer)
- Description copied from interface:
FennelTupleReader
- Unmarshals one tuple.
- Specified by:
unmarshalTuple
in interface FennelTupleReader
- Parameters:
byteBuffer
- read-only buffer containing marshalled tuple data; on
entry, the buffer position is at beginning of tuplebyteArray
- byte array underlying byteBuffersliceBuffer
- result of byteBuffer.slice(), for use in relative
offsets; on return, sliceBuffer position should be at the unaligned end
of tuple
- Returns:
- subclass-specific object containing unmarshalled tuple data