net.sf.farrago.runtime
Interface FennelTupleReader
- All Known Implementing Classes:
- FennelOnlyTupleReader
public interface FennelTupleReader
FennelTupleReader defines an interface for unmarshalling tuples returned by
Fennel. Implementations are generated by FennelToIteratorConverter for
unmarshalling specific tuple formats.
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/runtime/FennelTupleReader.java#12 $
- Author:
- John V. Sichi
unmarshalTuple
Object unmarshalTuple(ByteBuffer byteBuffer,
byte[] byteArray,
ByteBuffer sliceBuffer)
- Unmarshals one tuple.
- 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