Interface StoreFile
- All Known Implementing Classes:
HStoreFile
An interface to describe a store data file.
NOTICE: this interface is mainly designed for coprocessor, so it will not expose
all the internal APIs for a 'store file'. If you are implementing something inside HBase, i.e,
not a coprocessor hook, usually you should use HStoreFile
directly as it is the only
implementation of this interface.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns True if this file should not be part of a minor compaction.Return the timestamp at which this bulk load file was generated.Get the comparator for comparing two cells.org.apache.hadoop.fs.Path
Returns Encoded Path if this StoreFile was made with a Stream.Get the first key in this store file.Get the last key in this store file.Get the max timestamp of all the cells in the store file.long
Get max of the MemstoreTS in the KV's in this store file.long
Returns This files maximum edit sequence id.Get the min timestamp of all the cells in the store file.long
Get the modification time of this store file.long
Deprecated.Since 2.0.0.org.apache.hadoop.fs.Path
getPath()
Returns Path or null if this StoreFile was made with a Stream.org.apache.hadoop.fs.Path
Returns Returns the qualified path of this StoreFileboolean
Check if this storefile was created by bulk load.boolean
isHFile()
Returns True if this is HFile.boolean
Returns True if this file was made by a major compaction.boolean
Returns True if this is a StoreFile Reference.Returns a length description of this StoreFile, suitable for debug output
-
Method Details
-
getFirstKey
Get the first key in this store file. -
getLastKey
Get the last key in this store file. -
getComparator
Get the comparator for comparing two cells. -
getMaxMemStoreTS
long getMaxMemStoreTS()Get max of the MemstoreTS in the KV's in this store file. -
getPath
org.apache.hadoop.fs.Path getPath()Returns Path or null if this StoreFile was made with a Stream. -
getEncodedPath
org.apache.hadoop.fs.Path getEncodedPath()Returns Encoded Path if this StoreFile was made with a Stream. -
getQualifiedPath
org.apache.hadoop.fs.Path getQualifiedPath()Returns Returns the qualified path of this StoreFile -
isReference
boolean isReference()Returns True if this is a StoreFile Reference. -
isHFile
boolean isHFile()Returns True if this is HFile. -
isMajorCompactionResult
boolean isMajorCompactionResult()Returns True if this file was made by a major compaction. -
excludeFromMinorCompaction
boolean excludeFromMinorCompaction()Returns True if this file should not be part of a minor compaction. -
getMaxSequenceId
long getMaxSequenceId()Returns This files maximum edit sequence id. -
getModificationTimeStamp
Deprecated.Since 2.0.0. Will be removed in 3.0.0.Get the modification time of this store file. Usually will access the file system so throws IOException.- Throws:
IOException
- See Also:
-
getModificationTimestamp
Get the modification time of this store file. Usually will access the file system so throws IOException.- Throws:
IOException
-
isBulkLoadResult
boolean isBulkLoadResult()Check if this storefile was created by bulk load. When a hfile is bulk loaded into HBase, we append'_SeqId_<id-when-loaded>'
to the hfile name, unless "hbase.mapreduce.bulkload.assign.sequenceNumbers" is explicitly turned off. If "hbase.mapreduce.bulkload.assign.sequenceNumbers" is turned off, fall back to BULKLOAD_TIME_KEY.- Returns:
- true if this storefile was created by bulk load.
-
getBulkLoadTimestamp
Return the timestamp at which this bulk load file was generated. -
toStringDetailed
Returns a length description of this StoreFile, suitable for debug output -
getMinimumTimestamp
Get the min timestamp of all the cells in the store file. -
getMaximumTimestamp
Get the max timestamp of all the cells in the store file.
-