public Row getByKey(String tableName, String key) throws DataBaseTableException {
        Table table = tableHashMap.get(tableName);
        if (table == null) {
            throw new DataBaseTableException("no such table");
        }

        return table.get(key);
    }