Class MockHStoreFile
java.lang.Object
org.apache.hadoop.hbase.regionserver.HStoreFile
org.apache.hadoop.hbase.regionserver.MockHStoreFile
- All Implemented Interfaces:
org.apache.hadoop.hbase.regionserver.StoreFile
A mock used so our tests don't deal with actual StoreFiles
-
Field Summary
Modifier and TypeFieldDescription(package private) long
(package private) boolean
(package private) long
(package private) org.apache.hadoop.hbase.HDFSBlocksDistribution
(package private) boolean
(package private) boolean
(package private) long
private Map<byte[],
byte[]> (package private) long
(package private) long
(package private) byte[]
(package private) org.apache.hadoop.hbase.regionserver.TimeRangeTracker
Fields inherited from class org.apache.hadoop.hbase.regionserver.HStoreFile
BLOOM_FILTER_PARAM_KEY, BLOOM_FILTER_TYPE_KEY, BULKLOAD_TASK_KEY, BULKLOAD_TIME_KEY, COMPACTION_EVENT_KEY, DELETE_FAMILY_COUNT, EARLIEST_PUT_TS, EXCLUDE_FROM_MINOR_COMPACTION_KEY, HISTORICAL_KEY, LAST_BLOOM_KEY, MAJOR_COMPACTION_KEY, MAX_SEQ_ID_KEY, MOB_CELLS_COUNT, MOB_FILE_REFS, NULL_VALUE, SKIP_RESET_SEQ_ID, TIMERANGE_KEY
-
Constructor Summary
ConstructorDescriptionMockHStoreFile
(HBaseTestingUtil testUtil, org.apache.hadoop.fs.Path testPath, long length, long ageInDisk, boolean isRef, long sequenceid, org.apache.hadoop.hbase.regionserver.StoreFileInfo storeFileInfo) MockHStoreFile
(HBaseTestingUtil testUtil, org.apache.hadoop.fs.Path testPath, long length, long ageInDisk, boolean isRef, long sequenceid, org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker tracker) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.HDFSBlocksDistribution
long
byte[]
getMetadataValue
(byte[] key) long
org.apache.hadoop.hbase.regionserver.StoreFileScanner
getPreadScanner
(boolean cacheBlocks, long readPt, long scannerOrder, boolean canOptimizeForNonNullColumn) org.apache.hadoop.hbase.regionserver.StoreFileReader
org.apache.hadoop.hbase.regionserver.StoreFileScanner
getStreamScanner
(boolean canUseDropBehind, boolean cacheBlocks, boolean isCompaction, long readPt, long scannerOrder, boolean canOptimizeForNonNullColumn) void
boolean
boolean
boolean
boolean
void
(package private) void
setEntries
(long entryCount) void
setIsMajor
(boolean isMajor) (package private) void
setLength
(long newLen) void
setMetadataValue
(byte[] key, byte[] value) private void
setMockHStoreFileVals
(long length, boolean isRef, long ageInDisk, long sequenceid, boolean isMajor, HBaseTestingUtil testUtil) (package private) void
setTimeRangeTracker
(org.apache.hadoop.hbase.regionserver.TimeRangeTracker timeRangeTracker) Methods inherited from class org.apache.hadoop.hbase.regionserver.HStoreFile
closeStoreFile, decreaseRefCount, decreaseStoreFilesRefeCount, deleteStoreFile, excludeFromMinorCompaction, getCacheConf, getCompactedStoreFiles, getComparator, getEncodedPath, getFileInfo, getFirstKey, getLastKey, getMaxMemStoreTS, getPath, getQualifiedPath, getRefCount, increaseRefCount, increaseStoreFilesRefeCount, isHFile, isHistorical, isReferencedInReads, toString, toStringDetailed
-
Field Details
-
length
long length -
isRef
boolean isRef -
ageInDisk
long ageInDisk -
sequenceid
long sequenceid -
metadata
-
splitPoint
byte[] splitPoint -
timeRangeTracker
org.apache.hadoop.hbase.regionserver.TimeRangeTracker timeRangeTracker -
entryCount
long entryCount -
isMajor
boolean isMajor -
hdfsBlocksDistribution
org.apache.hadoop.hbase.HDFSBlocksDistribution hdfsBlocksDistribution -
modificationTime
long modificationTime -
compactedAway
boolean compactedAway
-
-
Constructor Details
-
MockHStoreFile
MockHStoreFile(HBaseTestingUtil testUtil, org.apache.hadoop.fs.Path testPath, long length, long ageInDisk, boolean isRef, long sequenceid, org.apache.hadoop.hbase.regionserver.StoreFileInfo storeFileInfo) throws IOException - Throws:
IOException
-
MockHStoreFile
MockHStoreFile(HBaseTestingUtil testUtil, org.apache.hadoop.fs.Path testPath, long length, long ageInDisk, boolean isRef, long sequenceid, org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker tracker) throws IOException - Throws:
IOException
-
-
Method Details
-
setMockHStoreFileVals
private void setMockHStoreFileVals(long length, boolean isRef, long ageInDisk, long sequenceid, boolean isMajor, HBaseTestingUtil testUtil) throws UnknownHostException - Throws:
UnknownHostException
-
setLength
-
getMaxSequenceId
- Specified by:
getMaxSequenceId
in interfaceorg.apache.hadoop.hbase.regionserver.StoreFile
- Overrides:
getMaxSequenceId
in classorg.apache.hadoop.hbase.regionserver.HStoreFile
-
isMajorCompactionResult
- Specified by:
isMajorCompactionResult
in interfaceorg.apache.hadoop.hbase.regionserver.StoreFile
- Overrides:
isMajorCompactionResult
in classorg.apache.hadoop.hbase.regionserver.HStoreFile
-
setIsMajor
-
isReference
- Specified by:
isReference
in interfaceorg.apache.hadoop.hbase.regionserver.StoreFile
- Overrides:
isReference
in classorg.apache.hadoop.hbase.regionserver.HStoreFile
-
isBulkLoadResult
- Specified by:
isBulkLoadResult
in interfaceorg.apache.hadoop.hbase.regionserver.StoreFile
- Overrides:
isBulkLoadResult
in classorg.apache.hadoop.hbase.regionserver.HStoreFile
-
getMetadataValue
- Overrides:
getMetadataValue
in classorg.apache.hadoop.hbase.regionserver.HStoreFile
-
setMetadataValue
-
setTimeRangeTracker
-
setEntries
-
getMinimumTimestamp
- Specified by:
getMinimumTimestamp
in interfaceorg.apache.hadoop.hbase.regionserver.StoreFile
- Overrides:
getMinimumTimestamp
in classorg.apache.hadoop.hbase.regionserver.HStoreFile
-
getMaximumTimestamp
- Specified by:
getMaximumTimestamp
in interfaceorg.apache.hadoop.hbase.regionserver.StoreFile
- Overrides:
getMaximumTimestamp
in classorg.apache.hadoop.hbase.regionserver.HStoreFile
-
markCompactedAway
- Overrides:
markCompactedAway
in classorg.apache.hadoop.hbase.regionserver.HStoreFile
-
isCompactedAway
- Overrides:
isCompactedAway
in classorg.apache.hadoop.hbase.regionserver.HStoreFile
-
getModificationTimestamp
- Specified by:
getModificationTimestamp
in interfaceorg.apache.hadoop.hbase.regionserver.StoreFile
- Overrides:
getModificationTimestamp
in classorg.apache.hadoop.hbase.regionserver.HStoreFile
-
getHDFSBlockDistribution
- Overrides:
getHDFSBlockDistribution
in classorg.apache.hadoop.hbase.regionserver.HStoreFile
-
initReader
- Overrides:
initReader
in classorg.apache.hadoop.hbase.regionserver.HStoreFile
- Throws:
IOException
-
getPreadScanner
public org.apache.hadoop.hbase.regionserver.StoreFileScanner getPreadScanner(boolean cacheBlocks, long readPt, long scannerOrder, boolean canOptimizeForNonNullColumn) - Overrides:
getPreadScanner
in classorg.apache.hadoop.hbase.regionserver.HStoreFile
-
getStreamScanner
public org.apache.hadoop.hbase.regionserver.StoreFileScanner getStreamScanner(boolean canUseDropBehind, boolean cacheBlocks, boolean isCompaction, long readPt, long scannerOrder, boolean canOptimizeForNonNullColumn) throws IOException - Overrides:
getStreamScanner
in classorg.apache.hadoop.hbase.regionserver.HStoreFile
- Throws:
IOException
-
getReader
- Overrides:
getReader
in classorg.apache.hadoop.hbase.regionserver.HStoreFile
-
getBulkLoadTimestamp
- Specified by:
getBulkLoadTimestamp
in interfaceorg.apache.hadoop.hbase.regionserver.StoreFile
- Overrides:
getBulkLoadTimestamp
in classorg.apache.hadoop.hbase.regionserver.HStoreFile
-