@JsonCreator public QualifiedTablePrefix( @JsonProperty("catalogName") String catalogName, @JsonProperty("schemaName") Optional<String> schemaName, @JsonProperty("tableName") Optional<String> tableName) { checkTableName(catalogName, schemaName, tableName); this.catalogName = catalogName; this.schemaName = schemaName; this.tableName = tableName; }
@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, Optional<String> schemaName, Optional<String> tableName) { checkTableName(catalogName, schemaName, tableName); this.catalogName = catalogName; this.schemaName = schemaName; this.tableName = tableName; }
@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)); }