/** * <code>repeated .exec.shared.SerializedField child = 3;</code> * * <pre> * only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST * </pre> */ public Builder addChild( int index, org.apache.drill.exec.proto.UserBitShared.SerializedField.Builder builderForValue) { if (childBuilder_ == null) { ensureChildIsMutable(); child_.add(index, builderForValue.build()); onChanged(); } else { childBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
public Builder mergeFrom(org.apache.drill.exec.proto.UserBitShared.SerializedField other) { if (other == org.apache.drill.exec.proto.UserBitShared.SerializedField.getDefaultInstance()) return this; if (other.hasMajorType()) { mergeMajorType(other.getMajorType()); mergeNamePart(other.getNamePart()); bitField0_ = (bitField0_ & ~0x00000004); } else { ensureChildIsMutable(); child_.addAll(other.child_); onChanged(); childBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getChildFieldBuilder() : null; } else { childBuilder_.addAllMessages(other.child_); setValueCount(other.getValueCount()); setVarByteLength(other.getVarByteLength()); setBufferLength(other.getBufferLength()); this.mergeUnknownFields(other.getUnknownFields()); return this;
public Builder mergeFrom(org.apache.drill.exec.proto.UserBitShared.SerializedField other) { if (other == org.apache.drill.exec.proto.UserBitShared.SerializedField.getDefaultInstance()) return this; if (other.hasMajorType()) { mergeMajorType(other.getMajorType()); mergeNamePart(other.getNamePart()); bitField0_ = (bitField0_ & ~0x00000004); } else { ensureChildIsMutable(); child_.addAll(other.child_); onChanged(); childBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getChildFieldBuilder() : null; } else { childBuilder_.addAllMessages(other.child_); setValueCount(other.getValueCount()); setVarByteLength(other.getVarByteLength()); setBufferLength(other.getBufferLength()); this.mergeUnknownFields(other.getUnknownFields()); return this;
return; case 1: builder.setMajorType(input.mergeObject(org.apache.drill.common.types.TypeProtos.MajorType.newBuilder(), org.apache.drill.common.types.SchemaTypeProtos.MajorType.MERGE)); builder.setNamePart(input.mergeObject(org.apache.drill.exec.proto.UserBitShared.NamePart.newBuilder(), org.apache.drill.exec.proto.SchemaUserBitShared.NamePart.MERGE)); builder.addChild(input.mergeObject(org.apache.drill.exec.proto.UserBitShared.SerializedField.newBuilder(), org.apache.drill.exec.proto.SchemaUserBitShared.SerializedField.MERGE)); builder.setValueCount(input.readInt32()); break; case 5: builder.setVarByteLength(input.readInt32()); break; case 7: builder.setBufferLength(input.readInt32()); break; default:
/** * <code>repeated .exec.shared.SerializedField child = 3;</code> * * <pre> * only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST * </pre> */ public Builder addChild( int index, org.apache.drill.exec.proto.UserBitShared.SerializedField.Builder builderForValue) { if (childBuilder_ == null) { ensureChildIsMutable(); child_.add(index, builderForValue.build()); onChanged(); } else { childBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .exec.shared.SerializedField child = 3;</code> * * <pre> * only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST * </pre> */ public Builder addChild( org.apache.drill.exec.proto.UserBitShared.SerializedField.Builder builderForValue) { if (childBuilder_ == null) { ensureChildIsMutable(); child_.add(builderForValue.build()); onChanged(); } else { childBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .exec.shared.SerializedField child = 3;</code> * * <pre> * only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST * </pre> */ public Builder setChild( int index, org.apache.drill.exec.proto.UserBitShared.SerializedField.Builder builderForValue) { if (childBuilder_ == null) { ensureChildIsMutable(); child_.set(index, builderForValue.build()); onChanged(); } else { childBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
private UserBitShared.SerializedField createDummyField(UserBitShared.SerializedField field) { UserBitShared.SerializedField.Builder newDummyFieldBuilder = UserBitShared.SerializedField.newBuilder() .setVarByteLength(0) .setBufferLength(0) .setValueCount(0) .setNamePart(field.getNamePart()) .setMajorType(field.getMajorType()); int index = 0; for (UserBitShared.SerializedField childField : field.getChildList()) { // make sure we make a copy of all children, so we do not corrupt the // original fieldList. This will recursively call itself. newDummyFieldBuilder.addChild(index, createDummyField(childField)); index++; } UserBitShared.SerializedField newDummyField = newDummyFieldBuilder.build(); return newDummyField; }
/** * <code>repeated .exec.shared.SerializedField field = 2;</code> */ public Builder addField( int index, org.apache.drill.exec.proto.UserBitShared.SerializedField.Builder builderForValue) { if (fieldBuilder_ == null) { ensureFieldIsMutable(); field_.add(index, builderForValue.build()); onChanged(); } else { fieldBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .exec.shared.SerializedField field = 2;</code> */ public Builder addField( org.apache.drill.exec.proto.UserBitShared.SerializedField.Builder builderForValue) { if (fieldBuilder_ == null) { ensureFieldIsMutable(); field_.add(builderForValue.build()); onChanged(); } else { fieldBuilder_.addMessage(builderForValue.build()); } return this; } /**
public Builder clone() { return create().mergeFrom(buildPartial()); }
private static Builder create() { return new Builder(); }
/** * <code>repeated .exec.shared.SerializedField field = 2;</code> */ public Builder setField( int index, org.apache.drill.exec.proto.UserBitShared.SerializedField.Builder builderForValue) { if (fieldBuilder_ == null) { ensureFieldIsMutable(); field_.set(index, builderForValue.build()); onChanged(); } else { fieldBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
@Override public SerializedField getMetadata() { return getMetadataBuilder().build(); }
@Override public SerializedField getMetadata() { SerializedField.Builder builder = getField() .getAsBuilder() .setBufferLength(getBufferSize()) // while we don't need to actually read this on load, we need it to // make sure we don't skip deserialization of this vector .setValueCount(accessor.getValueCount()); builder.addChild(offsets.getMetadata()); for (final ValueVector child : getChildren()) { builder.addChild(child.getMetadata()); } return builder.build(); }
public org.apache.drill.exec.proto.UserBitShared.SerializedField build() { org.apache.drill.exec.proto.UserBitShared.SerializedField result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@Override protected SerializedField.Builder getMetadataBuilder() { return super.getMetadataBuilder() .setVarByteLength(values.getCurrentSizeInBytes()); }
protected SerializedField.Builder getMetadataBuilder() { return getField().getAsBuilder() .setValueCount(getAccessor().getValueCount()) .setBufferLength(getBufferSize()); }