@Override public int compareTo(TimestampedFileInputSplit o) { int modTimeComp = Long.compare(this.modificationTime, o.modificationTime); if (modTimeComp != 0L) { return modTimeComp; } // the file input split does not prevent null paths. if (this.getPath() == null && o.getPath() != null) { return 1; } else if (this.getPath() != null && o.getPath() == null) { return -1; } int pathComp = this.getPath() == o.getPath() ? 0 : this.getPath().compareTo(o.getPath()); return pathComp != 0 ? pathComp : this.getSplitNumber() - o.getSplitNumber(); }
@Override public String toString() { return "[" + getSplitNumber() + "] " + getPath() + " mod@ " + modificationTime + " : " + getStart() + " + " + getLength(); } }
@Override public int compareTo(TimestampedFileInputSplit o) { int modTimeComp = Long.compare(this.modificationTime, o.modificationTime); if (modTimeComp != 0L) { return modTimeComp; } // the file input split does not prevent null paths. if (this.getPath() == null && o.getPath() != null) { return 1; } else if (this.getPath() != null && o.getPath() == null) { return -1; } int pathComp = this.getPath() == o.getPath() ? 0 : this.getPath().compareTo(o.getPath()); return pathComp != 0 ? pathComp : this.getSplitNumber() - o.getSplitNumber(); }
@Override public int compareTo(TimestampedFileInputSplit o) { int modTimeComp = Long.compare(this.modificationTime, o.modificationTime); if (modTimeComp != 0L) { return modTimeComp; } // the file input split does not prevent null paths. if (this.getPath() == null && o.getPath() != null) { return 1; } else if (this.getPath() != null && o.getPath() == null) { return -1; } int pathComp = this.getPath() == o.getPath() ? 0 : this.getPath().compareTo(o.getPath()); return pathComp != 0 ? pathComp : this.getSplitNumber() - o.getSplitNumber(); }
@Override public int compareTo(TimestampedFileInputSplit o) { int modTimeComp = Long.compare(this.modificationTime, o.modificationTime); if (modTimeComp != 0L) { return modTimeComp; } // the file input split does not prevent null paths. if (this.getPath() == null && o.getPath() != null) { return 1; } else if (this.getPath() != null && o.getPath() == null) { return -1; } int pathComp = this.getPath() == o.getPath() ? 0 : this.getPath().compareTo(o.getPath()); return pathComp != 0 ? pathComp : this.getSplitNumber() - o.getSplitNumber(); }
@Override public String toString() { return "[" + getSplitNumber() + "] " + getPath() + " mod@ " + modificationTime + " : " + getStart() + " + " + getLength(); } }
@Override public String toString() { return "[" + getSplitNumber() + "] " + getPath() + " mod@ " + modificationTime + " : " + getStart() + " + " + getLength(); } }
@Override public String toString() { return "[" + getSplitNumber() + "] " + getPath() + " mod@ " + modificationTime + " : " + getStart() + " + " + getLength(); } }