/** * <code>optional .exec.shared.NamePart name_part = 2;</code> */ public Builder setNamePart( org.apache.drill.exec.proto.UserBitShared.NamePart.Builder builderForValue) { if (namePartBuilder_ == null) { namePart_ = builderForValue.build(); onChanged(); } else { namePartBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /**
/** * <code>optional .exec.shared.NamePart child = 3;</code> */ public Builder setChild( org.apache.drill.exec.proto.UserBitShared.NamePart.Builder builderForValue) { if (childBuilder_ == null) { child_ = builderForValue.build(); onChanged(); } else { childBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /**
private static NamePart getNamePart(PathSegment s) { if (s == null) { return null; } NamePart.Builder b = NamePart.newBuilder(); if (s.getChild() != null) { NamePart namePart = getNamePart(s.getChild()); if (namePart != null) { b.setChild(namePart); } } if (s.isArray()) { if (s.getArraySegment().hasIndex()) { throw new IllegalStateException("You cannot convert a indexed schema path to a NamePart. NameParts can only reference Vectors, not individual records or values."); } b.setType(Type.ARRAY); } else { b.setType(Type.NAME); b.setName(s.getNameSegment().getPath()); } return b.build(); }
private static NamePart getNamePart(PathSegment s) { if (s == null) { return null; } NamePart.Builder b = NamePart.newBuilder(); if (s.getChild() != null) { NamePart namePart = getNamePart(s.getChild()); if (namePart != null) { b.setChild(namePart); } } if (s.isArray()) { if (s.getArraySegment().hasIndex()) { throw new IllegalStateException("You cannot convert a indexed schema path to a NamePart. NameParts can only reference Vectors, not individual records or values."); } b.setType(Type.ARRAY); } else { b.setType(Type.NAME); b.setName(s.getNameSegment().getPath()); } return b.build(); }
/** * <code>optional .exec.shared.NamePart name_part = 2;</code> */ public Builder setNamePart( org.apache.drill.exec.proto.UserBitShared.NamePart.Builder builderForValue) { if (namePartBuilder_ == null) { namePart_ = builderForValue.build(); onChanged(); } else { namePartBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /**
/** * <code>optional .exec.shared.NamePart child = 3;</code> */ public Builder setChild( org.apache.drill.exec.proto.UserBitShared.NamePart.Builder builderForValue) { if (childBuilder_ == null) { child_ = builderForValue.build(); onChanged(); } else { childBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /**
public SerializedField.Builder getAsBuilder() { return SerializedField.newBuilder() .setMajorType(type) .setNamePart(NamePart.newBuilder().setName(name).build()); }
public SerializedField.Builder getAsBuilder() { return SerializedField.newBuilder() .setMajorType(type) .setNamePart(NamePart.newBuilder().setName(name).build()); }