|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.gora.hbase.store.HBaseTableConnection
public class HBaseTableConnection
Thread safe implementation to connect to a HBase table.
| Constructor Summary | |
|---|---|
HBaseTableConnection(org.apache.hadoop.conf.Configuration conf,
String tableName,
boolean autoflush)
Instantiate new connection. |
|
| Method Summary | |
|---|---|
Object[] |
batch(List<org.apache.hadoop.hbase.client.Row> actions)
|
void |
batch(List<org.apache.hadoop.hbase.client.Row> actions,
Object[] results)
|
boolean |
checkAndDelete(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
org.apache.hadoop.hbase.client.Delete delete)
|
boolean |
checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
org.apache.hadoop.hbase.client.Put put)
|
void |
close()
|
void |
delete(org.apache.hadoop.hbase.client.Delete delete)
|
void |
delete(List<org.apache.hadoop.hbase.client.Delete> deletes)
|
boolean |
exists(org.apache.hadoop.hbase.client.Get get)
|
void |
flushCommits()
|
org.apache.hadoop.hbase.client.Result |
get(org.apache.hadoop.hbase.client.Get get)
|
org.apache.hadoop.hbase.client.Result[] |
get(List<org.apache.hadoop.hbase.client.Get> gets)
|
org.apache.hadoop.conf.Configuration |
getConfiguration()
|
org.apache.hadoop.hbase.HRegionLocation |
getRegionLocation(byte[] bs)
getRegionLocation provided by HTable but not
HTableInterface. |
org.apache.hadoop.hbase.client.Result |
getRowOrBefore(byte[] row,
byte[] family)
|
org.apache.hadoop.hbase.client.ResultScanner |
getScanner(byte[] family)
|
org.apache.hadoop.hbase.client.ResultScanner |
getScanner(byte[] family,
byte[] qualifier)
|
org.apache.hadoop.hbase.client.ResultScanner |
getScanner(org.apache.hadoop.hbase.client.Scan scan)
|
org.apache.hadoop.hbase.util.Pair<byte[][],byte[][]> |
getStartEndKeys()
getStartEndKeys provided by HTable but not HTableInterface. |
org.apache.hadoop.hbase.HTableDescriptor |
getTableDescriptor()
|
byte[] |
getTableName()
|
org.apache.hadoop.hbase.client.Result |
increment(org.apache.hadoop.hbase.client.Increment increment)
|
long |
incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount)
|
long |
incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount,
boolean writeToWAL)
|
boolean |
isAutoFlush()
|
org.apache.hadoop.hbase.client.RowLock |
lockRow(byte[] row)
|
void |
put(List<org.apache.hadoop.hbase.client.Put> puts)
|
void |
put(org.apache.hadoop.hbase.client.Put put)
|
void |
unlockRow(org.apache.hadoop.hbase.client.RowLock rl)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HBaseTableConnection(org.apache.hadoop.conf.Configuration conf,
String tableName,
boolean autoflush)
throws IOException
conf - tableName - autoflush -
IOException| Method Detail |
|---|
public void close()
throws IOException
close in interface org.apache.hadoop.hbase.client.HTableInterfaceIOExceptionpublic byte[] getTableName()
getTableName in interface org.apache.hadoop.hbase.client.HTableInterfacepublic org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration in interface org.apache.hadoop.hbase.client.HTableInterfacepublic boolean isAutoFlush()
isAutoFlush in interface org.apache.hadoop.hbase.client.HTableInterface
public org.apache.hadoop.hbase.util.Pair<byte[][],byte[][]> getStartEndKeys()
throws IOException
HTable but not HTableInterface.
IOExceptionHTable.getStartEndKeys()
public org.apache.hadoop.hbase.HRegionLocation getRegionLocation(byte[] bs)
throws IOException
HTable but not
HTableInterface.
IOExceptionHTable.getRegionLocation(byte[])
public org.apache.hadoop.hbase.HTableDescriptor getTableDescriptor()
throws IOException
getTableDescriptor in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
public boolean exists(org.apache.hadoop.hbase.client.Get get)
throws IOException
exists in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
public void batch(List<org.apache.hadoop.hbase.client.Row> actions,
Object[] results)
throws IOException,
InterruptedException
batch in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
InterruptedException
public Object[] batch(List<org.apache.hadoop.hbase.client.Row> actions)
throws IOException,
InterruptedException
batch in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
InterruptedException
public org.apache.hadoop.hbase.client.Result get(org.apache.hadoop.hbase.client.Get get)
throws IOException
get in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
public org.apache.hadoop.hbase.client.Result[] get(List<org.apache.hadoop.hbase.client.Get> gets)
throws IOException
get in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
public org.apache.hadoop.hbase.client.Result getRowOrBefore(byte[] row,
byte[] family)
throws IOException
getRowOrBefore in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
public org.apache.hadoop.hbase.client.ResultScanner getScanner(org.apache.hadoop.hbase.client.Scan scan)
throws IOException
getScanner in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
public org.apache.hadoop.hbase.client.ResultScanner getScanner(byte[] family)
throws IOException
getScanner in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
public org.apache.hadoop.hbase.client.ResultScanner getScanner(byte[] family,
byte[] qualifier)
throws IOException
getScanner in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
public void put(org.apache.hadoop.hbase.client.Put put)
throws IOException
put in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
public void put(List<org.apache.hadoop.hbase.client.Put> puts)
throws IOException
put in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
public boolean checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
org.apache.hadoop.hbase.client.Put put)
throws IOException
checkAndPut in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
public void delete(org.apache.hadoop.hbase.client.Delete delete)
throws IOException
delete in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
public void delete(List<org.apache.hadoop.hbase.client.Delete> deletes)
throws IOException
delete in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
public boolean checkAndDelete(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
org.apache.hadoop.hbase.client.Delete delete)
throws IOException
checkAndDelete in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
public org.apache.hadoop.hbase.client.Result increment(org.apache.hadoop.hbase.client.Increment increment)
throws IOException
increment in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
public long incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount)
throws IOException
incrementColumnValue in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
public long incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount,
boolean writeToWAL)
throws IOException
incrementColumnValue in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
public void flushCommits()
throws IOException
flushCommits in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
public org.apache.hadoop.hbase.client.RowLock lockRow(byte[] row)
throws IOException
lockRow in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
public void unlockRow(org.apache.hadoop.hbase.client.RowLock rl)
throws IOException
unlockRow in interface org.apache.hadoop.hbase.client.HTableInterfaceIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||