net.sf.farrago.fennel
Interface FennelJavaStreamMap

All Known Implementing Classes:
FarragoRuntimeContext, LucidDbRuntimeContext

public interface FennelJavaStreamMap

FennelJavaStreamMap is needed when a Fennel TupleStream's definition includes calls to JavaTupleStreams.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/fennel/FennelJavaStreamMap.java#12 $
Author:
John V. Sichi

Method Summary
 long getIndexRoot(long pageOwnerId)
          Looks up the root PageId of an index.
 long getJavaStreamHandle(int streamId)
          Looks up the handle of a JavaTupleStream by its ID.
 

Method Detail

getJavaStreamHandle

long getJavaStreamHandle(int streamId)
Looks up the handle of a JavaTupleStream by its ID. This is called by native code when a TupleStream is opened. The ID is a placeholder in the TupleStream definition; each open may result in a different handle.

Parameters:
streamId - ID of stream to find
Returns:
JavaTupleStream handle

getIndexRoot

long getIndexRoot(long pageOwnerId)
Looks up the root PageId of an index. This is called by native code when a TupleStream accessing a temporary BTree is opened.

Parameters:
pageOwnerId - the identifier for the index