public class HBaseSchemaHandler
extends org.datanucleus.store.schema.AbstractStoreSchemaHandler
| Constructor and Description |
|---|
HBaseSchemaHandler(org.datanucleus.store.StoreManager storeMgr) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addColumnFamilyForColumn(org.datanucleus.store.schema.table.Column col,
org.apache.hadoop.hbase.HTableDescriptor htable,
String tableName,
Set<String> familyNames,
boolean validateOnly) |
void |
createSchemaForClass(HBaseStoreManager storeMgr,
org.datanucleus.metadata.AbstractClassMetaData cmd,
boolean validateOnly)
Create a schema in HBase.
|
void |
createSchemaForClasses(Set<String> classNames,
Properties props,
Object connection) |
void |
deleteSchemaForClasses(Set<String> classNames,
Properties props,
Object connection) |
void |
validateSchema(Set<String> classNames,
Properties props,
Object connection) |
clear, createDatabase, deleteDatabase, getSchemaData, getStoreManager, isAutoCreateColumns, isAutoCreateConstraints, isAutoCreateDatabase, isAutoCreateTables, isAutoCreateWarnOnError, isAutoDeleteColumns, isValidateColumns, isValidateConstraints, isValidateTablespublic HBaseSchemaHandler(org.datanucleus.store.StoreManager storeMgr)
public void createSchemaForClasses(Set<String> classNames, Properties props, Object connection)
createSchemaForClasses in interface org.datanucleus.store.schema.StoreSchemaHandlercreateSchemaForClasses in class org.datanucleus.store.schema.AbstractStoreSchemaHandlerpublic void createSchemaForClass(HBaseStoreManager storeMgr, org.datanucleus.metadata.AbstractClassMetaData cmd, boolean validateOnly)
storeMgr - HBase StoreManagercmd - Metadata for the classvalidateOnly - Whether to only validate for existence and flag missing schema in the logprotected boolean addColumnFamilyForColumn(org.datanucleus.store.schema.table.Column col,
org.apache.hadoop.hbase.HTableDescriptor htable,
String tableName,
Set<String> familyNames,
boolean validateOnly)
public void deleteSchemaForClasses(Set<String> classNames, Properties props, Object connection)
deleteSchemaForClasses in interface org.datanucleus.store.schema.StoreSchemaHandlerdeleteSchemaForClasses in class org.datanucleus.store.schema.AbstractStoreSchemaHandlerpublic void validateSchema(Set<String> classNames, Properties props, Object connection)
validateSchema in interface org.datanucleus.store.schema.StoreSchemaHandlervalidateSchema in class org.datanucleus.store.schema.AbstractStoreSchemaHandlerCopyright © 2017. All rights reserved.