pstmt.setInt(1, dbid); pstmt.setString(2, tableName); if (table.getIsExternal()) { pstmt.setString(3, TableType.EXTERNAL.name()); } else {
pstmt.setInt(1, dbid); pstmt.setString(2, tableName); if (table.getIsExternal()) { pstmt.setString(3, TableType.EXTERNAL.name()); } else {
hash = (53 * hash) + hashBoolean(getIsExternal());
result = result && (getIsExternal() == other.getIsExternal());
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()); } }