|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.farrago.fennel.FennelStorage
public class FennelStorage
FennelStorage is the JNI interface for calling Fennel from Farrago. Most methods have package access only; other classes in this package expose public wrapper methods.
Field Summary | |
---|---|
(package private) static int |
CLOSE_ABORT
|
(package private) static int |
CLOSE_DEALLOCATE
|
(package private) static int |
CLOSE_RESULT
|
Constructor Summary | |
---|---|
FennelStorage()
|
Method Summary | |
---|---|
static void |
cancelExecution(long execHandle)
Cancels execution of a statement associated with an execution handle. |
(package private) static void |
deleteExecutionHandle(long execHandle)
Deletes the Fennel object corresponding to an execution handle. |
(package private) static void |
deleteObjectHandle(long handle)
Releases a handle obtained via newObjectHandle. |
(package private) static long |
executeJavaCmd(FemCmd cmd,
long execHandle)
Executes a command represented as a Java object. |
(package private) static String |
getAccessorXmiForTupleDescriptor(FemTupleDescriptor tupleDesc)
Constructs a FemTupleAccessor for a FemTupleDescriptor. |
static int |
getHandleCount()
|
(package private) static long |
newExecutionHandle()
Allocates a new object in Fennel that Farrago will use to communicate execution state information from Farrago to Fennel. |
(package private) static long |
newObjectHandle(Object obj)
Creates a native handle for a Java object for reference by XML commands. |
(package private) static void |
setObjectHandle(long handle,
Object obj)
Changes the object referenced by a handle. |
(package private) static int |
tupleStreamFetch(long hStream,
byte[] byteArray)
Fetches a buffer of rows from a stream. |
(package private) static void |
tupleStreamGraphClose(long hStreamGraph,
int action)
Closes a stream graph. |
(package private) static void |
tupleStreamGraphGetInputStreams(long hStreamGraph,
String node,
List<String> inputs)
Find the input of a given stream node in a stream graph. |
(package private) static void |
tupleStreamGraphOpen(long hStreamGraph,
long hTxn,
FennelJavaStreamMap javaStreamMap,
FennelJavaErrorTarget javaErrorTarget)
Opens a stream graph. |
(package private) static void |
tupleStreamRestart(long hStream)
Restarts a stream. |
(package private) static int |
tupleStreamTransformFetch(long hStream,
int execStreamInputOrdinal,
byte[] byteArray)
Fetches a buffer of rows from a stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final int CLOSE_RESULT
static final int CLOSE_ABORT
static final int CLOSE_DEALLOCATE
Constructor Detail |
---|
public FennelStorage()
Method Detail |
---|
static long newObjectHandle(Object obj)
obj
- object for which to create a handle, or null to create a
placeholder handle
static void deleteObjectHandle(long handle)
handle
- the handle to deletestatic void setObjectHandle(long handle, Object obj)
handle
- the handle to changeobj
- new objectpublic static int getHandleCount()
static String getAccessorXmiForTupleDescriptor(FemTupleDescriptor tupleDesc)
tupleDesc
- source FemTupleDescriptor
static long executeJavaCmd(FemCmd cmd, long execHandle) throws SQLException
cmd
- Java representation of objectexecHandle
- optional execution handle associated with the command
that's used to pass execution state from Farrago to Fennel; set to 0 if
there is no handle
SQLException
static void tupleStreamGraphGetInputStreams(long hStreamGraph, String node, List<String> inputs)
hStreamGraph
- handle to stream graphnode
- stream nameinputs
- The names of the input streams are added to this list, in
graph edge order.static void tupleStreamGraphOpen(long hStreamGraph, long hTxn, FennelJavaStreamMap javaStreamMap, FennelJavaErrorTarget javaErrorTarget) throws SQLException
hStreamGraph
- handle to stream graphhTxn
- handle to txn in which stream is being openedjavaStreamMap
- optional FennelJavaStreamMapjavaErrorTarget
- error target handles row errors
SQLException
static int tupleStreamFetch(long hStream, byte[] byteArray) throws SQLException
hStream
- handle to streambyteArray
- output buffer receives complete tuples
SQLException
static int tupleStreamTransformFetch(long hStream, int execStreamInputOrdinal, byte[] byteArray) throws SQLException
hStream
- handle to streamexecStreamInputOrdinal
- ordinal of the input to fetch frombyteArray
- output buffer receives complete tuples
SQLException
static void tupleStreamRestart(long hStream) throws SQLException
hStream
- handle to stream to restart
SQLException
static void tupleStreamGraphClose(long hStreamGraph, int action) throws SQLException
hStreamGraph
- handle to stream graphaction
- CLOSE_XXX
SQLException
static long newExecutionHandle()
static void deleteExecutionHandle(long execHandle)
execHandle
- the execution handlepublic static void cancelExecution(long execHandle)
execHandle
- the execution handle
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |