Package org.hbase.async

Examples of org.hbase.async.GetRequest.qualifier()


      if (args.length > 4) {
        get.family(args[4]);
      }
      if (args.length > 5) {
        if (args.length == 6) {
          get.qualifier(args[5]);
        } else {
          final byte[][] qualifiers = new byte[args.length - 5][];
          for (int i = 5; i < args.length; i++) {
            qualifiers[i - 5] = args[i].getBytes();
          }
View Full Code Here


  public static Deferred<Branch> fetchBranchOnly(final TSDB tsdb,
      final byte[] branch_id) {
   
    final GetRequest get = new GetRequest(tsdb.treeTable(), branch_id);
    get.family(Tree.TREE_FAMILY());
    get.qualifier(BRANCH_QUALIFIER);
   
    /**
     * Called after the get returns with or without data. If we have data, we'll
     * parse the branch and return it.
     */
 
View Full Code Here

  private static long getMaxMetricID(final TSDB tsdb) {
    // first up, we need the max metric ID so we can split up the data table
    // amongst threads.
    final GetRequest get = new GetRequest(tsdb.uidTable(), new byte[] { 0 });
    get.family("id".getBytes(CHARSET));
    get.qualifier("metrics".getBytes(CHARSET));
    ArrayList<KeyValue> row;
    try {
      row = tsdb.getClient().get(get).joinUninterruptibly();
      if (row == null || row.isEmpty()) {
        throw new IllegalStateException("No data in the metric max UID cell");
View Full Code Here

    }

    final GetRequest get = new GetRequest(tsdb.dataTable(),
        getRowKey(start_time, tsuid));
    get.family(FAMILY);
    get.qualifier(getQualifier(start_time));
    return tsdb.getClient().get(get).addCallbackDeferring(new GetCB());   
  }
 
  /**
   * Scans through the global annotation storage rows and returns a list of
View Full Code Here

      public Deferred<Boolean> call(final String name) throws Exception {

        final GetRequest get = new GetRequest(tsdb.uidTable(),
            UniqueId.stringToUid(uid));
        get.family(FAMILY);
        get.qualifier((type.toString().toLowerCase() + "_meta").getBytes(CHARSET));
       
        // #2 deferred
        return tsdb.getClient().get(get)
          .addCallbackDeferring(new StoreUIDMeta());
      }
View Full Code Here

         
        }
       
        final GetRequest get = new GetRequest(tsdb.uidTable(), uid);
        get.family(FAMILY);
        get.qualifier((type.toString().toLowerCase() + "_meta").getBytes(CHARSET));
        return tsdb.getClient().get(get).addCallbackDeferring(new FetchMetaCB());
      }
    }
   
    // verify that the UID is still in the map before fetching from storage
View Full Code Here

      public Deferred<Boolean> call(final String name) throws Exception {

        final GetRequest get = new GetRequest(tsdb.uidTable(),
            UniqueId.stringToUid(uid));
        get.family(FAMILY);
        get.qualifier((type.toString().toLowerCase() + "_meta").getBytes(CHARSET));
       
        // #2 deferred
        return tsdb.getClient().get(get)
          .addCallbackDeferring(new StoreUIDMeta());
      }
View Full Code Here

         
        }
       
        final GetRequest get = new GetRequest(tsdb.uidTable(), uid);
        get.family(FAMILY);
        get.qualifier((type.toString().toLowerCase() + "_meta").getBytes(CHARSET));
        return tsdb.getClient().get(get).addCallbackDeferring(new FetchMetaCB());
      }
    }
   
    // verify that the UID is still in the map before fetching from storage
View Full Code Here

    final Leaf leaf = new Leaf();
    leaf.setDisplayName(display_name);
   
    final GetRequest get = new GetRequest(tsdb.treeTable(), branch_id);
    get.family(Tree.TREE_FAMILY());
    get.qualifier(leaf.columnQualifier());
   
    /**
     * Called with the results of the fetch from storage
     */
    final class GetCB implements Callback<Deferred<Leaf>, ArrayList<KeyValue>> {
View Full Code Here

  public static Deferred<Boolean> metaExistsInStorage(final TSDB tsdb,
      final String tsuid) {
    final GetRequest get = new GetRequest(tsdb.metaTable(),
        UniqueId.stringToUid(tsuid));
    get.family(FAMILY);
    get.qualifier(META_QUALIFIER);
   
    /**
     * Callback from the GetRequest that simply determines if the row is empty
     * or not
     */
 
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.