Examples of closeRegionOperation()


Examples of org.apache.hadoop.hbase.regionserver.HRegion.closeRegionOperation()

            } while (hasMore);
        } finally {
            try {
                scanner.close();
            } finally {
                region.closeRegionOperation();
            }
        }
    }

    private PhoenixIndexCodec getCodec() {
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.HRegion.closeRegionOperation()

                        // Aggregate values here
                        aggregators.aggregate(rowAggregators, result);
                    }
                } while (hasMore && groupByCache.size() < limit);
            } finally {
                region.closeRegionOperation();
            }

            RegionScanner regionScanner = groupByCache.getScanner(s);

            // Do not sort here, but sort back on the client instead
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.HRegion.closeRegionOperation()

                        atLimit = rowCount + countOffset >= limit;
                        // Do rowCount + 1 b/c we don't have to wait for a complete
                        // row in the case of a DISTINCT with a LIMIT
                    } while (hasMore && !aggBoundary && !atLimit);
                } finally {
                    region.closeRegionOperation();
                }

                if (currentKey != null) {
                    byte[] value = aggregators.toBytes(rowAggregators);
                    KeyValue keyValue =
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.HRegion.closeRegionOperation()

            chunk.resize(actualSize);
        } catch (Throwable t) {
            ServerUtil.throwIOException(region.getRegionNameAsString(), t);
            return null;
        } finally {
            region.closeRegionOperation();
        }
        return new BaseRegionScanner() {
            private Tuple tuple = firstTuple;
           
            @Override
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.HRegion.closeRegionOperation()

            }
        } catch (Throwable t) {
            ServerUtil.throwIOException("Increment of sequence " + Bytes.toStringBinary(row), t);
            return null; // Impossible
        } finally {
            region.closeRegionOperation();
        }
    }
   
  /**
   * Creates a new KeyValue for a long value
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.HRegion.closeRegionOperation()

            }
        } catch (Throwable t) {
            ServerUtil.throwIOException("Increment of sequence " + Bytes.toStringBinary(row), t);
            return null; // Impossible
        } finally {
            region.closeRegionOperation();
        }
    }

}
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.HRegion.closeRegionOperation()

                    hasAny = true;
                }
            } while (hasMore);
        } finally {
            innerScanner.close();
            region.closeRegionOperation();
        }
       
        if (logger.isInfoEnabled()) {
          logger.info("Finished scanning " + rowCount + " rows for ungrouped coprocessor scan " + scan);
        }
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.HRegion.closeRegionOperation()

    // This check for isClosed and isClosing is needed because we should not unlock
    // when the index region lock would have already been released before throwing NSRE

    // TODO : What is the scenario that i may get an IllegalMonitorStateException
    if (!indexRegion.isClosed() || !indexRegion.isClosing()) {
      indexRegion.closeRegionOperation();
    }
  }

  @Override
  public void postStartRegionOperation(ObserverContext<RegionCoprocessorEnvironment> e)
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.HRegion.closeRegionOperation()

                    hasAny = true;
                }
            } while (hasMore);
        } finally {
            innerScanner.close();
            region.closeRegionOperation();
        }
       
        if (logger.isInfoEnabled()) {
          logger.info("Finished scanning " + rowCount + " rows for ungrouped coprocessor scan " + scan);
        }
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.HRegion.closeRegionOperation()

                            chunk.resize(estSize);
                        }
                    }
                } while (hasMore);
            } finally {
                region.closeRegionOperation();
            }
   
            // Compute final allocation
            estSize = sizeOfUnorderedGroupByMap(aggregateMap.size(), estValueSize);
            chunk.resize(estSize);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.