public QualifiedTablePrefix(String catalogName, String schemaName) { this.catalogName = checkCatalogName(catalogName); this.schemaName = Optional.of(checkSchemaName(schemaName)); this.tableName = Optional.empty(); }
@JsonCreator public SystemTableHandle( @JsonProperty("connectorId") ConnectorId connectorId, @JsonProperty("schemaName") String schemaName, @JsonProperty("tableName") String tableName) { this.connectorId = requireNonNull(connectorId, "connectorId is null"); this.schemaName = checkSchemaName(schemaName); this.tableName = checkTableName(tableName); }
public QualifiedTablePrefix(String catalogName, String schemaName, String tableName) { this.catalogName = checkCatalogName(catalogName); this.schemaName = Optional.of(checkSchemaName(schemaName)); this.tableName = Optional.of(checkTableName(tableName)); }
public QualifiedTablePrefix(String catalogName, String schemaName) { this.catalogName = checkCatalogName(catalogName); this.schemaName = Optional.of(checkSchemaName(schemaName)); this.tableName = Optional.empty(); }
@JsonCreator public SystemTableHandle( @JsonProperty("connectorId") String connectorId, @JsonProperty("schemaName") String schemaName, @JsonProperty("tableName") String tableName) { this.connectorId = requireNonNull(connectorId, "connectorId is null"); this.schemaName = checkSchemaName(schemaName); this.tableName = checkTableName(tableName); }
public static void checkTableName(String catalogName, Optional<String> schemaName, Optional<String> tableName) { checkCatalogName(catalogName); checkSchemaName(schemaName); checkTableName(tableName); checkArgument(schemaName.isPresent() || !tableName.isPresent(), "tableName specified but schemaName is missing"); }
public QualifiedTablePrefix(String catalogName, String schemaName, String tableName) { this.catalogName = checkCatalogName(catalogName); this.schemaName = Optional.of(checkSchemaName(schemaName)); this.tableName = Optional.of(checkTableName(tableName)); }