@Override public boolean equals(Object obj) { if (obj == this) { return true; } else if (obj instanceof FileInputSplit && super.equals(obj)) { FileInputSplit other = (FileInputSplit) obj; return this.start == other.start && this.length == other.length && (this.file == null ? other.file == null : (other.file != null && this.file.equals(other.file))); } else { return false; } }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } else if (obj instanceof FileInputSplit && super.equals(obj)) { FileInputSplit other = (FileInputSplit) obj; return this.start == other.start && this.length == other.length && (this.file == null ? other.file == null : (other.file != null && this.file.equals(other.file))); } else { return false; } }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } else if (obj instanceof FileInputSplit && super.equals(obj)) { FileInputSplit other = (FileInputSplit) obj; return this.start == other.start && this.length == other.length && (this.file == null ? other.file == null : (other.file != null && this.file.equals(other.file))); } else { return false; } }
@Override public void inputSplitsAssigned(int taskId, List<InputSplit> inputSplits) { for (InputSplit inputSplit : inputSplits) { boolean found = false; for (AssigningInputSplit split : unassigned) { if (split.getSplit().equals(inputSplit)) { unassigned.remove(split); found = true; break; } } if (!found) { throw new FlinkRuntimeException("InputSplit not found for " + inputSplit.getSplitNumber()); } } }