|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.regionserver.StoreFileInfo
@InterfaceAudience.Private public class StoreFileInfo
Describe a StoreFile (hfile, reference, link)
Field Summary | |
---|---|
static String |
HFILE_NAME_REGEX
A non-capture group, for hfiles, so that this can be embedded. |
static org.apache.commons.logging.Log |
LOG
|
Constructor Summary | |
---|---|
StoreFileInfo(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.FileStatus fileStatus)
Create a Store File Info |
|
StoreFileInfo(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path)
Create a Store File Info |
Method Summary | |
---|---|
HDFSBlocksDistribution |
computeHDFSBlocksDistribution(org.apache.hadoop.fs.FileSystem fs)
Compute the HDFS Block Distribution for this StoreFile |
org.apache.hadoop.fs.FileStatus |
getFileStatus()
|
HDFSBlocksDistribution |
getHDFSBlockDistribution()
|
long |
getModificationTime()
|
org.apache.hadoop.fs.Path |
getPath()
|
static org.apache.hadoop.fs.Path |
getReferredToFile(org.apache.hadoop.fs.Path p)
|
static boolean |
isHFile(org.apache.hadoop.fs.Path path)
|
static boolean |
isHFile(String fileName)
|
boolean |
isLink()
|
boolean |
isReference()
|
static boolean |
isReference(org.apache.hadoop.fs.Path path)
|
static boolean |
isReference(String name)
|
boolean |
isTopReference()
|
static boolean |
isValid(org.apache.hadoop.fs.FileStatus fileStatus)
Return if the specified file is a valid store file or not. |
StoreFile.Reader |
open(org.apache.hadoop.fs.FileSystem fs,
CacheConfig cacheConf,
DataBlockEncoding dataBlockEncoding)
Open a Reader for the StoreFile |
String |
toString()
|
static boolean |
validateStoreFileName(String fileName)
Validate the store file name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
public static final String HFILE_NAME_REGEX
Constructor Detail |
---|
public StoreFileInfo(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path) throws IOException
conf
- the Configuration
to usefs
- The current file system to use.path
- The Path
of the file
IOException
public StoreFileInfo(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.FileStatus fileStatus) throws IOException
conf
- the Configuration
to usefs
- The current file system to use.fileStatus
- The FileStatus
of the file
IOException
Method Detail |
---|
public boolean isReference()
public boolean isTopReference()
public boolean isLink()
public HDFSBlocksDistribution getHDFSBlockDistribution()
public StoreFile.Reader open(org.apache.hadoop.fs.FileSystem fs, CacheConfig cacheConf, DataBlockEncoding dataBlockEncoding) throws IOException
fs
- The current file system to use.cacheConf
- The cache configuration and block cache reference.dataBlockEncoding
- data block encoding algorithm.
IOException
public HDFSBlocksDistribution computeHDFSBlocksDistribution(org.apache.hadoop.fs.FileSystem fs) throws IOException
IOException
public org.apache.hadoop.fs.Path getPath()
Path
of the filepublic org.apache.hadoop.fs.FileStatus getFileStatus()
FileStatus
of the filepublic long getModificationTime()
public String toString()
toString
in class Object
public static boolean isHFile(org.apache.hadoop.fs.Path path)
path
- Path to check.
public static boolean isHFile(String fileName)
public static boolean isReference(org.apache.hadoop.fs.Path path)
path
- Path to check.
public static boolean isReference(String name)
name
- file name to check.
public static org.apache.hadoop.fs.Path getReferredToFile(org.apache.hadoop.fs.Path p)
public static boolean validateStoreFileName(String fileName)
fileName
- name of the file to validate
public static boolean isValid(org.apache.hadoop.fs.FileStatus fileStatus) throws IOException
fileStatus
- The FileStatus
of the file
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |