question: protected void fireTupleEvent ( Table t , int start , int end , int type ) { if ( m_tupleListeners != null && m_tupleListeners . size ( ) > 0 ) { Object [ ] lstnrs = m_tupleListeners . getArray ( ) ; Tuple [ ] tuples = new Tuple [ end - start + 1 ] ; for ( int i = 0 , r = start ; r <= end ; ++ r , ++ i ) { tuples [ i ] = t . getTuple ( r ) ; } for ( int i = 0 ; i < lstnrs . length ; ++ i ) { TupleSetListener tsl = ( TupleSetListener ) lstnrs [ i ] ; if ( type == EventConstants . INSERT ) { tsl . tupleSetChanged ( this , tuples , EMPTY_ARRAY ) ; } else { tsl . tupleSetChanged ( this , EMPTY_ARRAY , tuples ) ; } } } }
target:  Fire a Tuple event.