/** * get batch result * * @return rows */ public List<Object[]> getBatchValue() { if (null != inputMetricsStats) { inputMetricsStats.incrementRecordRead(1L); } List<Object[]> objects = ((ChunkRowIterator) carbonIterator).nextBatch(); rowCount += objects.size(); return objects; }
@Override public Object getCurrentValue() throws IOException, InterruptedException { if (isVectorReader) { int value = vectorProxy.numRows(); if (inputMetricsStats != null) { inputMetricsStats.incrementRecordRead((long) value); } return vectorProxy.getColumnarBatch(); } if (inputMetricsStats != null) { inputMetricsStats.incrementRecordRead(1L); } return outputRow; }
@Override public T getCurrentValue() throws IOException, InterruptedException { rowCount += 1; if (null != inputMetricsStats) { inputMetricsStats.incrementRecordRead(1L); } return readSupport.readRow(carbonIterator.next()); }
@Override public Object getCurrentValue() throws IOException, InterruptedException { if (returnColumnarBatch) { int value = carbonColumnarBatch.getActualSize(); rowCount += value; if (inputMetricsStats != null) { inputMetricsStats.incrementRecordRead((long) value); } return vectorProxy.getColumnarBatch(); } rowCount += 1; return vectorProxy.getRow(batchIdx - 1); }