Package org.apache.hadoop.hbase.util

Examples of org.apache.hadoop.hbase.util.Bytes$LexicographicalComparerHolder


  /**
   * @param key The key.
   * @return The value.
   */
  public byte[] getValue(byte[] key) {
    Bytes ibw = values.get(new Bytes(key));
    if (ibw == null)
      return null;
    return ibw.get();
  }
View Full Code Here


   * @param key The key.
   * @param value The value.
   * @return this (for chained invocation)
   */
  public HColumnDescriptor setValue(byte[] key, byte[] value) {
    values.put(new Bytes(key),
        new Bytes(value));
    return this;
  }
View Full Code Here

  /**
   * @param key Key whose key and value we're to remove from HCD parameters.
   */
  public void remove(final byte [] key) {
    values.remove(new Bytes(key));
  }
View Full Code Here

   * @param key The key.
   * @return The value.
   * @see #values
   */
  public byte[] getValue(byte[] key) {
    return getValue(new Bytes(key));
  }
View Full Code Here

  public byte[] getValue(byte[] key) {
    return getValue(new Bytes(key));
  }

  private byte[] getValue(final Bytes key) {
    Bytes ibw = values.get(key);
    if (ibw == null)
      return null;
    return ibw.get();
  }
View Full Code Here

   * @param key The key.
   * @param value The value.
   * @see #values
   */
  public HTableDescriptor setValue(byte[] key, byte[] value) {
    setValue(new Bytes(key), new Bytes(value));
    return this;
  }
View Full Code Here

   * @param key The key.
   * @param value The value.
   */
  private HTableDescriptor setValue(final Bytes key,
      final String value) {
    setValue(key, new Bytes(Bytes.toBytes(value)));
    return this;
  }
View Full Code Here

   *
   * @param key Key whose key and value we're to remove from HTableDescriptor
   * parameters.
   */
  public void remove(final String key) {
    remove(new Bytes(Bytes.toBytes(key)));
  }
View Full Code Here

   *
   * @param key Key whose key and value we're to remove from HTableDescriptor
   * parameters.
   */
  public void remove(final byte [] key) {
    remove(new Bytes(key));
  }
View Full Code Here

   * Sets the number of replicas per region.
   * @param regionReplication the replication factor per region
   */
  public HTableDescriptor setRegionReplication(int regionReplication) {
    setValue(REGION_REPLICATION_KEY,
        new Bytes(Bytes.toBytes(Integer.toString(regionReplication))));
    return this;
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.util.Bytes$LexicographicalComparerHolder

Copyright © 2018 www.massapicom. 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.