Spring for Apache Hadoop

org.springframework.data.hadoop.hbase
Class HbaseAccessor

java.lang.Object
  extended by org.springframework.data.hadoop.hbase.HbaseAccessor
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
HbaseInterceptor, HbaseTemplate

public abstract class HbaseAccessor
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean

Base class for HbaseTemplate and HbaseInterceptor, defining commons properties such as HTableInterfaceFactory and Configuration. Not intended to be used directly.

Author:
Costin Leau

Constructor Summary
HbaseAccessor()
           
 
Method Summary
 void afterPropertiesSet()
           
 java.nio.charset.Charset getCharset()
           
 org.apache.hadoop.conf.Configuration getConfiguration()
           
 org.apache.hadoop.hbase.client.HTableInterfaceFactory getTableFactory()
           
 void setConfiguration(org.apache.hadoop.conf.Configuration configuration)
          Sets the configuration.
 void setEncoding(java.lang.String encoding)
          Sets the encoding.
 void setTableFactory(org.apache.hadoop.hbase.client.HTableInterfaceFactory tableFactory)
          Sets the table factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HbaseAccessor

public HbaseAccessor()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean

setTableFactory

public void setTableFactory(org.apache.hadoop.hbase.client.HTableInterfaceFactory tableFactory)
Sets the table factory.

Parameters:
tableFactory - The tableFactory to set.

setEncoding

public void setEncoding(java.lang.String encoding)
Sets the encoding.

Parameters:
encoding - The encoding to set.

setConfiguration

public void setConfiguration(org.apache.hadoop.conf.Configuration configuration)
Sets the configuration.

Parameters:
configuration - The configuration to set.

getCharset

public java.nio.charset.Charset getCharset()

getTableFactory

public org.apache.hadoop.hbase.client.HTableInterfaceFactory getTableFactory()

getConfiguration

public org.apache.hadoop.conf.Configuration getConfiguration()

Spring for Apache Hadoop