HBASE-2172 Add constructor to Put for row key and timestamp

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@903792 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-01-27 19:44:47 +00:00
parent f58517d103
commit d189828325
2 changed files with 13 additions and 1 deletions

View File

@ -340,6 +340,8 @@ Release 0.21.0 - Unreleased
HBASE-2153 Publish generated HTML documentation for Thrift on the website
(Lars Francke via Stack)
HBASE-1373 Update Thrift to use compact/framed protocol (Lars Francke via Stack)
HBASE-2172 Add constructor to Put for row key and timestamp
(Lars Francke via Stack)
NEW FEATURES
HBASE-1961 HBase EC2 scripts

View File

@ -80,7 +80,17 @@ public class Put implements HeapSize, Writable, Row, Comparable<Row> {
public Put(byte [] row, RowLock rowLock) {
this(row, HConstants.LATEST_TIMESTAMP, rowLock);
}
/**
* Create a Put operation for the specified row, using a given timestamp.
*
* @param row row key
* @param ts timestamp
*/
public Put(byte[] row, long ts) {
this(row, ts, null);
}
/**
* Create a Put operation for the specified row, using a given timestamp, and an existing row lock.
* @param row row key