@Override protected void pushRow(InspectableObject row) throws HiveException { if (random.nextFloat() < samplePercent) { sampled++; super.pushRow(row); } } }
@Override protected void pushRow(InspectableObject row) throws HiveException { if (random.nextFloat() < samplePercent) { sampled++; super.pushRow(row); } } }
@Override public boolean pushRow() throws IOException, HiveException { if (!super.pushRow()) { return false; } if (sampled < sampleNum) { return true; } flushRow(); return false; }
@Override public boolean pushRow() throws IOException, HiveException { if (!super.pushRow()) { return false; } if (sampled < sampleNum) { return true; } flushRow(); return false; }
ts.initialize(job, new ObjectInspector[]{fetcher.getOutputObjectInspector()}); OperatorUtils.setChildrenCollector(ts.getChildOperators(), sampler); while (fetcher.pushRow()) { } } finally { fetcher.clearFetchContext();
/** * Get the next row and push down it to operator tree. * Currently only used by FetchTask. **/ public boolean pushRow() throws IOException, HiveException { if (operator == null) { return false; } if (work.getRowsComputedUsingStats() != null) { for (List<Object> row : work.getRowsComputedUsingStats()) { operator.process(row, 0); } flushRow(); return true; } InspectableObject row = getNextRow(); if (row != null) { pushRow(row); } else { flushRow(); } return row != null; }
ts.initialize(job, new ObjectInspector[]{fetcher.getOutputObjectInspector()}); OperatorUtils.setChildrenCollector(ts.getChildOperators(), sampler); while (fetcher.pushRow()) { } } finally { fetcher.clearFetchContext();
/** * Get the next row and push down it to operator tree. * Currently only used by FetchTask. **/ public boolean pushRow() throws IOException, HiveException { if (operator == null) { return false; } if (work.getRowsComputedUsingStats() != null) { for (List<Object> row : work.getRowsComputedUsingStats()) { operator.process(row, 0); } flushRow(); return true; } InspectableObject row = getNextRow(); if (row != null) { pushRow(row); } else { flushRow(); } return row != null; }
if (!fetch.pushRow()) { if (work.getLeastNumRows() > 0) { throw new HiveException("leastNumRows check failed");
if (!fetch.pushRow()) { if (work.getLeastNumRows() > 0) { throw new CommandNeedRetryException();
@Override protected void pushRow(InspectableObject row) throws HiveException { if (random.nextFloat() < samplePercent) { sampled++; super.pushRow(row); } } }
@Override public boolean pushRow() throws IOException, HiveException { if (!super.pushRow()) { return false; } if (sampled < sampleNum) { return true; } flushRow(); return false; }
ts.initialize(job, new ObjectInspector[]{fetcher.getOutputObjectInspector()}); OperatorUtils.setChildrenCollector(ts.getChildOperators(), sampler); while (fetcher.pushRow()) { } } finally { fetcher.clearFetchContext();
/** * Get the next row and push down it to operator tree. * Currently only used by FetchTask. **/ public boolean pushRow() throws IOException, HiveException { if (work.getRowsComputedUsingStats() != null) { for (List<Object> row : work.getRowsComputedUsingStats()) { operator.process(row, 0); } flushRow(); return true; } InspectableObject row = getNextRow(); if (row != null) { pushRow(row); } else { flushRow(); } return row != null; }
if (!fetch.pushRow()) { if (work.getLeastNumRows() > 0) { throw new CommandNeedRetryException();