org.datanucleus.store.hbase
Class HBaseStoreManager

java.lang.Object
  extended by org.datanucleus.properties.PropertyStore
      extended by org.datanucleus.store.AbstractStoreManager
          extended by org.datanucleus.store.hbase.HBaseStoreManager
All Implemented Interfaces:
org.datanucleus.store.schema.SchemaAwareStoreManager, org.datanucleus.store.StoreManager

public class HBaseStoreManager
extends org.datanucleus.store.AbstractStoreManager
implements org.datanucleus.store.schema.SchemaAwareStoreManager


Field Summary
 
Fields inherited from class org.datanucleus.store.AbstractStoreManager
autoCreateColumns, autoCreateConstraints, autoCreateTables, autoCreateWarnOnError, autoStartMechanism, connectionMgr, fixedDatastore, LOCALISER, namingFactory, nontxConnectionFactoryName, nucleusContext, persistenceHandler, readOnlyDatastore, schemaHandler, starter, starterInitialised, storeDataMgr, storeManagerKey, storeManagerRuntime, txConnectionFactoryName, validateColumns, validateConstraints, validateTables
 
Fields inherited from class org.datanucleus.properties.PropertyStore
properties
 
Constructor Summary
HBaseStoreManager(org.datanucleus.ClassLoaderResolver clr, org.datanucleus.NucleusContext ctx, java.util.Map<java.lang.String,java.lang.Object> props)
          Constructor.
 
Method Summary
 void addClasses(java.lang.String[] classNames, org.datanucleus.ClassLoaderResolver clr)
           
 void close()
           
 void createSchema(java.util.Set<java.lang.String> classNames, java.util.Properties props)
           
 void deleteSchema(java.util.Set<java.lang.String> classNames, java.util.Properties props)
           
 org.apache.hadoop.conf.Configuration getHbaseConfig()
           
 org.datanucleus.store.NucleusConnection getNucleusConnection(org.datanucleus.store.ExecutionContext om)
           
protected  java.util.Properties getPropertiesForGenerator(org.datanucleus.metadata.AbstractClassMetaData cmd, int absoluteFieldNumber, org.datanucleus.store.ExecutionContext ec, org.datanucleus.metadata.SequenceMetaData seqmd, org.datanucleus.metadata.TableGeneratorMetaData tablegenmd)
          Method to return the properties to pass to the generator for the specified field.
 java.util.Collection getSupportedOptions()
          Accessor for the supported options in string form.
protected  void registerConnectionMgr()
           
 void validateSchema(java.util.Set<java.lang.String> classNames, java.util.Properties props)
           
 
Methods inherited from class org.datanucleus.store.AbstractStoreManager
addClass, assertReadOnlyForUpdateOfObject, clearAutoStarter, deregisterAllStoreData, getApiAdapter, getBooleanObjectProperty, getBooleanProperty, getBooleanProperty, getClassNameForObjectID, getConnection, getConnection, getConnection, getConnectionDriverName, getConnectionFactory, getConnectionFactory2, getConnectionFactory2Name, getConnectionFactoryName, getConnectionManager, getConnectionPassword, getConnectionURL, getConnectionUserName, getDatastoreDate, getExtent, getIntProperty, getMetaDataManager, getNamingFactory, getNucleusContext, getNucleusSequence, getPersistenceHandler, getProperty, getQueryCacheKey, getQueryManager, getRuntimeManager, getSchemaHandler, getStoreManagerKey, getStrategyForNative, getStrategyValue, getStrategyValueForGenerator, getStringProperty, getSubClassesForClass, getValueGenerationManager, initialiseAutoStart, isAutoCreateColumns, isAutoCreateConstraints, isAutoCreateTables, isStrategyDatastoreAttributed, isValidateColumns, isValidateConstraints, isValidateTables, logConfiguration, manageClassForIdentity, managesClass, newStoreData, printInformation, registerConnectionFactory, registerStoreData, removeAllClasses, supportsQueryLanguage, supportsValueStrategy, transactionCommitted, transactionRolledBack, transactionStarted
 
Methods inherited from class org.datanucleus.properties.PropertyStore
hasProperty, hasPropertyNotNull, setPropertyInternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.datanucleus.store.StoreManager
hasProperty
 

Constructor Detail

HBaseStoreManager

public HBaseStoreManager(org.datanucleus.ClassLoaderResolver clr,
                         org.datanucleus.NucleusContext ctx,
                         java.util.Map<java.lang.String,java.lang.Object> props)
Constructor.

Parameters:
clr - ClassLoader resolver
ctx - context
props - Properties for the datastore
Method Detail

registerConnectionMgr

protected void registerConnectionMgr()
Overrides:
registerConnectionMgr in class org.datanucleus.store.AbstractStoreManager

close

public void close()
Specified by:
close in interface org.datanucleus.store.StoreManager
Overrides:
close in class org.datanucleus.store.AbstractStoreManager

getNucleusConnection

public org.datanucleus.store.NucleusConnection getNucleusConnection(org.datanucleus.store.ExecutionContext om)
Specified by:
getNucleusConnection in interface org.datanucleus.store.StoreManager
Overrides:
getNucleusConnection in class org.datanucleus.store.AbstractStoreManager

getSupportedOptions

public java.util.Collection getSupportedOptions()
Accessor for the supported options in string form.

Specified by:
getSupportedOptions in interface org.datanucleus.store.StoreManager
Overrides:
getSupportedOptions in class org.datanucleus.store.AbstractStoreManager
Returns:
Supported options for this store manager

getHbaseConfig

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

addClasses

public void addClasses(java.lang.String[] classNames,
                       org.datanucleus.ClassLoaderResolver clr)
Specified by:
addClasses in interface org.datanucleus.store.StoreManager
Overrides:
addClasses in class org.datanucleus.store.AbstractStoreManager

getPropertiesForGenerator

protected java.util.Properties getPropertiesForGenerator(org.datanucleus.metadata.AbstractClassMetaData cmd,
                                                         int absoluteFieldNumber,
                                                         org.datanucleus.store.ExecutionContext ec,
                                                         org.datanucleus.metadata.SequenceMetaData seqmd,
                                                         org.datanucleus.metadata.TableGeneratorMetaData tablegenmd)
Method to return the properties to pass to the generator for the specified field. Takes the superclass properties and adds on the "table-name" where appropriate.

Overrides:
getPropertiesForGenerator in class org.datanucleus.store.AbstractStoreManager
Parameters:
cmd - MetaData for the class
absoluteFieldNumber - Number of the field (-1 = datastore identity)
ec - execution context
seqmd - Any sequence metadata
tablegenmd - Any table generator metadata
Returns:
The properties to use for this field

createSchema

public void createSchema(java.util.Set<java.lang.String> classNames,
                         java.util.Properties props)
Specified by:
createSchema in interface org.datanucleus.store.schema.SchemaAwareStoreManager

deleteSchema

public void deleteSchema(java.util.Set<java.lang.String> classNames,
                         java.util.Properties props)
Specified by:
deleteSchema in interface org.datanucleus.store.schema.SchemaAwareStoreManager

validateSchema

public void validateSchema(java.util.Set<java.lang.String> classNames,
                           java.util.Properties props)
Specified by:
validateSchema in interface org.datanucleus.store.schema.SchemaAwareStoreManager


Copyright © 2012. All Rights Reserved.