Class TestCacheOnWriteInSchema
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestCacheOnWriteInSchema
@Tag("org.apache.hadoop.hbase.testclassification.RegionServerTests") @Tag("org.apache.hadoop.hbase.testclassification.SmallTests")
public class TestCacheOnWriteInSchema
extends Object
Tests
HFile cache-on-write functionality for data blocks, non-root index blocks, and
Bloom filter blocks, as specified by the column family.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.conf.Configurationprivate final TestCacheOnWriteInSchema.CacheOnWriteTypeprivate static final Stringprivate static byte[]private org.apache.hadoop.fs.FileSystemprivate static final org.slf4j.Loggerprivate static final intprivate static final intThe number of valid key types possible in a store fileprivate static final Randomprivate org.apache.hadoop.hbase.regionserver.HRegionprivate org.apache.hadoop.hbase.regionserver.HStoreprivate static final HBaseTestingUtilprivate final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static org.apache.hadoop.hbase.KeyValue.TypegenerateKeyType(Random rand) static Stream<org.junit.jupiter.params.provider.Arguments>private voidreadStoreFile(org.apache.hadoop.fs.Path path) voidsetUp(org.junit.jupiter.api.TestInfo testInfo) voidtearDown()voidprivate voidwriteStoreFile(org.apache.hadoop.hbase.regionserver.StoreFileWriter writer)
-
Field Details
-
LOG
-
TEST_UTIL
-
DIR
-
family
-
NUM_KV
- See Also:
-
rand
-
NUM_VALID_KEY_TYPES
The number of valid key types possible in a store file -
cowType
-
conf
-
testDescription
-
region
-
store
-
fs
-
-
Constructor Details
-
TestCacheOnWriteInSchema
-
-
Method Details
-
parameters
-
setUp
- Throws:
IOException
-
tearDown
- Throws:
IOException
-
testCacheOnWriteInSchema
- Throws:
IOException
-
readStoreFile
- Throws:
IOException
-
generateKeyType
-
writeStoreFile
private void writeStoreFile(org.apache.hadoop.hbase.regionserver.StoreFileWriter writer) throws IOException - Throws:
IOException
-