Package com.mapr.fs.hbase
Class HTableProperties
java.lang.Object
com.mapr.fs.hbase.HTableProperties
- All Implemented Interfaces:
MapRDBConstants,com.mapr.fs.jni.MapRConstants
Helper class to hold in-memory state of Table and Column Family properties
for Goose tables which do not have a corresponding mapping.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mapr.fs.jni.MapRConstants
com.mapr.fs.jni.MapRConstants.ErrorValue, com.mapr.fs.jni.MapRConstants.JniUsername, com.mapr.fs.jni.MapRConstants.PutConstants, com.mapr.fs.jni.MapRConstants.RowConstants -
Field Summary
FieldsFields inherited from interface com.mapr.fs.jni.MapRConstants
AtimeBit, AuditBit, ChunkSizeBit, ClusterConfDefault, CompressBit, CompressorTypeBit, DEFAULT_USER_IDENTIFIER, DEFAULT_USER_IDENTIFIER_ESCAPED, DefaultChunkSize, DefaultCLDBIp, DefaultCLDBPort, DiskFlushBit, EMPTY_BYTE_ARRAY, EMPTY_END_ROW, EMPTY_START_ROW, FidNameBit, GlobalClusterConfDefault, GroupBit, HADOOP_MAX_BLOCKSIZE, HADOOP_SECURITY_SPOOFED_GID, HADOOP_SECURITY_SPOOFED_GROUP, HADOOP_SECURITY_SPOOFED_UID, HADOOP_SECURITY_SPOOFED_USER, HOSTNAME_IP_SEPARATOR, IP_PORT_SEPARATOR, IPV6_ADDR_ENDER, IPV6_ADDR_STARTER, IPv6DefaultCLDBIp, LAST_ROW, LATEST_TIMESTAMP, MAPR_ENV_VAR, MAPR_PROPERTY_HOME, MapRClusterDir, MapRClusterDirPattern, MapRClusterDirSlash, MAPRFS_PREFIX, MAPRFS_SCHEME, MapRHomeDefault, MAX_CLUSTERS_CROSSED, MAX_PATH_LENGTH, MAX_PORT_NUMBER, MAX_RA_THREADS, MIN_RA_THREADS, MinChunkSize, ModeBit, MtimeBit, MULTI_ADDR_SEPARATOR, NUM_CONTAINERS_PER_RPC, OLDEST_TIMESTAMP, RA_THREADS_PER_STREAM, ReplBit, SSL_TRUSTSTORE, UserBit, UTF8_ENCODING, WireSecureBitFields inherited from interface com.mapr.fs.hbase.MapRDBConstants
COMMITTED_COL, DB_META_TABLE, DB_META_TABLE_BYTES, DEFAULT_BLOCKSIZE, DEFAULT_CF, FALSE, FALSE_VALUE, FID_COL, MAPR_UUID, TRUE, TRUE_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddPropertiesToTableDescriptor(org.apache.hadoop.fs.Path table, org.apache.hadoop.hbase.HTableDescriptor desc) protected static StringconvertPath(String path) static StringgetColumnProperty(org.apache.hadoop.fs.Path table, String cf, String key) protected static Map<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.io.ImmutableBytesWritable> getProps(org.apache.hadoop.fs.Path table) static StringgetTableProperty(org.apache.hadoop.fs.Path table, String key) static StringgetTableProperty(org.apache.hadoop.fs.Path table, org.apache.hadoop.hbase.io.ImmutableBytesWritable key) protected static voidputVal(Map<org.apache.hadoop.hbase.io.ImmutableBytesWritable, org.apache.hadoop.hbase.io.ImmutableBytesWritable> map, String key, String value) protected static voidputVal(Map<org.apache.hadoop.hbase.io.ImmutableBytesWritable, org.apache.hadoop.hbase.io.ImmutableBytesWritable> map, org.apache.hadoop.hbase.io.ImmutableBytesWritable key, String value) static voidremoveProperties(org.apache.hadoop.fs.Path table) static voidsetColumnProperty(org.apache.hadoop.fs.Path table, String cf, String key, String value) protected static voidsetProps(org.apache.hadoop.fs.Path table, Map<org.apache.hadoop.hbase.io.ImmutableBytesWritable, org.apache.hadoop.hbase.io.ImmutableBytesWritable> props) static voidsetTableProperties(org.apache.hadoop.fs.Path table, Map<org.apache.hadoop.hbase.io.ImmutableBytesWritable, org.apache.hadoop.hbase.io.ImmutableBytesWritable> map) static voidsetTableProperty(org.apache.hadoop.fs.Path table, String key, String value)
-
Field Details
-
DISABLED
- See Also:
-
-
Constructor Details
-
HTableProperties
public HTableProperties()
-
-
Method Details
-
addPropertiesToTableDescriptor
public static void addPropertiesToTableDescriptor(org.apache.hadoop.fs.Path table, org.apache.hadoop.hbase.HTableDescriptor desc) -
removeProperties
public static void removeProperties(org.apache.hadoop.fs.Path table) -
getTableProperty
-
getTableProperty
public static String getTableProperty(org.apache.hadoop.fs.Path table, org.apache.hadoop.hbase.io.ImmutableBytesWritable key) -
setTableProperty
-
setTableProperties
public static void setTableProperties(org.apache.hadoop.fs.Path table, Map<org.apache.hadoop.hbase.io.ImmutableBytesWritable, org.apache.hadoop.hbase.io.ImmutableBytesWritable> map) -
getColumnProperty
-
setColumnProperty
-
getProps
protected static Map<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.io.ImmutableBytesWritable> getProps(org.apache.hadoop.fs.Path table) -
setProps
protected static void setProps(org.apache.hadoop.fs.Path table, Map<org.apache.hadoop.hbase.io.ImmutableBytesWritable, org.apache.hadoop.hbase.io.ImmutableBytesWritable> props) -
convertPath
-
putVal
-
putVal
-