Ejemplo n.º 1
0
  public boolean hasSegment(long fromTime, long toTime) {
    Segment segment = getLastSegment();

    while (segment != null) {
      if (segment.getLastCommitTime() < fromTime) {
        return false;
      }

      if (segment.getFirstVisualTime() < toTime) {
        return true;
      }

      segment = segment.getPreviousInTrack();
    }

    return false;
  }
Ejemplo n.º 2
0
 @Override
 protected Segment getPreviousSegment(Segment segment) {
   return segment.getPreviousInTrack();
 }