com.scalar.db.sql.statement.ShowNamespacesStatement Maven / Gradle / Ivy
package com.scalar.db.sql.statement;
import javax.annotation.concurrent.Immutable;
@Immutable
public class ShowNamespacesStatement implements CommandStatement {
private static final ShowNamespacesStatement INSTANCE = new ShowNamespacesStatement();
private ShowNamespacesStatement() {}
@Override
public String toSql() {
return "SHOW NAMESPACES";
}
@Override
public R accept(CommandStatementVisitor visitor, C context) {
return visitor.visit(this, context);
}
@Override
public R accept(StatementVisitor visitor, C context) {
return visitor.visit(this, context);
}
@Override
public String toString() {
return toSql();
}
public static ShowNamespacesStatement create() {
return INSTANCE;
}
}