Codota Logo
ThriftServerRunner$HBaseHandler.getTableName
Code IndexAdd Codota to your IDE (free)

How to use
getTableName
method
in
org.apache.hadoop.hbase.thrift.ThriftServerRunner$HBaseHandler

Best Java code snippets using org.apache.hadoop.hbase.thrift.ThriftServerRunner$HBaseHandler.getTableName (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.apache.hbase/hbase-thrift

@Override
public void deleteTable(ByteBuffer in_tableName) throws IOError {
 TableName tableName = getTableName(in_tableName);
 if (LOG.isDebugEnabled()) {
  LOG.debug("deleteTable: table={}", tableName);
 }
 try {
  if (!getAdmin().tableExists(tableName)) {
   throw new IOException("table does not exist");
  }
  getAdmin().deleteTable(tableName);
 } catch (IOException e) {
  LOG.warn(e.getMessage(), e);
  throw getIOError(e);
 }
}
origin: com.aliyun.hbase/alihbase-thrift

@Override
public void deleteTable(ByteBuffer in_tableName) throws IOError {
 TableName tableName = getTableName(in_tableName);
 if (LOG.isDebugEnabled()) {
  LOG.debug("deleteTable: table=" + tableName);
 }
 try {
  if (!getAdmin().tableExists(tableName)) {
   throw new IOException("table does not exist");
  }
  getAdmin().deleteTable(tableName);
 } catch (IOException e) {
  LOG.warn(e.getMessage(), e);
  throw getIOError(e);
 }
}
origin: com.aliyun.hbase/alihbase-thrift

@Override
public void enableTable(ByteBuffer tableName) throws IOError {
 try{
  getAdmin().enableTable(getTableName(tableName));
 } catch (IOException e) {
  LOG.warn(e.getMessage(), e);
  throw getIOError(e);
 }
}
origin: com.aliyun.hbase/alihbase-thrift

@Override
public void disableTable(ByteBuffer tableName) throws IOError{
 try{
  getAdmin().disableTable(getTableName(tableName));
 } catch (IOException e) {
  LOG.warn(e.getMessage(), e);
  throw getIOError(e);
 }
}
origin: org.apache.hbase/hbase-thrift

@Override
public void disableTable(ByteBuffer tableName) throws IOError{
 try{
  getAdmin().disableTable(getTableName(tableName));
 } catch (IOException e) {
  LOG.warn(e.getMessage(), e);
  throw getIOError(e);
 }
}
origin: com.aliyun.hbase/alihbase-thrift

@Override
public boolean isTableEnabled(ByteBuffer tableName) throws IOError {
 try {
  return this.connectionCache.getAdmin().isTableEnabled(getTableName(tableName));
 } catch (IOException e) {
  LOG.warn(e.getMessage(), e);
  throw getIOError(e);
 }
}
origin: org.apache.hbase/hbase-thrift

@Override
public void enableTable(ByteBuffer tableName) throws IOError {
 try{
  getAdmin().enableTable(getTableName(tableName));
 } catch (IOException e) {
  LOG.warn(e.getMessage(), e);
  throw getIOError(e);
 }
}
origin: org.apache.hbase/hbase-thrift

@Override
public boolean isTableEnabled(ByteBuffer tableName) throws IOError {
 try {
  return this.connectionCache.getAdmin().isTableEnabled(getTableName(tableName));
 } catch (IOException e) {
  LOG.warn(e.getMessage(), e);
  throw getIOError(e);
 }
}
origin: org.apache.hbase/hbase-thrift

@Override
public void createTable(ByteBuffer in_tableName,
  List<ColumnDescriptor> columnFamilies) throws IOError,
  IllegalArgument, AlreadyExists {
 TableName tableName = getTableName(in_tableName);
 try {
  if (getAdmin().tableExists(tableName)) {
   throw new AlreadyExists("table name already in use");
  }
  HTableDescriptor desc = new HTableDescriptor(tableName);
  for (ColumnDescriptor col : columnFamilies) {
   HColumnDescriptor colDesc = ThriftUtilities.colDescFromThrift(col);
   desc.addFamily(colDesc);
  }
  getAdmin().createTable(desc);
 } catch (IOException e) {
  LOG.warn(e.getMessage(), e);
  throw getIOError(e);
 } catch (IllegalArgumentException e) {
  LOG.warn(e.getMessage(), e);
  throw new IllegalArgument(Throwables.getStackTraceAsString(e));
 }
}
origin: com.aliyun.hbase/alihbase-thrift

@Override
public void createTable(ByteBuffer in_tableName,
  List<ColumnDescriptor> columnFamilies) throws IOError,
  IllegalArgument, AlreadyExists {
 TableName tableName = getTableName(in_tableName);
 try {
  if (getAdmin().tableExists(tableName)) {
   throw new AlreadyExists("table name already in use");
  }
  HTableDescriptor desc = new HTableDescriptor(tableName);
  for (ColumnDescriptor col : columnFamilies) {
   HColumnDescriptor colDesc = ThriftUtilities.colDescFromThrift(col);
   desc.addFamily(colDesc);
  }
  getAdmin().createTable(desc);
 } catch (IOException e) {
  LOG.warn(e.getMessage(), e);
  throw getIOError(e);
 } catch (IllegalArgumentException e) {
  LOG.warn(e.getMessage(), e);
  throw new IllegalArgument(Throwables.getStackTraceAsString(e));
 }
}
org.apache.hadoop.hbase.thriftThriftServerRunner$HBaseHandlergetTableName

Popular methods of ThriftServerRunner$HBaseHandler

  • <init>
  • deleteAllRowTs
  • deleteAllTs
  • get
    Note: this internal interface is slightly different from public APIs in regard to handling of the qu
  • getRowWithColumnsTs
  • getVerTs
    Note: this internal interface is slightly different from public APIs in regard to handling of the qu
  • increment
  • mutateRowTs
  • mutateRowsTs
  • addScanner
    Assigns a unique ID to the scanner and adds the mapping to an internal hash-map.
  • atomicIncrement
  • getRowsWithColumnsTs
  • atomicIncrement,
  • getRowsWithColumnsTs,
  • getScanner,
  • getTable,
  • getVer,
  • removeScanner,
  • scannerGetList,
  • append,
  • checkAndPut,
  • closeTable

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JLabel (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now