Examples of batchMutate()


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

    if (puts == null) {
      LOG.fatal("Problem encountered when creating new hbase:meta entries.  " +
        "You may need to restore the previously sidelined hbase:meta");
      return false;
    }
    meta.batchMutate(puts.toArray(new Put[0]));
    HRegion.closeHRegion(meta);
    LOG.info("Success! hbase:meta table rebuilt.");
    LOG.info("Old hbase:meta is moved into " + backupDir);
    return true;
  }
View Full Code Here

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

    if (puts == null) {
      LOG.fatal("Problem encountered when creating new hbase:meta entries.  " +
        "You may need to restore the previously sidelined hbase:meta");
      return false;
    }
    meta.batchMutate(puts.toArray(new Put[0]));
    HRegion.closeHRegion(meta);
    LOG.info("Success! hbase:meta table rebuilt.");
    LOG.info("Old hbase:meta is moved into " + backupDir);
    return true;
  }
View Full Code Here

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

          int i = 0;
          for (List<KeyValue> deleteRow : deleteRows) {
            Delete delete = createDeleteMutation(deleteRow, deleteType, timestamp);
            deleteWithLockArr[i++] = new Pair<Mutation, Integer>(delete, null);
          }
          OperationStatus[] opStatus = region.batchMutate(deleteWithLockArr);
          for (i = 0; i < opStatus.length; i++) {
            if (opStatus[i].getOperationStatusCode() != OperationStatusCode.SUCCESS) {
              break;
            }
            totalRowsDeleted++;
View Full Code Here

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

    if (puts == null) {
      LOG.fatal("Problem encountered when creating new hbase:meta entries.  " +
        "You may need to restore the previously sidelined hbase:meta");
      return false;
    }
    meta.batchMutate(puts.toArray(new Put[0]));
    HRegion.closeHRegion(meta);
    LOG.info("Success! hbase:meta table rebuilt.");
    LOG.info("Old hbase:meta is moved into " + backupDir);
    return true;
  }
View Full Code Here

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

                }
                // update the KeyValues on the server
                @SuppressWarnings("unchecked")
                Pair<Mutation,Integer>[] mutations = new Pair[1];
                mutations[0] = new Pair<Mutation,Integer>(put, lid);
                region.batchMutate(mutations);
                // return a Result with the updated KeyValues
                return new Result(newkvs);
            } finally {
                region.releaseRowLock(lid);
            }
View Full Code Here

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

                    }
                }
                @SuppressWarnings("unchecked")
                Pair<Mutation,Integer>[] mutations = new Pair[1];
                mutations[0] = new Pair<Mutation,Integer>(m, lid);
                region.batchMutate(mutations);
                long serverTimestamp = MetaDataUtil.getClientTimeStamp(m);
                // Return result with single KeyValue. The only piece of information
                // the client cares about is the timestamp, which is the timestamp of
                // when the mutation was actually performed (useful in the case of .
                return new Result(Collections.singletonList(KeyValueUtil.newKeyValue(row, PhoenixDatabaseMetaData.SEQUENCE_FAMILY_BYTES, QueryConstants.EMPTY_COLUMN_BYTES, serverTimestamp, SUCCESS_VALUE)));
View Full Code Here

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

    if (puts == null) {
      LOG.fatal("Problem encountered when creating new hbase:meta entries.  " +
        "You may need to restore the previously sidelined hbase:meta");
      return false;
    }
    meta.batchMutate(puts.toArray(new Put[0]));
    HRegion.closeHRegion(meta);
    LOG.info("Success! hbase:meta table rebuilt.");
    LOG.info("Old hbase:meta is moved into " + backupDir);
    return true;
  }
View Full Code Here

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

    if (puts == null) {
      LOG.fatal("Problem encountered when creating new .META. entries.  " +
        "You may need to restore the previously sidelined .META.");
      return false;
    }
    meta.batchMutate(puts.toArray(new Put[0]));
    HRegion.closeHRegion(meta);
    LOG.info("Success! .META. table rebuilt.");
    LOG.info("Old .META. is moved into " + backupDir);
    return true;
  }
View Full Code Here

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

          Mutation[] deleteArr = new Mutation[deleteRows.size()];
          int i = 0;
          for (List<KeyValue> deleteRow : deleteRows) {
            deleteArr[i++] = createDeleteMutation(deleteRow, deleteType, timestamp);
          }
          OperationStatus[] opStatus = region.batchMutate(deleteArr);
          for (i = 0; i < opStatus.length; i++) {
            if (opStatus[i].getOperationStatusCode() != OperationStatusCode.SUCCESS) {
              break;
            }
            totalRowsDeleted++;
View Full Code Here

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

          int i = 0;
          for (List<KeyValue> deleteRow : deleteRows) {
            Delete delete = createDeleteMutation(deleteRow, deleteType, timestamp);
            deleteWithLockArr[i++] = new Pair<Mutation, Integer>(delete, null);
          }
          OperationStatus[] opStatus = region.batchMutate(deleteWithLockArr);
          for (i = 0; i < opStatus.length; i++) {
            if (opStatus[i].getOperationStatusCode() != OperationStatusCode.SUCCESS) {
              break;
            }
            totalRowsDeleted++;
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.