Skip to content

Commit

Permalink
Change line wrapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgeorge committed Nov 18, 2015
1 parent d4d3f3a commit 6a8837c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion ch03/src/main/java/client/CRUDExample.java
Expand Up @@ -52,7 +52,8 @@ public static void main(String[] args) throws IOException {
get.addColumn(Bytes.toBytes("colfam1"), Bytes.toBytes("qual1"));
Result result = table.get(get);
System.out.println("Get result: " + result);
byte[] val = result.getValue(Bytes.toBytes("colfam1"), Bytes.toBytes("qual1"));
byte[] val = result.getValue(Bytes.toBytes("colfam1"),
Bytes.toBytes("qual1"));
System.out.println("Value only: " + Bytes.toString(val));

Delete delete = new Delete(Bytes.toBytes("row1"));
Expand Down
3 changes: 2 additions & 1 deletion ch03/src/main/java/client/RowKeyExample.java
Expand Up @@ -17,7 +17,8 @@ public static void main(String[] args) {
byte[] username_bytes = username.getBytes(Charset.forName("UTF8"));

System.arraycopy(username_bytes, 0, data, 45, username_bytes.length);
System.out.println("data length: " + data.length + ", data: " + Bytes.toString(data));
System.out.println("data length: " + data.length +
", data: " + Bytes.toString(data));

Put put = new Put(data, 45, username_bytes.length);
System.out.println("Put: " + put);
Expand Down
6 changes: 4 additions & 2 deletions ch05/src/main/java/admin/ClusterOperationExample.java
Expand Up @@ -130,8 +130,10 @@ public static void main(String[] args) throws IOException, InterruptedException
printRegionInfo(online);

HRegionInfo split = online.get(0); // co ClusterOperationExample-08-Wrong Attempt to split a region with a split key that does not fall into boundaries. Triggers log message.
System.out.println("Splitting region with wrong key: " + split.getRegionNameAsString());
admin.splitRegion(split.getRegionName(), Bytes.toBytes("ZZZ")); // triggers log message
System.out.println("Splitting region with wrong key: " +
split.getRegionNameAsString());
admin.splitRegion(split.getRegionName(),
Bytes.toBytes("ZZZ")); // triggers log message

System.out.println("Assigning region: " + offline.getRegionNameAsString());
admin.assign(offline.getRegionName()); // co ClusterOperationExample-09-Reassign Reassign the offlined region.
Expand Down

0 comments on commit 6a8837c

Please sign in to comment.