Details
Description
This takes completed work mentioned in HBASE-9247 as a reasonably sized patch to build upon.
- Fixed defaults in HFile.Writer factory to default to Key-format-aware comparator (KeyComparator, later converted to KVComparator) instead of a Key-format oblivious byte[] comparator. (Essentially all instances require specifying KEY_COMPARATOR – why not just make it the default).
- Found that TestSeekTo, TestReseekTo and a handful of others depend on a different comparator because –
HBASE-7845"breaks" assumptions in these tests.
- Found that TestSeekTo, TestReseekTo and a handful of others depend on a different comparator because –
- Moved getComparator into TableName. (removed an instanceof bad smell)