public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.common.types.TypeProtos.MajorType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.common.types.TypeProtos.MajorType) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.common.types.TypeProtos.MajorType) { return mergeFrom((org.apache.drill.common.types.TypeProtos.MajorType)other); } else { super.mergeFrom(other); return this; } }
subBuilder.mergeFrom(majorType_); majorType_ = subBuilder.buildPartial();
subBuilder.mergeFrom(majorType_); majorType_ = subBuilder.buildPartial();
for (Ordering od : orderings) { final LogicalExpression expr = ExpressionTreeMaterializer.materialize(od.getExpr(), incoming, collector, context.getFunctionRegistry()); TypeProtos.MajorType.Builder builder = TypeProtos.MajorType.newBuilder().mergeFrom(expr.getMajorType()) .clearMode().setMode(TypeProtos.DataMode.REQUIRED); TypeProtos.MajorType newType = builder.build();
match(CParen); if (((CastCallContext)_localctx).repeat != null && ((CastCallContext)_localctx).repeat.isRep.compareTo(Boolean.TRUE)==0) ((CastCallContext)_localctx).e = FunctionCallFactory.createCast(TypeProtos.MajorType.newBuilder().mergeFrom(((CastCallContext)_localctx).dataType.type).setMode(DataMode.REPEATED).build(), pos(((CastCallContext)_localctx).Cast), ((CastCallContext)_localctx).expression.e); else ((CastCallContext)_localctx).e = FunctionCallFactory.createCast(((CastCallContext)_localctx).dataType.type, pos(((CastCallContext)_localctx).Cast), ((CastCallContext)_localctx).expression.e);
/** * <code>optional .common.MajorType major_type = 1;</code> * * <pre> * the type associated with this field. * </pre> */ public Builder mergeMajorType(org.apache.drill.common.types.TypeProtos.MajorType value) { if (majorTypeBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && majorType_ != org.apache.drill.common.types.TypeProtos.MajorType.getDefaultInstance()) { majorType_ = org.apache.drill.common.types.TypeProtos.MajorType.newBuilder(majorType_).mergeFrom(value).buildPartial(); } else { majorType_ = value; } onChanged(); } else { majorTypeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.common.types.TypeProtos.MajorType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.common.types.TypeProtos.MajorType) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public TypedNullConstant(MajorType type) { super(null); this.type = TypeProtos.MajorType.newBuilder().mergeFrom(type).setMode(DataMode.OPTIONAL).build(); }
public static Builder newBuilder(org.apache.drill.common.types.TypeProtos.MajorType prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.common.types.TypeProtos.MajorType) { return mergeFrom((org.apache.drill.common.types.TypeProtos.MajorType)other); } else { super.mergeFrom(other); return this; } }
match(CParen); if (((CastCallContext)_localctx).repeat != null && ((CastCallContext)_localctx).repeat.isRep.compareTo(Boolean.TRUE)==0) ((CastCallContext)_localctx).e = FunctionCallFactory.createCast(TypeProtos.MajorType.newBuilder().mergeFrom(((CastCallContext)_localctx).dataType.type).setMode(DataMode.REPEATED).build(), pos(((CastCallContext)_localctx).Cast), ((CastCallContext)_localctx).expression.e); else ((CastCallContext)_localctx).e = FunctionCallFactory.createCast(((CastCallContext)_localctx).dataType.type, pos(((CastCallContext)_localctx).Cast), ((CastCallContext)_localctx).expression.e);
/** * <code>optional .common.MajorType major_type = 1;</code> * * <pre> * the type associated with this field. * </pre> */ public Builder mergeMajorType(org.apache.drill.common.types.TypeProtos.MajorType value) { if (majorTypeBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && majorType_ != org.apache.drill.common.types.TypeProtos.MajorType.getDefaultInstance()) { majorType_ = org.apache.drill.common.types.TypeProtos.MajorType.newBuilder(majorType_).mergeFrom(value).buildPartial(); } else { majorType_ = value; } onChanged(); } else { majorTypeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /**
public Builder clone() { return create().mergeFrom(buildPartial()); }
public static Builder newBuilder(org.apache.drill.common.types.TypeProtos.MajorType prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public TypedNullConstant(MajorType type) { super(null); this.type = TypeProtos.MajorType.newBuilder().mergeFrom(type).setMode(DataMode.OPTIONAL).build(); }