Class HTableProperties

java.lang.Object
com.mapr.fs.hbase.HTableProperties
All Implemented Interfaces:
MapRDBConstants, com.mapr.fs.jni.MapRConstants

public class HTableProperties extends Object implements MapRDBConstants
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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields 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, WireSecureBit
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addPropertiesToTableDescriptor(org.apache.hadoop.fs.Path table, org.apache.hadoop.hbase.HTableDescriptor desc)
     
    protected static String
     
    static String
    getColumnProperty(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 String
    getTableProperty(org.apache.hadoop.fs.Path table, String key)
     
    static String
    getTableProperty(org.apache.hadoop.fs.Path table, org.apache.hadoop.hbase.io.ImmutableBytesWritable key)
     
    protected static void
    putVal(Map<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.io.ImmutableBytesWritable> map, String key, String value)
     
    protected static void
    putVal(Map<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.io.ImmutableBytesWritable> map, org.apache.hadoop.hbase.io.ImmutableBytesWritable key, String value)
     
    static void
    removeProperties(org.apache.hadoop.fs.Path table)
     
    static void
    setColumnProperty(org.apache.hadoop.fs.Path table, String cf, String key, String value)
     
    protected static void
    setProps(org.apache.hadoop.fs.Path table, Map<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.io.ImmutableBytesWritable> props)
     
    static void
    setTableProperties(org.apache.hadoop.fs.Path table, Map<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.io.ImmutableBytesWritable> map)
     
    static void
    setTableProperty(org.apache.hadoop.fs.Path table, String key, String value)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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

      public static String getTableProperty(org.apache.hadoop.fs.Path table, String key)
    • getTableProperty

      public static String getTableProperty(org.apache.hadoop.fs.Path table, org.apache.hadoop.hbase.io.ImmutableBytesWritable key)
    • setTableProperty

      public static void setTableProperty(org.apache.hadoop.fs.Path table, String key, String value)
    • 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

      public static String getColumnProperty(org.apache.hadoop.fs.Path table, String cf, String key)
    • setColumnProperty

      public static void setColumnProperty(org.apache.hadoop.fs.Path table, String cf, String key, String value)
    • 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

      protected static String convertPath(String path)
    • putVal

      protected static void putVal(Map<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.io.ImmutableBytesWritable> map, String key, String value)
    • putVal

      protected static void putVal(Map<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.io.ImmutableBytesWritable> map, org.apache.hadoop.hbase.io.ImmutableBytesWritable key, String value)