com.scalar.db.sql.statement.builder.DescribeStatementBuilder Maven / Gradle / Ivy
package com.scalar.db.sql.statement.builder;
import com.scalar.db.sql.TableRef;
import com.scalar.db.sql.statement.DescribeStatement;
import javax.annotation.Nullable;
public class DescribeStatementBuilder {
private DescribeStatementBuilder() {}
public static class Start extends Buildable {
Start(@Nullable String namespaceName, String tableName) {
super(namespaceName, tableName);
}
}
public static class Buildable {
private final @Nullable String namespaceName;
private final String tableName;
private Buildable(@Nullable String namespaceName, String tableName) {
this.namespaceName = namespaceName;
this.tableName = tableName;
}
/**
* Builds a DescribeStatement object.
*
* @return a DescribeStatement object
*/
public DescribeStatement build() {
return DescribeStatement.create(TableRef.of(namespaceName, tableName));
}
}
}