byteBuf.readBytes(schemaBytes); SchemaProto.Builder builder = SchemaProto.newBuilder(); builder.mergeFrom(schemaBytes); SchemaProto proto = builder.build();
public Builder clear() { super.clear(); if (schemaBuilder_ == null) { schema_ = org.apache.tajo.catalog.proto.CatalogProtos.SchemaProto.getDefaultInstance(); } else { schemaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); rows_ = 0; bitField0_ = (bitField0_ & ~0x00000002); decompressedLength_ = 0; bitField0_ = (bitField0_ & ~0x00000004); decompressCodec_ = org.apache.tajo.TajoProtos.CodecType.SNAPPY; bitField0_ = (bitField0_ & ~0x00000008); serializedTuples_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); return this; }
.getExpressionSchema().getFieldsList(), request.getAlgebra());
for (int i = 0; i < table.getSchema().getFieldsCount(); i++) { ColumnProto col = table.getSchema().getFields(i); org.apache.tajo.type.Type type = TypeProtobufEncoder.decode(col.getType()); pstmt.setString(2, table.getPartition().getPartitionType().name()); pstmt.setString(3, table.getPartition().getExpression()); pstmt.setBytes(4, table.getPartition().getExpressionSchema().toByteArray()); pstmt.executeUpdate();
for (int i = 0; i < table.getSchema().getFieldsCount(); i++) { ColumnProto col = table.getSchema().getFields(i); TajoDataTypes.DataType dataType = col.getDataType(); pstmt.setString(2, table.getPartition().getPartitionType().name()); pstmt.setString(3, table.getPartition().getExpression()); pstmt.setBytes(4, table.getPartition().getExpressionSchema().toByteArray()); pstmt.executeUpdate();
org.apache.tajo.catalog.proto.CatalogProtos.SchemaProto.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = targetRelationSchema_.toBuilder();
org.apache.tajo.catalog.proto.CatalogProtos.SchemaProto.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = schema_.toBuilder();
org.apache.tajo.catalog.proto.CatalogProtos.SchemaProto.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = schema_.toBuilder();
org.apache.tajo.catalog.proto.CatalogProtos.SchemaProto.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = schema_.toBuilder();
org.apache.tajo.catalog.proto.CatalogProtos.SchemaProto.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = schema_.toBuilder();
org.apache.tajo.catalog.proto.CatalogProtos.SchemaProto.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = schema_.toBuilder();
.setTableName(nodeUniqName) .setMeta(CatalogProtos.TableProto.newBuilder().setDataFormat(BuiltinStorages.TEXT).build()) .setSchema(CatalogProtos.SchemaProto.newBuilder().addAllFields(columns).build()) .setStats(stats.getProto()) .build();
org.apache.tajo.catalog.proto.CatalogProtos.SchemaProto.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = expressionSchema_.toBuilder();
parititonColumns = tableDesc.getPartition().getExpressionSchema().getFieldsList();
org.apache.tajo.catalog.proto.CatalogProtos.SchemaProto.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = schema_.toBuilder();
org.apache.tajo.catalog.proto.CatalogProtos.SchemaProto.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = schema_.toBuilder();
if (hasTargetRelationSchema()) { result = result && getTargetRelationSchema() .equals(other.getTargetRelationSchema());
if (hasSchema()) { result = result && getSchema() .equals(other.getSchema());
if (hasSchema()) { result = result && getSchema() .equals(other.getSchema());
hash = (53 * hash) + getTargetRelationSchema().hashCode();