Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HBASE-25357] allow specifying binary row key range to pre-split regions
For example, the row key may start with a long integer, we can specify ranges to pre-split regions: ``` import java.nio.charset.StandardCharsets; import org.apache.hadoop.hbase.util.Bytes; df.write() .format("org.apache.hadoop.hbase.spark") .option(HBaseTableCatalog.tableCatalog(), catalog) .option(HBaseTableCatalog.newTable(), 5) .option(HBaseTableCatalog.regionStart(), new String(Bytes.toBytes(0L), StandardCharsets.ISO_8859_1)) .option(HBaseTableCatalog.regionEnd(), new String(Bytes.toBytes(2000000L), StandardCharsets.ISO_8859_1)) .mode(SaveMode.Append) .save(); ```
- Loading branch information