HFileOutputFormat extends FileOutputFormat<BytesWritable, BytesWritable> { public static Path hfilePath(Path outputPath, int partitionIndex) { return new Path(outputPath, TerrapinUtil.formatPartitionName(partitionIndex)); }  static Compression.Algorithm getAlgorithm(String compressionString); static Path hfilePath(Path outputPath, int partitionIndex); RecordWriter<BytesWritable, BytesWritable> getRecordWriter(
          TaskAttemptContext context);  }
@Test public void testHFilePath() { Path outputDir = new Path("/abc/def"); int partitionIndex = 233; Path expectedDir = new Path("/abc/def/" + TerrapinUtil.formatPartitionName(233)); assertEquals(expectedDir, HFileOutputFormat.hfilePath(outputDir, partitionIndex)); }