congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
AlreadyExists.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.hadoop.hbase.thrift.generated.AlreadyExists
constructor

Best Java code snippets using org.apache.hadoop.hbase.thrift.generated.AlreadyExists.<init> (Showing top 10 results out of 315)

origin: apache/hbase

public AlreadyExists deepCopy() {
 return new AlreadyExists(this);
}
origin: apache/hbase

@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: larsgeorge/hbase-book

public AlreadyExists deepCopy() {
 return new AlreadyExists(this);
}
origin: larsgeorge/hbase-book

public AlreadyExists deepCopy() {
 return new AlreadyExists(this);
}
origin: com.aliyun.hbase/alihbase-thrift

public AlreadyExists deepCopy() {
 return new AlreadyExists(this);
}
origin: org.apache.hbase/hbase-thrift

public AlreadyExists deepCopy() {
 return new AlreadyExists(this);
}
origin: co.cask.hbase/hbase

public AlreadyExists deepCopy() {
 return new AlreadyExists(this);
}
origin: co.cask.hbase/hbase

@Override
public void createTable(ByteBuffer in_tableName,
  List<ColumnDescriptor> columnFamilies) throws IOError,
  IllegalArgument, AlreadyExists {
 byte [] tableName = getBytes(in_tableName);
 try {
  if (admin.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);
  }
  admin.createTable(desc);
 } catch (IOException e) {
  LOG.warn(e.getMessage(), e);
  throw new IOError(e.getMessage());
 } catch (IllegalArgumentException e) {
  LOG.warn(e.getMessage(), e);
  throw new IllegalArgument(e.getMessage());
 }
}
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.thrift.generatedAlreadyExists<init>

Javadoc

Performs a deep copy on other.

Popular methods of AlreadyExists

  • equals
  • getMessage
  • isSetMessage
    Returns true if field message is set (has been assigned a value) and false otherwise
  • read
  • setMessage
  • setMessageIsSet
  • unsetMessage
  • validate
  • write
  • scheme

Popular in Java

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • getSharedPreferences (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now