io.trino.plugin.hive.HiveMaterializedViewMetadata Maven / Gradle / Ivy
/*
* 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.
*/
package io.trino.plugin.hive;
import io.trino.spi.connector.ConnectorMaterializedViewDefinition;
import io.trino.spi.connector.ConnectorSession;
import io.trino.spi.connector.MaterializedViewFreshness;
import io.trino.spi.connector.SchemaTableName;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
public interface HiveMaterializedViewMetadata
{
void createMaterializedView(ConnectorSession session, SchemaTableName viewName, ConnectorMaterializedViewDefinition definition, boolean replace, boolean ignoreExisting);
void dropMaterializedView(ConnectorSession session, SchemaTableName viewName);
List listMaterializedViews(ConnectorSession session, Optional schemaName);
Map getMaterializedViews(ConnectorSession session, Optional schemaName);
Optional getMaterializedView(ConnectorSession session, SchemaTableName viewName);
MaterializedViewFreshness getMaterializedViewFreshness(ConnectorSession session, SchemaTableName name);
boolean delegateMaterializedViewRefreshToConnector(ConnectorSession session, SchemaTableName viewName);
CompletableFuture> refreshMaterializedView(ConnectorSession session, SchemaTableName viewName);
void renameMaterializedView(ConnectorSession session, SchemaTableName existingViewName, SchemaTableName newViewName);
void setMaterializedViewProperties(ConnectorSession session, SchemaTableName viewName, Map> properties);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy