@Override public boolean source( FlowProcess<? extends Configuration> flowProcess, SourceCall<Object[], RecordReader> sourceCall ) throws IOException { boolean success = sourceCall.getInput().next( sourceCall.getContext()[ 0 ], sourceCall.getContext()[ 1 ] ); if( !success ) return false; if( sourceCall.getContext()[ 1 ].toString().matches( "^\\s*#.*$" ) ) return source( flowProcess, sourceCall ); sourceHandleInput( sourceCall ); return true; } }
@Override public boolean source( FlowProcess<? extends Configuration> flowProcess, SourceCall<Object[], RecordReader> sourceCall ) throws IOException { boolean success = sourceCall.getInput().next( sourceCall.getContext()[ 0 ], sourceCall.getContext()[ 1 ] ); if( !success ) return false; if( sourceCall.getContext()[ 1 ].toString().matches( "^\\s*#.*$" ) ) return source( flowProcess, sourceCall ); sourceHandleInput( sourceCall ); return true; } }