public SolrReader(SolrTable table, SolrSplit split, String[] readColumns, int numInputBufferRows) throws IOException { this.split = split; this.numBufferRows = numBufferRows; this.readColumns = readColumns; if (numInputBufferRows > 0) { table.setNumInputBufferRows(numInputBufferRows); } cursor = table.findAll(readColumns, (int) split.getStart(), (int) split.getLength()); }
@Override public float getProgress() throws IOException { return split.getLength() > 0 ? pos / (float) split.getLength() : 1.0f; }