Examples of PutRequest


Examples of org.hbase.async.PutRequest

          Annotation.this.syncNote(stored_note, overwrite);
        }
       
        final byte[] tsuid_byte = tsuid != null && !tsuid.isEmpty() ?
            UniqueId.stringToUid(tsuid) : null;
        final PutRequest put = new PutRequest(tsdb.dataTable(),
            getRowKey(start_time, tsuid_byte), FAMILY,
            getQualifier(start_time),
            Annotation.this.getStorageJSON());
        return tsdb.getClient().compareAndSet(put, original_note);
      }
View Full Code Here

Examples of org.hbase.async.PutRequest

          // verify the name is set locally just to be safe
          if (name == null || name.isEmpty()) {
            local_meta.name = name;
          }
         
          final PutRequest put = new PutRequest(tsdb.uidTable(),
              UniqueId.stringToUid(uid), FAMILY,
              (type.toString().toLowerCase() + "_meta").getBytes(CHARSET),
              local_meta.getStorageJSON());
          return tsdb.getClient().compareAndSet(put, original_meta);
        }
View Full Code Here

Examples of org.hbase.async.PutRequest

    }
    if (name == null || name.isEmpty()) {
      throw new IllegalArgumentException("Missing name");
    }

    final PutRequest put = new PutRequest(tsdb.uidTable(),
        UniqueId.stringToUid(uid), FAMILY,
        (type.toString().toLowerCase() + "_meta").getBytes(CHARSET),
        UIDMeta.this.getStorageJSON());
    return tsdb.getClient().put(put);
  }
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.