/** * Other than gathering statistics for the ANALYZE command, the table scan operator * does not do anything special other than just forwarding the row. Since the table * data is always read as part of the map-reduce framework by the mapper. But, when this * assumption stops to be true, i.e table data won't be only read by the mapper, this * operator will be enhanced to read the table. **/ @Override public void process(Object row, int tag) throws HiveException { if (rowLimit >= 0) { if (checkSetDone(row, tag)) { return; } } if (conf != null && conf.isGatherStats()) { gatherStats(row); } if (vectorized) { vectorForward((VectorizedRowBatch) row); } else { forward(row, inputObjInspectors[tag]); } }
/** * Other than gathering statistics for the ANALYZE command, the table scan operator * does not do anything special other than just forwarding the row. Since the table * data is always read as part of the map-reduce framework by the mapper. But, when this * assumption stops to be true, i.e table data won't be only read by the mapper, this * operator will be enhanced to read the table. **/ @Override public void process(Object row, int tag) throws HiveException { if (rowLimit >= 0) { if (row instanceof VectorizedRowBatch) { VectorizedRowBatch batch = (VectorizedRowBatch) row; if (currCount >= rowLimit) { setDone(true); return; } if (currCount + batch.size > rowLimit) { batch.size = rowLimit - currCount; } currCount += batch.size; } else if (currCount++ >= rowLimit) { setDone(true); return; } } if (conf != null && conf.isGatherStats()) { gatherStats(row); } forward(row, inputObjInspectors[tag]); }
/** * Other than gathering statistics for the ANALYZE command, the table scan operator * does not do anything special other than just forwarding the row. Since the table * data is always read as part of the map-reduce framework by the mapper. But, this * assumption is not true, i.e table data is not only read by the mapper, this * operator will be enhanced to read the table. **/ @Override public void processOp(Object row, int tag) throws HiveException { if (conf != null && conf.isGatherStats()) { gatherStats(row); } forward(row, inputObjInspectors[tag]); }
/** * Other than gathering statistics for the ANALYZE command, the table scan operator * does not do anything special other than just forwarding the row. Since the table * data is always read as part of the map-reduce framework by the mapper. But, when this * assumption stops to be true, i.e table data won't be only read by the mapper, this * operator will be enhanced to read the table. **/ @Override public void process(Object row, int tag) throws HiveException { if (rowLimit >= 0 && currCount++ >= rowLimit) { setDone(true); return; } if (conf != null && conf.isGatherStats()) { gatherStats(row); } forward(row, inputObjInspectors[tag]); }