HBASE-1977 Add ts and allow setting VERSIONS when scanning in shell; better fix for ts
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@836275 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b83cda4bd8
commit
dc28f778ed
|
@ -431,7 +431,7 @@ module HBase
|
|||
qualifier = String.from_java_bytes kv.getQualifier()
|
||||
column = family + ':' + qualifier
|
||||
cell = toString(column, kv, maxlength)
|
||||
@formatter.row([row, "column=%s, %s" % [column, kv.getTimestamp(), cell]])
|
||||
@formatter.row([row, "column=%s, %s" % [column, cell]])
|
||||
end
|
||||
end
|
||||
@formatter.footer(now, count)
|
||||
|
@ -474,7 +474,7 @@ module HBase
|
|||
Bytes.toLong(kv.getValue())]
|
||||
end
|
||||
end
|
||||
val = Bytes.toStringBinary(kv.getValue())
|
||||
val = "timestamp=" + kv.getTimestamp().to_s + ", value=" + Bytes.toStringBinary(kv.getValue())
|
||||
maxlength != -1 ? val[0, maxlength] : val
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue