HBASE-22277 Addendum Also changed references in hbase-shell
This commit is contained in:
parent
32250e55ba
commit
4379fe4ad3
|
@ -401,8 +401,8 @@ EOF
|
||||||
end
|
end
|
||||||
|
|
||||||
# Additional params
|
# Additional params
|
||||||
get.setMaxVersions(vers)
|
get.readVersions(vers)
|
||||||
get.setTimeStamp(args[TIMESTAMP]) if args[TIMESTAMP]
|
get.setTimestamp(args[TIMESTAMP]) if args[TIMESTAMP]
|
||||||
get.setTimeRange(args[TIMERANGE][0], args[TIMERANGE][1]) if args[TIMERANGE]
|
get.setTimeRange(args[TIMERANGE][0], args[TIMERANGE][1]) if args[TIMERANGE]
|
||||||
else
|
else
|
||||||
if attributes
|
if attributes
|
||||||
|
@ -416,9 +416,9 @@ EOF
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
get.setMaxVersions(vers)
|
get.readVersions(vers)
|
||||||
# Set the timestamp/timerange
|
# Set the timestamp/timerange
|
||||||
get.setTimeStamp(ts.to_i) if args[TIMESTAMP]
|
get.setTimestamp(ts.to_i) if args[TIMESTAMP]
|
||||||
get.setTimeRange(args[TIMERANGE][0], args[TIMERANGE][1]) if args[TIMERANGE]
|
get.setTimeRange(args[TIMERANGE][0], args[TIMERANGE][1]) if args[TIMERANGE]
|
||||||
end
|
end
|
||||||
set_attributes(get, attributes) if attributes
|
set_attributes(get, attributes) if attributes
|
||||||
|
@ -473,7 +473,7 @@ EOF
|
||||||
# Format get request
|
# Format get request
|
||||||
get = org.apache.hadoop.hbase.client.Get.new(row.to_s.to_java_bytes)
|
get = org.apache.hadoop.hbase.client.Get.new(row.to_s.to_java_bytes)
|
||||||
get.addColumn(family, qualifier)
|
get.addColumn(family, qualifier)
|
||||||
get.setMaxVersions(1)
|
get.readVersions(1)
|
||||||
|
|
||||||
# Call hbase
|
# Call hbase
|
||||||
result = @table.get(get)
|
result = @table.get(get)
|
||||||
|
@ -553,7 +553,7 @@ EOF
|
||||||
scan.setCacheBlocks(cache_blocks)
|
scan.setCacheBlocks(cache_blocks)
|
||||||
scan.setReversed(reversed)
|
scan.setReversed(reversed)
|
||||||
scan.setCaching(cache) if cache > 0
|
scan.setCaching(cache) if cache > 0
|
||||||
scan.setMaxVersions(versions) if versions > 1
|
scan.readVersions(versions) if versions > 1
|
||||||
scan.setTimeRange(timerange[0], timerange[1]) if timerange
|
scan.setTimeRange(timerange[0], timerange[1]) if timerange
|
||||||
scan.setRaw(raw)
|
scan.setRaw(raw)
|
||||||
scan.setLimit(limit) if limit > 0
|
scan.setLimit(limit) if limit > 0
|
||||||
|
|
Loading…
Reference in New Issue