Class HTableProperties

  • All Implemented Interfaces:
    MapRDBConstants, com.mapr.fs.jni.MapRConstants

    public class HTableProperties
    extends java.lang.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 java.lang.String DISABLED  
      • 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, 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, 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, UserBit, UTF8_ENCODING, WireSecureBit
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addPropertiesToTableDescriptor​(org.apache.hadoop.fs.Path table, org.apache.hadoop.hbase.HTableDescriptor desc)  
      protected static java.lang.String convertPath​(java.lang.String path)  
      static java.lang.String getColumnProperty​(org.apache.hadoop.fs.Path table, java.lang.String cf, java.lang.String key)  
      protected static java.util.Map<org.apache.hadoop.hbase.io.ImmutableBytesWritable,​org.apache.hadoop.hbase.io.ImmutableBytesWritable> getProps​(org.apache.hadoop.fs.Path table)  
      static java.lang.String getTableProperty​(org.apache.hadoop.fs.Path table, java.lang.String key)  
      static java.lang.String getTableProperty​(org.apache.hadoop.fs.Path table, org.apache.hadoop.hbase.io.ImmutableBytesWritable key)  
      protected static void putVal​(java.util.Map<org.apache.hadoop.hbase.io.ImmutableBytesWritable,​org.apache.hadoop.hbase.io.ImmutableBytesWritable> map, java.lang.String key, java.lang.String value)  
      protected static void putVal​(java.util.Map<org.apache.hadoop.hbase.io.ImmutableBytesWritable,​org.apache.hadoop.hbase.io.ImmutableBytesWritable> map, org.apache.hadoop.hbase.io.ImmutableBytesWritable key, java.lang.String value)  
      static void removeProperties​(org.apache.hadoop.fs.Path table)  
      static void setColumnProperty​(org.apache.hadoop.fs.Path table, java.lang.String cf, java.lang.String key, java.lang.String value)  
      protected static void setProps​(org.apache.hadoop.fs.Path table, java.util.Map<org.apache.hadoop.hbase.io.ImmutableBytesWritable,​org.apache.hadoop.hbase.io.ImmutableBytesWritable> props)  
      static void setTableProperties​(org.apache.hadoop.fs.Path table, java.util.Map<org.apache.hadoop.hbase.io.ImmutableBytesWritable,​org.apache.hadoop.hbase.io.ImmutableBytesWritable> map)  
      static void setTableProperty​(org.apache.hadoop.fs.Path table, java.lang.String key, java.lang.String value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HTableProperties

        public HTableProperties()
    • Method Detail

      • 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 java.lang.String getTableProperty​(org.apache.hadoop.fs.Path table,
                                                        java.lang.String key)
      • getTableProperty

        public static java.lang.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,
                                            java.lang.String key,
                                            java.lang.String value)
      • setTableProperties

        public static void setTableProperties​(org.apache.hadoop.fs.Path table,
                                              java.util.Map<org.apache.hadoop.hbase.io.ImmutableBytesWritable,​org.apache.hadoop.hbase.io.ImmutableBytesWritable> map)
      • getColumnProperty

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

        public static void setColumnProperty​(org.apache.hadoop.fs.Path table,
                                             java.lang.String cf,
                                             java.lang.String key,
                                             java.lang.String value)
      • getProps

        protected static java.util.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,
                                       java.util.Map<org.apache.hadoop.hbase.io.ImmutableBytesWritable,​org.apache.hadoop.hbase.io.ImmutableBytesWritable> props)
      • convertPath

        protected static java.lang.String convertPath​(java.lang.String path)
      • putVal

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

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