# Path: data_catalog/metadata_entry.py
# CERBERUS_SCHEMA = {
#     CATEGORY_FIELD: {'required': True, 'type': 'string'},
#     CREATION_TIME_FIELD: {'required': False, 'type': 'string'},
#     'dataSample': {'required': True, 'type': 'string'},
#     'format': {'required': True, 'type': 'string'},
#     IS_PUBLIC_FIELD: {'required': True, 'type': 'boolean'},
#     ORG_UUID_FIELD: {'required': True, 'type': 'string'},
#     'recordCount': {'required': True, 'type': 'integer'},
#     'size': {'required': True, 'type': 'integer'},
#     'sourceUri': {'required': True, 'type': 'string'},
#     TARGET_URI_FIELD: {'required': True, 'type': 'string'},
#     TITLE_FIELD: {'required': True, 'type': 'string'}}
# 
# ORG_UUID_FIELD = 'orgUUID'
# 
# CREATION_TIME_FIELD = 'creationTime'
# 
# IS_PUBLIC_FIELD = 'isPublic'


import json
import logging
from data_catalog.metadata_entry import (CERBERUS_SCHEMA, ORG_UUID_FIELD, CREATION_TIME_FIELD,
                                         IS_PUBLIC_FIELD)
#
# Copyright (c) 2015 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#




class ElasticSearchQueryTranslator(object):
    def __init__(self):
        self._log = logging.getLogger(type(self).__name__)

# Path: data_catalog/metadata_entry.py
# CERBERUS_SCHEMA = {
#     CATEGORY_FIELD: {'required': True, 'type': 'string'},
#     CREATION_TIME_FIELD: {'required': False, 'type': 'string'},
#     'dataSample': {'required': True, 'type': 'string'},
#     'format': {'required': True, 'type': 'string'},
#     IS_PUBLIC_FIELD: {'required': True, 'type': 'boolean'},
#     ORG_UUID_FIELD: {'required': True, 'type': 'string'},
#     'recordCount': {'required': True, 'type': 'integer'},
#     'size': {'required': True, 'type': 'integer'},
#     'sourceUri': {'required': True, 'type': 'string'},
#     TARGET_URI_FIELD: {'required': True, 'type': 'string'},
#     TITLE_FIELD: {'required': True, 'type': 'string'}}
# 
# ORG_UUID_FIELD = 'orgUUID'
# 
# CREATION_TIME_FIELD = 'creationTime'
# 
# IS_PUBLIC_FIELD = 'isPublic'


# Path: data_catalog/query_translation.py
import json
import logging
from data_catalog.metadata_entry import (CERBERUS_SCHEMA, ORG_UUID_FIELD, CREATION_TIME_FIELD,
                                         IS_PUBLIC_FIELD)

#
# Copyright (c) 2015 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#




class ElasticSearchQueryTranslator(object):
    def __init__(self):
        self._log = logging.getLogger(type(self).__name__)

        self._filter_translator = ElasticSearchFilterExtractor()