220221222223224225226227228229230
chunk.resize(actualSize); } catch (Throwable t) { ServerUtil.throwIOException(region.getRegionNameAsString(), t); return null; } finally { region.closeRegionOperation(); } return new BaseRegionScanner() { private Tuple tuple = firstTuple; @Override
287288289290291292293294295296297
hasAny = true; } } while (hasMore); } finally { innerScanner.close(); region.closeRegionOperation(); } if (logger.isInfoEnabled()) { logger.info("Finished scanning " + rowCount + " rows for ungrouped coprocessor scan " + scan); }
298299300301302303304305306307308
129130131132133134135136137138139
} } catch (Throwable t) { ServerUtil.throwIOException("Increment of sequence " + Bytes.toStringBinary(row), t); return null; // Impossible } finally { region.closeRegionOperation(); } } /** * Override the preAppend for checkAndPut and checkAndDelete, as we need the ability to
249250251252253254255256257258
} } catch (Throwable t) { ServerUtil.throwIOException("Increment of sequence " + Bytes.toStringBinary(row), t); return null; // Impossible } finally { region.closeRegionOperation(); } } }
386387388389390391392393394395396
// Aggregate values here aggregators.aggregate(rowAggregators, result); } } while (hasMore); } finally { region.closeRegionOperation(); } RegionScanner regionScanner = groupByCache.getScanner(s); // Do not sort here, but sort back on the client instead
464465466467468469470471472473474
currentKey = key; } } } while (hasMore && !aggBoundary); } finally { region.closeRegionOperation(); } if (currentKey != null) { byte[] value = aggregators.toBytes(rowAggregators); KeyValue keyValue =
176177178179180181182183184185186
7475767778798081828384
} while (hasMore); } finally { try { scanner.close(); } finally { region.closeRegionOperation(); } } } private PhoenixIndexCodec getCodec() {
7374757677787980818283