Class TestInputStreamBlockDistribution
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestInputStreamBlockDistribution
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private org.apache.hadoop.conf.Configuration
private org.apache.hadoop.fs.FileSystem
private org.apache.hadoop.fs.Path
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.regionserver.StoreFileInfo
getMockedStoreFileInfo
(org.apache.hadoop.hbase.HDFSBlocksDistribution distribution, boolean isFileLink) void
void
void
void
void
setUp()
void
tearDown()
private void
writeSomeData
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, long size, byte v) Write up to 'size' bytes with value 'v' into a new file called 'path'.
-
Field Details
-
CLASS_RULE
-
conf
-
fs
-
testPath
-
-
Constructor Details
-
TestInputStreamBlockDistribution
public TestInputStreamBlockDistribution()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
itDerivesLocalityFromHFileInputStream
- Throws:
Exception
-
itDerivesLocalityFromFileLinkInputStream
- Throws:
Exception
-
itFallsBackOnLastKnownValueWhenUnsupported
-
itFallsBackOnLastKnownValueOnException
- Throws:
IOException
-
writeSomeData
private void writeSomeData(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, long size, byte v) throws IOException Write up to 'size' bytes with value 'v' into a new file called 'path'.- Throws:
IOException
-
getMockedStoreFileInfo
private org.apache.hadoop.hbase.regionserver.StoreFileInfo getMockedStoreFileInfo(org.apache.hadoop.hbase.HDFSBlocksDistribution distribution, boolean isFileLink)
-