All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cloudgraph.rocksdb.client.Key Maven / Gradle / Ivy

Go to download

CloudGraph(tm) is a suite of Service Data Object (SDO) 2.1 services designed for relational and big-table style "cloud" databases, such as HBase and others.

The newest version!
package org.cloudgraph.rocksdb.client;

import org.cloudgraph.common.Bytes;

public class Key {
  private String namespace;
  private String tableName;
  private byte[] value;

  public Key(byte[] data) {
    super();
    this.value = data;
  }

  public Key(String namespace, String tableName, byte[] value) {
    this.namespace = namespace;
    this.tableName = tableName;
    this.value = value;
  }

  public byte[] getData() {
    return value;
  }

  @Override
  public String toString() {
    String keyString = Bytes.toString(value);
    keyString = keyString.replace(" ", "");
    return "Key [namespace=" + namespace + ", tableName=" + tableName + ", value=" + keyString
        + "]";
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy