Package org.apache.hadoop.hbase.client

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


    doTestDelete_AndPostInsert(delete);
  }

  public void testDeleteFamily_PostInsert() throws IOException, InterruptedException {
    Delete delete = new Delete(row);
    delete.deleteFamily(fam1);
    doTestDelete_AndPostInsert(delete);
  }

  public void doTestDelete_AndPostInsert(Delete delete)
      throws IOException, InterruptedException {
View Full Code Here


    Delete d = new Delete(T1, ts, null);
    d.deleteColumns(c0, c0, ts);
    region.delete(d, null, true);

    d = new Delete(T1, ts, null);
    d.deleteFamily(c0);
    region.delete(d, null, true);

    d = new Delete(T1, ts, null);
    d.deleteColumn(c0, c0, ts+1);
    region.delete(d, null, true);
View Full Code Here

    Delete d = new Delete(T1, ts, null);
    d.deleteColumns(c0, c0, ts);
    region.delete(d, null, true);

    d = new Delete(T1, ts, null);
    d.deleteFamily(c0, ts);
    region.delete(d, null, true);

    d = new Delete(T1, ts, null);
    d.deleteColumn(c0, c0, ts+1);
    region.delete(d, null, true);
View Full Code Here

    Delete d = new Delete(T1, ts+2, null);
    d.deleteColumns(c0, c0, ts+2);
    region.delete(d, null, true);

    d = new Delete(T1, ts+2, null);
    d.deleteFamily(c1, ts+2);
    region.delete(d, null, true);

    d = new Delete(T2, ts+2, null);
    d.deleteFamily(c0, ts+2);
    region.delete(d, null, true);
View Full Code Here

    d = new Delete(T1, ts+2, null);
    d.deleteFamily(c1, ts+2);
    region.delete(d, null, true);

    d = new Delete(T2, ts+2, null);
    d.deleteFamily(c0, ts+2);
    region.delete(d, null, true);

    // add an older delete, to make sure it is filtered
    d = new Delete(T1, ts-10, null);
    d.deleteFamily(c1, ts-10);
View Full Code Here

    d.deleteFamily(c0, ts+2);
    region.delete(d, null, true);

    // add an older delete, to make sure it is filtered
    d = new Delete(T1, ts-10, null);
    d.deleteFamily(c1, ts-10);
    region.delete(d, null, true);

    // ts + 2 does NOT include the delete at ts+2
    checkGet(region, T1, c0, c0, ts+2, T2, T1);
    checkGet(region, T1, c0, c1, ts+2, T2, T1);
View Full Code Here

        HTable t = new HTable(conf, TEST_TABLE.getTableName());
        try {
          Delete d = new Delete(TEST_ROW1, 127);
          d.deleteColumns(TEST_FAMILY1, TEST_Q1);
          d.deleteColumns(TEST_FAMILY1, TEST_Q2);
          d.deleteFamily(TEST_FAMILY2, 129);
          t.delete(d);
          fail("user2 can not do the delete");
        } catch (Exception e) {

        } finally {
View Full Code Here

          } else if (deleteType == DeleteType.DELETE_MULTIPLE_VERSIONS) {
            delete.deleteColumns(family, qualifier, ts);
          } else if (deleteType == DeleteType.DELETE_FAMILY_VERSION) {
            delete.deleteFamilyVersion(family, ts);
          } else {
            delete.deleteFamily(family, ts);
          }
        }
      }
    }
    delete.setDurability(toDurability(proto.getDurability()));
View Full Code Here

      @Override
      public Void run() throws Exception {
        HTable t = new HTable(conf, TEST_TABLE.getTableName());
        try {
          Delete d = new Delete(TEST_ROW2);
          d.deleteFamily(TEST_FAMILY1);
          t.delete(d);
        } finally {
          t.close();
        }
        return null;
View Full Code Here

          } else if (deleteType == DeleteType.DELETE_MULTIPLE_VERSIONS) {
            delete.deleteColumns(family, qualifier, ts);
          } else if (deleteType == DeleteType.DELETE_FAMILY_VERSION) {
            delete.deleteFamilyVersion(family, ts);
          } else {
            delete.deleteFamily(family, ts);
          }
        }
      }
    }
    delete.setDurability(toDurability(proto.getDurability()));
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.