Package co.cask.cdap.api.flow.flowlet

Examples of co.cask.cdap.api.flow.flowlet.StreamEvent


    reader.initialize();
  }

  @Override
  public boolean nextKeyValue() throws IOException, InterruptedException {
    StreamEvent streamEvent;
    do {
      if (reader.getPosition() >= inputSplit.getStart() + inputSplit.getLength()) {
        return false;
      }

      events.clear();
      if (reader.read(events, 1, 0, TimeUnit.SECONDS) <= 0) {
        return false;
      }
      streamEvent = events.get(0);
    } while (streamEvent.getTimestamp() < inputSplit.getStartTime());

    if (streamEvent.getTimestamp() >= inputSplit.getEndTime()) {
      return false;
    }

    currentEntry = decoder.decode(streamEvent, currentEntry);
    return true;
View Full Code Here

TOP

Related Classes of co.cask.cdap.api.flow.flowlet.StreamEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.