public static class AvroServer.HBaseImpl extends Object implements HBase
HBase.Callback
Modifier and Type | Field and Description |
---|---|
protected HBaseAdmin |
admin |
protected org.apache.hadoop.conf.Configuration |
conf |
protected HTablePool |
htablePool |
protected org.apache.commons.logging.Log |
LOG |
protected int |
nextScannerId |
protected HashMap<Integer,ResultScanner> |
scannerMap |
Modifier and Type | Method and Description |
---|---|
Void |
addFamily(ByteBuffer table,
AFamilyDescriptor family) |
protected int |
addScanner(ResultScanner scanner)
Assigns a unique ID to the scanner and adds the mapping to an internal
hash-map.
|
Void |
createTable(ATableDescriptor table) |
Void |
delete(ByteBuffer table,
ADelete adelete) |
Void |
deleteFamily(ByteBuffer table,
ByteBuffer family) |
Void |
deleteTable(ByteBuffer table) |
AFamilyDescriptor |
describeFamily(ByteBuffer table,
ByteBuffer family) |
ATableDescriptor |
describeTable(ByteBuffer table) |
Void |
disableTable(ByteBuffer table) |
Void |
enableTable(ByteBuffer table) |
boolean |
exists(ByteBuffer table,
AGet aget) |
Void |
flush(ByteBuffer table) |
AResult |
get(ByteBuffer table,
AGet aget) |
AClusterStatus |
getClusterStatus() |
org.apache.avro.util.Utf8 |
getHBaseVersion() |
protected ResultScanner |
getScanner(int id)
Returns the scanner associated with the specified ID.
|
long |
incrementColumnValue(ByteBuffer table,
ByteBuffer row,
ByteBuffer family,
ByteBuffer qualifier,
long amount,
boolean writeToWAL) |
boolean |
isTableEnabled(ByteBuffer table) |
org.apache.avro.generic.GenericArray<ATableDescriptor> |
listTables() |
Void |
modifyFamily(ByteBuffer table,
ByteBuffer familyName,
AFamilyDescriptor familyDescriptor) |
Void |
modifyTable(ByteBuffer tableName,
ATableDescriptor tableDescriptor) |
Void |
put(ByteBuffer table,
APut aput) |
protected ResultScanner |
removeScanner(int id)
Removes the scanner associated with the specified ID from the internal
id->scanner hash-map.
|
Void |
scannerClose(int scannerId) |
org.apache.avro.generic.GenericArray<AResult> |
scannerGetRows(int scannerId,
int numberOfRows) |
int |
scannerOpen(ByteBuffer table,
AScan ascan) |
Void |
split(ByteBuffer table) |
boolean |
tableExists(ByteBuffer table) |
protected org.apache.hadoop.conf.Configuration conf
protected HBaseAdmin admin
protected HTablePool htablePool
protected final org.apache.commons.logging.Log LOG
protected int nextScannerId
protected HashMap<Integer,ResultScanner> scannerMap
protected int addScanner(ResultScanner scanner)
scanner
- protected ResultScanner getScanner(int id)
id
- protected ResultScanner removeScanner(int id)
id
- public org.apache.avro.util.Utf8 getHBaseVersion() throws AIOError
getHBaseVersion
in interface HBase
AIOError
public AClusterStatus getClusterStatus() throws AIOError
getClusterStatus
in interface HBase
AIOError
public org.apache.avro.generic.GenericArray<ATableDescriptor> listTables() throws AIOError
listTables
in interface HBase
AIOError
public ATableDescriptor describeTable(ByteBuffer table) throws AIOError
describeTable
in interface HBase
AIOError
public boolean isTableEnabled(ByteBuffer table) throws AIOError
isTableEnabled
in interface HBase
AIOError
public boolean tableExists(ByteBuffer table) throws AIOError
tableExists
in interface HBase
AIOError
public AFamilyDescriptor describeFamily(ByteBuffer table, ByteBuffer family) throws AIOError
describeFamily
in interface HBase
AIOError
public Void createTable(ATableDescriptor table) throws AIOError, AIllegalArgument, ATableExists, AMasterNotRunning
createTable
in interface HBase
AIOError
AIllegalArgument
ATableExists
AMasterNotRunning
public Void deleteTable(ByteBuffer table) throws AIOError
deleteTable
in interface HBase
AIOError
public Void modifyTable(ByteBuffer tableName, ATableDescriptor tableDescriptor) throws AIOError
modifyTable
in interface HBase
AIOError
public Void enableTable(ByteBuffer table) throws AIOError
enableTable
in interface HBase
AIOError
public Void disableTable(ByteBuffer table) throws AIOError
disableTable
in interface HBase
AIOError
public Void flush(ByteBuffer table) throws AIOError
public Void split(ByteBuffer table) throws AIOError
public Void addFamily(ByteBuffer table, AFamilyDescriptor family) throws AIOError
public Void deleteFamily(ByteBuffer table, ByteBuffer family) throws AIOError
deleteFamily
in interface HBase
AIOError
public Void modifyFamily(ByteBuffer table, ByteBuffer familyName, AFamilyDescriptor familyDescriptor) throws AIOError
modifyFamily
in interface HBase
AIOError
public AResult get(ByteBuffer table, AGet aget) throws AIOError
public boolean exists(ByteBuffer table, AGet aget) throws AIOError
public Void put(ByteBuffer table, APut aput) throws AIOError
public Void delete(ByteBuffer table, ADelete adelete) throws AIOError
public long incrementColumnValue(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, long amount, boolean writeToWAL) throws AIOError
incrementColumnValue
in interface HBase
AIOError
public int scannerOpen(ByteBuffer table, AScan ascan) throws AIOError
scannerOpen
in interface HBase
AIOError
public Void scannerClose(int scannerId) throws AIOError, AIllegalArgument
scannerClose
in interface HBase
AIOError
AIllegalArgument
public org.apache.avro.generic.GenericArray<AResult> scannerGetRows(int scannerId, int numberOfRows) throws AIOError, AIllegalArgument
scannerGetRows
in interface HBase
AIOError
AIllegalArgument
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.