public class HBaseUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getDefaultValueForMember(org.datanucleus.metadata.AbstractMemberMetaData mmd)
Accessor for the default value specified for the provided member.
|
static org.apache.hadoop.hbase.client.Delete |
getDeleteForObject(org.datanucleus.state.ObjectProvider op,
org.datanucleus.store.schema.table.Table schemaTable) |
static String |
getFamilyNameForColumn(org.datanucleus.store.schema.table.Column col)
Accessor for the family name for a column.
|
static org.apache.hadoop.hbase.client.Get |
getGetForObject(org.datanucleus.state.ObjectProvider op,
org.datanucleus.store.schema.table.Table schemaTable) |
static org.apache.hadoop.hbase.client.Put |
getPutForObject(org.datanucleus.state.ObjectProvider op,
org.datanucleus.store.schema.table.Table schemaTable) |
static String |
getQualifierNameForColumn(org.datanucleus.store.schema.table.Column col)
Accessor for the qualifier name for a column name.
|
static org.apache.hadoop.hbase.client.Result |
getResultForObject(org.datanucleus.state.ObjectProvider op,
org.apache.hadoop.hbase.client.Table table,
org.datanucleus.store.schema.table.Table schemaTable) |
static Object |
getSurrogateVersionForObject(org.datanucleus.metadata.AbstractClassMetaData cmd,
org.apache.hadoop.hbase.client.Result result,
String tableName,
org.datanucleus.store.StoreManager storeMgr)
Convenience method that extracts the surrogate version for a class of the specified type from
the passed Result.
|
static Object |
getVersionForObject(org.datanucleus.metadata.AbstractClassMetaData cmd,
org.apache.hadoop.hbase.client.Result result,
org.datanucleus.ExecutionContext ec,
org.datanucleus.store.schema.table.Table table,
org.datanucleus.store.StoreManager storeMgr)
Convenience method that extracts the version for a class of the specified type from the passed Result.
|
static boolean |
objectExistsInTable(org.datanucleus.state.ObjectProvider op,
org.apache.hadoop.hbase.client.Table table,
org.datanucleus.store.schema.table.Table schemaTable) |
public static String getDefaultValueForMember(org.datanucleus.metadata.AbstractMemberMetaData mmd)
mmd - Metadata for the memberpublic static String getFamilyNameForColumn(org.datanucleus.store.schema.table.Column col)
col - Columnpublic static String getQualifierNameForColumn(org.datanucleus.store.schema.table.Column col)
col - Columnpublic static Object getVersionForObject(org.datanucleus.metadata.AbstractClassMetaData cmd, org.apache.hadoop.hbase.client.Result result, org.datanucleus.ExecutionContext ec, org.datanucleus.store.schema.table.Table table, org.datanucleus.store.StoreManager storeMgr)
cmd - Metadata for the classresult - The resultec - ExecutionContexttable - The tablestoreMgr - StoreManagerpublic static Object getSurrogateVersionForObject(org.datanucleus.metadata.AbstractClassMetaData cmd, org.apache.hadoop.hbase.client.Result result, String tableName, org.datanucleus.store.StoreManager storeMgr)
cmd - Metadata for the classresult - The resulttableName - Name of the tablestoreMgr - Store Managerpublic static org.apache.hadoop.hbase.client.Put getPutForObject(org.datanucleus.state.ObjectProvider op,
org.datanucleus.store.schema.table.Table schemaTable)
throws IOException
IOExceptionpublic static org.apache.hadoop.hbase.client.Delete getDeleteForObject(org.datanucleus.state.ObjectProvider op,
org.datanucleus.store.schema.table.Table schemaTable)
throws IOException
IOExceptionpublic static org.apache.hadoop.hbase.client.Get getGetForObject(org.datanucleus.state.ObjectProvider op,
org.datanucleus.store.schema.table.Table schemaTable)
throws IOException
IOExceptionpublic static org.apache.hadoop.hbase.client.Result getResultForObject(org.datanucleus.state.ObjectProvider op,
org.apache.hadoop.hbase.client.Table table,
org.datanucleus.store.schema.table.Table schemaTable)
throws IOException
IOExceptionpublic static boolean objectExistsInTable(org.datanucleus.state.ObjectProvider op,
org.apache.hadoop.hbase.client.Table table,
org.datanucleus.store.schema.table.Table schemaTable)
throws IOException
IOExceptionCopyright © 2017. All rights reserved.