net.sf.farrago.runtime
Class NativeRuntimeContext.StreamDescriptor

java.lang.Object
  extended by net.sf.farrago.runtime.NativeRuntimeContext.StreamDescriptor
Enclosing class:
NativeRuntimeContext

private class NativeRuntimeContext.StreamDescriptor
extends Object

StreamDescriptor represents a unique Fennel error source. Each instance has it's own error tag and record format.


Field Summary
private  String[] columnNames
           
private  Object[] columnValues
           
private  ResultSetMetaData metadata
           
private  FarragoRuntimeContext runtimeContext
           
private  String tag
           
private  FennelTupleAccessor tupleAccessor
           
private  FennelTupleData tupleData
           
 
Constructor Summary
NativeRuntimeContext.StreamDescriptor(FarragoRuntimeContext runtimeContext, String source)
          Constructs a StreamDescriptor
 
Method Summary
 Object postError(boolean isWarning, String msg, ByteBuffer byteBuffer, int index)
          Builds an error record and posts an error with the runtime context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runtimeContext

private final FarragoRuntimeContext runtimeContext

tag

private final String tag

tupleData

private final FennelTupleData tupleData

tupleAccessor

private final FennelTupleAccessor tupleAccessor

columnNames

private final String[] columnNames

columnValues

private final Object[] columnValues

metadata

private final ResultSetMetaData metadata
Constructor Detail

NativeRuntimeContext.StreamDescriptor

public NativeRuntimeContext.StreamDescriptor(FarragoRuntimeContext runtimeContext,
                                             String source)
Constructs a StreamDescriptor

Parameters:
runtimeContext - reference to the runtime context
source - name of the Fennel error source
Method Detail

postError

public Object postError(boolean isWarning,
                        String msg,
                        ByteBuffer byteBuffer,
                        int index)
Builds an error record and posts an error with the runtime context

See Also:
for a description of the parameters