Search in sources :

Example 1 with StoreContext

use of org.apache.hadoop.hbase.regionserver.StoreContext in project hbase by apache.

the class TestStoreFileListFile method setUp.

@Before
public void setUp() throws IOException {
    testDir = UTIL.getDataTestDir(name.getMethodName());
    HRegionFileSystem hfs = mock(HRegionFileSystem.class);
    when(hfs.getFileSystem()).thenReturn(FileSystem.get(UTIL.getConfiguration()));
    StoreContext ctx = StoreContext.getBuilder().withFamilyStoreDirectoryPath(testDir).withRegionFileSystem(hfs).build();
    storeFileListFile = new StoreFileListFile(ctx);
}
Also used : HRegionFileSystem(org.apache.hadoop.hbase.regionserver.HRegionFileSystem) StoreContext(org.apache.hadoop.hbase.regionserver.StoreContext) Before(org.junit.Before)

Aggregations

HRegionFileSystem (org.apache.hadoop.hbase.regionserver.HRegionFileSystem)1 StoreContext (org.apache.hadoop.hbase.regionserver.StoreContext)1 Before (org.junit.Before)1