public class TestInputStreamBlockDistribution extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.conf.Configuration |
conf |
private org.apache.hadoop.fs.FileSystem |
fs |
private org.apache.hadoop.fs.Path |
testPath |
| Constructor and Description |
|---|
TestInputStreamBlockDistribution() |
| Modifier and Type | Method and Description |
|---|---|
private org.apache.hadoop.hbase.regionserver.StoreFileInfo |
getMockedStoreFileInfo(org.apache.hadoop.hbase.HDFSBlocksDistribution distribution,
boolean isFileLink) |
void |
itDerivesLocalityFromFileLinkInputStream() |
void |
itDerivesLocalityFromHFileInputStream() |
void |
itFallsBackOnLastKnownValueOnException() |
void |
itFallsBackOnLastKnownValueWhenUnsupported() |
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'.
|
public static final HBaseClassTestRule CLASS_RULE
private org.apache.hadoop.conf.Configuration conf
private org.apache.hadoop.fs.FileSystem fs
private org.apache.hadoop.fs.Path testPath
public TestInputStreamBlockDistribution()
public void itDerivesLocalityFromHFileInputStream() throws Exception
Exceptionpublic void itDerivesLocalityFromFileLinkInputStream() throws Exception
Exceptionpublic void itFallsBackOnLastKnownValueWhenUnsupported()
public void itFallsBackOnLastKnownValueOnException() throws IOException
IOExceptionprivate void writeSomeData(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, long size, byte v) throws IOException
IOExceptionprivate org.apache.hadoop.hbase.regionserver.StoreFileInfo getMockedStoreFileInfo(org.apache.hadoop.hbase.HDFSBlocksDistribution distribution, boolean isFileLink)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.