public class HbaseUtils
extends java.lang.Object
コンストラクターと説明 |
---|
HbaseUtils() |
修飾子と型 | メソッドと説明 |
---|---|
static org.springframework.dao.DataAccessException | convertHbaseException(java.lang.Exception ex) 指定された (Hbase) 例外を org.springframework.dao 階層からの適切な例外に変換します。 |
static org.apache.hadoop.hbase.client.HTableInterface | getHTable(java.lang.String tableName, org.apache.hadoop.conf.Configuration configuration) 名前で識別される Hbase テーブルインスタンスを取得します。 |
static org.apache.hadoop.hbase.client.HTableInterface | getHTable(java.lang.String tableName, org.apache.hadoop.conf.Configuration configuration, java.nio.charset.Charset charset, org.apache.hadoop.hbase.client.HTableInterfaceFactory tableFactory) 指定されたテーブルファクトリを使用して、名前と文字セットで識別される Hbase テーブルインスタンスを取得します。 |
static void | releaseTable(java.lang.String tableName, org.apache.hadoop.hbase.client.HTableInterface table) 指定されたテーブルが外部で管理されていない場合 (またはスレッドにバインドされていない場合)、指定された構成を介して作成された指定されたテーブルを解放 (または閉じます)。 |
static void | releaseTable(java.lang.String tableName, org.apache.hadoop.hbase.client.HTableInterface table, org.apache.hadoop.hbase.client.HTableInterfaceFactory tableFactory) 指定されたテーブルが外部で管理されていない場合 (またはスレッドにバインドされていない場合)、指定された構成を介して作成された指定されたテーブルを解放 (または閉じます)。 |
public static org.springframework.dao.DataAccessException convertHbaseException(java.lang.Exception ex)
ex
- 発生した Hbase 例外 public static org.apache.hadoop.hbase.client.HTableInterface getHTable(java.lang.String tableName, org.apache.hadoop.conf.Configuration configuration)
configuration
- Hbase 構成オブジェクト tableName
- テーブル名 public static org.apache.hadoop.hbase.client.HTableInterface getHTable(java.lang.String tableName, org.apache.hadoop.conf.Configuration configuration, java.nio.charset.Charset charset, org.apache.hadoop.hbase.client.HTableInterfaceFactory tableFactory)
tableName
- テーブル名 configuration
- Hbase 構成オブジェクト charset
- 名前の文字セット (null の可能性があります)tableFactory
- テーブルファクトリ (null の可能性があります)public static void releaseTable(java.lang.String tableName, org.apache.hadoop.hbase.client.HTableInterface table)
tableName
- テーブル名 table
- テーブル public static void releaseTable(java.lang.String tableName, org.apache.hadoop.hbase.client.HTableInterface table, org.apache.hadoop.hbase.client.HTableInterfaceFactory tableFactory)
tableName
- テーブル名 table
- テーブル tableFactory
- テーブルファクトリ