Package org.apache.hadoop.hbase.client

Examples of org.apache.hadoop.hbase.client.Table.flushCommits()


    Table table = util.createTable(tableName, new byte[][] {A, B, C});
    try {
      Put p = new Put(Bytes.toBytes(0));
      p.add(A, A, A);
      table.put(p);
      table.flushCommits();
      p = new Put(Bytes.toBytes(0));
      p.add(A, A, A);
      verifyMethodResult(SimpleRegionObserver.class,
          new String[] {"hadPreCheckAndPut",
              "hadPreCheckAndPutAfterRowLock", "hadPostCheckAndPut"},
View Full Code Here


    Table table = util.createTable(tableName, new byte[][] {A, B, C});
    try {
      Put p = new Put(Bytes.toBytes(0));
      p.add(A, A, A);
      table.put(p);
      table.flushCommits();
      Delete d = new Delete(Bytes.toBytes(0));
      table.delete(d);
      verifyMethodResult(SimpleRegionObserver.class,
          new String[] {"hadPreCheckAndDelete",
              "hadPreCheckAndDeleteAfterRowLock", "hadPostCheckAndDelete"},
View Full Code Here

    // Having another row would actually test the filter.
    p = new Put(ROW2);
    p.add(FAMILYA, QUAL, now, QUAL);
    exportTable.put(p);
    // Flush the commits.
    exportTable.flushCommits();

    // Export the simple table
    String[] args = new String[] { EXPORT_TABLE, FQ_OUTPUT_DIR, "1000" };
    assertTrue(runExport(args));
View Full Code Here

      hBaseAdmin.createTable(desc);
      table = new HTable(conf, tableName);
      Put put = new Put(Bytes.toBytes("a-b-0-0"));
      put.add(fam, qual1, Bytes.toBytes("c1-value"));
      table.put(put);
      table.flushCommits();
      put = new Put(row1_bytes);
      put.add(fam, qual1, Bytes.toBytes("c1-value"));
      table.put(put);
      table.flushCommits();
      put = new Put(row2_bytes);
View Full Code Here

      table.put(put);
      table.flushCommits();
      put = new Put(row1_bytes);
      put.add(fam, qual1, Bytes.toBytes("c1-value"));
      table.put(put);
      table.flushCommits();
      put = new Put(row2_bytes);
      put.add(fam, qual2, Bytes.toBytes("c2-value"));
      table.put(put);
      table.flushCommits();
      put = new Put(row3_bytes);
View Full Code Here

      table.put(put);
      table.flushCommits();
      put = new Put(row2_bytes);
      put.add(fam, qual2, Bytes.toBytes("c2-value"));
      table.put(put);
      table.flushCommits();
      put = new Put(row3_bytes);
      put.add(fam, qual2, Bytes.toBytes("c2-value-2"));
      table.put(put);
      table.flushCommits();
      put = new Put(row4_bytes);
View Full Code Here

      table.put(put);
      table.flushCommits();
      put = new Put(row3_bytes);
      put.add(fam, qual2, Bytes.toBytes("c2-value-2"));
      table.put(put);
      table.flushCommits();
      put = new Put(row4_bytes);
      put.add(fam, qual2, Bytes.toBytes("c2-value-3"));
      table.put(put);
      table.flushCommits();
      hBaseAdmin.flush(tableName);
View Full Code Here

      table.put(put);
      table.flushCommits();
      put = new Put(row4_bytes);
      put.add(fam, qual2, Bytes.toBytes("c2-value-3"));
      table.put(put);
      table.flushCommits();
      hBaseAdmin.flush(tableName);
      String[] rows = new String[3];
      rows[0] = row1;
      rows[1] = row2;
      rows[2] = row3;
View Full Code Here

      put = new Put(ROW_2);
      put.add(COLUMN_1, QUALIFIER_1, TS_1, VALUE_1);
      put.add(COLUMN_1, QUALIFIER_1, TS_2, VALUE_2);
      put.add(COLUMN_2, QUALIFIER_2, TS_2, VALUE_2);
      table.put(put);
      table.flushCommits();
    } finally {
      if (null != table) table.close();
    }
    remoteTable = new RemoteHTable(
      new Client(new Cluster().add("localhost",
View Full Code Here

            getValue(batchId, i, j));
      }
      put.setDurability(Durability.SKIP_WAL);
      table.put(put);
    }
    table.flushCommits();
    table.close();
  }

  static void verifyTestDataBatch(Configuration conf, TableName tableName,
      int batchId) throws Exception {
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.