// Build RecordScan
RecordScan scan = getScan(repository);
// Change the start/stop record IDs on the scan to the current split
TableSplit split = (TableSplit)inputSplit;
scan.setRawStartRecordId(split.getStartRow());
scan.setRawStopRecordId(split.getEndRow());
IdRecordScanner scanner = null;
try {
String hbaseTableName = Bytes.toString(split.getTableName());
String repositoryTableName = RepoAndTableUtil.extractLilyTableName(repositoryName, hbaseTableName);
scanner = lilyClient.getRepository(repositoryName).getTable(repositoryTableName).getScannerWithIds(scan);
} catch (RepositoryException e) {
Closer.close(lilyClient);
throw new IOException("Error setting up RecordScanner", e);