private void internalGetNext() throws QueryEvaluationException {
  isInitialized=true;
  nextStatement=null;
  Statement statement=null;
  while (i.hasNext()) {
    final Entry<Key,Value> entry=i.next();
    final Value v=entry.getValue();
    try {
      final String dataString=Text.decode(v.get(),0,v.getSize());
      statement=StatementSerializer.readStatement(dataString);
    }
 catch (    final CharacterCodingException e) {
      logger.error("Error decoding value=" + Arrays.toString(v.get()),e);
      throw new QueryEvaluationException(e);
    }
catch (    final IOException e) {
      logger.error("Error de-serializing statement, string=" + v.get(),e);
      throw new QueryEvaluationException(e);
    }
    if (allowedBy(statement)) {
      nextStatement=statement;
      return;
    }
  }
}

private void internalGetNext ( ) throws QueryEvaluationException { isInitialized = true ; nextStatement = null ; Statement statement = null ; while ( i . hasNext ( ) ) { final Entry < Key , Value > entry = i . next ( ) ; final Value v = entry . getValue ( ) ; try { final String dataString = Text . decode ( v . get ( ) , 0 , v . getSize ( ) ) ; statement = StatementSerializer . readStatement ( dataString ) ; } catch ( final CharacterCodingException e ) { logger . error ( "Error decoding value=" + Arrays . toString ( v . get ( ) ) , e ) ; throw new QueryEvaluationException ( e ) ; } catch ( final IOException e ) { logger . error ( "Error de-serializing statement, string=" + v . get ( ) , e ) ; throw new QueryEvaluationException ( e ) ; } if ( allowedBy ( statement ) ) { nextStatement = statement ; return ; } } }
gets the next statement meeting constraints and stores in nextstatement . sets null when all done , or on exception .
