public static CellComparator getCellComparator(byte[] tableName) {
    // FYI, TableName.toBytes does not create an array; just returns existing array pointer.
    return Bytes.equals(tableName, TableName.META_TABLE_NAME.toBytes())
      ? MetaCellComparator.META_COMPARATOR
      : CellComparatorImpl.COMPARATOR;
  }
Utility method that makes a guess at comparator to use based off passed tableName. Use in
extreme when no comparator specified.
@return CellComparator to use going off the {@code tableName} passed.
hbase-common/src/main/java/org/apache/hadoop/hbase/CellComparatorImpl.java