Class SchemaHelper

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

public class SchemaHelper extends Object implements MapRDBConstants
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     

    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 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
    fromTableAttr(com.mapr.fs.proto.Dbserver.TableAttr attr, org.apache.hadoop.hbase.HTableDescriptor desc)
     
    static org.apache.hadoop.hbase.io.compress.Compression.Algorithm
    toAlgorithm(com.mapr.fs.proto.Common.FileCompressionType fct)
     
    static String
    toAlgorithmStr(com.mapr.fs.proto.Common.FileCompressionType fct)
     
    static com.mapr.fs.proto.Dbserver.ColumnFamilyAttr
    toColumnFamilyAttr(org.apache.hadoop.hbase.HColumnDescriptor newcf, boolean setName)
     
    static com.mapr.fs.proto.Dbserver.ColumnFamilyAttr
    toColumnFamilyAttr(org.apache.hadoop.hbase.HColumnDescriptor oldcf, org.apache.hadoop.hbase.HColumnDescriptor newcf, boolean setName)
     
    static com.mapr.fs.proto.Common.FileCompressionType
    toFileCompressionType(org.apache.hadoop.hbase.io.compress.Compression.Algorithm algorithm)
     
    static org.apache.hadoop.hbase.HColumnDescriptor
    toHColumnDescriptor(com.mapr.fs.proto.Dbserver.SchemaFamily schemaFamily)
     
    static org.apache.hadoop.hbase.HTableDescriptor
    toHTableDescriptor(com.mapr.fs.MapRFileSystem mfs, org.apache.hadoop.fs.Path path)
     
    static org.apache.hadoop.hbase.HTableDescriptor
    toHTableDescriptor(com.mapr.fs.MapRFileSystem mfs, org.apache.hadoop.fs.Path path, boolean useName)
     
    boolean
    validCompressionType(org.apache.hadoop.hbase.io.compress.Compression.Algorithm algorithm)
     

    Methods inherited from class java.lang.Object

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

    • SchemaHelper

      public SchemaHelper()
  • Method Details

    • toHColumnDescriptor

      public static org.apache.hadoop.hbase.HColumnDescriptor toHColumnDescriptor(com.mapr.fs.proto.Dbserver.SchemaFamily schemaFamily)
    • toColumnFamilyAttr

      public static com.mapr.fs.proto.Dbserver.ColumnFamilyAttr toColumnFamilyAttr(org.apache.hadoop.hbase.HColumnDescriptor newcf, boolean setName)
    • toColumnFamilyAttr

      public static com.mapr.fs.proto.Dbserver.ColumnFamilyAttr toColumnFamilyAttr(org.apache.hadoop.hbase.HColumnDescriptor oldcf, org.apache.hadoop.hbase.HColumnDescriptor newcf, boolean setName)
    • validCompressionType

      public boolean validCompressionType(org.apache.hadoop.hbase.io.compress.Compression.Algorithm algorithm)
    • toFileCompressionType

      public static com.mapr.fs.proto.Common.FileCompressionType toFileCompressionType(org.apache.hadoop.hbase.io.compress.Compression.Algorithm algorithm)
    • toAlgorithm

      public static org.apache.hadoop.hbase.io.compress.Compression.Algorithm toAlgorithm(com.mapr.fs.proto.Common.FileCompressionType fct)
    • toAlgorithmStr

      public static String toAlgorithmStr(com.mapr.fs.proto.Common.FileCompressionType fct)
    • toHTableDescriptor

      public static org.apache.hadoop.hbase.HTableDescriptor toHTableDescriptor(com.mapr.fs.MapRFileSystem mfs, org.apache.hadoop.fs.Path path) throws IOException
      Throws:
      IOException
    • toHTableDescriptor

      public static org.apache.hadoop.hbase.HTableDescriptor toHTableDescriptor(com.mapr.fs.MapRFileSystem mfs, org.apache.hadoop.fs.Path path, boolean useName) throws IOException
      Throws:
      IOException
    • fromTableAttr

      public static void fromTableAttr(com.mapr.fs.proto.Dbserver.TableAttr attr, org.apache.hadoop.hbase.HTableDescriptor desc)