ShardedInputSplit extends InputSplit implements Writable { @Override public String toString() { return String.format("%s[%d estimated records]", shardDirectoryAndPattern, estimatedNumRecords); } ShardedInputSplit();  ShardedInputSplit(Path shardDirectoryAndPattern, long estimatedNumRecords); Path getShardDirectoryAndPattern(); @Override long getLength(); @Override String[] getLocations(); @Override String toString(); @Override void write(DataOutput out); @Override void readFields(DataInput in);  }
@Test public void testToString() throws IOException { assertThat(split1.toString()).contains(shardPath1.toString()); assertThat(split1.toString()).contains(Long.toString(numRecords1)); }