@Override protected boolean doProcess(Record record) { if (limit >= 0 && count >= limit) { return true; // silently ignore this record } if (LOG.isDebugEnabled()) { LOG.debug("headCount: {}", count); } count++; // pass record to next command in chain: return super.doProcess(record); }
@Override protected void doNotify(Record notification) { super.doNotify(notification); }
@Override public final void notify(Record notification) { beforeNotify(notification); doNotify(notification); }
@Override public final boolean process(Record record) { beforeProcess(record); boolean success = doProcess(record); if (!success) { LOG.debug("Command failed!"); } return success; }
@Override public final boolean process(Record record) { beforeProcess(record); boolean success = doProcess(record); if (!success) { LOG.debug("Command failed!"); } return success; }
@Override protected boolean doProcess(Record record) { if (limit >= 0 && count >= limit) { return true; // silently ignore this record } if (LOG.isDebugEnabled()) { LOG.debug("headCount: {}", count); } count++; // pass record to next command in chain: return super.doProcess(record); }
@Override protected void doNotify(Record notification) { super.doNotify(notification); }
@Override public final void notify(Record notification) { beforeNotify(notification); doNotify(notification); }
@Override protected boolean doProcess(Record record) { if (prng != null && prng.nextDouble() > probability) { return true; // silently ignore this record } if (LOG.isDebugEnabled()) { LOG.debug("sampleCount: {}", count); } count++; // pass record to next command in chain: return super.doProcess(record); }
@Override protected void doNotify(Record notification) { LOG.debug("myNotification: {}", notification); super.doNotify(notification); }
@Override protected boolean doProcess(Record record) { if (prng != null && prng.nextDouble() > probability) { return true; // silently ignore this record } if (LOG.isDebugEnabled()) { LOG.debug("sampleCount: {}", count); } count++; // pass record to next command in chain: return super.doProcess(record); }
@Override protected void doNotify(Record notification) { LOG.debug("myNotification: {}", notification); super.doNotify(notification); }
@Override protected boolean doProcess(Record record) { return !realChild.process(record) && super.doProcess(record); }
@Override protected void doNotify(Record notification) { LOG.debug("myNotification: {}", notification); super.doNotify(notification); }
@Override protected boolean doProcess(Record record) { return !realChild.process(record) && super.doProcess(record); }
@Override protected void doNotify(Record notification) { LOG.debug("myNotification: {}", notification); super.doNotify(notification); }
@Override @SuppressWarnings("unchecked") protected boolean doProcess(Record record) { ListIterator iter = record.get(fieldName).listIterator(); while (iter.hasNext()) { String str = iter.next().toString(); if (trim) { str = str.trim(); } iter.set(str); } // pass record to next command in chain: return super.doProcess(record); }
@Override protected void doNotify(Record notification) { LOG.debug("myNotification: {}", notification); super.doNotify(notification); }
@Override @SuppressWarnings("unchecked") protected boolean doProcess(Record record) { ListIterator iter = record.get(fieldName).listIterator(); while (iter.hasNext()) { String str = iter.next().toString(); if (trim) { str = str.trim(); } iter.set(str); } // pass record to next command in chain: return super.doProcess(record); }
@Override protected void doNotify(Record notification) { LOG.debug("myNotification: {}", notification); super.doNotify(notification); }