/** * Implements the default operation for all TermPipeline subclasses; By default do nothing. This * method should be overrided by any TermPipeline that want to implements doc/query oriented * lifecycle. * * @return return how the reset has gone */ public boolean reset() { return next != null ? next.reset() : true; }
/** * Displays the given on STDERR, then passes onto next pipeline object. * * @param t String the term to pass onto next pipeline object */ public void processTerm(String t) { if (t == null) return; System.err.println("term: " + t); next.processTerm(t); }