com.hazelcast.jet.sql.impl.parse.ParserResource Maven / Gradle / Ivy
/*
* Copyright 2021 Hazelcast Inc.
*
* Licensed under the Hazelcast Community License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://hazelcast.com/hazelcast-community-license
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.hazelcast.jet.sql.impl.parse;
import com.hazelcast.org.apache.calcite.runtime.Resources;
import com.hazelcast.org.apache.calcite.runtime.Resources.BaseMessage;
import com.hazelcast.org.apache.calcite.runtime.Resources.ExInst;
import com.hazelcast.org.apache.calcite.sql.validate.SqlValidatorException;
public interface ParserResource {
ParserResource RESOURCE = Resources.create(ParserResource.class);
@BaseMessage("{0} is not supported for {1}")
ExInst notSupported(String option, String statement);
@BaseMessage("OR REPLACE in conjunction with IF NOT EXISTS not supported")
ExInst orReplaceWithIfNotExistsNotSupported();
@BaseMessage("The mapping must be created in the \"public\" schema")
ExInst mappingIncorrectSchema();
@BaseMessage("The view must be created in the \"public\" schema")
ExInst viewIncorrectSchema();
@BaseMessage("Column ''{0}'' specified more than once")
ExInst duplicateColumn(String columnName);
@BaseMessage("Index attribute ''{0}'' specified more than once")
ExInst duplicateIndexAttribute(String columnName);
@BaseMessage("Option ''{0}'' specified more than once")
ExInst duplicateOption(String optionName);
@BaseMessage("Mapping does not exist: {0}")
ExInst droppedMappingDoesNotExist(String mappingName);
@BaseMessage("Index does not exist: {0}")
ExInst droppedIndexDoesNotExist(String indexName);
@BaseMessage("Writing to top-level fields of type OBJECT not supported")
ExInst insertToTopLevelObject();
@BaseMessage("Unknown option for {0} index: {1}")
ExInst unsupportedIndexType(String indexType, String option);
@BaseMessage("Unsupported value for {0}: {1}")
ExInst processingGuaranteeBadValue(String key, String value);
@BaseMessage("Invalid number for {0}: {1}")
ExInst jobOptionIncorrectNumber(String key, String value);
@BaseMessage("Unknown job option: {0}")
ExInst unknownJobOption(String key);
@BaseMessage("The OR REPLACE option is required for CREATE SNAPSHOT")
ExInst createSnapshotWithoutReplace();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy