Checks preconditions for this table to function as expected. Currently only checks that all entries in colsByName_ use lower case keys.
()
| 683 | * that all entries in colsByName_ use lower case keys. |
| 684 | */ |
| 685 | public void validate() throws TableLoadingException { |
| 686 | for (String colName: colsByName_.keySet()) { |
| 687 | if (!colName.equals(colName.toLowerCase())) { |
| 688 | throw new TableLoadingException( |
| 689 | "Expected lower case column name but found: " + colName); |
| 690 | } |
| 691 | } |
| 692 | } |
| 693 | |
| 694 | /** |
| 695 | * Must be called with 'tableLock_' held to protect against concurrent modifications |
no test coverage detected