int databaseId = getDatabaseId(databaseName); int tableId = getTableId(databaseId, databaseName, tableName); Schema relationSchema = new Schema(getTable(databaseName, tableName).getSchema());
int databaseId = getDatabaseId(databaseName); int tableId = getTableId(databaseId, databaseName, tableName); Schema relationSchema = SchemaFactory.newV1(getTable(databaseName, tableName).getSchema());
String unifiedName = CatalogUtil.getUnifiedSimpleColumnName(new Schema(tableDescProto.getSchema()), columnNames); conn = getConnection(); pstmt = conn.prepareStatement(sql); resultToIndexDescProtoBuilder(CatalogUtil.buildFQName(databaseName, tableName), builder, res); builder.setTableIdentifier(CatalogUtil.buildTableIdentifier(databaseName, tableName)); builder.setTargetRelationSchema(tableDescProto.getSchema()); proto = builder.build(); } catch (SQLException se) {
hash = (53 * hash) + getSchema().hashCode();
builder.setTargetRelationSchema(getTable(databaseName, tableName).getSchema()); } catch (UndefinedTableException e) { throw new TajoInternalError(
String unifiedName = CatalogUtil.getUnifiedSimpleColumnName(SchemaFactory.newV1(tableDescProto.getSchema()), columnNames); pstmt.setInt(1, databaseId); pstmt.setInt(2, tableId); resultToIndexDescProtoBuilder(IdentifierUtil.buildFQName(databaseName, tableName), builder, res); builder.setTableIdentifier(CatalogUtil.buildTableIdentifier(databaseName, tableName)); builder.setTargetRelationSchema(tableDescProto.getSchema()); proto = builder.build(); } catch (SQLException se) {
builder.setTargetRelationSchema(getTable(databaseName, tableName).getSchema()); } catch (UndefinedTableException e) { throw new TajoInternalError(
if (!getSchema().isInitialized()) { memoizedIsInitialized = 0; return false;
public Builder mergeFrom(org.apache.tajo.catalog.proto.CatalogProtos.TableDescProto other) { if (other == org.apache.tajo.catalog.proto.CatalogProtos.TableDescProto.getDefaultInstance()) return this; if (other.hasTableName()) { bitField0_ |= 0x00000001; tableName_ = other.tableName_; onChanged(); } if (other.hasPath()) { bitField0_ |= 0x00000002; path_ = other.path_; onChanged(); } if (other.hasMeta()) { mergeMeta(other.getMeta()); } if (other.hasSchema()) { mergeSchema(other.getSchema()); } if (other.hasStats()) { mergeStats(other.getStats()); } if (other.hasPartition()) { mergePartition(other.getPartition()); } if (other.hasIsExternal()) { setIsExternal(other.getIsExternal()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public TableDesc(TableDescProto proto) { this(proto.getTableName(), proto.hasSchema() ? SchemaFactory.newV1(proto.getSchema()) : null, new TableMeta(proto.getMeta()), proto.hasPath() ? URI.create(proto.getPath()) : null, proto.getIsExternal()); if(proto.hasStats()) { this.stats = new TableStats(proto.getStats()); } if (proto.hasPartition()) { this.partitionMethodDesc = new PartitionMethodDesc(proto.getPartition()); } }
public TableDesc(TableDescProto proto) { this(proto.getTableName(), proto.hasSchema() ? new Schema(proto.getSchema()) : null, new TableMeta(proto.getMeta()), proto.hasPath() ? URI.create(proto.getPath()) : null, proto.getIsExternal()); if(proto.hasStats()) { this.stats = new TableStats(proto.getStats()); } if (proto.hasPartition()) { this.partitionMethodDesc = new PartitionMethodDesc(proto.getPartition()); } }