ShardedInputSplit extends InputSplit implements Writable { @Override public String[] getLocations() throws IOException { return new String[0]; } 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 testGetLocations() throws IOException { assertThat(split1.getLocations()).isNotNull(); assertThat(split1.getLocations()).isEmpty(); }