org.apache.hadoop.hbase.client
Class RowLock

java.lang.Object
  extended by org.apache.hadoop.hbase.client.RowLock

public class RowLock
extends Object

Holds row name and lock id.


Constructor Summary
RowLock(byte[] row, long lockId)
          Creates a RowLock from a row and lock id
RowLock(long lockId)
          Creates a RowLock with only a lock id
 
Method Summary
 long getLockId()
          Get the lock id from this RowLock
 byte[] getRow()
          Get the row for this RowLock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowLock

public RowLock(byte[] row,
               long lockId)
Creates a RowLock from a row and lock id

Parameters:
row - row to lock on
lockId - the lock id

RowLock

public RowLock(long lockId)
Creates a RowLock with only a lock id

Parameters:
lockId - lock id
Method Detail

getRow

public byte[] getRow()
Get the row for this RowLock

Returns:
the row

getLockId

public long getLockId()
Get the lock id from this RowLock

Returns:
the lock id


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.