/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2018 All Rights Reserved.
 */
package com.alibaba.druid.sql.dialect.spark.visitor;

import com.alibaba.druid.sql.dialect.hive.visitor.HiveASTVisitor;
import com.alibaba.druid.sql.dialect.spark.ast.SparkCreateTableStatement;
import com.alibaba.druid.sql.dialect.spark.ast.stmt.SparkCacheTableStatement;
import com.alibaba.druid.sql.dialect.spark.ast.stmt.SparkCreateScanStatement;

/**
 * @author peiheng.qph
 * @version $Id: AntsparkVisitor.java, v 0.1 2018年09月14日 15:07 peiheng.qph Exp $
 */
public interface SparkVisitor extends HiveASTVisitor {
    default boolean visit(SparkCreateTableStatement x) {
        return true;
    }

    default void endVisit(SparkCreateTableStatement x) {}

    default boolean visit(SparkCreateScanStatement x) {
        return true;
    }

    default void endVisit(SparkCreateScanStatement x) {
    }

    default boolean visit(SparkCacheTableStatement x) {
        return true;
    }

    default void endVisit(SparkCacheTableStatement x) {
    }
}
