"the type htable(config,tablename) is deprecated. what use instead?" Code Answer

2

constructing htable objects manually has been deprecated. please use connection to instantiate a table instead.

from a connection, table implementations are retrieved with connection.gettable(tablename)

example:

connection connection = connectionfactory.createconnection(config);

table table = connection.gettable(tablename.valueof("table1"));

try 
{
   // use the table as needed, for a single operation and a single thread
} 
finally
{
   table.close();
   connection.close();
}
By kushtrimh on July 8 2022

Answers related to “the type htable(config,tablename) is deprecated. what use instead?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.