Return-Path: X-Original-To: apmail-hbase-commits-archive@www.apache.org Delivered-To: apmail-hbase-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A9C711899F for ; Fri, 11 Dec 2015 16:43:22 +0000 (UTC) Received: (qmail 51570 invoked by uid 500); 11 Dec 2015 16:39:26 -0000 Delivered-To: apmail-hbase-commits-archive@hbase.apache.org Received: (qmail 51144 invoked by uid 500); 11 Dec 2015 16:39:24 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 46032 invoked by uid 99); 11 Dec 2015 16:31:31 -0000 Received: from Unknown (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Dec 2015 16:31:31 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A1591E177F; Fri, 11 Dec 2015 16:30:53 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: misty@apache.org To: commits@hbase.apache.org Date: Fri, 11 Dec 2015 16:31:13 -0000 Message-Id: <140561256d814f2c82609e0f7b7bb295@git.apache.org> In-Reply-To: <30edfa6e54394a378028ad3e3c4e06ca@git.apache.org> References: <30edfa6e54394a378028ad3e3c4e06ca@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [21/51] [partial] hbase-site git commit: Published site at 22b95aebcd7fc742412ab514520008fda5e327de. http://git-wip-us.apache.org/repos/asf/hbase-site/blob/900a9477/devapidocs/org/apache/hadoop/hbase/mob/MobUtils.html ---------------------------------------------------------------------- diff --git a/devapidocs/org/apache/hadoop/hbase/mob/MobUtils.html b/devapidocs/org/apache/hadoop/hbase/mob/MobUtils.html index 5580c19..3babc0f 100644 --- a/devapidocs/org/apache/hadoop/hbase/mob/MobUtils.html +++ b/devapidocs/org/apache/hadoop/hbase/mob/MobUtils.html @@ -96,7 +96,7 @@

@InterfaceAudience.Private
-public class MobUtils
+public final class MobUtils
 extends Object
The mob utilities
@@ -137,10 +137,14 @@ extends Constructors  -Constructor and Description +Modifier +Constructor and Description -MobUtils()  +private +MobUtils() +
Private constructor to keep this class from being instantiated.
+ @@ -204,19 +208,12 @@ extends -static Encryption.Context -createEncryptionContext(org.apache.hadoop.conf.Configuration conf, - HColumnDescriptor family) -
Creates the encyption context.
- - - static ExecutorService createMobCompactorThreadPool(org.apache.hadoop.conf.Configuration conf)
Creates a thread pool.
- + static KeyValue createMobRefKeyValue(Cell cell, byte[] fileName, @@ -224,7 +221,7 @@ extends Creates a mob reference KeyValue. - + static StoreFile.Writer createRefFileWriter(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, @@ -236,7 +233,7 @@ extends Creates a writer for the ref file in temp directory. - + private static StoreFile.Writer createWriter(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, @@ -250,7 +247,7 @@ extends Creates a writer for the mob file in temp directory. - + static StoreFile.Writer createWriter(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, @@ -265,7 +262,7 @@ extends Creates a writer for the mob file in temp directory. - + static StoreFile.Writer createWriter(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, @@ -280,7 +277,7 @@ extends Creates a writer for the mob file in temp directory. - + static void doMobCompaction(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, @@ -292,20 +289,20 @@ extends Performs the mob compaction. - + static String formatDate(Date date)
Formats a date to a string.
- + static org.apache.hadoop.fs.Path getCompactionWorkingPath(org.apache.hadoop.fs.Path root, String jobName)
Gets the working directory of the mob compaction.
- + static org.apache.hadoop.fs.Path getMobFamilyPath(org.apache.hadoop.conf.Configuration conf, TableName tableName, @@ -313,130 +310,130 @@ extends Gets the family dir of the mob files. - + static org.apache.hadoop.fs.Path getMobFamilyPath(org.apache.hadoop.fs.Path regionPath, String familyName)
Gets the family dir of the mob files.
- + static String getMobFileName(Cell cell)
Gets the mob file name from the mob ref cell.
- + static org.apache.hadoop.fs.Path getMobHome(org.apache.hadoop.conf.Configuration conf)
Gets the root dir of the mob files.
- + static HRegionInfo getMobRegionInfo(TableName tableName)
Gets the HRegionInfo of the mob files.
- + static org.apache.hadoop.fs.Path getMobRegionPath(org.apache.hadoop.conf.Configuration conf, TableName tableName)
Gets the region dir of the mob files.
- + static int getMobValueLength(Cell cell)
Gets the mob value length from the mob ref cell.
- + static org.apache.hadoop.fs.Path getQualifiedMobRootDir(org.apache.hadoop.conf.Configuration conf)
Gets the qualified root dir of the mob files.
- + static TableName getTableLockName(TableName tn)
Gets the table name used in the table lock.
- + static Tag getTableNameTag(Cell cell)
Gets the table name tag.
- + static boolean hasMobColumns(HTableDescriptor htd)
Checks whether this table has mob-enabled columns.
- + static boolean hasMobReferenceTag(List<Tag> tags)
Whether the tag list has a mob reference tag.
- + static boolean hasValidMobRefCellValue(Cell cell)
Indicates whether the current mob ref cell has a valid value.
- + static boolean isCacheMobBlocks(Scan scan)
Indicates whether the scan contains the information of caching blocks.
- + static boolean isMobReferenceCell(Cell cell)
Whether the current cell is a mob reference cell.
- + static boolean isMobRegionInfo(HRegionInfo regionInfo)
Gets whether the current HRegionInfo is a mob one.
- + static boolean isMobRegionName(TableName tableName, byte[] regionName)
Gets whether the current region name follows the pattern of a mob region name.
- + static boolean isRawMobScan(Scan scan)
Indicates whether it's a raw scan.
- + static boolean isReadEmptyValueOnMobCellMiss(Scan scan)
Indicates whether return null value when the mob file is missing or corrupt.
- + static boolean isRefOnlyScan(Scan scan)
Indicates whether it's a reference only scan.
- + static Date parseDate(String dateString)
Parses the string to a date.
- + static void removeMobFiles(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, @@ -447,14 +444,14 @@ extends Archives the mob files. - + static void setCacheMobBlocks(Scan scan, boolean cacheBlocks)
Sets the attribute of caching blocks in the scan.
- + private static void validateMobFile(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, @@ -491,7 +488,7 @@ extends
  • LOG

    -
    private static final org.apache.commons.logging.Log LOG
    +
    private static final org.apache.commons.logging.Log LOG
  • @@ -500,7 +497,7 @@ extends
  • LOCAL_FORMAT

    -
    private static final ThreadLocal<SimpleDateFormat> LOCAL_FORMAT
    +
    private static final ThreadLocal<SimpleDateFormat> LOCAL_FORMAT
  • @@ -517,7 +514,8 @@ extends
  • MobUtils

    -
    public MobUtils()
    +
    private MobUtils()
    +
    Private constructor to keep this class from being instantiated.
  • @@ -534,7 +532,7 @@ extends
  • formatDate

    -
    public static String formatDate(Date date)
    +
    public static String formatDate(Date date)
    Formats a date to a string.
    Parameters:
    date - The date.
    Returns:
    The string format of the date, it's yyyymmdd.
    @@ -546,7 +544,7 @@ extends
  • parseDate

    -
    public static Date parseDate(String dateString)
    +
    public static Date parseDate(String dateString)
                           throws ParseException
    Parses the string to a date.
    Parameters:
    dateString - The string format of a date, it's yyyymmdd.
    @@ -561,7 +559,7 @@ extends
  • isMobReferenceCell

    -
    public static boolean isMobReferenceCell(Cell cell)
    +
    public static boolean isMobReferenceCell(Cell cell)
    Whether the current cell is a mob reference cell.
    Parameters:
    cell - The current cell.
    Returns:
    True if the cell has a mob reference tag, false if it doesn't.
    @@ -573,7 +571,7 @@ extends
  • getTableNameTag

    -
    public static Tag getTableNameTag(Cell cell)
    +
    public static Tag getTableNameTag(Cell cell)
    Gets the table name tag.
    Parameters:
    cell - The current cell.
    Returns:
    The table name tag.
    @@ -585,7 +583,7 @@ extends
  • hasMobReferenceTag

    -
    public static boolean hasMobReferenceTag(List<Tag> tags)
    +
    public static boolean hasMobReferenceTag(List<Tag> tags)
    Whether the tag list has a mob reference tag.
    Parameters:
    tags - The tag list.
    Returns:
    True if the list has a mob reference tag, false if it doesn't.
    @@ -597,7 +595,7 @@ extends
  • isRawMobScan

    -
    public static boolean isRawMobScan(Scan scan)
    +
    public static boolean isRawMobScan(Scan scan)
    Indicates whether it's a raw scan. The information is set in the attribute "hbase.mob.scan.raw" of scan. For a mob cell, in a normal scan the scanners retrieves the mob cell from the mob file. @@ -613,7 +611,7 @@ extends
  • isRefOnlyScan

    -
    public static boolean isRefOnlyScan(Scan scan)
    +
    public static boolean isRefOnlyScan(Scan scan)
    Indicates whether it's a reference only scan. The information is set in the attribute "hbase.mob.scan.ref.only" of scan. If it's a ref only scan, only the cells with ref tag are returned.
    @@ -627,7 +625,7 @@ extends
  • isCacheMobBlocks

    -
    public static boolean isCacheMobBlocks(Scan scan)
    +
    public static boolean isCacheMobBlocks(Scan scan)
    Indicates whether the scan contains the information of caching blocks. The information is set in the attribute "hbase.mob.cache.blocks" of scan.
    Parameters:
    scan - The current scan.
    @@ -640,7 +638,7 @@ extends
  • setCacheMobBlocks

    -
    public static void setCacheMobBlocks(Scan scan,
    +
    public static void setCacheMobBlocks(Scan scan,
                          boolean cacheBlocks)
    Sets the attribute of caching blocks in the scan.
    Parameters:
    scan - The current scan.
    cacheBlocks - True, set the attribute of caching blocks into the scan, the scanner with this scan @@ -654,7 +652,7 @@ extends
  • cleanExpiredMobFiles

    -
    public static void cleanExpiredMobFiles(org.apache.hadoop.fs.FileSystem fs,
    +
    public static void cleanExpiredMobFiles(org.apache.hadoop.fs.FileSystem fs,
                             org.apache.hadoop.conf.Configuration conf,
                             TableName tableName,
                             HColumnDescriptor columnDescriptor,
    @@ -675,7 +673,7 @@ extends 
     
  • getMobHome

    -
    public static org.apache.hadoop.fs.Path getMobHome(org.apache.hadoop.conf.Configuration conf)
    +
    public static org.apache.hadoop.fs.Path getMobHome(org.apache.hadoop.conf.Configuration conf)
    Gets the root dir of the mob files. It's {HBASE_DIR}/mobdir.
    Parameters:
    conf - The current configuration.
    @@ -688,7 +686,7 @@ extends
  • getQualifiedMobRootDir

    -
    public static org.apache.hadoop.fs.Path getQualifiedMobRootDir(org.apache.hadoop.conf.Configuration conf)
    +
    public static org.apache.hadoop.fs.Path getQualifiedMobRootDir(org.apache.hadoop.conf.Configuration conf)
                                                             throws IOException
    Gets the qualified root dir of the mob files.
    Parameters:
    conf - The current configuration.
    @@ -703,7 +701,7 @@ extends
  • getMobRegionPath

    -
    public static org.apache.hadoop.fs.Path getMobRegionPath(org.apache.hadoop.conf.Configuration conf,
    +
    public static org.apache.hadoop.fs.Path getMobRegionPath(org.apache.hadoop.conf.Configuration conf,
                                              TableName tableName)
    Gets the region dir of the mob files. It's {HBASE_DIR}/mobdir/{namespace}/{tableName}/{regionEncodedName}.
    @@ -717,7 +715,7 @@ extends
  • getMobFamilyPath

    -
    public static org.apache.hadoop.fs.Path getMobFamilyPath(org.apache.hadoop.conf.Configuration conf,
    +
    public static org.apache.hadoop.fs.Path getMobFamilyPath(org.apache.hadoop.conf.Configuration conf,
                                              TableName tableName,
                                              String familyName)
    Gets the family dir of the mob files. @@ -732,7 +730,7 @@ extends
  • getMobFamilyPath

    -
    public static org.apache.hadoop.fs.Path getMobFamilyPath(org.apache.hadoop.fs.Path regionPath,
    +
    public static org.apache.hadoop.fs.Path getMobFamilyPath(org.apache.hadoop.fs.Path regionPath,
                                              String familyName)
    Gets the family dir of the mob files. It's {HBASE_DIR}/mobdir/{namespace}/{tableName}/{regionEncodedName}/{columnFamilyName}.
    @@ -746,7 +744,7 @@ extends
  • getMobRegionInfo

    -
    public static HRegionInfo getMobRegionInfo(TableName tableName)
    +
    public static HRegionInfo getMobRegionInfo(TableName tableName)
    Gets the HRegionInfo of the mob files. This is a dummy region. The mob files are not saved in a region in HBase. This is only used in mob snapshot. It's internally used only.
    @@ -760,7 +758,7 @@ extends
  • isMobRegionInfo

    -
    public static boolean isMobRegionInfo(HRegionInfo regionInfo)
    +
    public static boolean isMobRegionInfo(HRegionInfo regionInfo)
    Gets whether the current HRegionInfo is a mob one.
    Parameters:
    regionInfo - The current HRegionInfo.
    Returns:
    If true, the current HRegionInfo is a mob one.
    @@ -772,7 +770,7 @@ extends
  • isMobRegionName

    -
    public static boolean isMobRegionName(TableName tableName,
    +
    public static boolean isMobRegionName(TableName tableName,
                           byte[] regionName)
    Gets whether the current region name follows the pattern of a mob region name.
    Parameters:
    tableName - The current table name.
    regionName - The current region name.
    @@ -785,7 +783,7 @@ extends
  • getCompactionWorkingPath

    -
    public static org.apache.hadoop.fs.Path getCompactionWorkingPath(org.apache.hadoop.fs.Path root,
    +
    public static org.apache.hadoop.fs.Path getCompactionWorkingPath(org.apache.hadoop.fs.Path root,
                                                      String jobName)
    Gets the working directory of the mob compaction.
    Parameters:
    root - The root directory of the mob compaction.
    jobName - The current job name.
    @@ -798,7 +796,7 @@ extends
  • removeMobFiles

    -
    public static void removeMobFiles(org.apache.hadoop.conf.Configuration conf,
    +
    public static void removeMobFiles(org.apache.hadoop.conf.Configuration conf,
                       org.apache.hadoop.fs.FileSystem fs,
                       TableName tableName,
                       org.apache.hadoop.fs.Path tableDir,
    @@ -817,7 +815,7 @@ extends 
     
  • createMobRefKeyValue

    -
    public static KeyValue createMobRefKeyValue(Cell cell,
    +
    public static KeyValue createMobRefKeyValue(Cell cell,
                                 byte[] fileName,
                                 Tag tableNameTag)
    Creates a mob reference KeyValue. @@ -833,7 +831,7 @@ extends
  • createWriter

    -
    public static StoreFile.Writer createWriter(org.apache.hadoop.conf.Configuration conf,
    +
    public static StoreFile.Writer createWriter(org.apache.hadoop.conf.Configuration conf,
                                 org.apache.hadoop.fs.FileSystem fs,
                                 HColumnDescriptor family,
                                 String date,
    @@ -857,7 +855,7 @@ extends 
     
  • createRefFileWriter

    -
    public static StoreFile.Writer createRefFileWriter(org.apache.hadoop.conf.Configuration conf,
    +
    public static StoreFile.Writer createRefFileWriter(org.apache.hadoop.conf.Configuration conf,
                                        org.apache.hadoop.fs.FileSystem fs,
                                        HColumnDescriptor family,
                                        org.apache.hadoop.fs.Path basePath,
    @@ -878,7 +876,7 @@ extends 
     
  • createWriter

    -
    public static StoreFile.Writer createWriter(org.apache.hadoop.conf.Configuration conf,
    +
    public static StoreFile.Writer createWriter(org.apache.hadoop.conf.Configuration conf,
                                 org.apache.hadoop.fs.FileSystem fs,
                                 HColumnDescriptor family,
                                 String date,
    @@ -902,7 +900,7 @@ extends 
     
  • createDelFileWriter

    -
    public static StoreFile.Writer createDelFileWriter(org.apache.hadoop.conf.Configuration conf,
    +
    public static StoreFile.Writer createDelFileWriter(org.apache.hadoop.conf.Configuration conf,
                                        org.apache.hadoop.fs.FileSystem fs,
                                        HColumnDescriptor family,
                                        String date,
    @@ -926,7 +924,7 @@ extends 
     
  • createWriter

    -
    private static StoreFile.Writer createWriter(org.apache.hadoop.conf.Configuration conf,
    +
    private static StoreFile.Writer createWriter(org.apache.hadoop.conf.Configuration conf,
                                 org.apache.hadoop.fs.FileSystem fs,
                                 HColumnDescriptor family,
                                 MobFileName mobFileName,
    @@ -949,7 +947,7 @@ extends 
     
  • commitFile

    -
    public static org.apache.hadoop.fs.Path commitFile(org.apache.hadoop.conf.Configuration conf,
    +
    public static org.apache.hadoop.fs.Path commitFile(org.apache.hadoop.conf.Configuration conf,
                                        org.apache.hadoop.fs.FileSystem fs,
                                        org.apache.hadoop.fs.Path sourceFile,
                                        org.apache.hadoop.fs.Path targetPath,
    @@ -968,7 +966,7 @@ extends 
     
  • validateMobFile

    -
    private static void validateMobFile(org.apache.hadoop.conf.Configuration conf,
    +
    private static void validateMobFile(org.apache.hadoop.conf.Configuration conf,
                        org.apache.hadoop.fs.FileSystem fs,
                        org.apache.hadoop.fs.Path path,
                        CacheConfig cacheConfig)
    @@ -985,7 +983,7 @@ extends 
     
  • hasValidMobRefCellValue

    -
    public static boolean hasValidMobRefCellValue(Cell cell)
    +
    public static boolean hasValidMobRefCellValue(Cell cell)
    Indicates whether the current mob ref cell has a valid value. A mob ref cell has a mob reference tag. The value of a mob ref cell consists of two parts, real mob value length and mob file name. @@ -1001,7 +999,7 @@ extends
  • getMobValueLength

    -
    public static int getMobValueLength(Cell cell)
    +
    public static int getMobValueLength(Cell cell)
    Gets the mob value length from the mob ref cell. A mob ref cell has a mob reference tag. The value of a mob ref cell consists of two parts, real mob value length and mob file name. @@ -1017,7 +1015,7 @@ extends
  • getMobFileName

    -
    public static String getMobFileName(Cell cell)
    +
    public static String getMobFileName(Cell cell)
    Gets the mob file name from the mob ref cell. A mob ref cell has a mob reference tag. The value of a mob ref cell consists of two parts, real mob value length and mob file name. @@ -1033,7 +1031,7 @@ extends
  • getTableLockName

    -
    public static TableName getTableLockName(TableName tn)
    +
    public static TableName getTableLockName(TableName tn)
    Gets the table name used in the table lock. The table lock name is a dummy one, it's not a table name. It's tableName + ".mobLock".
    Parameters:
    tn - The table name.
    @@ -1046,7 +1044,7 @@ extends
  • doMobCompaction

    -
    public static void doMobCompaction(org.apache.hadoop.conf.Configuration conf,
    +
    public static void doMobCompaction(org.apache.hadoop.conf.Configuration conf,
                        org.apache.hadoop.fs.FileSystem fs,
                        TableName tableName,
                        HColumnDescriptor hcd,
    @@ -1066,35 +1064,19 @@ extends 
     
  • createMobCompactorThreadPool

    -
    public static ExecutorService createMobCompactorThreadPool(org.apache.hadoop.conf.Configuration conf)
    +
    public static ExecutorService createMobCompactorThreadPool(org.apache.hadoop.conf.Configuration conf)
    Creates a thread pool.
    Parameters:
    conf - the Configuration
    Returns:
    A thread pool.
  • - - - -