@Test
  public void testCacheOnWriteInSchema() throws IOException {
    // Write some random data into the store
    StoreFileWriter writer = store.getStoreEngine()
      .createWriter(CreateStoreFileWriterParams.create().maxKeyCount(Integer.MAX_VALUE)
        .compression(HFile.DEFAULT_COMPRESSION_ALGORITHM).isCompaction(false)
        .includeMVCCReadpoint(true).includesTag(false).shouldDropBehind(false));
    writeStoreFile(writer);
    writer.close();
    // Verify the block types of interest were cached on write
    readStoreFile(writer.getPath());
  }
The number of valid key types possible in a store file
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestCacheOnWriteInSchema.java