io.substrait.proto.ComparisonJoinKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Create a well-defined, cross-language specification for data compute operations
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: substrait/algebra.proto
// Protobuf Java Version: 3.25.5
package io.substrait.proto;
/**
*
* Hash joins and merge joins are a specialization of the general join where the join
* expression is an series of comparisons between fields that are ANDed together. The
* behavior of this comparison is flexible
*
*
* Protobuf type {@code substrait.ComparisonJoinKey}
*/
public final class ComparisonJoinKey extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ComparisonJoinKey)
ComparisonJoinKeyOrBuilder {
private static final long serialVersionUID = 0L;
// Use ComparisonJoinKey.newBuilder() to construct.
private ComparisonJoinKey(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ComparisonJoinKey() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ComparisonJoinKey();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ComparisonJoinKey_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ComparisonJoinKey_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ComparisonJoinKey.class, io.substrait.proto.ComparisonJoinKey.Builder.class);
}
/**
*
* Most joins will use one of the following behaviors. To avoid the complexity
* of a function lookup we define the common behaviors here
*
*
* Protobuf enum {@code substrait.ComparisonJoinKey.SimpleComparisonType}
*/
public enum SimpleComparisonType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SIMPLE_COMPARISON_TYPE_UNSPECIFIED = 0;
*/
SIMPLE_COMPARISON_TYPE_UNSPECIFIED(0),
/**
*
* Returns true only if both values are equal and not null
*
*
* SIMPLE_COMPARISON_TYPE_EQ = 1;
*/
SIMPLE_COMPARISON_TYPE_EQ(1),
/**
*
* Returns true if both values are equal and not null
* Returns true if both values are null
* Returns false if one value is null and the other value is not null
*
* This can be expressed as a = b OR (isnull(a) AND isnull(b))
*
*
* SIMPLE_COMPARISON_TYPE_IS_NOT_DISTINCT_FROM = 2;
*/
SIMPLE_COMPARISON_TYPE_IS_NOT_DISTINCT_FROM(2),
/**
*
* Returns true if both values are equal and not null
* Returns true if either value is null
*
* This can be expressed as a = b OR isnull(a = b)
*
*
* SIMPLE_COMPARISON_TYPE_MIGHT_EQUAL = 3;
*/
SIMPLE_COMPARISON_TYPE_MIGHT_EQUAL(3),
UNRECOGNIZED(-1),
;
/**
* SIMPLE_COMPARISON_TYPE_UNSPECIFIED = 0;
*/
public static final int SIMPLE_COMPARISON_TYPE_UNSPECIFIED_VALUE = 0;
/**
*
* Returns true only if both values are equal and not null
*
*
* SIMPLE_COMPARISON_TYPE_EQ = 1;
*/
public static final int SIMPLE_COMPARISON_TYPE_EQ_VALUE = 1;
/**
*
* Returns true if both values are equal and not null
* Returns true if both values are null
* Returns false if one value is null and the other value is not null
*
* This can be expressed as a = b OR (isnull(a) AND isnull(b))
*
*
* SIMPLE_COMPARISON_TYPE_IS_NOT_DISTINCT_FROM = 2;
*/
public static final int SIMPLE_COMPARISON_TYPE_IS_NOT_DISTINCT_FROM_VALUE = 2;
/**
*
* Returns true if both values are equal and not null
* Returns true if either value is null
*
* This can be expressed as a = b OR isnull(a = b)
*
*
* SIMPLE_COMPARISON_TYPE_MIGHT_EQUAL = 3;
*/
public static final int SIMPLE_COMPARISON_TYPE_MIGHT_EQUAL_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SimpleComparisonType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static SimpleComparisonType forNumber(int value) {
switch (value) {
case 0: return SIMPLE_COMPARISON_TYPE_UNSPECIFIED;
case 1: return SIMPLE_COMPARISON_TYPE_EQ;
case 2: return SIMPLE_COMPARISON_TYPE_IS_NOT_DISTINCT_FROM;
case 3: return SIMPLE_COMPARISON_TYPE_MIGHT_EQUAL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SimpleComparisonType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SimpleComparisonType findValueByNumber(int number) {
return SimpleComparisonType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.substrait.proto.ComparisonJoinKey.getDescriptor().getEnumTypes().get(0);
}
private static final SimpleComparisonType[] VALUES = values();
public static SimpleComparisonType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private SimpleComparisonType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:substrait.ComparisonJoinKey.SimpleComparisonType)
}
public interface ComparisonTypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.ComparisonJoinKey.ComparisonType)
com.google.protobuf.MessageOrBuilder {
/**
*
* One of the simple comparison behaviors is used
*
*
* .substrait.ComparisonJoinKey.SimpleComparisonType simple = 1;
* @return Whether the simple field is set.
*/
boolean hasSimple();
/**
*
* One of the simple comparison behaviors is used
*
*
* .substrait.ComparisonJoinKey.SimpleComparisonType simple = 1;
* @return The enum numeric value on the wire for simple.
*/
int getSimpleValue();
/**
*
* One of the simple comparison behaviors is used
*
*
* .substrait.ComparisonJoinKey.SimpleComparisonType simple = 1;
* @return The simple.
*/
io.substrait.proto.ComparisonJoinKey.SimpleComparisonType getSimple();
/**
*
* A custom comparison behavior is used. This can happen, for example, when using
* collations, where we might want to do something like a case-insensitive comparison.
*
* This must be a binary function with a boolean return type
*
*
* uint32 custom_function_reference = 2;
* @return Whether the customFunctionReference field is set.
*/
boolean hasCustomFunctionReference();
/**
*
* A custom comparison behavior is used. This can happen, for example, when using
* collations, where we might want to do something like a case-insensitive comparison.
*
* This must be a binary function with a boolean return type
*
*
* uint32 custom_function_reference = 2;
* @return The customFunctionReference.
*/
int getCustomFunctionReference();
io.substrait.proto.ComparisonJoinKey.ComparisonType.InnerTypeCase getInnerTypeCase();
}
/**
*
* Describes how the relation should consider if two rows are a match
*
*
* Protobuf type {@code substrait.ComparisonJoinKey.ComparisonType}
*/
public static final class ComparisonType extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ComparisonJoinKey.ComparisonType)
ComparisonTypeOrBuilder {
private static final long serialVersionUID = 0L;
// Use ComparisonType.newBuilder() to construct.
private ComparisonType(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ComparisonType() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ComparisonType();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ComparisonJoinKey_ComparisonType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ComparisonJoinKey_ComparisonType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ComparisonJoinKey.ComparisonType.class, io.substrait.proto.ComparisonJoinKey.ComparisonType.Builder.class);
}
private int innerTypeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object innerType_;
public enum InnerTypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SIMPLE(1),
CUSTOM_FUNCTION_REFERENCE(2),
INNERTYPE_NOT_SET(0);
private final int value;
private InnerTypeCase(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 InnerTypeCase valueOf(int value) {
return forNumber(value);
}
public static InnerTypeCase forNumber(int value) {
switch (value) {
case 1: return SIMPLE;
case 2: return CUSTOM_FUNCTION_REFERENCE;
case 0: return INNERTYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public InnerTypeCase
getInnerTypeCase() {
return InnerTypeCase.forNumber(
innerTypeCase_);
}
public static final int SIMPLE_FIELD_NUMBER = 1;
/**
*
* One of the simple comparison behaviors is used
*
*
* .substrait.ComparisonJoinKey.SimpleComparisonType simple = 1;
* @return Whether the simple field is set.
*/
public boolean hasSimple() {
return innerTypeCase_ == 1;
}
/**
*
* One of the simple comparison behaviors is used
*
*
* .substrait.ComparisonJoinKey.SimpleComparisonType simple = 1;
* @return The enum numeric value on the wire for simple.
*/
public int getSimpleValue() {
if (innerTypeCase_ == 1) {
return (java.lang.Integer) innerType_;
}
return 0;
}
/**
*
* One of the simple comparison behaviors is used
*
*
* .substrait.ComparisonJoinKey.SimpleComparisonType simple = 1;
* @return The simple.
*/
public io.substrait.proto.ComparisonJoinKey.SimpleComparisonType getSimple() {
if (innerTypeCase_ == 1) {
io.substrait.proto.ComparisonJoinKey.SimpleComparisonType result = io.substrait.proto.ComparisonJoinKey.SimpleComparisonType.forNumber(
(java.lang.Integer) innerType_);
return result == null ? io.substrait.proto.ComparisonJoinKey.SimpleComparisonType.UNRECOGNIZED : result;
}
return io.substrait.proto.ComparisonJoinKey.SimpleComparisonType.SIMPLE_COMPARISON_TYPE_UNSPECIFIED;
}
public static final int CUSTOM_FUNCTION_REFERENCE_FIELD_NUMBER = 2;
/**
*
* A custom comparison behavior is used. This can happen, for example, when using
* collations, where we might want to do something like a case-insensitive comparison.
*
* This must be a binary function with a boolean return type
*
*
* uint32 custom_function_reference = 2;
* @return Whether the customFunctionReference field is set.
*/
@java.lang.Override
public boolean hasCustomFunctionReference() {
return innerTypeCase_ == 2;
}
/**
*
* A custom comparison behavior is used. This can happen, for example, when using
* collations, where we might want to do something like a case-insensitive comparison.
*
* This must be a binary function with a boolean return type
*
*
* uint32 custom_function_reference = 2;
* @return The customFunctionReference.
*/
@java.lang.Override
public int getCustomFunctionReference() {
if (innerTypeCase_ == 2) {
return (java.lang.Integer) innerType_;
}
return 0;
}
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(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (innerTypeCase_ == 1) {
output.writeEnum(1, ((java.lang.Integer) innerType_));
}
if (innerTypeCase_ == 2) {
output.writeUInt32(
2, (int)((java.lang.Integer) innerType_));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (innerTypeCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, ((java.lang.Integer) innerType_));
}
if (innerTypeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(
2, (int)((java.lang.Integer) innerType_));
}
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 io.substrait.proto.ComparisonJoinKey.ComparisonType)) {
return super.equals(obj);
}
io.substrait.proto.ComparisonJoinKey.ComparisonType other = (io.substrait.proto.ComparisonJoinKey.ComparisonType) obj;
if (!getInnerTypeCase().equals(other.getInnerTypeCase())) return false;
switch (innerTypeCase_) {
case 1:
if (getSimpleValue()
!= other.getSimpleValue()) return false;
break;
case 2:
if (getCustomFunctionReference()
!= other.getCustomFunctionReference()) 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 (innerTypeCase_) {
case 1:
hash = (37 * hash) + SIMPLE_FIELD_NUMBER;
hash = (53 * hash) + getSimpleValue();
break;
case 2:
hash = (37 * hash) + CUSTOM_FUNCTION_REFERENCE_FIELD_NUMBER;
hash = (53 * hash) + getCustomFunctionReference();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ComparisonJoinKey.ComparisonType parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ComparisonJoinKey.ComparisonType parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ComparisonJoinKey.ComparisonType parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ComparisonJoinKey.ComparisonType parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ComparisonJoinKey.ComparisonType parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ComparisonJoinKey.ComparisonType parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ComparisonJoinKey.ComparisonType parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ComparisonJoinKey.ComparisonType parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ComparisonJoinKey.ComparisonType parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ComparisonJoinKey.ComparisonType parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ComparisonJoinKey.ComparisonType parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ComparisonJoinKey.ComparisonType parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.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(io.substrait.proto.ComparisonJoinKey.ComparisonType 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Describes how the relation should consider if two rows are a match
*
*
* Protobuf type {@code substrait.ComparisonJoinKey.ComparisonType}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ComparisonJoinKey.ComparisonType)
io.substrait.proto.ComparisonJoinKey.ComparisonTypeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ComparisonJoinKey_ComparisonType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ComparisonJoinKey_ComparisonType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ComparisonJoinKey.ComparisonType.class, io.substrait.proto.ComparisonJoinKey.ComparisonType.Builder.class);
}
// Construct using io.substrait.proto.ComparisonJoinKey.ComparisonType.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
innerTypeCase_ = 0;
innerType_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ComparisonJoinKey_ComparisonType_descriptor;
}
@java.lang.Override
public io.substrait.proto.ComparisonJoinKey.ComparisonType getDefaultInstanceForType() {
return io.substrait.proto.ComparisonJoinKey.ComparisonType.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ComparisonJoinKey.ComparisonType build() {
io.substrait.proto.ComparisonJoinKey.ComparisonType result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ComparisonJoinKey.ComparisonType buildPartial() {
io.substrait.proto.ComparisonJoinKey.ComparisonType result = new io.substrait.proto.ComparisonJoinKey.ComparisonType(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.ComparisonJoinKey.ComparisonType result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(io.substrait.proto.ComparisonJoinKey.ComparisonType result) {
result.innerTypeCase_ = innerTypeCase_;
result.innerType_ = this.innerType_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.ComparisonJoinKey.ComparisonType) {
return mergeFrom((io.substrait.proto.ComparisonJoinKey.ComparisonType)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ComparisonJoinKey.ComparisonType other) {
if (other == io.substrait.proto.ComparisonJoinKey.ComparisonType.getDefaultInstance()) return this;
switch (other.getInnerTypeCase()) {
case SIMPLE: {
setSimpleValue(other.getSimpleValue());
break;
}
case CUSTOM_FUNCTION_REFERENCE: {
setCustomFunctionReference(other.getCustomFunctionReference());
break;
}
case INNERTYPE_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(
com.google.protobuf.CodedInputStream input,
com.google.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 8: {
int rawValue = input.readEnum();
innerTypeCase_ = 1;
innerType_ = rawValue;
break;
} // case 8
case 16: {
innerType_ = input.readUInt32();
innerTypeCase_ = 2;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int innerTypeCase_ = 0;
private java.lang.Object innerType_;
public InnerTypeCase
getInnerTypeCase() {
return InnerTypeCase.forNumber(
innerTypeCase_);
}
public Builder clearInnerType() {
innerTypeCase_ = 0;
innerType_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
*
* One of the simple comparison behaviors is used
*
*
* .substrait.ComparisonJoinKey.SimpleComparisonType simple = 1;
* @return Whether the simple field is set.
*/
@java.lang.Override
public boolean hasSimple() {
return innerTypeCase_ == 1;
}
/**
*
* One of the simple comparison behaviors is used
*
*
* .substrait.ComparisonJoinKey.SimpleComparisonType simple = 1;
* @return The enum numeric value on the wire for simple.
*/
@java.lang.Override
public int getSimpleValue() {
if (innerTypeCase_ == 1) {
return ((java.lang.Integer) innerType_).intValue();
}
return 0;
}
/**
*
* One of the simple comparison behaviors is used
*
*
* .substrait.ComparisonJoinKey.SimpleComparisonType simple = 1;
* @param value The enum numeric value on the wire for simple to set.
* @return This builder for chaining.
*/
public Builder setSimpleValue(int value) {
innerTypeCase_ = 1;
innerType_ = value;
onChanged();
return this;
}
/**
*
* One of the simple comparison behaviors is used
*
*
* .substrait.ComparisonJoinKey.SimpleComparisonType simple = 1;
* @return The simple.
*/
@java.lang.Override
public io.substrait.proto.ComparisonJoinKey.SimpleComparisonType getSimple() {
if (innerTypeCase_ == 1) {
io.substrait.proto.ComparisonJoinKey.SimpleComparisonType result = io.substrait.proto.ComparisonJoinKey.SimpleComparisonType.forNumber(
(java.lang.Integer) innerType_);
return result == null ? io.substrait.proto.ComparisonJoinKey.SimpleComparisonType.UNRECOGNIZED : result;
}
return io.substrait.proto.ComparisonJoinKey.SimpleComparisonType.SIMPLE_COMPARISON_TYPE_UNSPECIFIED;
}
/**
*
* One of the simple comparison behaviors is used
*
*
* .substrait.ComparisonJoinKey.SimpleComparisonType simple = 1;
* @param value The simple to set.
* @return This builder for chaining.
*/
public Builder setSimple(io.substrait.proto.ComparisonJoinKey.SimpleComparisonType value) {
if (value == null) {
throw new NullPointerException();
}
innerTypeCase_ = 1;
innerType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* One of the simple comparison behaviors is used
*
*
* .substrait.ComparisonJoinKey.SimpleComparisonType simple = 1;
* @return This builder for chaining.
*/
public Builder clearSimple() {
if (innerTypeCase_ == 1) {
innerTypeCase_ = 0;
innerType_ = null;
onChanged();
}
return this;
}
/**
*
* A custom comparison behavior is used. This can happen, for example, when using
* collations, where we might want to do something like a case-insensitive comparison.
*
* This must be a binary function with a boolean return type
*
*
* uint32 custom_function_reference = 2;
* @return Whether the customFunctionReference field is set.
*/
public boolean hasCustomFunctionReference() {
return innerTypeCase_ == 2;
}
/**
*
* A custom comparison behavior is used. This can happen, for example, when using
* collations, where we might want to do something like a case-insensitive comparison.
*
* This must be a binary function with a boolean return type
*
*
* uint32 custom_function_reference = 2;
* @return The customFunctionReference.
*/
public int getCustomFunctionReference() {
if (innerTypeCase_ == 2) {
return (java.lang.Integer) innerType_;
}
return 0;
}
/**
*
* A custom comparison behavior is used. This can happen, for example, when using
* collations, where we might want to do something like a case-insensitive comparison.
*
* This must be a binary function with a boolean return type
*
*
* uint32 custom_function_reference = 2;
* @param value The customFunctionReference to set.
* @return This builder for chaining.
*/
public Builder setCustomFunctionReference(int value) {
innerTypeCase_ = 2;
innerType_ = value;
onChanged();
return this;
}
/**
*
* A custom comparison behavior is used. This can happen, for example, when using
* collations, where we might want to do something like a case-insensitive comparison.
*
* This must be a binary function with a boolean return type
*
*
* uint32 custom_function_reference = 2;
* @return This builder for chaining.
*/
public Builder clearCustomFunctionReference() {
if (innerTypeCase_ == 2) {
innerTypeCase_ = 0;
innerType_ = null;
onChanged();
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.ComparisonJoinKey.ComparisonType)
}
// @@protoc_insertion_point(class_scope:substrait.ComparisonJoinKey.ComparisonType)
private static final io.substrait.proto.ComparisonJoinKey.ComparisonType DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ComparisonJoinKey.ComparisonType();
}
public static io.substrait.proto.ComparisonJoinKey.ComparisonType getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ComparisonType parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.ComparisonJoinKey.ComparisonType getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int LEFT_FIELD_NUMBER = 1;
private io.substrait.proto.Expression.FieldReference left_;
/**
*
* The key to compare from the left table
*
*
* .substrait.Expression.FieldReference left = 1;
* @return Whether the left field is set.
*/
@java.lang.Override
public boolean hasLeft() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The key to compare from the left table
*
*
* .substrait.Expression.FieldReference left = 1;
* @return The left.
*/
@java.lang.Override
public io.substrait.proto.Expression.FieldReference getLeft() {
return left_ == null ? io.substrait.proto.Expression.FieldReference.getDefaultInstance() : left_;
}
/**
*
* The key to compare from the left table
*
*
* .substrait.Expression.FieldReference left = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression.FieldReferenceOrBuilder getLeftOrBuilder() {
return left_ == null ? io.substrait.proto.Expression.FieldReference.getDefaultInstance() : left_;
}
public static final int RIGHT_FIELD_NUMBER = 2;
private io.substrait.proto.Expression.FieldReference right_;
/**
*
* The key to compare from the right table
*
*
* .substrait.Expression.FieldReference right = 2;
* @return Whether the right field is set.
*/
@java.lang.Override
public boolean hasRight() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The key to compare from the right table
*
*
* .substrait.Expression.FieldReference right = 2;
* @return The right.
*/
@java.lang.Override
public io.substrait.proto.Expression.FieldReference getRight() {
return right_ == null ? io.substrait.proto.Expression.FieldReference.getDefaultInstance() : right_;
}
/**
*
* The key to compare from the right table
*
*
* .substrait.Expression.FieldReference right = 2;
*/
@java.lang.Override
public io.substrait.proto.Expression.FieldReferenceOrBuilder getRightOrBuilder() {
return right_ == null ? io.substrait.proto.Expression.FieldReference.getDefaultInstance() : right_;
}
public static final int COMPARISON_FIELD_NUMBER = 3;
private io.substrait.proto.ComparisonJoinKey.ComparisonType comparison_;
/**
*
* Describes how to compare the two keys
*
*
* .substrait.ComparisonJoinKey.ComparisonType comparison = 3;
* @return Whether the comparison field is set.
*/
@java.lang.Override
public boolean hasComparison() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Describes how to compare the two keys
*
*
* .substrait.ComparisonJoinKey.ComparisonType comparison = 3;
* @return The comparison.
*/
@java.lang.Override
public io.substrait.proto.ComparisonJoinKey.ComparisonType getComparison() {
return comparison_ == null ? io.substrait.proto.ComparisonJoinKey.ComparisonType.getDefaultInstance() : comparison_;
}
/**
*
* Describes how to compare the two keys
*
*
* .substrait.ComparisonJoinKey.ComparisonType comparison = 3;
*/
@java.lang.Override
public io.substrait.proto.ComparisonJoinKey.ComparisonTypeOrBuilder getComparisonOrBuilder() {
return comparison_ == null ? io.substrait.proto.ComparisonJoinKey.ComparisonType.getDefaultInstance() : comparison_;
}
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(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getLeft());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getRight());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getComparison());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLeft());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRight());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getComparison());
}
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 io.substrait.proto.ComparisonJoinKey)) {
return super.equals(obj);
}
io.substrait.proto.ComparisonJoinKey other = (io.substrait.proto.ComparisonJoinKey) obj;
if (hasLeft() != other.hasLeft()) return false;
if (hasLeft()) {
if (!getLeft()
.equals(other.getLeft())) return false;
}
if (hasRight() != other.hasRight()) return false;
if (hasRight()) {
if (!getRight()
.equals(other.getRight())) return false;
}
if (hasComparison() != other.hasComparison()) return false;
if (hasComparison()) {
if (!getComparison()
.equals(other.getComparison())) 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 (hasLeft()) {
hash = (37 * hash) + LEFT_FIELD_NUMBER;
hash = (53 * hash) + getLeft().hashCode();
}
if (hasRight()) {
hash = (37 * hash) + RIGHT_FIELD_NUMBER;
hash = (53 * hash) + getRight().hashCode();
}
if (hasComparison()) {
hash = (37 * hash) + COMPARISON_FIELD_NUMBER;
hash = (53 * hash) + getComparison().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ComparisonJoinKey parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ComparisonJoinKey parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ComparisonJoinKey parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ComparisonJoinKey parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ComparisonJoinKey parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ComparisonJoinKey parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ComparisonJoinKey parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ComparisonJoinKey parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ComparisonJoinKey parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ComparisonJoinKey parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ComparisonJoinKey parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ComparisonJoinKey parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.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(io.substrait.proto.ComparisonJoinKey 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Hash joins and merge joins are a specialization of the general join where the join
* expression is an series of comparisons between fields that are ANDed together. The
* behavior of this comparison is flexible
*
*
* Protobuf type {@code substrait.ComparisonJoinKey}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ComparisonJoinKey)
io.substrait.proto.ComparisonJoinKeyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ComparisonJoinKey_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ComparisonJoinKey_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ComparisonJoinKey.class, io.substrait.proto.ComparisonJoinKey.Builder.class);
}
// Construct using io.substrait.proto.ComparisonJoinKey.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLeftFieldBuilder();
getRightFieldBuilder();
getComparisonFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
left_ = null;
if (leftBuilder_ != null) {
leftBuilder_.dispose();
leftBuilder_ = null;
}
right_ = null;
if (rightBuilder_ != null) {
rightBuilder_.dispose();
rightBuilder_ = null;
}
comparison_ = null;
if (comparisonBuilder_ != null) {
comparisonBuilder_.dispose();
comparisonBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ComparisonJoinKey_descriptor;
}
@java.lang.Override
public io.substrait.proto.ComparisonJoinKey getDefaultInstanceForType() {
return io.substrait.proto.ComparisonJoinKey.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ComparisonJoinKey build() {
io.substrait.proto.ComparisonJoinKey result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ComparisonJoinKey buildPartial() {
io.substrait.proto.ComparisonJoinKey result = new io.substrait.proto.ComparisonJoinKey(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.ComparisonJoinKey result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.left_ = leftBuilder_ == null
? left_
: leftBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.right_ = rightBuilder_ == null
? right_
: rightBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.comparison_ = comparisonBuilder_ == null
? comparison_
: comparisonBuilder_.build();
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.ComparisonJoinKey) {
return mergeFrom((io.substrait.proto.ComparisonJoinKey)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ComparisonJoinKey other) {
if (other == io.substrait.proto.ComparisonJoinKey.getDefaultInstance()) return this;
if (other.hasLeft()) {
mergeLeft(other.getLeft());
}
if (other.hasRight()) {
mergeRight(other.getRight());
}
if (other.hasComparison()) {
mergeComparison(other.getComparison());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.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: {
input.readMessage(
getLeftFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getRightFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getComparisonFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private io.substrait.proto.Expression.FieldReference left_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.FieldReference, io.substrait.proto.Expression.FieldReference.Builder, io.substrait.proto.Expression.FieldReferenceOrBuilder> leftBuilder_;
/**
*
* The key to compare from the left table
*
*
* .substrait.Expression.FieldReference left = 1;
* @return Whether the left field is set.
*/
public boolean hasLeft() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The key to compare from the left table
*
*
* .substrait.Expression.FieldReference left = 1;
* @return The left.
*/
public io.substrait.proto.Expression.FieldReference getLeft() {
if (leftBuilder_ == null) {
return left_ == null ? io.substrait.proto.Expression.FieldReference.getDefaultInstance() : left_;
} else {
return leftBuilder_.getMessage();
}
}
/**
*
* The key to compare from the left table
*
*
* .substrait.Expression.FieldReference left = 1;
*/
public Builder setLeft(io.substrait.proto.Expression.FieldReference value) {
if (leftBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
left_ = value;
} else {
leftBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The key to compare from the left table
*
*
* .substrait.Expression.FieldReference left = 1;
*/
public Builder setLeft(
io.substrait.proto.Expression.FieldReference.Builder builderForValue) {
if (leftBuilder_ == null) {
left_ = builderForValue.build();
} else {
leftBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The key to compare from the left table
*
*
* .substrait.Expression.FieldReference left = 1;
*/
public Builder mergeLeft(io.substrait.proto.Expression.FieldReference value) {
if (leftBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
left_ != null &&
left_ != io.substrait.proto.Expression.FieldReference.getDefaultInstance()) {
getLeftBuilder().mergeFrom(value);
} else {
left_ = value;
}
} else {
leftBuilder_.mergeFrom(value);
}
if (left_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* The key to compare from the left table
*
*
* .substrait.Expression.FieldReference left = 1;
*/
public Builder clearLeft() {
bitField0_ = (bitField0_ & ~0x00000001);
left_ = null;
if (leftBuilder_ != null) {
leftBuilder_.dispose();
leftBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The key to compare from the left table
*
*
* .substrait.Expression.FieldReference left = 1;
*/
public io.substrait.proto.Expression.FieldReference.Builder getLeftBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getLeftFieldBuilder().getBuilder();
}
/**
*
* The key to compare from the left table
*
*
* .substrait.Expression.FieldReference left = 1;
*/
public io.substrait.proto.Expression.FieldReferenceOrBuilder getLeftOrBuilder() {
if (leftBuilder_ != null) {
return leftBuilder_.getMessageOrBuilder();
} else {
return left_ == null ?
io.substrait.proto.Expression.FieldReference.getDefaultInstance() : left_;
}
}
/**
*
* The key to compare from the left table
*
*
* .substrait.Expression.FieldReference left = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.FieldReference, io.substrait.proto.Expression.FieldReference.Builder, io.substrait.proto.Expression.FieldReferenceOrBuilder>
getLeftFieldBuilder() {
if (leftBuilder_ == null) {
leftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.FieldReference, io.substrait.proto.Expression.FieldReference.Builder, io.substrait.proto.Expression.FieldReferenceOrBuilder>(
getLeft(),
getParentForChildren(),
isClean());
left_ = null;
}
return leftBuilder_;
}
private io.substrait.proto.Expression.FieldReference right_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.FieldReference, io.substrait.proto.Expression.FieldReference.Builder, io.substrait.proto.Expression.FieldReferenceOrBuilder> rightBuilder_;
/**
*
* The key to compare from the right table
*
*
* .substrait.Expression.FieldReference right = 2;
* @return Whether the right field is set.
*/
public boolean hasRight() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The key to compare from the right table
*
*
* .substrait.Expression.FieldReference right = 2;
* @return The right.
*/
public io.substrait.proto.Expression.FieldReference getRight() {
if (rightBuilder_ == null) {
return right_ == null ? io.substrait.proto.Expression.FieldReference.getDefaultInstance() : right_;
} else {
return rightBuilder_.getMessage();
}
}
/**
*
* The key to compare from the right table
*
*
* .substrait.Expression.FieldReference right = 2;
*/
public Builder setRight(io.substrait.proto.Expression.FieldReference value) {
if (rightBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
right_ = value;
} else {
rightBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The key to compare from the right table
*
*
* .substrait.Expression.FieldReference right = 2;
*/
public Builder setRight(
io.substrait.proto.Expression.FieldReference.Builder builderForValue) {
if (rightBuilder_ == null) {
right_ = builderForValue.build();
} else {
rightBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The key to compare from the right table
*
*
* .substrait.Expression.FieldReference right = 2;
*/
public Builder mergeRight(io.substrait.proto.Expression.FieldReference value) {
if (rightBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
right_ != null &&
right_ != io.substrait.proto.Expression.FieldReference.getDefaultInstance()) {
getRightBuilder().mergeFrom(value);
} else {
right_ = value;
}
} else {
rightBuilder_.mergeFrom(value);
}
if (right_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* The key to compare from the right table
*
*
* .substrait.Expression.FieldReference right = 2;
*/
public Builder clearRight() {
bitField0_ = (bitField0_ & ~0x00000002);
right_ = null;
if (rightBuilder_ != null) {
rightBuilder_.dispose();
rightBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The key to compare from the right table
*
*
* .substrait.Expression.FieldReference right = 2;
*/
public io.substrait.proto.Expression.FieldReference.Builder getRightBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getRightFieldBuilder().getBuilder();
}
/**
*
* The key to compare from the right table
*
*
* .substrait.Expression.FieldReference right = 2;
*/
public io.substrait.proto.Expression.FieldReferenceOrBuilder getRightOrBuilder() {
if (rightBuilder_ != null) {
return rightBuilder_.getMessageOrBuilder();
} else {
return right_ == null ?
io.substrait.proto.Expression.FieldReference.getDefaultInstance() : right_;
}
}
/**
*
* The key to compare from the right table
*
*
* .substrait.Expression.FieldReference right = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.FieldReference, io.substrait.proto.Expression.FieldReference.Builder, io.substrait.proto.Expression.FieldReferenceOrBuilder>
getRightFieldBuilder() {
if (rightBuilder_ == null) {
rightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.FieldReference, io.substrait.proto.Expression.FieldReference.Builder, io.substrait.proto.Expression.FieldReferenceOrBuilder>(
getRight(),
getParentForChildren(),
isClean());
right_ = null;
}
return rightBuilder_;
}
private io.substrait.proto.ComparisonJoinKey.ComparisonType comparison_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ComparisonJoinKey.ComparisonType, io.substrait.proto.ComparisonJoinKey.ComparisonType.Builder, io.substrait.proto.ComparisonJoinKey.ComparisonTypeOrBuilder> comparisonBuilder_;
/**
*
* Describes how to compare the two keys
*
*
* .substrait.ComparisonJoinKey.ComparisonType comparison = 3;
* @return Whether the comparison field is set.
*/
public boolean hasComparison() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Describes how to compare the two keys
*
*
* .substrait.ComparisonJoinKey.ComparisonType comparison = 3;
* @return The comparison.
*/
public io.substrait.proto.ComparisonJoinKey.ComparisonType getComparison() {
if (comparisonBuilder_ == null) {
return comparison_ == null ? io.substrait.proto.ComparisonJoinKey.ComparisonType.getDefaultInstance() : comparison_;
} else {
return comparisonBuilder_.getMessage();
}
}
/**
*
* Describes how to compare the two keys
*
*
* .substrait.ComparisonJoinKey.ComparisonType comparison = 3;
*/
public Builder setComparison(io.substrait.proto.ComparisonJoinKey.ComparisonType value) {
if (comparisonBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
comparison_ = value;
} else {
comparisonBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Describes how to compare the two keys
*
*
* .substrait.ComparisonJoinKey.ComparisonType comparison = 3;
*/
public Builder setComparison(
io.substrait.proto.ComparisonJoinKey.ComparisonType.Builder builderForValue) {
if (comparisonBuilder_ == null) {
comparison_ = builderForValue.build();
} else {
comparisonBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Describes how to compare the two keys
*
*
* .substrait.ComparisonJoinKey.ComparisonType comparison = 3;
*/
public Builder mergeComparison(io.substrait.proto.ComparisonJoinKey.ComparisonType value) {
if (comparisonBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
comparison_ != null &&
comparison_ != io.substrait.proto.ComparisonJoinKey.ComparisonType.getDefaultInstance()) {
getComparisonBuilder().mergeFrom(value);
} else {
comparison_ = value;
}
} else {
comparisonBuilder_.mergeFrom(value);
}
if (comparison_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* Describes how to compare the two keys
*
*
* .substrait.ComparisonJoinKey.ComparisonType comparison = 3;
*/
public Builder clearComparison() {
bitField0_ = (bitField0_ & ~0x00000004);
comparison_ = null;
if (comparisonBuilder_ != null) {
comparisonBuilder_.dispose();
comparisonBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Describes how to compare the two keys
*
*
* .substrait.ComparisonJoinKey.ComparisonType comparison = 3;
*/
public io.substrait.proto.ComparisonJoinKey.ComparisonType.Builder getComparisonBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getComparisonFieldBuilder().getBuilder();
}
/**
*
* Describes how to compare the two keys
*
*
* .substrait.ComparisonJoinKey.ComparisonType comparison = 3;
*/
public io.substrait.proto.ComparisonJoinKey.ComparisonTypeOrBuilder getComparisonOrBuilder() {
if (comparisonBuilder_ != null) {
return comparisonBuilder_.getMessageOrBuilder();
} else {
return comparison_ == null ?
io.substrait.proto.ComparisonJoinKey.ComparisonType.getDefaultInstance() : comparison_;
}
}
/**
*
* Describes how to compare the two keys
*
*
* .substrait.ComparisonJoinKey.ComparisonType comparison = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ComparisonJoinKey.ComparisonType, io.substrait.proto.ComparisonJoinKey.ComparisonType.Builder, io.substrait.proto.ComparisonJoinKey.ComparisonTypeOrBuilder>
getComparisonFieldBuilder() {
if (comparisonBuilder_ == null) {
comparisonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ComparisonJoinKey.ComparisonType, io.substrait.proto.ComparisonJoinKey.ComparisonType.Builder, io.substrait.proto.ComparisonJoinKey.ComparisonTypeOrBuilder>(
getComparison(),
getParentForChildren(),
isClean());
comparison_ = null;
}
return comparisonBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.ComparisonJoinKey)
}
// @@protoc_insertion_point(class_scope:substrait.ComparisonJoinKey)
private static final io.substrait.proto.ComparisonJoinKey DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ComparisonJoinKey();
}
public static io.substrait.proto.ComparisonJoinKey getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ComparisonJoinKey parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.ComparisonJoinKey getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy