public static void createHFileWithDataBlockEncoding(Configuration configuration, FileSystem fs,
    Path path, DataBlockEncoding encoding, byte[] family, byte[] qualifier, byte[] startKey,
    byte[] endKey, int numRows) throws IOException {
    createHFile(configuration, fs, path, encoding, family, qualifier, startKey, endKey, numRows,
      false);
  }
Create an HFile with the given number of rows between a given start key and end key @
family:qualifier. The value will be the key value. This file will use certain data block
encoding algorithm.
hbase-server/src/test/java/org/apache/hadoop/hbase/util/HFileTestUtil.java