MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / KeyValue

Method KeyValue

src/KeyValue.java:95–111  ·  view source on GitHub ↗

Constructor. @param key The row key. Length must fit in 16 bits. @param family The column family. Length must fit in 8 bits. @param qualifier The column qualifier. @param timestamp Timestamp on the value. This timestamp can be set to guarantee ordering of values or operations. It is strongly adv

(final byte[] key,
                  final byte[] family, final byte[] qualifier,
                  final long timestamp,
                  //final byte type,
                  final byte[] value)

Source from the content-addressed store, hash-verified

93 * @since 1.2
94 */
95 public KeyValue(final byte[] key,
96 final byte[] family, final byte[] qualifier,
97 final long timestamp,
98 //final byte type,
99 final byte[] value) {
100 checkKey(key);
101 checkFamily(family);
102 checkQualifier(qualifier);
103 checkTimestamp(timestamp);
104 checkValue(value);
105 this.key = key;
106 this.family = family;
107 this.qualifier = qualifier;
108 this.value = value;
109 this.timestamp = timestamp;
110 //this.type = type;
111 }
112
113 /**
114 * Constructor.

Callers

nothing calls this directly

Calls 5

checkKeyMethod · 0.95
checkFamilyMethod · 0.95
checkQualifierMethod · 0.95
checkTimestampMethod · 0.95
checkValueMethod · 0.95

Tested by

no test coverage detected