org.apache.comet.serde.PartitioningOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: partitioning.proto
package org.apache.comet.serde;
public final class PartitioningOuterClass {
private PartitioningOuterClass() {}
public static void registerAllExtensions(
org.apache.comet.shaded.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
org.apache.comet.shaded.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(org.apache.comet.shaded.protobuf.ExtensionRegistryLite) registry);
}
public interface PartitioningOrBuilder extends
// @@protoc_insertion_point(interface_extends:spark.spark_partitioning.Partitioning)
org.apache.comet.shaded.protobuf.MessageOrBuilder {
/**
* .spark.spark_partitioning.HashRepartition hash_partition = 2;
* @return Whether the hashPartition field is set.
*/
boolean hasHashPartition();
/**
* .spark.spark_partitioning.HashRepartition hash_partition = 2;
* @return The hashPartition.
*/
org.apache.comet.serde.PartitioningOuterClass.HashRepartition getHashPartition();
/**
* .spark.spark_partitioning.HashRepartition hash_partition = 2;
*/
org.apache.comet.serde.PartitioningOuterClass.HashRepartitionOrBuilder getHashPartitionOrBuilder();
/**
* .spark.spark_partitioning.SinglePartition single_partition = 3;
* @return Whether the singlePartition field is set.
*/
boolean hasSinglePartition();
/**
* .spark.spark_partitioning.SinglePartition single_partition = 3;
* @return The singlePartition.
*/
org.apache.comet.serde.PartitioningOuterClass.SinglePartition getSinglePartition();
/**
* .spark.spark_partitioning.SinglePartition single_partition = 3;
*/
org.apache.comet.serde.PartitioningOuterClass.SinglePartitionOrBuilder getSinglePartitionOrBuilder();
public org.apache.comet.serde.PartitioningOuterClass.Partitioning.PartitioningStructCase getPartitioningStructCase();
}
/**
*
* The basic message representing a Spark partitioning.
*
*
* Protobuf type {@code spark.spark_partitioning.Partitioning}
*/
public static final class Partitioning extends
org.apache.comet.shaded.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:spark.spark_partitioning.Partitioning)
PartitioningOrBuilder {
private static final long serialVersionUID = 0L;
// Use Partitioning.newBuilder() to construct.
private Partitioning(org.apache.comet.shaded.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Partitioning() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Partitioning();
}
@java.lang.Override
public final org.apache.comet.shaded.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final org.apache.comet.shaded.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.comet.serde.PartitioningOuterClass.internal_static_spark_spark_partitioning_Partitioning_descriptor;
}
@java.lang.Override
protected org.apache.comet.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.comet.serde.PartitioningOuterClass.internal_static_spark_spark_partitioning_Partitioning_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.comet.serde.PartitioningOuterClass.Partitioning.class, org.apache.comet.serde.PartitioningOuterClass.Partitioning.Builder.class);
}
private int partitioningStructCase_ = 0;
private java.lang.Object partitioningStruct_;
public enum PartitioningStructCase
implements org.apache.comet.shaded.protobuf.Internal.EnumLite,
org.apache.comet.shaded.protobuf.AbstractMessage.InternalOneOfEnum {
HASH_PARTITION(2),
SINGLE_PARTITION(3),
PARTITIONINGSTRUCT_NOT_SET(0);
private final int value;
private PartitioningStructCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static PartitioningStructCase valueOf(int value) {
return forNumber(value);
}
public static PartitioningStructCase forNumber(int value) {
switch (value) {
case 2: return HASH_PARTITION;
case 3: return SINGLE_PARTITION;
case 0: return PARTITIONINGSTRUCT_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public PartitioningStructCase
getPartitioningStructCase() {
return PartitioningStructCase.forNumber(
partitioningStructCase_);
}
public static final int HASH_PARTITION_FIELD_NUMBER = 2;
/**
* .spark.spark_partitioning.HashRepartition hash_partition = 2;
* @return Whether the hashPartition field is set.
*/
@java.lang.Override
public boolean hasHashPartition() {
return partitioningStructCase_ == 2;
}
/**
* .spark.spark_partitioning.HashRepartition hash_partition = 2;
* @return The hashPartition.
*/
@java.lang.Override
public org.apache.comet.serde.PartitioningOuterClass.HashRepartition getHashPartition() {
if (partitioningStructCase_ == 2) {
return (org.apache.comet.serde.PartitioningOuterClass.HashRepartition) partitioningStruct_;
}
return org.apache.comet.serde.PartitioningOuterClass.HashRepartition.getDefaultInstance();
}
/**
* .spark.spark_partitioning.HashRepartition hash_partition = 2;
*/
@java.lang.Override
public org.apache.comet.serde.PartitioningOuterClass.HashRepartitionOrBuilder getHashPartitionOrBuilder() {
if (partitioningStructCase_ == 2) {
return (org.apache.comet.serde.PartitioningOuterClass.HashRepartition) partitioningStruct_;
}
return org.apache.comet.serde.PartitioningOuterClass.HashRepartition.getDefaultInstance();
}
public static final int SINGLE_PARTITION_FIELD_NUMBER = 3;
/**
* .spark.spark_partitioning.SinglePartition single_partition = 3;
* @return Whether the singlePartition field is set.
*/
@java.lang.Override
public boolean hasSinglePartition() {
return partitioningStructCase_ == 3;
}
/**
* .spark.spark_partitioning.SinglePartition single_partition = 3;
* @return The singlePartition.
*/
@java.lang.Override
public org.apache.comet.serde.PartitioningOuterClass.SinglePartition getSinglePartition() {
if (partitioningStructCase_ == 3) {
return (org.apache.comet.serde.PartitioningOuterClass.SinglePartition) partitioningStruct_;
}
return org.apache.comet.serde.PartitioningOuterClass.SinglePartition.getDefaultInstance();
}
/**
* .spark.spark_partitioning.SinglePartition single_partition = 3;
*/
@java.lang.Override
public org.apache.comet.serde.PartitioningOuterClass.SinglePartitionOrBuilder getSinglePartitionOrBuilder() {
if (partitioningStructCase_ == 3) {
return (org.apache.comet.serde.PartitioningOuterClass.SinglePartition) partitioningStruct_;
}
return org.apache.comet.serde.PartitioningOuterClass.SinglePartition.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.comet.shaded.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (partitioningStructCase_ == 2) {
output.writeMessage(2, (org.apache.comet.serde.PartitioningOuterClass.HashRepartition) partitioningStruct_);
}
if (partitioningStructCase_ == 3) {
output.writeMessage(3, (org.apache.comet.serde.PartitioningOuterClass.SinglePartition) partitioningStruct_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (partitioningStructCase_ == 2) {
size += org.apache.comet.shaded.protobuf.CodedOutputStream
.computeMessageSize(2, (org.apache.comet.serde.PartitioningOuterClass.HashRepartition) partitioningStruct_);
}
if (partitioningStructCase_ == 3) {
size += org.apache.comet.shaded.protobuf.CodedOutputStream
.computeMessageSize(3, (org.apache.comet.serde.PartitioningOuterClass.SinglePartition) partitioningStruct_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.comet.serde.PartitioningOuterClass.Partitioning)) {
return super.equals(obj);
}
org.apache.comet.serde.PartitioningOuterClass.Partitioning other = (org.apache.comet.serde.PartitioningOuterClass.Partitioning) obj;
if (!getPartitioningStructCase().equals(other.getPartitioningStructCase())) return false;
switch (partitioningStructCase_) {
case 2:
if (!getHashPartition()
.equals(other.getHashPartition())) return false;
break;
case 3:
if (!getSinglePartition()
.equals(other.getSinglePartition())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (partitioningStructCase_) {
case 2:
hash = (37 * hash) + HASH_PARTITION_FIELD_NUMBER;
hash = (53 * hash) + getHashPartition().hashCode();
break;
case 3:
hash = (37 * hash) + SINGLE_PARTITION_FIELD_NUMBER;
hash = (53 * hash) + getSinglePartition().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.comet.serde.PartitioningOuterClass.Partitioning parseFrom(
java.nio.ByteBuffer data)
throws org.apache.comet.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.comet.serde.PartitioningOuterClass.Partitioning parseFrom(
java.nio.ByteBuffer data,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.comet.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.comet.serde.PartitioningOuterClass.Partitioning parseFrom(
org.apache.comet.shaded.protobuf.ByteString data)
throws org.apache.comet.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.comet.serde.PartitioningOuterClass.Partitioning parseFrom(
org.apache.comet.shaded.protobuf.ByteString data,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.comet.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.comet.serde.PartitioningOuterClass.Partitioning parseFrom(byte[] data)
throws org.apache.comet.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.comet.serde.PartitioningOuterClass.Partitioning parseFrom(
byte[] data,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.comet.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.comet.serde.PartitioningOuterClass.Partitioning parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.comet.shaded.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.comet.serde.PartitioningOuterClass.Partitioning parseFrom(
java.io.InputStream input,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.comet.shaded.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.comet.serde.PartitioningOuterClass.Partitioning parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.comet.shaded.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.comet.serde.PartitioningOuterClass.Partitioning parseDelimitedFrom(
java.io.InputStream input,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.comet.shaded.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.comet.serde.PartitioningOuterClass.Partitioning parseFrom(
org.apache.comet.shaded.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.comet.shaded.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.comet.serde.PartitioningOuterClass.Partitioning parseFrom(
org.apache.comet.shaded.protobuf.CodedInputStream input,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.comet.shaded.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.comet.serde.PartitioningOuterClass.Partitioning prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.comet.shaded.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* The basic message representing a Spark partitioning.
*
*
* Protobuf type {@code spark.spark_partitioning.Partitioning}
*/
public static final class Builder extends
org.apache.comet.shaded.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:spark.spark_partitioning.Partitioning)
org.apache.comet.serde.PartitioningOuterClass.PartitioningOrBuilder {
public static final org.apache.comet.shaded.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.comet.serde.PartitioningOuterClass.internal_static_spark_spark_partitioning_Partitioning_descriptor;
}
@java.lang.Override
protected org.apache.comet.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.comet.serde.PartitioningOuterClass.internal_static_spark_spark_partitioning_Partitioning_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.comet.serde.PartitioningOuterClass.Partitioning.class, org.apache.comet.serde.PartitioningOuterClass.Partitioning.Builder.class);
}
// Construct using org.apache.comet.serde.PartitioningOuterClass.Partitioning.newBuilder()
private Builder() {
}
private Builder(
org.apache.comet.shaded.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (hashPartitionBuilder_ != null) {
hashPartitionBuilder_.clear();
}
if (singlePartitionBuilder_ != null) {
singlePartitionBuilder_.clear();
}
partitioningStructCase_ = 0;
partitioningStruct_ = null;
return this;
}
@java.lang.Override
public org.apache.comet.shaded.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.comet.serde.PartitioningOuterClass.internal_static_spark_spark_partitioning_Partitioning_descriptor;
}
@java.lang.Override
public org.apache.comet.serde.PartitioningOuterClass.Partitioning getDefaultInstanceForType() {
return org.apache.comet.serde.PartitioningOuterClass.Partitioning.getDefaultInstance();
}
@java.lang.Override
public org.apache.comet.serde.PartitioningOuterClass.Partitioning build() {
org.apache.comet.serde.PartitioningOuterClass.Partitioning result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.comet.serde.PartitioningOuterClass.Partitioning buildPartial() {
org.apache.comet.serde.PartitioningOuterClass.Partitioning result = new org.apache.comet.serde.PartitioningOuterClass.Partitioning(this);
if (partitioningStructCase_ == 2) {
if (hashPartitionBuilder_ == null) {
result.partitioningStruct_ = partitioningStruct_;
} else {
result.partitioningStruct_ = hashPartitionBuilder_.build();
}
}
if (partitioningStructCase_ == 3) {
if (singlePartitionBuilder_ == null) {
result.partitioningStruct_ = partitioningStruct_;
} else {
result.partitioningStruct_ = singlePartitionBuilder_.build();
}
}
result.partitioningStructCase_ = partitioningStructCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.comet.shaded.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.comet.shaded.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.comet.shaded.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.comet.shaded.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.comet.shaded.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.comet.shaded.protobuf.Message other) {
if (other instanceof org.apache.comet.serde.PartitioningOuterClass.Partitioning) {
return mergeFrom((org.apache.comet.serde.PartitioningOuterClass.Partitioning)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.comet.serde.PartitioningOuterClass.Partitioning other) {
if (other == org.apache.comet.serde.PartitioningOuterClass.Partitioning.getDefaultInstance()) return this;
switch (other.getPartitioningStructCase()) {
case HASH_PARTITION: {
mergeHashPartition(other.getHashPartition());
break;
}
case SINGLE_PARTITION: {
mergeSinglePartition(other.getSinglePartition());
break;
}
case PARTITIONINGSTRUCT_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.comet.shaded.protobuf.CodedInputStream input,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 18: {
input.readMessage(
getHashPartitionFieldBuilder().getBuilder(),
extensionRegistry);
partitioningStructCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getSinglePartitionFieldBuilder().getBuilder(),
extensionRegistry);
partitioningStructCase_ = 3;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (org.apache.comet.shaded.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int partitioningStructCase_ = 0;
private java.lang.Object partitioningStruct_;
public PartitioningStructCase
getPartitioningStructCase() {
return PartitioningStructCase.forNumber(
partitioningStructCase_);
}
public Builder clearPartitioningStruct() {
partitioningStructCase_ = 0;
partitioningStruct_ = null;
onChanged();
return this;
}
private org.apache.comet.shaded.protobuf.SingleFieldBuilderV3<
org.apache.comet.serde.PartitioningOuterClass.HashRepartition, org.apache.comet.serde.PartitioningOuterClass.HashRepartition.Builder, org.apache.comet.serde.PartitioningOuterClass.HashRepartitionOrBuilder> hashPartitionBuilder_;
/**
* .spark.spark_partitioning.HashRepartition hash_partition = 2;
* @return Whether the hashPartition field is set.
*/
@java.lang.Override
public boolean hasHashPartition() {
return partitioningStructCase_ == 2;
}
/**
* .spark.spark_partitioning.HashRepartition hash_partition = 2;
* @return The hashPartition.
*/
@java.lang.Override
public org.apache.comet.serde.PartitioningOuterClass.HashRepartition getHashPartition() {
if (hashPartitionBuilder_ == null) {
if (partitioningStructCase_ == 2) {
return (org.apache.comet.serde.PartitioningOuterClass.HashRepartition) partitioningStruct_;
}
return org.apache.comet.serde.PartitioningOuterClass.HashRepartition.getDefaultInstance();
} else {
if (partitioningStructCase_ == 2) {
return hashPartitionBuilder_.getMessage();
}
return org.apache.comet.serde.PartitioningOuterClass.HashRepartition.getDefaultInstance();
}
}
/**
* .spark.spark_partitioning.HashRepartition hash_partition = 2;
*/
public Builder setHashPartition(org.apache.comet.serde.PartitioningOuterClass.HashRepartition value) {
if (hashPartitionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
partitioningStruct_ = value;
onChanged();
} else {
hashPartitionBuilder_.setMessage(value);
}
partitioningStructCase_ = 2;
return this;
}
/**
* .spark.spark_partitioning.HashRepartition hash_partition = 2;
*/
public Builder setHashPartition(
org.apache.comet.serde.PartitioningOuterClass.HashRepartition.Builder builderForValue) {
if (hashPartitionBuilder_ == null) {
partitioningStruct_ = builderForValue.build();
onChanged();
} else {
hashPartitionBuilder_.setMessage(builderForValue.build());
}
partitioningStructCase_ = 2;
return this;
}
/**
* .spark.spark_partitioning.HashRepartition hash_partition = 2;
*/
public Builder mergeHashPartition(org.apache.comet.serde.PartitioningOuterClass.HashRepartition value) {
if (hashPartitionBuilder_ == null) {
if (partitioningStructCase_ == 2 &&
partitioningStruct_ != org.apache.comet.serde.PartitioningOuterClass.HashRepartition.getDefaultInstance()) {
partitioningStruct_ = org.apache.comet.serde.PartitioningOuterClass.HashRepartition.newBuilder((org.apache.comet.serde.PartitioningOuterClass.HashRepartition) partitioningStruct_)
.mergeFrom(value).buildPartial();
} else {
partitioningStruct_ = value;
}
onChanged();
} else {
if (partitioningStructCase_ == 2) {
hashPartitionBuilder_.mergeFrom(value);
}
hashPartitionBuilder_.setMessage(value);
}
partitioningStructCase_ = 2;
return this;
}
/**
* .spark.spark_partitioning.HashRepartition hash_partition = 2;
*/
public Builder clearHashPartition() {
if (hashPartitionBuilder_ == null) {
if (partitioningStructCase_ == 2) {
partitioningStructCase_ = 0;
partitioningStruct_ = null;
onChanged();
}
} else {
if (partitioningStructCase_ == 2) {
partitioningStructCase_ = 0;
partitioningStruct_ = null;
}
hashPartitionBuilder_.clear();
}
return this;
}
/**
* .spark.spark_partitioning.HashRepartition hash_partition = 2;
*/
public org.apache.comet.serde.PartitioningOuterClass.HashRepartition.Builder getHashPartitionBuilder() {
return getHashPartitionFieldBuilder().getBuilder();
}
/**
* .spark.spark_partitioning.HashRepartition hash_partition = 2;
*/
@java.lang.Override
public org.apache.comet.serde.PartitioningOuterClass.HashRepartitionOrBuilder getHashPartitionOrBuilder() {
if ((partitioningStructCase_ == 2) && (hashPartitionBuilder_ != null)) {
return hashPartitionBuilder_.getMessageOrBuilder();
} else {
if (partitioningStructCase_ == 2) {
return (org.apache.comet.serde.PartitioningOuterClass.HashRepartition) partitioningStruct_;
}
return org.apache.comet.serde.PartitioningOuterClass.HashRepartition.getDefaultInstance();
}
}
/**
* .spark.spark_partitioning.HashRepartition hash_partition = 2;
*/
private org.apache.comet.shaded.protobuf.SingleFieldBuilderV3<
org.apache.comet.serde.PartitioningOuterClass.HashRepartition, org.apache.comet.serde.PartitioningOuterClass.HashRepartition.Builder, org.apache.comet.serde.PartitioningOuterClass.HashRepartitionOrBuilder>
getHashPartitionFieldBuilder() {
if (hashPartitionBuilder_ == null) {
if (!(partitioningStructCase_ == 2)) {
partitioningStruct_ = org.apache.comet.serde.PartitioningOuterClass.HashRepartition.getDefaultInstance();
}
hashPartitionBuilder_ = new org.apache.comet.shaded.protobuf.SingleFieldBuilderV3<
org.apache.comet.serde.PartitioningOuterClass.HashRepartition, org.apache.comet.serde.PartitioningOuterClass.HashRepartition.Builder, org.apache.comet.serde.PartitioningOuterClass.HashRepartitionOrBuilder>(
(org.apache.comet.serde.PartitioningOuterClass.HashRepartition) partitioningStruct_,
getParentForChildren(),
isClean());
partitioningStruct_ = null;
}
partitioningStructCase_ = 2;
onChanged();;
return hashPartitionBuilder_;
}
private org.apache.comet.shaded.protobuf.SingleFieldBuilderV3<
org.apache.comet.serde.PartitioningOuterClass.SinglePartition, org.apache.comet.serde.PartitioningOuterClass.SinglePartition.Builder, org.apache.comet.serde.PartitioningOuterClass.SinglePartitionOrBuilder> singlePartitionBuilder_;
/**
* .spark.spark_partitioning.SinglePartition single_partition = 3;
* @return Whether the singlePartition field is set.
*/
@java.lang.Override
public boolean hasSinglePartition() {
return partitioningStructCase_ == 3;
}
/**
* .spark.spark_partitioning.SinglePartition single_partition = 3;
* @return The singlePartition.
*/
@java.lang.Override
public org.apache.comet.serde.PartitioningOuterClass.SinglePartition getSinglePartition() {
if (singlePartitionBuilder_ == null) {
if (partitioningStructCase_ == 3) {
return (org.apache.comet.serde.PartitioningOuterClass.SinglePartition) partitioningStruct_;
}
return org.apache.comet.serde.PartitioningOuterClass.SinglePartition.getDefaultInstance();
} else {
if (partitioningStructCase_ == 3) {
return singlePartitionBuilder_.getMessage();
}
return org.apache.comet.serde.PartitioningOuterClass.SinglePartition.getDefaultInstance();
}
}
/**
* .spark.spark_partitioning.SinglePartition single_partition = 3;
*/
public Builder setSinglePartition(org.apache.comet.serde.PartitioningOuterClass.SinglePartition value) {
if (singlePartitionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
partitioningStruct_ = value;
onChanged();
} else {
singlePartitionBuilder_.setMessage(value);
}
partitioningStructCase_ = 3;
return this;
}
/**
* .spark.spark_partitioning.SinglePartition single_partition = 3;
*/
public Builder setSinglePartition(
org.apache.comet.serde.PartitioningOuterClass.SinglePartition.Builder builderForValue) {
if (singlePartitionBuilder_ == null) {
partitioningStruct_ = builderForValue.build();
onChanged();
} else {
singlePartitionBuilder_.setMessage(builderForValue.build());
}
partitioningStructCase_ = 3;
return this;
}
/**
* .spark.spark_partitioning.SinglePartition single_partition = 3;
*/
public Builder mergeSinglePartition(org.apache.comet.serde.PartitioningOuterClass.SinglePartition value) {
if (singlePartitionBuilder_ == null) {
if (partitioningStructCase_ == 3 &&
partitioningStruct_ != org.apache.comet.serde.PartitioningOuterClass.SinglePartition.getDefaultInstance()) {
partitioningStruct_ = org.apache.comet.serde.PartitioningOuterClass.SinglePartition.newBuilder((org.apache.comet.serde.PartitioningOuterClass.SinglePartition) partitioningStruct_)
.mergeFrom(value).buildPartial();
} else {
partitioningStruct_ = value;
}
onChanged();
} else {
if (partitioningStructCase_ == 3) {
singlePartitionBuilder_.mergeFrom(value);
}
singlePartitionBuilder_.setMessage(value);
}
partitioningStructCase_ = 3;
return this;
}
/**
* .spark.spark_partitioning.SinglePartition single_partition = 3;
*/
public Builder clearSinglePartition() {
if (singlePartitionBuilder_ == null) {
if (partitioningStructCase_ == 3) {
partitioningStructCase_ = 0;
partitioningStruct_ = null;
onChanged();
}
} else {
if (partitioningStructCase_ == 3) {
partitioningStructCase_ = 0;
partitioningStruct_ = null;
}
singlePartitionBuilder_.clear();
}
return this;
}
/**
* .spark.spark_partitioning.SinglePartition single_partition = 3;
*/
public org.apache.comet.serde.PartitioningOuterClass.SinglePartition.Builder getSinglePartitionBuilder() {
return getSinglePartitionFieldBuilder().getBuilder();
}
/**
* .spark.spark_partitioning.SinglePartition single_partition = 3;
*/
@java.lang.Override
public org.apache.comet.serde.PartitioningOuterClass.SinglePartitionOrBuilder getSinglePartitionOrBuilder() {
if ((partitioningStructCase_ == 3) && (singlePartitionBuilder_ != null)) {
return singlePartitionBuilder_.getMessageOrBuilder();
} else {
if (partitioningStructCase_ == 3) {
return (org.apache.comet.serde.PartitioningOuterClass.SinglePartition) partitioningStruct_;
}
return org.apache.comet.serde.PartitioningOuterClass.SinglePartition.getDefaultInstance();
}
}
/**
* .spark.spark_partitioning.SinglePartition single_partition = 3;
*/
private org.apache.comet.shaded.protobuf.SingleFieldBuilderV3<
org.apache.comet.serde.PartitioningOuterClass.SinglePartition, org.apache.comet.serde.PartitioningOuterClass.SinglePartition.Builder, org.apache.comet.serde.PartitioningOuterClass.SinglePartitionOrBuilder>
getSinglePartitionFieldBuilder() {
if (singlePartitionBuilder_ == null) {
if (!(partitioningStructCase_ == 3)) {
partitioningStruct_ = org.apache.comet.serde.PartitioningOuterClass.SinglePartition.getDefaultInstance();
}
singlePartitionBuilder_ = new org.apache.comet.shaded.protobuf.SingleFieldBuilderV3<
org.apache.comet.serde.PartitioningOuterClass.SinglePartition, org.apache.comet.serde.PartitioningOuterClass.SinglePartition.Builder, org.apache.comet.serde.PartitioningOuterClass.SinglePartitionOrBuilder>(
(org.apache.comet.serde.PartitioningOuterClass.SinglePartition) partitioningStruct_,
getParentForChildren(),
isClean());
partitioningStruct_ = null;
}
partitioningStructCase_ = 3;
onChanged();;
return singlePartitionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.comet.shaded.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.comet.shaded.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:spark.spark_partitioning.Partitioning)
}
// @@protoc_insertion_point(class_scope:spark.spark_partitioning.Partitioning)
private static final org.apache.comet.serde.PartitioningOuterClass.Partitioning DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.comet.serde.PartitioningOuterClass.Partitioning();
}
public static org.apache.comet.serde.PartitioningOuterClass.Partitioning getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.apache.comet.shaded.protobuf.Parser
PARSER = new org.apache.comet.shaded.protobuf.AbstractParser() {
@java.lang.Override
public Partitioning parsePartialFrom(
org.apache.comet.shaded.protobuf.CodedInputStream input,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.comet.shaded.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (org.apache.comet.shaded.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (org.apache.comet.shaded.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new org.apache.comet.shaded.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static org.apache.comet.shaded.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.comet.shaded.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.comet.serde.PartitioningOuterClass.Partitioning getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HashRepartitionOrBuilder extends
// @@protoc_insertion_point(interface_extends:spark.spark_partitioning.HashRepartition)
org.apache.comet.shaded.protobuf.MessageOrBuilder {
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
java.util.List
getHashExpressionList();
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
org.apache.comet.serde.ExprOuterClass.Expr getHashExpression(int index);
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
int getHashExpressionCount();
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
java.util.List extends org.apache.comet.serde.ExprOuterClass.ExprOrBuilder>
getHashExpressionOrBuilderList();
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
org.apache.comet.serde.ExprOuterClass.ExprOrBuilder getHashExpressionOrBuilder(
int index);
/**
* int32 num_partitions = 2;
* @return The numPartitions.
*/
int getNumPartitions();
}
/**
* Protobuf type {@code spark.spark_partitioning.HashRepartition}
*/
public static final class HashRepartition extends
org.apache.comet.shaded.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:spark.spark_partitioning.HashRepartition)
HashRepartitionOrBuilder {
private static final long serialVersionUID = 0L;
// Use HashRepartition.newBuilder() to construct.
private HashRepartition(org.apache.comet.shaded.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HashRepartition() {
hashExpression_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HashRepartition();
}
@java.lang.Override
public final org.apache.comet.shaded.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final org.apache.comet.shaded.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.comet.serde.PartitioningOuterClass.internal_static_spark_spark_partitioning_HashRepartition_descriptor;
}
@java.lang.Override
protected org.apache.comet.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.comet.serde.PartitioningOuterClass.internal_static_spark_spark_partitioning_HashRepartition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.comet.serde.PartitioningOuterClass.HashRepartition.class, org.apache.comet.serde.PartitioningOuterClass.HashRepartition.Builder.class);
}
public static final int HASH_EXPRESSION_FIELD_NUMBER = 1;
private java.util.List hashExpression_;
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
@java.lang.Override
public java.util.List getHashExpressionList() {
return hashExpression_;
}
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
@java.lang.Override
public java.util.List extends org.apache.comet.serde.ExprOuterClass.ExprOrBuilder>
getHashExpressionOrBuilderList() {
return hashExpression_;
}
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
@java.lang.Override
public int getHashExpressionCount() {
return hashExpression_.size();
}
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
@java.lang.Override
public org.apache.comet.serde.ExprOuterClass.Expr getHashExpression(int index) {
return hashExpression_.get(index);
}
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
@java.lang.Override
public org.apache.comet.serde.ExprOuterClass.ExprOrBuilder getHashExpressionOrBuilder(
int index) {
return hashExpression_.get(index);
}
public static final int NUM_PARTITIONS_FIELD_NUMBER = 2;
private int numPartitions_;
/**
* int32 num_partitions = 2;
* @return The numPartitions.
*/
@java.lang.Override
public int getNumPartitions() {
return numPartitions_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.comet.shaded.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < hashExpression_.size(); i++) {
output.writeMessage(1, hashExpression_.get(i));
}
if (numPartitions_ != 0) {
output.writeInt32(2, numPartitions_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < hashExpression_.size(); i++) {
size += org.apache.comet.shaded.protobuf.CodedOutputStream
.computeMessageSize(1, hashExpression_.get(i));
}
if (numPartitions_ != 0) {
size += org.apache.comet.shaded.protobuf.CodedOutputStream
.computeInt32Size(2, numPartitions_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.comet.serde.PartitioningOuterClass.HashRepartition)) {
return super.equals(obj);
}
org.apache.comet.serde.PartitioningOuterClass.HashRepartition other = (org.apache.comet.serde.PartitioningOuterClass.HashRepartition) obj;
if (!getHashExpressionList()
.equals(other.getHashExpressionList())) return false;
if (getNumPartitions()
!= other.getNumPartitions()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getHashExpressionCount() > 0) {
hash = (37 * hash) + HASH_EXPRESSION_FIELD_NUMBER;
hash = (53 * hash) + getHashExpressionList().hashCode();
}
hash = (37 * hash) + NUM_PARTITIONS_FIELD_NUMBER;
hash = (53 * hash) + getNumPartitions();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.comet.serde.PartitioningOuterClass.HashRepartition parseFrom(
java.nio.ByteBuffer data)
throws org.apache.comet.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.comet.serde.PartitioningOuterClass.HashRepartition parseFrom(
java.nio.ByteBuffer data,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.comet.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.comet.serde.PartitioningOuterClass.HashRepartition parseFrom(
org.apache.comet.shaded.protobuf.ByteString data)
throws org.apache.comet.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.comet.serde.PartitioningOuterClass.HashRepartition parseFrom(
org.apache.comet.shaded.protobuf.ByteString data,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.comet.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.comet.serde.PartitioningOuterClass.HashRepartition parseFrom(byte[] data)
throws org.apache.comet.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.comet.serde.PartitioningOuterClass.HashRepartition parseFrom(
byte[] data,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.comet.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.comet.serde.PartitioningOuterClass.HashRepartition parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.comet.shaded.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.comet.serde.PartitioningOuterClass.HashRepartition parseFrom(
java.io.InputStream input,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.comet.shaded.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.comet.serde.PartitioningOuterClass.HashRepartition parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.comet.shaded.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.comet.serde.PartitioningOuterClass.HashRepartition parseDelimitedFrom(
java.io.InputStream input,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.comet.shaded.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.comet.serde.PartitioningOuterClass.HashRepartition parseFrom(
org.apache.comet.shaded.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.comet.shaded.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.comet.serde.PartitioningOuterClass.HashRepartition parseFrom(
org.apache.comet.shaded.protobuf.CodedInputStream input,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.comet.shaded.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.comet.serde.PartitioningOuterClass.HashRepartition prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.comet.shaded.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code spark.spark_partitioning.HashRepartition}
*/
public static final class Builder extends
org.apache.comet.shaded.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:spark.spark_partitioning.HashRepartition)
org.apache.comet.serde.PartitioningOuterClass.HashRepartitionOrBuilder {
public static final org.apache.comet.shaded.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.comet.serde.PartitioningOuterClass.internal_static_spark_spark_partitioning_HashRepartition_descriptor;
}
@java.lang.Override
protected org.apache.comet.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.comet.serde.PartitioningOuterClass.internal_static_spark_spark_partitioning_HashRepartition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.comet.serde.PartitioningOuterClass.HashRepartition.class, org.apache.comet.serde.PartitioningOuterClass.HashRepartition.Builder.class);
}
// Construct using org.apache.comet.serde.PartitioningOuterClass.HashRepartition.newBuilder()
private Builder() {
}
private Builder(
org.apache.comet.shaded.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (hashExpressionBuilder_ == null) {
hashExpression_ = java.util.Collections.emptyList();
} else {
hashExpression_ = null;
hashExpressionBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
numPartitions_ = 0;
return this;
}
@java.lang.Override
public org.apache.comet.shaded.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.comet.serde.PartitioningOuterClass.internal_static_spark_spark_partitioning_HashRepartition_descriptor;
}
@java.lang.Override
public org.apache.comet.serde.PartitioningOuterClass.HashRepartition getDefaultInstanceForType() {
return org.apache.comet.serde.PartitioningOuterClass.HashRepartition.getDefaultInstance();
}
@java.lang.Override
public org.apache.comet.serde.PartitioningOuterClass.HashRepartition build() {
org.apache.comet.serde.PartitioningOuterClass.HashRepartition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.comet.serde.PartitioningOuterClass.HashRepartition buildPartial() {
org.apache.comet.serde.PartitioningOuterClass.HashRepartition result = new org.apache.comet.serde.PartitioningOuterClass.HashRepartition(this);
int from_bitField0_ = bitField0_;
if (hashExpressionBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
hashExpression_ = java.util.Collections.unmodifiableList(hashExpression_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.hashExpression_ = hashExpression_;
} else {
result.hashExpression_ = hashExpressionBuilder_.build();
}
result.numPartitions_ = numPartitions_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.comet.shaded.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.comet.shaded.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.comet.shaded.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.comet.shaded.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.comet.shaded.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.comet.shaded.protobuf.Message other) {
if (other instanceof org.apache.comet.serde.PartitioningOuterClass.HashRepartition) {
return mergeFrom((org.apache.comet.serde.PartitioningOuterClass.HashRepartition)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.comet.serde.PartitioningOuterClass.HashRepartition other) {
if (other == org.apache.comet.serde.PartitioningOuterClass.HashRepartition.getDefaultInstance()) return this;
if (hashExpressionBuilder_ == null) {
if (!other.hashExpression_.isEmpty()) {
if (hashExpression_.isEmpty()) {
hashExpression_ = other.hashExpression_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureHashExpressionIsMutable();
hashExpression_.addAll(other.hashExpression_);
}
onChanged();
}
} else {
if (!other.hashExpression_.isEmpty()) {
if (hashExpressionBuilder_.isEmpty()) {
hashExpressionBuilder_.dispose();
hashExpressionBuilder_ = null;
hashExpression_ = other.hashExpression_;
bitField0_ = (bitField0_ & ~0x00000001);
hashExpressionBuilder_ =
org.apache.comet.shaded.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getHashExpressionFieldBuilder() : null;
} else {
hashExpressionBuilder_.addAllMessages(other.hashExpression_);
}
}
}
if (other.getNumPartitions() != 0) {
setNumPartitions(other.getNumPartitions());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.comet.shaded.protobuf.CodedInputStream input,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.apache.comet.serde.ExprOuterClass.Expr m =
input.readMessage(
org.apache.comet.serde.ExprOuterClass.Expr.parser(),
extensionRegistry);
if (hashExpressionBuilder_ == null) {
ensureHashExpressionIsMutable();
hashExpression_.add(m);
} else {
hashExpressionBuilder_.addMessage(m);
}
break;
} // case 10
case 16: {
numPartitions_ = input.readInt32();
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (org.apache.comet.shaded.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List hashExpression_ =
java.util.Collections.emptyList();
private void ensureHashExpressionIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
hashExpression_ = new java.util.ArrayList(hashExpression_);
bitField0_ |= 0x00000001;
}
}
private org.apache.comet.shaded.protobuf.RepeatedFieldBuilderV3<
org.apache.comet.serde.ExprOuterClass.Expr, org.apache.comet.serde.ExprOuterClass.Expr.Builder, org.apache.comet.serde.ExprOuterClass.ExprOrBuilder> hashExpressionBuilder_;
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
public java.util.List getHashExpressionList() {
if (hashExpressionBuilder_ == null) {
return java.util.Collections.unmodifiableList(hashExpression_);
} else {
return hashExpressionBuilder_.getMessageList();
}
}
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
public int getHashExpressionCount() {
if (hashExpressionBuilder_ == null) {
return hashExpression_.size();
} else {
return hashExpressionBuilder_.getCount();
}
}
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
public org.apache.comet.serde.ExprOuterClass.Expr getHashExpression(int index) {
if (hashExpressionBuilder_ == null) {
return hashExpression_.get(index);
} else {
return hashExpressionBuilder_.getMessage(index);
}
}
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
public Builder setHashExpression(
int index, org.apache.comet.serde.ExprOuterClass.Expr value) {
if (hashExpressionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHashExpressionIsMutable();
hashExpression_.set(index, value);
onChanged();
} else {
hashExpressionBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
public Builder setHashExpression(
int index, org.apache.comet.serde.ExprOuterClass.Expr.Builder builderForValue) {
if (hashExpressionBuilder_ == null) {
ensureHashExpressionIsMutable();
hashExpression_.set(index, builderForValue.build());
onChanged();
} else {
hashExpressionBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
public Builder addHashExpression(org.apache.comet.serde.ExprOuterClass.Expr value) {
if (hashExpressionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHashExpressionIsMutable();
hashExpression_.add(value);
onChanged();
} else {
hashExpressionBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
public Builder addHashExpression(
int index, org.apache.comet.serde.ExprOuterClass.Expr value) {
if (hashExpressionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHashExpressionIsMutable();
hashExpression_.add(index, value);
onChanged();
} else {
hashExpressionBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
public Builder addHashExpression(
org.apache.comet.serde.ExprOuterClass.Expr.Builder builderForValue) {
if (hashExpressionBuilder_ == null) {
ensureHashExpressionIsMutable();
hashExpression_.add(builderForValue.build());
onChanged();
} else {
hashExpressionBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
public Builder addHashExpression(
int index, org.apache.comet.serde.ExprOuterClass.Expr.Builder builderForValue) {
if (hashExpressionBuilder_ == null) {
ensureHashExpressionIsMutable();
hashExpression_.add(index, builderForValue.build());
onChanged();
} else {
hashExpressionBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
public Builder addAllHashExpression(
java.lang.Iterable extends org.apache.comet.serde.ExprOuterClass.Expr> values) {
if (hashExpressionBuilder_ == null) {
ensureHashExpressionIsMutable();
org.apache.comet.shaded.protobuf.AbstractMessageLite.Builder.addAll(
values, hashExpression_);
onChanged();
} else {
hashExpressionBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
public Builder clearHashExpression() {
if (hashExpressionBuilder_ == null) {
hashExpression_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
hashExpressionBuilder_.clear();
}
return this;
}
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
public Builder removeHashExpression(int index) {
if (hashExpressionBuilder_ == null) {
ensureHashExpressionIsMutable();
hashExpression_.remove(index);
onChanged();
} else {
hashExpressionBuilder_.remove(index);
}
return this;
}
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
public org.apache.comet.serde.ExprOuterClass.Expr.Builder getHashExpressionBuilder(
int index) {
return getHashExpressionFieldBuilder().getBuilder(index);
}
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
public org.apache.comet.serde.ExprOuterClass.ExprOrBuilder getHashExpressionOrBuilder(
int index) {
if (hashExpressionBuilder_ == null) {
return hashExpression_.get(index); } else {
return hashExpressionBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
public java.util.List extends org.apache.comet.serde.ExprOuterClass.ExprOrBuilder>
getHashExpressionOrBuilderList() {
if (hashExpressionBuilder_ != null) {
return hashExpressionBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(hashExpression_);
}
}
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
public org.apache.comet.serde.ExprOuterClass.Expr.Builder addHashExpressionBuilder() {
return getHashExpressionFieldBuilder().addBuilder(
org.apache.comet.serde.ExprOuterClass.Expr.getDefaultInstance());
}
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
public org.apache.comet.serde.ExprOuterClass.Expr.Builder addHashExpressionBuilder(
int index) {
return getHashExpressionFieldBuilder().addBuilder(
index, org.apache.comet.serde.ExprOuterClass.Expr.getDefaultInstance());
}
/**
* repeated .spark.spark_expression.Expr hash_expression = 1;
*/
public java.util.List
getHashExpressionBuilderList() {
return getHashExpressionFieldBuilder().getBuilderList();
}
private org.apache.comet.shaded.protobuf.RepeatedFieldBuilderV3<
org.apache.comet.serde.ExprOuterClass.Expr, org.apache.comet.serde.ExprOuterClass.Expr.Builder, org.apache.comet.serde.ExprOuterClass.ExprOrBuilder>
getHashExpressionFieldBuilder() {
if (hashExpressionBuilder_ == null) {
hashExpressionBuilder_ = new org.apache.comet.shaded.protobuf.RepeatedFieldBuilderV3<
org.apache.comet.serde.ExprOuterClass.Expr, org.apache.comet.serde.ExprOuterClass.Expr.Builder, org.apache.comet.serde.ExprOuterClass.ExprOrBuilder>(
hashExpression_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
hashExpression_ = null;
}
return hashExpressionBuilder_;
}
private int numPartitions_ ;
/**
* int32 num_partitions = 2;
* @return The numPartitions.
*/
@java.lang.Override
public int getNumPartitions() {
return numPartitions_;
}
/**
* int32 num_partitions = 2;
* @param value The numPartitions to set.
* @return This builder for chaining.
*/
public Builder setNumPartitions(int value) {
numPartitions_ = value;
onChanged();
return this;
}
/**
* int32 num_partitions = 2;
* @return This builder for chaining.
*/
public Builder clearNumPartitions() {
numPartitions_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.comet.shaded.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.comet.shaded.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:spark.spark_partitioning.HashRepartition)
}
// @@protoc_insertion_point(class_scope:spark.spark_partitioning.HashRepartition)
private static final org.apache.comet.serde.PartitioningOuterClass.HashRepartition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.comet.serde.PartitioningOuterClass.HashRepartition();
}
public static org.apache.comet.serde.PartitioningOuterClass.HashRepartition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.apache.comet.shaded.protobuf.Parser
PARSER = new org.apache.comet.shaded.protobuf.AbstractParser() {
@java.lang.Override
public HashRepartition parsePartialFrom(
org.apache.comet.shaded.protobuf.CodedInputStream input,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.comet.shaded.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (org.apache.comet.shaded.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (org.apache.comet.shaded.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new org.apache.comet.shaded.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static org.apache.comet.shaded.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.comet.shaded.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.comet.serde.PartitioningOuterClass.HashRepartition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SinglePartitionOrBuilder extends
// @@protoc_insertion_point(interface_extends:spark.spark_partitioning.SinglePartition)
org.apache.comet.shaded.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code spark.spark_partitioning.SinglePartition}
*/
public static final class SinglePartition extends
org.apache.comet.shaded.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:spark.spark_partitioning.SinglePartition)
SinglePartitionOrBuilder {
private static final long serialVersionUID = 0L;
// Use SinglePartition.newBuilder() to construct.
private SinglePartition(org.apache.comet.shaded.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SinglePartition() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SinglePartition();
}
@java.lang.Override
public final org.apache.comet.shaded.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final org.apache.comet.shaded.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.comet.serde.PartitioningOuterClass.internal_static_spark_spark_partitioning_SinglePartition_descriptor;
}
@java.lang.Override
protected org.apache.comet.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.comet.serde.PartitioningOuterClass.internal_static_spark_spark_partitioning_SinglePartition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.comet.serde.PartitioningOuterClass.SinglePartition.class, org.apache.comet.serde.PartitioningOuterClass.SinglePartition.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.comet.shaded.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.comet.serde.PartitioningOuterClass.SinglePartition)) {
return super.equals(obj);
}
org.apache.comet.serde.PartitioningOuterClass.SinglePartition other = (org.apache.comet.serde.PartitioningOuterClass.SinglePartition) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.comet.serde.PartitioningOuterClass.SinglePartition parseFrom(
java.nio.ByteBuffer data)
throws org.apache.comet.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.comet.serde.PartitioningOuterClass.SinglePartition parseFrom(
java.nio.ByteBuffer data,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.comet.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.comet.serde.PartitioningOuterClass.SinglePartition parseFrom(
org.apache.comet.shaded.protobuf.ByteString data)
throws org.apache.comet.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.comet.serde.PartitioningOuterClass.SinglePartition parseFrom(
org.apache.comet.shaded.protobuf.ByteString data,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.comet.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.comet.serde.PartitioningOuterClass.SinglePartition parseFrom(byte[] data)
throws org.apache.comet.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.comet.serde.PartitioningOuterClass.SinglePartition parseFrom(
byte[] data,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.comet.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.comet.serde.PartitioningOuterClass.SinglePartition parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.comet.shaded.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.comet.serde.PartitioningOuterClass.SinglePartition parseFrom(
java.io.InputStream input,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.comet.shaded.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.comet.serde.PartitioningOuterClass.SinglePartition parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.comet.shaded.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.comet.serde.PartitioningOuterClass.SinglePartition parseDelimitedFrom(
java.io.InputStream input,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.comet.shaded.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.comet.serde.PartitioningOuterClass.SinglePartition parseFrom(
org.apache.comet.shaded.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.comet.shaded.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.comet.serde.PartitioningOuterClass.SinglePartition parseFrom(
org.apache.comet.shaded.protobuf.CodedInputStream input,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.comet.shaded.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.comet.serde.PartitioningOuterClass.SinglePartition prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.comet.shaded.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code spark.spark_partitioning.SinglePartition}
*/
public static final class Builder extends
org.apache.comet.shaded.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:spark.spark_partitioning.SinglePartition)
org.apache.comet.serde.PartitioningOuterClass.SinglePartitionOrBuilder {
public static final org.apache.comet.shaded.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.comet.serde.PartitioningOuterClass.internal_static_spark_spark_partitioning_SinglePartition_descriptor;
}
@java.lang.Override
protected org.apache.comet.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.comet.serde.PartitioningOuterClass.internal_static_spark_spark_partitioning_SinglePartition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.comet.serde.PartitioningOuterClass.SinglePartition.class, org.apache.comet.serde.PartitioningOuterClass.SinglePartition.Builder.class);
}
// Construct using org.apache.comet.serde.PartitioningOuterClass.SinglePartition.newBuilder()
private Builder() {
}
private Builder(
org.apache.comet.shaded.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public org.apache.comet.shaded.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.comet.serde.PartitioningOuterClass.internal_static_spark_spark_partitioning_SinglePartition_descriptor;
}
@java.lang.Override
public org.apache.comet.serde.PartitioningOuterClass.SinglePartition getDefaultInstanceForType() {
return org.apache.comet.serde.PartitioningOuterClass.SinglePartition.getDefaultInstance();
}
@java.lang.Override
public org.apache.comet.serde.PartitioningOuterClass.SinglePartition build() {
org.apache.comet.serde.PartitioningOuterClass.SinglePartition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.comet.serde.PartitioningOuterClass.SinglePartition buildPartial() {
org.apache.comet.serde.PartitioningOuterClass.SinglePartition result = new org.apache.comet.serde.PartitioningOuterClass.SinglePartition(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.comet.shaded.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.comet.shaded.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.comet.shaded.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.comet.shaded.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.comet.shaded.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.comet.shaded.protobuf.Message other) {
if (other instanceof org.apache.comet.serde.PartitioningOuterClass.SinglePartition) {
return mergeFrom((org.apache.comet.serde.PartitioningOuterClass.SinglePartition)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.comet.serde.PartitioningOuterClass.SinglePartition other) {
if (other == org.apache.comet.serde.PartitioningOuterClass.SinglePartition.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.comet.shaded.protobuf.CodedInputStream input,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (org.apache.comet.shaded.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.comet.shaded.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.comet.shaded.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:spark.spark_partitioning.SinglePartition)
}
// @@protoc_insertion_point(class_scope:spark.spark_partitioning.SinglePartition)
private static final org.apache.comet.serde.PartitioningOuterClass.SinglePartition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.comet.serde.PartitioningOuterClass.SinglePartition();
}
public static org.apache.comet.serde.PartitioningOuterClass.SinglePartition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.apache.comet.shaded.protobuf.Parser
PARSER = new org.apache.comet.shaded.protobuf.AbstractParser() {
@java.lang.Override
public SinglePartition parsePartialFrom(
org.apache.comet.shaded.protobuf.CodedInputStream input,
org.apache.comet.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.comet.shaded.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (org.apache.comet.shaded.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (org.apache.comet.shaded.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new org.apache.comet.shaded.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static org.apache.comet.shaded.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.comet.shaded.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.comet.serde.PartitioningOuterClass.SinglePartition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final org.apache.comet.shaded.protobuf.Descriptors.Descriptor
internal_static_spark_spark_partitioning_Partitioning_descriptor;
private static final
org.apache.comet.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_spark_spark_partitioning_Partitioning_fieldAccessorTable;
private static final org.apache.comet.shaded.protobuf.Descriptors.Descriptor
internal_static_spark_spark_partitioning_HashRepartition_descriptor;
private static final
org.apache.comet.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_spark_spark_partitioning_HashRepartition_fieldAccessorTable;
private static final org.apache.comet.shaded.protobuf.Descriptors.Descriptor
internal_static_spark_spark_partitioning_SinglePartition_descriptor;
private static final
org.apache.comet.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_spark_spark_partitioning_SinglePartition_fieldAccessorTable;
public static org.apache.comet.shaded.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static org.apache.comet.shaded.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\022partitioning.proto\022\030spark.spark_partit" +
"ioning\032\nexpr.proto\"\261\001\n\014Partitioning\022C\n\016h" +
"ash_partition\030\002 \001(\0132).spark.spark_partit" +
"ioning.HashRepartitionH\000\022E\n\020single_parti" +
"tion\030\003 \001(\0132).spark.spark_partitioning.Si" +
"nglePartitionH\000B\025\n\023partitioning_struct\"`" +
"\n\017HashRepartition\0225\n\017hash_expression\030\001 \003" +
"(\0132\034.spark.spark_expression.Expr\022\026\n\016num_" +
"partitions\030\002 \001(\005\"\021\n\017SinglePartitionB\030\n\026o" +
"rg.apache.comet.serdeb\006proto3"
};
descriptor = org.apache.comet.shaded.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new org.apache.comet.shaded.protobuf.Descriptors.FileDescriptor[] {
org.apache.comet.serde.ExprOuterClass.getDescriptor(),
});
internal_static_spark_spark_partitioning_Partitioning_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_spark_spark_partitioning_Partitioning_fieldAccessorTable = new
org.apache.comet.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_spark_spark_partitioning_Partitioning_descriptor,
new java.lang.String[] { "HashPartition", "SinglePartition", "PartitioningStruct", });
internal_static_spark_spark_partitioning_HashRepartition_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_spark_spark_partitioning_HashRepartition_fieldAccessorTable = new
org.apache.comet.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_spark_spark_partitioning_HashRepartition_descriptor,
new java.lang.String[] { "HashExpression", "NumPartitions", });
internal_static_spark_spark_partitioning_SinglePartition_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_spark_spark_partitioning_SinglePartition_fieldAccessorTable = new
org.apache.comet.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_spark_spark_partitioning_SinglePartition_descriptor,
new java.lang.String[] { });
org.apache.comet.serde.ExprOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy