net.sf.farrago.fennel
Interface FennelJavaErrorTarget

All Known Implementing Classes:
FarragoRuntimeContext, LucidDbRuntimeContext

public interface FennelJavaErrorTarget

FennelJavaErrorTarget represents a class of java objects that can handle row errors arising from Fennel streams.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/fennel/FennelJavaErrorTarget.java#6 $
Author:
John Pham

Method Summary
 Object handleRowError(String source, boolean isWarning, String msg, ByteBuffer byteBuffer, int index)
          Handles a Fennel row exception
 

Method Detail

handleRowError

Object handleRowError(String source,
                      boolean isWarning,
                      String msg,
                      ByteBuffer byteBuffer,
                      int index)
Handles a Fennel row exception

Parameters:
source - the unique Fennel stream name
isWarning - true if the exception is only a warning
msg - the exception string
byteBuffer - the Fennel format byte buffer containing an error record for the row that failed. The error record must conform to the row type specified for the source with FennelRelImplementor.setErrorRecordType(net.sf.farrago.query.FennelRel, net.sf.farrago.fem.fennel.FemExecutionStreamDef, org.eigenbase.reltype.RelDataType)
index - position of the column whose processing caused the exception to occur. -1 indicates that no column was culpable. 0 indicates that a filter condition was being processed. Otherwise this parameter should be a 1-indexed column position.