1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.hadoop.hbase.codec.prefixtree.row.data;
20
21 import java.util.List;
22
23 import org.apache.hadoop.hbase.KeyValue;
24 import org.apache.hadoop.hbase.codec.prefixtree.row.BaseTestRowData;
25 import org.apache.hadoop.hbase.util.Bytes;
26
27 import com.google.common.collect.Lists;
28
29 public class TestRowDataQualifierByteOrdering extends BaseTestRowData{
30
31 static byte[]
32 Arow = Bytes.toBytes("Arow"),
33 Brow = Bytes.toBytes("Brow"),
34 Brow2 = Bytes.toBytes("Brow2"),
35 fam = Bytes.toBytes("HappyFam"),
36 cq0 = Bytes.toBytes("cq0"),
37 cq1 = Bytes.toBytes("cq1tail"),
38 cq2 = Bytes.toBytes("cq2"),
39 v0 = Bytes.toBytes("v0");
40
41 static long ts = 55L;
42
43 static List<KeyValue> d = Lists.newArrayList();
44 static {
45 d.add(new KeyValue(Arow, fam, cq0, ts, v0));
46 d.add(new KeyValue(Arow, fam, cq1, ts, v0));
47 d.add(new KeyValue(Brow, fam, cq0, ts, v0));
48 d.add(new KeyValue(Brow, fam, cq2, ts, v0));
49 d.add(new KeyValue(Brow2, fam, cq1, ts, v0));
50 d.add(new KeyValue(Brow2, fam, cq2, ts, v0));
51 }
52
53 @Override
54 public List<KeyValue> getInputs() {
55 return d;
56 }
57
58 }