Examples of deleteColumns()


Examples of org.apache.hadoop.hbase.client.Delete.deleteColumns()

   */
  public static void deleteDaughtersReferencesInParent(CatalogTracker catalogTracker,
      final HRegionInfo parent)
  throws NotAllMetaRegionsOnlineException, IOException {
    Delete delete = new Delete(parent.getRegionName());
    delete.deleteColumns(HConstants.CATALOG_FAMILY, HConstants.SPLITA_QUALIFIER);
    delete.deleteColumns(HConstants.CATALOG_FAMILY, HConstants.SPLITB_QUALIFIER);
    deleteFromMetaTable(catalogTracker, delete);
    LOG.info("Deleted daughters references, qualifier=" + Bytes.toStringBinary(HConstants.SPLITA_QUALIFIER) +
      " and qualifier=" + Bytes.toStringBinary(HConstants.SPLITB_QUALIFIER) +
      ", from parent " + parent.getRegionNameAsString());
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Delete.deleteColumns()

  public static void deleteDaughtersReferencesInParent(CatalogTracker catalogTracker,
      final HRegionInfo parent)
  throws NotAllMetaRegionsOnlineException, IOException {
    Delete delete = new Delete(parent.getRegionName());
    delete.deleteColumns(HConstants.CATALOG_FAMILY, HConstants.SPLITA_QUALIFIER);
    delete.deleteColumns(HConstants.CATALOG_FAMILY, HConstants.SPLITB_QUALIFIER);
    deleteFromMetaTable(catalogTracker, delete);
    LOG.info("Deleted daughters references, qualifier=" + Bytes.toStringBinary(HConstants.SPLITA_QUALIFIER) +
      " and qualifier=" + Bytes.toStringBinary(HConstants.SPLITB_QUALIFIER) +
      ", from parent " + parent.getRegionNameAsString());
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Delete.deleteColumns()

        addAttributes(delete, attributes);
        byte [][] famAndQf = KeyValue.parseColumn(getBytes(column));
        if (famAndQf.length == 1) {
          delete.deleteFamily(famAndQf[0], timestamp);
        } else {
          delete.deleteColumns(famAndQf[0], famAndQf[1], timestamp);
        }
        table.delete(delete);

      } catch (IOException e) {
        LOG.warn(e.getMessage(), e);
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Delete.deleteColumns()

          byte[][] famAndQf = KeyValue.parseColumn(getBytes(m.column));
          if (m.isDelete) {
            if (famAndQf.length == 1) {
              delete.deleteFamily(famAndQf[0], timestamp);
            } else {
              delete.deleteColumns(famAndQf[0], famAndQf[1], timestamp);
            }
            delete.setWriteToWAL(m.writeToWAL);
          } else {
            if(famAndQf.length == 1) {
              put.add(famAndQf[0], HConstants.EMPTY_BYTE_ARRAY,
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Delete.deleteColumns()

          if (m.isDelete) {
            // no qualifier, family only.
            if (famAndQf.length == 1) {
              delete.deleteFamily(famAndQf[0], timestamp);
            } else {
              delete.deleteColumns(famAndQf[0], famAndQf[1], timestamp);
            }
            delete.setWriteToWAL(m.writeToWAL);
          } else {
            if(famAndQf.length == 1) {
              put.add(famAndQf[0], HConstants.EMPTY_BYTE_ARRAY,
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Delete.deleteColumns()

                ts + "_random_" + rand.nextLong());
            put.add(cf, qual, ts, value);
          } else if (rand.nextDouble() < 0.8) {
            del.deleteColumn(cf, qual, ts);
          } else {
            del.deleteColumns(cf, qual, ts);
          }
        }

        if (!put.isEmpty()) {
          table.put(put);
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Delete.deleteColumns()

    put.add(fam, serverinfo, Bytes.toBytes("ip_address"));
    region.put(put);

    // ok now delete a split:
    Delete delete = new Delete(row);
    delete.deleteColumns(fam, splitA);
    region.delete(delete, null, true);

    // assert some things:
    Get get = new Get(row).addColumn(fam, serverinfo);
    Result result = region.get(get, null);
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Delete.deleteColumns()

  }

  public void testDeleteColumns_PostInsert() throws IOException,
      InterruptedException {
    Delete delete = new Delete(row);
    delete.deleteColumns(fam1, qual1);
    doTestDelete_AndPostInsert(delete);
  }

  public void testDeleteFamily_PostInsert() throws IOException, InterruptedException {
    Delete delete = new Delete(row);
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Delete.deleteColumns()

      LOG.debug(split.getRegionNameAsString() + "/" + split.getEncodedName()
          + " no longer has references to " + Bytes.toStringBinary(parent));
    }
   
    Delete delete = new Delete(parent);
    delete.deleteColumns(splitFamily, splitQualifier);
    srvr.delete(metaRegionName, delete);
   
    return result;
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Delete.deleteColumns()

   */
  public static void cleanRegionInMETA(final HRegionInterface srvr,
    final byte [] metaRegionName, final HRegionInfo info)
  throws IOException {
    Delete del = new Delete(info.getRegionName());
    del.deleteColumns(CATALOG_FAMILY, SERVER_QUALIFIER);
    del.deleteColumns(CATALOG_FAMILY, STARTCODE_QUALIFIER);
    srvr.delete(metaRegionName, del);
  }

  /**
 
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.