public synchronized void addSplit(Split split)
{
checkNotNull(split, "split is null");
checkState(cursor == null && pageSource == null, "split already set");
ConnectorPageSource pageSource = pageSourceProvider.createPageSource(split, columns);
if (pageSource instanceof RecordPageSource) {
cursor = ((RecordPageSource) pageSource).getCursor();
}
else {
this.pageSource = pageSource;