@Override public Object getCurrentValue() throws IOException, InterruptedException { if (returnColumnarBatch) return columnarBatch; return columnarBatch.getRow(batchIdx - 1); }
public ColumnarBatch.Row findOrInsert(long key) { int idx = find(key); if (idx != -1 && buckets[idx] == -1) { batch.column(0).putLong(numRows, key); batch.column(1).putLong(numRows, 0); buckets[idx] = numRows++; } return batch.getRow(buckets[idx]); }
/** * Returns the row in this batch at `rowId`. Returned row is reused across calls. */ public InternalRow getRow(int rowId) { return columnarBatch.getRow(rowId); }
@Override public Object getCurrentValue() throws IOException, InterruptedException { if (returnColumnarBatch) return columnarBatch; return columnarBatch.getRow(batchIdx - 1); }
public ColumnarBatch.Row findOrInsert(long key) { int idx = find(key); if (idx != -1 && buckets[idx] == -1) { batch.column(0).putLong(numRows, key); batch.column(1).putLong(numRows, 0); buckets[idx] = numRows++; } return batch.getRow(buckets[idx]); }