public void initialize(final InputSplit genericSplit, final TaskAttemptContext context) throws IOException {
final FileSplit split = (FileSplit) genericSplit;
final Configuration job = context.getConfiguration();
long start = split.getStart();
final Path file = split.getPath();
if (null != new CompressionCodecFactory(job).getCodec(file)) {
throw new IllegalStateException("Compression is not supported for the (binary) Gremlin Kryo format");
}
// open the file and seek to the start of the split
this.inputStream = file.getFileSystem(job).open(split.getPath());
this.inputStream.seek(start);