35 | | HTable table; |
36 | | try { |
37 | | table = new HTable(conf, Bytes.toBytes(tablename)); |
38 | | Get g = new Get(Bytes.toBytes(row)); |
39 | | Result rowResult = table.get(g); |
40 | | ret = Bytes.toString(rowResult.getValue(Bytes.toBytes(family + ":" |
41 | | + column))); |
| 36 | HTable table; |
| 37 | try { |
| 38 | table = new HTable(conf, Bytes.toBytes(tablename)); |
| 39 | Get g = new Get(Bytes.toBytes(row)); |
| 40 | Result rowResult = table.get(g); |
| 41 | ret = Bytes.toString(rowResult.getValue(Bytes.toBytes(family + ":" |
| 42 | + column))); |
54 | | String[] args = new GenericOptionsParser(new Configuration(), argv) |
55 | | .getRemainingArgs(); |
56 | | if (args.length < 4) { |
57 | | System.out.println("GetColumn <TableName> <Row> <Family> <Qualifier> "); |
58 | | return; |
59 | | } |
60 | | System.out.println(getColumn(args[0], args[1], args[2], args[3])); |
61 | | } |
| 58 | String[] args = new GenericOptionsParser(new Configuration(), argv) |
| 59 | .getRemainingArgs(); |
| 60 | if (args.length < 4) { |
| 61 | System.out.println("GetColumn <TableName> <Row> <Family> <Qualifier> "); |
| 62 | return; |
| 63 | } |
| 64 | System.out.println(getColumn(args[0], args[1], args[2], args[3])); |
| 65 | } |