All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scalar.db.sql.statement.builder.DescribeStatementBuilder Maven / Gradle / Ivy

There is a newer version: 3.14.0
Show newest version
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));
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy