io.substrait.proto.ConsistentPartitionWindowRel 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;
/**
*
* ConsistentPartitionWindowRel provides the ability to perform calculations across sets of rows
* that are related to the current query row. It can be used to execute window functions where
* all the windows share the same partitioning and ordering.
*
*
* Protobuf type {@code substrait.ConsistentPartitionWindowRel}
*/
public final class ConsistentPartitionWindowRel extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ConsistentPartitionWindowRel)
ConsistentPartitionWindowRelOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConsistentPartitionWindowRel.newBuilder() to construct.
private ConsistentPartitionWindowRel(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConsistentPartitionWindowRel() {
windowFunctions_ = java.util.Collections.emptyList();
partitionExpressions_ = java.util.Collections.emptyList();
sorts_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConsistentPartitionWindowRel();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ConsistentPartitionWindowRel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ConsistentPartitionWindowRel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ConsistentPartitionWindowRel.class, io.substrait.proto.ConsistentPartitionWindowRel.Builder.class);
}
public interface WindowRelFunctionOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.ConsistentPartitionWindowRel.WindowRelFunction)
com.google.protobuf.MessageOrBuilder {
/**
* uint32 function_reference = 1;
* @return The functionReference.
*/
int getFunctionReference();
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
java.util.List
getArgumentsList();
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
io.substrait.proto.FunctionArgument getArguments(int index);
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
int getArgumentsCount();
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
java.util.List extends io.substrait.proto.FunctionArgumentOrBuilder>
getArgumentsOrBuilderList();
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
io.substrait.proto.FunctionArgumentOrBuilder getArgumentsOrBuilder(
int index);
/**
* repeated .substrait.FunctionOption options = 11;
*/
java.util.List
getOptionsList();
/**
* repeated .substrait.FunctionOption options = 11;
*/
io.substrait.proto.FunctionOption getOptions(int index);
/**
* repeated .substrait.FunctionOption options = 11;
*/
int getOptionsCount();
/**
* repeated .substrait.FunctionOption options = 11;
*/
java.util.List extends io.substrait.proto.FunctionOptionOrBuilder>
getOptionsOrBuilderList();
/**
* repeated .substrait.FunctionOption options = 11;
*/
io.substrait.proto.FunctionOptionOrBuilder getOptionsOrBuilder(
int index);
/**
* .substrait.Type output_type = 7;
* @return Whether the outputType field is set.
*/
boolean hasOutputType();
/**
* .substrait.Type output_type = 7;
* @return The outputType.
*/
io.substrait.proto.Type getOutputType();
/**
* .substrait.Type output_type = 7;
*/
io.substrait.proto.TypeOrBuilder getOutputTypeOrBuilder();
/**
* .substrait.AggregationPhase phase = 6;
* @return The enum numeric value on the wire for phase.
*/
int getPhaseValue();
/**
* .substrait.AggregationPhase phase = 6;
* @return The phase.
*/
io.substrait.proto.AggregationPhase getPhase();
/**
* .substrait.AggregateFunction.AggregationInvocation invocation = 10;
* @return The enum numeric value on the wire for invocation.
*/
int getInvocationValue();
/**
* .substrait.AggregateFunction.AggregationInvocation invocation = 10;
* @return The invocation.
*/
io.substrait.proto.AggregateFunction.AggregationInvocation getInvocation();
/**
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
* @return Whether the lowerBound field is set.
*/
boolean hasLowerBound();
/**
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
* @return The lowerBound.
*/
io.substrait.proto.Expression.WindowFunction.Bound getLowerBound();
/**
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
*/
io.substrait.proto.Expression.WindowFunction.BoundOrBuilder getLowerBoundOrBuilder();
/**
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
* @return Whether the upperBound field is set.
*/
boolean hasUpperBound();
/**
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
* @return The upperBound.
*/
io.substrait.proto.Expression.WindowFunction.Bound getUpperBound();
/**
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
*/
io.substrait.proto.Expression.WindowFunction.BoundOrBuilder getUpperBoundOrBuilder();
/**
* .substrait.Expression.WindowFunction.BoundsType bounds_type = 12;
* @return The enum numeric value on the wire for boundsType.
*/
int getBoundsTypeValue();
/**
* .substrait.Expression.WindowFunction.BoundsType bounds_type = 12;
* @return The boundsType.
*/
io.substrait.proto.Expression.WindowFunction.BoundsType getBoundsType();
}
/**
*
* This message mirrors the `WindowFunction` message but removes the fields defining the partition,
* sorts, and bounds, since those must be consistent across the various functions in this rel. Refer
* to the `WindowFunction` message for a description of these fields.
*
*
* Protobuf type {@code substrait.ConsistentPartitionWindowRel.WindowRelFunction}
*/
public static final class WindowRelFunction extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ConsistentPartitionWindowRel.WindowRelFunction)
WindowRelFunctionOrBuilder {
private static final long serialVersionUID = 0L;
// Use WindowRelFunction.newBuilder() to construct.
private WindowRelFunction(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WindowRelFunction() {
arguments_ = java.util.Collections.emptyList();
options_ = java.util.Collections.emptyList();
phase_ = 0;
invocation_ = 0;
boundsType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WindowRelFunction();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ConsistentPartitionWindowRel_WindowRelFunction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ConsistentPartitionWindowRel_WindowRelFunction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction.class, io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction.Builder.class);
}
private int bitField0_;
public static final int FUNCTION_REFERENCE_FIELD_NUMBER = 1;
private int functionReference_ = 0;
/**
* uint32 function_reference = 1;
* @return The functionReference.
*/
@java.lang.Override
public int getFunctionReference() {
return functionReference_;
}
public static final int ARGUMENTS_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private java.util.List arguments_;
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
@java.lang.Override
public java.util.List getArgumentsList() {
return arguments_;
}
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.FunctionArgumentOrBuilder>
getArgumentsOrBuilderList() {
return arguments_;
}
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
@java.lang.Override
public int getArgumentsCount() {
return arguments_.size();
}
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
@java.lang.Override
public io.substrait.proto.FunctionArgument getArguments(int index) {
return arguments_.get(index);
}
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
@java.lang.Override
public io.substrait.proto.FunctionArgumentOrBuilder getArgumentsOrBuilder(
int index) {
return arguments_.get(index);
}
public static final int OPTIONS_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private java.util.List options_;
/**
* repeated .substrait.FunctionOption options = 11;
*/
@java.lang.Override
public java.util.List getOptionsList() {
return options_;
}
/**
* repeated .substrait.FunctionOption options = 11;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.FunctionOptionOrBuilder>
getOptionsOrBuilderList() {
return options_;
}
/**
* repeated .substrait.FunctionOption options = 11;
*/
@java.lang.Override
public int getOptionsCount() {
return options_.size();
}
/**
* repeated .substrait.FunctionOption options = 11;
*/
@java.lang.Override
public io.substrait.proto.FunctionOption getOptions(int index) {
return options_.get(index);
}
/**
* repeated .substrait.FunctionOption options = 11;
*/
@java.lang.Override
public io.substrait.proto.FunctionOptionOrBuilder getOptionsOrBuilder(
int index) {
return options_.get(index);
}
public static final int OUTPUT_TYPE_FIELD_NUMBER = 7;
private io.substrait.proto.Type outputType_;
/**
* .substrait.Type output_type = 7;
* @return Whether the outputType field is set.
*/
@java.lang.Override
public boolean hasOutputType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .substrait.Type output_type = 7;
* @return The outputType.
*/
@java.lang.Override
public io.substrait.proto.Type getOutputType() {
return outputType_ == null ? io.substrait.proto.Type.getDefaultInstance() : outputType_;
}
/**
* .substrait.Type output_type = 7;
*/
@java.lang.Override
public io.substrait.proto.TypeOrBuilder getOutputTypeOrBuilder() {
return outputType_ == null ? io.substrait.proto.Type.getDefaultInstance() : outputType_;
}
public static final int PHASE_FIELD_NUMBER = 6;
private int phase_ = 0;
/**
* .substrait.AggregationPhase phase = 6;
* @return The enum numeric value on the wire for phase.
*/
@java.lang.Override public int getPhaseValue() {
return phase_;
}
/**
* .substrait.AggregationPhase phase = 6;
* @return The phase.
*/
@java.lang.Override public io.substrait.proto.AggregationPhase getPhase() {
io.substrait.proto.AggregationPhase result = io.substrait.proto.AggregationPhase.forNumber(phase_);
return result == null ? io.substrait.proto.AggregationPhase.UNRECOGNIZED : result;
}
public static final int INVOCATION_FIELD_NUMBER = 10;
private int invocation_ = 0;
/**
* .substrait.AggregateFunction.AggregationInvocation invocation = 10;
* @return The enum numeric value on the wire for invocation.
*/
@java.lang.Override public int getInvocationValue() {
return invocation_;
}
/**
* .substrait.AggregateFunction.AggregationInvocation invocation = 10;
* @return The invocation.
*/
@java.lang.Override public io.substrait.proto.AggregateFunction.AggregationInvocation getInvocation() {
io.substrait.proto.AggregateFunction.AggregationInvocation result = io.substrait.proto.AggregateFunction.AggregationInvocation.forNumber(invocation_);
return result == null ? io.substrait.proto.AggregateFunction.AggregationInvocation.UNRECOGNIZED : result;
}
public static final int LOWER_BOUND_FIELD_NUMBER = 5;
private io.substrait.proto.Expression.WindowFunction.Bound lowerBound_;
/**
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
* @return Whether the lowerBound field is set.
*/
@java.lang.Override
public boolean hasLowerBound() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
* @return The lowerBound.
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound getLowerBound() {
return lowerBound_ == null ? io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance() : lowerBound_;
}
/**
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.BoundOrBuilder getLowerBoundOrBuilder() {
return lowerBound_ == null ? io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance() : lowerBound_;
}
public static final int UPPER_BOUND_FIELD_NUMBER = 4;
private io.substrait.proto.Expression.WindowFunction.Bound upperBound_;
/**
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
* @return Whether the upperBound field is set.
*/
@java.lang.Override
public boolean hasUpperBound() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
* @return The upperBound.
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound getUpperBound() {
return upperBound_ == null ? io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance() : upperBound_;
}
/**
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.BoundOrBuilder getUpperBoundOrBuilder() {
return upperBound_ == null ? io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance() : upperBound_;
}
public static final int BOUNDS_TYPE_FIELD_NUMBER = 12;
private int boundsType_ = 0;
/**
* .substrait.Expression.WindowFunction.BoundsType bounds_type = 12;
* @return The enum numeric value on the wire for boundsType.
*/
@java.lang.Override public int getBoundsTypeValue() {
return boundsType_;
}
/**
* .substrait.Expression.WindowFunction.BoundsType bounds_type = 12;
* @return The boundsType.
*/
@java.lang.Override public io.substrait.proto.Expression.WindowFunction.BoundsType getBoundsType() {
io.substrait.proto.Expression.WindowFunction.BoundsType result = io.substrait.proto.Expression.WindowFunction.BoundsType.forNumber(boundsType_);
return result == null ? io.substrait.proto.Expression.WindowFunction.BoundsType.UNRECOGNIZED : result;
}
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 (functionReference_ != 0) {
output.writeUInt32(1, functionReference_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getUpperBound());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(5, getLowerBound());
}
if (phase_ != io.substrait.proto.AggregationPhase.AGGREGATION_PHASE_UNSPECIFIED.getNumber()) {
output.writeEnum(6, phase_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(7, getOutputType());
}
for (int i = 0; i < arguments_.size(); i++) {
output.writeMessage(9, arguments_.get(i));
}
if (invocation_ != io.substrait.proto.AggregateFunction.AggregationInvocation.AGGREGATION_INVOCATION_UNSPECIFIED.getNumber()) {
output.writeEnum(10, invocation_);
}
for (int i = 0; i < options_.size(); i++) {
output.writeMessage(11, options_.get(i));
}
if (boundsType_ != io.substrait.proto.Expression.WindowFunction.BoundsType.BOUNDS_TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(12, boundsType_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (functionReference_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, functionReference_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getUpperBound());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getLowerBound());
}
if (phase_ != io.substrait.proto.AggregationPhase.AGGREGATION_PHASE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, phase_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getOutputType());
}
for (int i = 0; i < arguments_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, arguments_.get(i));
}
if (invocation_ != io.substrait.proto.AggregateFunction.AggregationInvocation.AGGREGATION_INVOCATION_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(10, invocation_);
}
for (int i = 0; i < options_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, options_.get(i));
}
if (boundsType_ != io.substrait.proto.Expression.WindowFunction.BoundsType.BOUNDS_TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(12, boundsType_);
}
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.ConsistentPartitionWindowRel.WindowRelFunction)) {
return super.equals(obj);
}
io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction other = (io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction) obj;
if (getFunctionReference()
!= other.getFunctionReference()) return false;
if (!getArgumentsList()
.equals(other.getArgumentsList())) return false;
if (!getOptionsList()
.equals(other.getOptionsList())) return false;
if (hasOutputType() != other.hasOutputType()) return false;
if (hasOutputType()) {
if (!getOutputType()
.equals(other.getOutputType())) return false;
}
if (phase_ != other.phase_) return false;
if (invocation_ != other.invocation_) return false;
if (hasLowerBound() != other.hasLowerBound()) return false;
if (hasLowerBound()) {
if (!getLowerBound()
.equals(other.getLowerBound())) return false;
}
if (hasUpperBound() != other.hasUpperBound()) return false;
if (hasUpperBound()) {
if (!getUpperBound()
.equals(other.getUpperBound())) return false;
}
if (boundsType_ != other.boundsType_) 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();
hash = (37 * hash) + FUNCTION_REFERENCE_FIELD_NUMBER;
hash = (53 * hash) + getFunctionReference();
if (getArgumentsCount() > 0) {
hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER;
hash = (53 * hash) + getArgumentsList().hashCode();
}
if (getOptionsCount() > 0) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptionsList().hashCode();
}
if (hasOutputType()) {
hash = (37 * hash) + OUTPUT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getOutputType().hashCode();
}
hash = (37 * hash) + PHASE_FIELD_NUMBER;
hash = (53 * hash) + phase_;
hash = (37 * hash) + INVOCATION_FIELD_NUMBER;
hash = (53 * hash) + invocation_;
if (hasLowerBound()) {
hash = (37 * hash) + LOWER_BOUND_FIELD_NUMBER;
hash = (53 * hash) + getLowerBound().hashCode();
}
if (hasUpperBound()) {
hash = (37 * hash) + UPPER_BOUND_FIELD_NUMBER;
hash = (53 * hash) + getUpperBound().hashCode();
}
hash = (37 * hash) + BOUNDS_TYPE_FIELD_NUMBER;
hash = (53 * hash) + boundsType_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction 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.ConsistentPartitionWindowRel.WindowRelFunction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction 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.ConsistentPartitionWindowRel.WindowRelFunction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction 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.ConsistentPartitionWindowRel.WindowRelFunction parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction 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.ConsistentPartitionWindowRel.WindowRelFunction parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction 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.ConsistentPartitionWindowRel.WindowRelFunction 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;
}
/**
*
* This message mirrors the `WindowFunction` message but removes the fields defining the partition,
* sorts, and bounds, since those must be consistent across the various functions in this rel. Refer
* to the `WindowFunction` message for a description of these fields.
*
*
* Protobuf type {@code substrait.ConsistentPartitionWindowRel.WindowRelFunction}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ConsistentPartitionWindowRel.WindowRelFunction)
io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunctionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ConsistentPartitionWindowRel_WindowRelFunction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ConsistentPartitionWindowRel_WindowRelFunction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction.class, io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction.Builder.class);
}
// Construct using io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getArgumentsFieldBuilder();
getOptionsFieldBuilder();
getOutputTypeFieldBuilder();
getLowerBoundFieldBuilder();
getUpperBoundFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
functionReference_ = 0;
if (argumentsBuilder_ == null) {
arguments_ = java.util.Collections.emptyList();
} else {
arguments_ = null;
argumentsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (optionsBuilder_ == null) {
options_ = java.util.Collections.emptyList();
} else {
options_ = null;
optionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
outputType_ = null;
if (outputTypeBuilder_ != null) {
outputTypeBuilder_.dispose();
outputTypeBuilder_ = null;
}
phase_ = 0;
invocation_ = 0;
lowerBound_ = null;
if (lowerBoundBuilder_ != null) {
lowerBoundBuilder_.dispose();
lowerBoundBuilder_ = null;
}
upperBound_ = null;
if (upperBoundBuilder_ != null) {
upperBoundBuilder_.dispose();
upperBoundBuilder_ = null;
}
boundsType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ConsistentPartitionWindowRel_WindowRelFunction_descriptor;
}
@java.lang.Override
public io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction getDefaultInstanceForType() {
return io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction build() {
io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction buildPartial() {
io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction result = new io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction result) {
if (argumentsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
arguments_ = java.util.Collections.unmodifiableList(arguments_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.arguments_ = arguments_;
} else {
result.arguments_ = argumentsBuilder_.build();
}
if (optionsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
options_ = java.util.Collections.unmodifiableList(options_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.options_ = options_;
} else {
result.options_ = optionsBuilder_.build();
}
}
private void buildPartial0(io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.functionReference_ = functionReference_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.outputType_ = outputTypeBuilder_ == null
? outputType_
: outputTypeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.phase_ = phase_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.invocation_ = invocation_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.lowerBound_ = lowerBoundBuilder_ == null
? lowerBound_
: lowerBoundBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.upperBound_ = upperBoundBuilder_ == null
? upperBound_
: upperBoundBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.boundsType_ = boundsType_;
}
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.ConsistentPartitionWindowRel.WindowRelFunction) {
return mergeFrom((io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction other) {
if (other == io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction.getDefaultInstance()) return this;
if (other.getFunctionReference() != 0) {
setFunctionReference(other.getFunctionReference());
}
if (argumentsBuilder_ == null) {
if (!other.arguments_.isEmpty()) {
if (arguments_.isEmpty()) {
arguments_ = other.arguments_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureArgumentsIsMutable();
arguments_.addAll(other.arguments_);
}
onChanged();
}
} else {
if (!other.arguments_.isEmpty()) {
if (argumentsBuilder_.isEmpty()) {
argumentsBuilder_.dispose();
argumentsBuilder_ = null;
arguments_ = other.arguments_;
bitField0_ = (bitField0_ & ~0x00000002);
argumentsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getArgumentsFieldBuilder() : null;
} else {
argumentsBuilder_.addAllMessages(other.arguments_);
}
}
}
if (optionsBuilder_ == null) {
if (!other.options_.isEmpty()) {
if (options_.isEmpty()) {
options_ = other.options_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureOptionsIsMutable();
options_.addAll(other.options_);
}
onChanged();
}
} else {
if (!other.options_.isEmpty()) {
if (optionsBuilder_.isEmpty()) {
optionsBuilder_.dispose();
optionsBuilder_ = null;
options_ = other.options_;
bitField0_ = (bitField0_ & ~0x00000004);
optionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOptionsFieldBuilder() : null;
} else {
optionsBuilder_.addAllMessages(other.options_);
}
}
}
if (other.hasOutputType()) {
mergeOutputType(other.getOutputType());
}
if (other.phase_ != 0) {
setPhaseValue(other.getPhaseValue());
}
if (other.invocation_ != 0) {
setInvocationValue(other.getInvocationValue());
}
if (other.hasLowerBound()) {
mergeLowerBound(other.getLowerBound());
}
if (other.hasUpperBound()) {
mergeUpperBound(other.getUpperBound());
}
if (other.boundsType_ != 0) {
setBoundsTypeValue(other.getBoundsTypeValue());
}
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: {
functionReference_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 34: {
input.readMessage(
getUpperBoundFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 34
case 42: {
input.readMessage(
getLowerBoundFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 42
case 48: {
phase_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 48
case 58: {
input.readMessage(
getOutputTypeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 58
case 74: {
io.substrait.proto.FunctionArgument m =
input.readMessage(
io.substrait.proto.FunctionArgument.parser(),
extensionRegistry);
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.add(m);
} else {
argumentsBuilder_.addMessage(m);
}
break;
} // case 74
case 80: {
invocation_ = input.readEnum();
bitField0_ |= 0x00000020;
break;
} // case 80
case 90: {
io.substrait.proto.FunctionOption m =
input.readMessage(
io.substrait.proto.FunctionOption.parser(),
extensionRegistry);
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
options_.add(m);
} else {
optionsBuilder_.addMessage(m);
}
break;
} // case 90
case 96: {
boundsType_ = input.readEnum();
bitField0_ |= 0x00000100;
break;
} // case 96
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 int functionReference_ ;
/**
* uint32 function_reference = 1;
* @return The functionReference.
*/
@java.lang.Override
public int getFunctionReference() {
return functionReference_;
}
/**
* uint32 function_reference = 1;
* @param value The functionReference to set.
* @return This builder for chaining.
*/
public Builder setFunctionReference(int value) {
functionReference_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* uint32 function_reference = 1;
* @return This builder for chaining.
*/
public Builder clearFunctionReference() {
bitField0_ = (bitField0_ & ~0x00000001);
functionReference_ = 0;
onChanged();
return this;
}
private java.util.List arguments_ =
java.util.Collections.emptyList();
private void ensureArgumentsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
arguments_ = new java.util.ArrayList(arguments_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.FunctionArgument, io.substrait.proto.FunctionArgument.Builder, io.substrait.proto.FunctionArgumentOrBuilder> argumentsBuilder_;
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
public java.util.List getArgumentsList() {
if (argumentsBuilder_ == null) {
return java.util.Collections.unmodifiableList(arguments_);
} else {
return argumentsBuilder_.getMessageList();
}
}
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
public int getArgumentsCount() {
if (argumentsBuilder_ == null) {
return arguments_.size();
} else {
return argumentsBuilder_.getCount();
}
}
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
public io.substrait.proto.FunctionArgument getArguments(int index) {
if (argumentsBuilder_ == null) {
return arguments_.get(index);
} else {
return argumentsBuilder_.getMessage(index);
}
}
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
public Builder setArguments(
int index, io.substrait.proto.FunctionArgument value) {
if (argumentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.set(index, value);
onChanged();
} else {
argumentsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
public Builder setArguments(
int index, io.substrait.proto.FunctionArgument.Builder builderForValue) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.set(index, builderForValue.build());
onChanged();
} else {
argumentsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
public Builder addArguments(io.substrait.proto.FunctionArgument value) {
if (argumentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.add(value);
onChanged();
} else {
argumentsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
public Builder addArguments(
int index, io.substrait.proto.FunctionArgument value) {
if (argumentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.add(index, value);
onChanged();
} else {
argumentsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
public Builder addArguments(
io.substrait.proto.FunctionArgument.Builder builderForValue) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.add(builderForValue.build());
onChanged();
} else {
argumentsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
public Builder addArguments(
int index, io.substrait.proto.FunctionArgument.Builder builderForValue) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.add(index, builderForValue.build());
onChanged();
} else {
argumentsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
public Builder addAllArguments(
java.lang.Iterable extends io.substrait.proto.FunctionArgument> values) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, arguments_);
onChanged();
} else {
argumentsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
public Builder clearArguments() {
if (argumentsBuilder_ == null) {
arguments_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
argumentsBuilder_.clear();
}
return this;
}
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
public Builder removeArguments(int index) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.remove(index);
onChanged();
} else {
argumentsBuilder_.remove(index);
}
return this;
}
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
public io.substrait.proto.FunctionArgument.Builder getArgumentsBuilder(
int index) {
return getArgumentsFieldBuilder().getBuilder(index);
}
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
public io.substrait.proto.FunctionArgumentOrBuilder getArgumentsOrBuilder(
int index) {
if (argumentsBuilder_ == null) {
return arguments_.get(index); } else {
return argumentsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
public java.util.List extends io.substrait.proto.FunctionArgumentOrBuilder>
getArgumentsOrBuilderList() {
if (argumentsBuilder_ != null) {
return argumentsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(arguments_);
}
}
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
public io.substrait.proto.FunctionArgument.Builder addArgumentsBuilder() {
return getArgumentsFieldBuilder().addBuilder(
io.substrait.proto.FunctionArgument.getDefaultInstance());
}
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
public io.substrait.proto.FunctionArgument.Builder addArgumentsBuilder(
int index) {
return getArgumentsFieldBuilder().addBuilder(
index, io.substrait.proto.FunctionArgument.getDefaultInstance());
}
/**
* repeated .substrait.FunctionArgument arguments = 9;
*/
public java.util.List
getArgumentsBuilderList() {
return getArgumentsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.FunctionArgument, io.substrait.proto.FunctionArgument.Builder, io.substrait.proto.FunctionArgumentOrBuilder>
getArgumentsFieldBuilder() {
if (argumentsBuilder_ == null) {
argumentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.FunctionArgument, io.substrait.proto.FunctionArgument.Builder, io.substrait.proto.FunctionArgumentOrBuilder>(
arguments_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
arguments_ = null;
}
return argumentsBuilder_;
}
private java.util.List options_ =
java.util.Collections.emptyList();
private void ensureOptionsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
options_ = new java.util.ArrayList(options_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.FunctionOption, io.substrait.proto.FunctionOption.Builder, io.substrait.proto.FunctionOptionOrBuilder> optionsBuilder_;
/**
* repeated .substrait.FunctionOption options = 11;
*/
public java.util.List getOptionsList() {
if (optionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(options_);
} else {
return optionsBuilder_.getMessageList();
}
}
/**
* repeated .substrait.FunctionOption options = 11;
*/
public int getOptionsCount() {
if (optionsBuilder_ == null) {
return options_.size();
} else {
return optionsBuilder_.getCount();
}
}
/**
* repeated .substrait.FunctionOption options = 11;
*/
public io.substrait.proto.FunctionOption getOptions(int index) {
if (optionsBuilder_ == null) {
return options_.get(index);
} else {
return optionsBuilder_.getMessage(index);
}
}
/**
* repeated .substrait.FunctionOption options = 11;
*/
public Builder setOptions(
int index, io.substrait.proto.FunctionOption value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionsIsMutable();
options_.set(index, value);
onChanged();
} else {
optionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .substrait.FunctionOption options = 11;
*/
public Builder setOptions(
int index, io.substrait.proto.FunctionOption.Builder builderForValue) {
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
options_.set(index, builderForValue.build());
onChanged();
} else {
optionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.FunctionOption options = 11;
*/
public Builder addOptions(io.substrait.proto.FunctionOption value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionsIsMutable();
options_.add(value);
onChanged();
} else {
optionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .substrait.FunctionOption options = 11;
*/
public Builder addOptions(
int index, io.substrait.proto.FunctionOption value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionsIsMutable();
options_.add(index, value);
onChanged();
} else {
optionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .substrait.FunctionOption options = 11;
*/
public Builder addOptions(
io.substrait.proto.FunctionOption.Builder builderForValue) {
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
options_.add(builderForValue.build());
onChanged();
} else {
optionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .substrait.FunctionOption options = 11;
*/
public Builder addOptions(
int index, io.substrait.proto.FunctionOption.Builder builderForValue) {
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
options_.add(index, builderForValue.build());
onChanged();
} else {
optionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.FunctionOption options = 11;
*/
public Builder addAllOptions(
java.lang.Iterable extends io.substrait.proto.FunctionOption> values) {
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, options_);
onChanged();
} else {
optionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .substrait.FunctionOption options = 11;
*/
public Builder clearOptions() {
if (optionsBuilder_ == null) {
options_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
optionsBuilder_.clear();
}
return this;
}
/**
* repeated .substrait.FunctionOption options = 11;
*/
public Builder removeOptions(int index) {
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
options_.remove(index);
onChanged();
} else {
optionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .substrait.FunctionOption options = 11;
*/
public io.substrait.proto.FunctionOption.Builder getOptionsBuilder(
int index) {
return getOptionsFieldBuilder().getBuilder(index);
}
/**
* repeated .substrait.FunctionOption options = 11;
*/
public io.substrait.proto.FunctionOptionOrBuilder getOptionsOrBuilder(
int index) {
if (optionsBuilder_ == null) {
return options_.get(index); } else {
return optionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .substrait.FunctionOption options = 11;
*/
public java.util.List extends io.substrait.proto.FunctionOptionOrBuilder>
getOptionsOrBuilderList() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(options_);
}
}
/**
* repeated .substrait.FunctionOption options = 11;
*/
public io.substrait.proto.FunctionOption.Builder addOptionsBuilder() {
return getOptionsFieldBuilder().addBuilder(
io.substrait.proto.FunctionOption.getDefaultInstance());
}
/**
* repeated .substrait.FunctionOption options = 11;
*/
public io.substrait.proto.FunctionOption.Builder addOptionsBuilder(
int index) {
return getOptionsFieldBuilder().addBuilder(
index, io.substrait.proto.FunctionOption.getDefaultInstance());
}
/**
* repeated .substrait.FunctionOption options = 11;
*/
public java.util.List
getOptionsBuilderList() {
return getOptionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.FunctionOption, io.substrait.proto.FunctionOption.Builder, io.substrait.proto.FunctionOptionOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.FunctionOption, io.substrait.proto.FunctionOption.Builder, io.substrait.proto.FunctionOptionOrBuilder>(
options_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
private io.substrait.proto.Type outputType_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Type, io.substrait.proto.Type.Builder, io.substrait.proto.TypeOrBuilder> outputTypeBuilder_;
/**
* .substrait.Type output_type = 7;
* @return Whether the outputType field is set.
*/
public boolean hasOutputType() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .substrait.Type output_type = 7;
* @return The outputType.
*/
public io.substrait.proto.Type getOutputType() {
if (outputTypeBuilder_ == null) {
return outputType_ == null ? io.substrait.proto.Type.getDefaultInstance() : outputType_;
} else {
return outputTypeBuilder_.getMessage();
}
}
/**
* .substrait.Type output_type = 7;
*/
public Builder setOutputType(io.substrait.proto.Type value) {
if (outputTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
outputType_ = value;
} else {
outputTypeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .substrait.Type output_type = 7;
*/
public Builder setOutputType(
io.substrait.proto.Type.Builder builderForValue) {
if (outputTypeBuilder_ == null) {
outputType_ = builderForValue.build();
} else {
outputTypeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .substrait.Type output_type = 7;
*/
public Builder mergeOutputType(io.substrait.proto.Type value) {
if (outputTypeBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
outputType_ != null &&
outputType_ != io.substrait.proto.Type.getDefaultInstance()) {
getOutputTypeBuilder().mergeFrom(value);
} else {
outputType_ = value;
}
} else {
outputTypeBuilder_.mergeFrom(value);
}
if (outputType_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* .substrait.Type output_type = 7;
*/
public Builder clearOutputType() {
bitField0_ = (bitField0_ & ~0x00000008);
outputType_ = null;
if (outputTypeBuilder_ != null) {
outputTypeBuilder_.dispose();
outputTypeBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.Type output_type = 7;
*/
public io.substrait.proto.Type.Builder getOutputTypeBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getOutputTypeFieldBuilder().getBuilder();
}
/**
* .substrait.Type output_type = 7;
*/
public io.substrait.proto.TypeOrBuilder getOutputTypeOrBuilder() {
if (outputTypeBuilder_ != null) {
return outputTypeBuilder_.getMessageOrBuilder();
} else {
return outputType_ == null ?
io.substrait.proto.Type.getDefaultInstance() : outputType_;
}
}
/**
* .substrait.Type output_type = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Type, io.substrait.proto.Type.Builder, io.substrait.proto.TypeOrBuilder>
getOutputTypeFieldBuilder() {
if (outputTypeBuilder_ == null) {
outputTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Type, io.substrait.proto.Type.Builder, io.substrait.proto.TypeOrBuilder>(
getOutputType(),
getParentForChildren(),
isClean());
outputType_ = null;
}
return outputTypeBuilder_;
}
private int phase_ = 0;
/**
* .substrait.AggregationPhase phase = 6;
* @return The enum numeric value on the wire for phase.
*/
@java.lang.Override public int getPhaseValue() {
return phase_;
}
/**
* .substrait.AggregationPhase phase = 6;
* @param value The enum numeric value on the wire for phase to set.
* @return This builder for chaining.
*/
public Builder setPhaseValue(int value) {
phase_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .substrait.AggregationPhase phase = 6;
* @return The phase.
*/
@java.lang.Override
public io.substrait.proto.AggregationPhase getPhase() {
io.substrait.proto.AggregationPhase result = io.substrait.proto.AggregationPhase.forNumber(phase_);
return result == null ? io.substrait.proto.AggregationPhase.UNRECOGNIZED : result;
}
/**
* .substrait.AggregationPhase phase = 6;
* @param value The phase to set.
* @return This builder for chaining.
*/
public Builder setPhase(io.substrait.proto.AggregationPhase value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
phase_ = value.getNumber();
onChanged();
return this;
}
/**
* .substrait.AggregationPhase phase = 6;
* @return This builder for chaining.
*/
public Builder clearPhase() {
bitField0_ = (bitField0_ & ~0x00000010);
phase_ = 0;
onChanged();
return this;
}
private int invocation_ = 0;
/**
* .substrait.AggregateFunction.AggregationInvocation invocation = 10;
* @return The enum numeric value on the wire for invocation.
*/
@java.lang.Override public int getInvocationValue() {
return invocation_;
}
/**
* .substrait.AggregateFunction.AggregationInvocation invocation = 10;
* @param value The enum numeric value on the wire for invocation to set.
* @return This builder for chaining.
*/
public Builder setInvocationValue(int value) {
invocation_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .substrait.AggregateFunction.AggregationInvocation invocation = 10;
* @return The invocation.
*/
@java.lang.Override
public io.substrait.proto.AggregateFunction.AggregationInvocation getInvocation() {
io.substrait.proto.AggregateFunction.AggregationInvocation result = io.substrait.proto.AggregateFunction.AggregationInvocation.forNumber(invocation_);
return result == null ? io.substrait.proto.AggregateFunction.AggregationInvocation.UNRECOGNIZED : result;
}
/**
* .substrait.AggregateFunction.AggregationInvocation invocation = 10;
* @param value The invocation to set.
* @return This builder for chaining.
*/
public Builder setInvocation(io.substrait.proto.AggregateFunction.AggregationInvocation value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
invocation_ = value.getNumber();
onChanged();
return this;
}
/**
* .substrait.AggregateFunction.AggregationInvocation invocation = 10;
* @return This builder for chaining.
*/
public Builder clearInvocation() {
bitField0_ = (bitField0_ & ~0x00000020);
invocation_ = 0;
onChanged();
return this;
}
private io.substrait.proto.Expression.WindowFunction.Bound lowerBound_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound, io.substrait.proto.Expression.WindowFunction.Bound.Builder, io.substrait.proto.Expression.WindowFunction.BoundOrBuilder> lowerBoundBuilder_;
/**
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
* @return Whether the lowerBound field is set.
*/
public boolean hasLowerBound() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
* @return The lowerBound.
*/
public io.substrait.proto.Expression.WindowFunction.Bound getLowerBound() {
if (lowerBoundBuilder_ == null) {
return lowerBound_ == null ? io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance() : lowerBound_;
} else {
return lowerBoundBuilder_.getMessage();
}
}
/**
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
*/
public Builder setLowerBound(io.substrait.proto.Expression.WindowFunction.Bound value) {
if (lowerBoundBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lowerBound_ = value;
} else {
lowerBoundBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
*/
public Builder setLowerBound(
io.substrait.proto.Expression.WindowFunction.Bound.Builder builderForValue) {
if (lowerBoundBuilder_ == null) {
lowerBound_ = builderForValue.build();
} else {
lowerBoundBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
*/
public Builder mergeLowerBound(io.substrait.proto.Expression.WindowFunction.Bound value) {
if (lowerBoundBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
lowerBound_ != null &&
lowerBound_ != io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance()) {
getLowerBoundBuilder().mergeFrom(value);
} else {
lowerBound_ = value;
}
} else {
lowerBoundBuilder_.mergeFrom(value);
}
if (lowerBound_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
*/
public Builder clearLowerBound() {
bitField0_ = (bitField0_ & ~0x00000040);
lowerBound_ = null;
if (lowerBoundBuilder_ != null) {
lowerBoundBuilder_.dispose();
lowerBoundBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
*/
public io.substrait.proto.Expression.WindowFunction.Bound.Builder getLowerBoundBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getLowerBoundFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
*/
public io.substrait.proto.Expression.WindowFunction.BoundOrBuilder getLowerBoundOrBuilder() {
if (lowerBoundBuilder_ != null) {
return lowerBoundBuilder_.getMessageOrBuilder();
} else {
return lowerBound_ == null ?
io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance() : lowerBound_;
}
}
/**
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound, io.substrait.proto.Expression.WindowFunction.Bound.Builder, io.substrait.proto.Expression.WindowFunction.BoundOrBuilder>
getLowerBoundFieldBuilder() {
if (lowerBoundBuilder_ == null) {
lowerBoundBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound, io.substrait.proto.Expression.WindowFunction.Bound.Builder, io.substrait.proto.Expression.WindowFunction.BoundOrBuilder>(
getLowerBound(),
getParentForChildren(),
isClean());
lowerBound_ = null;
}
return lowerBoundBuilder_;
}
private io.substrait.proto.Expression.WindowFunction.Bound upperBound_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound, io.substrait.proto.Expression.WindowFunction.Bound.Builder, io.substrait.proto.Expression.WindowFunction.BoundOrBuilder> upperBoundBuilder_;
/**
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
* @return Whether the upperBound field is set.
*/
public boolean hasUpperBound() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
* @return The upperBound.
*/
public io.substrait.proto.Expression.WindowFunction.Bound getUpperBound() {
if (upperBoundBuilder_ == null) {
return upperBound_ == null ? io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance() : upperBound_;
} else {
return upperBoundBuilder_.getMessage();
}
}
/**
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
*/
public Builder setUpperBound(io.substrait.proto.Expression.WindowFunction.Bound value) {
if (upperBoundBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
upperBound_ = value;
} else {
upperBoundBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
*/
public Builder setUpperBound(
io.substrait.proto.Expression.WindowFunction.Bound.Builder builderForValue) {
if (upperBoundBuilder_ == null) {
upperBound_ = builderForValue.build();
} else {
upperBoundBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
*/
public Builder mergeUpperBound(io.substrait.proto.Expression.WindowFunction.Bound value) {
if (upperBoundBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
upperBound_ != null &&
upperBound_ != io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance()) {
getUpperBoundBuilder().mergeFrom(value);
} else {
upperBound_ = value;
}
} else {
upperBoundBuilder_.mergeFrom(value);
}
if (upperBound_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
*/
public Builder clearUpperBound() {
bitField0_ = (bitField0_ & ~0x00000080);
upperBound_ = null;
if (upperBoundBuilder_ != null) {
upperBoundBuilder_.dispose();
upperBoundBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
*/
public io.substrait.proto.Expression.WindowFunction.Bound.Builder getUpperBoundBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getUpperBoundFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
*/
public io.substrait.proto.Expression.WindowFunction.BoundOrBuilder getUpperBoundOrBuilder() {
if (upperBoundBuilder_ != null) {
return upperBoundBuilder_.getMessageOrBuilder();
} else {
return upperBound_ == null ?
io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance() : upperBound_;
}
}
/**
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound, io.substrait.proto.Expression.WindowFunction.Bound.Builder, io.substrait.proto.Expression.WindowFunction.BoundOrBuilder>
getUpperBoundFieldBuilder() {
if (upperBoundBuilder_ == null) {
upperBoundBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound, io.substrait.proto.Expression.WindowFunction.Bound.Builder, io.substrait.proto.Expression.WindowFunction.BoundOrBuilder>(
getUpperBound(),
getParentForChildren(),
isClean());
upperBound_ = null;
}
return upperBoundBuilder_;
}
private int boundsType_ = 0;
/**
* .substrait.Expression.WindowFunction.BoundsType bounds_type = 12;
* @return The enum numeric value on the wire for boundsType.
*/
@java.lang.Override public int getBoundsTypeValue() {
return boundsType_;
}
/**
* .substrait.Expression.WindowFunction.BoundsType bounds_type = 12;
* @param value The enum numeric value on the wire for boundsType to set.
* @return This builder for chaining.
*/
public Builder setBoundsTypeValue(int value) {
boundsType_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* .substrait.Expression.WindowFunction.BoundsType bounds_type = 12;
* @return The boundsType.
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.BoundsType getBoundsType() {
io.substrait.proto.Expression.WindowFunction.BoundsType result = io.substrait.proto.Expression.WindowFunction.BoundsType.forNumber(boundsType_);
return result == null ? io.substrait.proto.Expression.WindowFunction.BoundsType.UNRECOGNIZED : result;
}
/**
* .substrait.Expression.WindowFunction.BoundsType bounds_type = 12;
* @param value The boundsType to set.
* @return This builder for chaining.
*/
public Builder setBoundsType(io.substrait.proto.Expression.WindowFunction.BoundsType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
boundsType_ = value.getNumber();
onChanged();
return this;
}
/**
* .substrait.Expression.WindowFunction.BoundsType bounds_type = 12;
* @return This builder for chaining.
*/
public Builder clearBoundsType() {
bitField0_ = (bitField0_ & ~0x00000100);
boundsType_ = 0;
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.ConsistentPartitionWindowRel.WindowRelFunction)
}
// @@protoc_insertion_point(class_scope:substrait.ConsistentPartitionWindowRel.WindowRelFunction)
private static final io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction();
}
public static io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WindowRelFunction 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.ConsistentPartitionWindowRel.WindowRelFunction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int COMMON_FIELD_NUMBER = 1;
private io.substrait.proto.RelCommon common_;
/**
* .substrait.RelCommon common = 1;
* @return Whether the common field is set.
*/
@java.lang.Override
public boolean hasCommon() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .substrait.RelCommon common = 1;
* @return The common.
*/
@java.lang.Override
public io.substrait.proto.RelCommon getCommon() {
return common_ == null ? io.substrait.proto.RelCommon.getDefaultInstance() : common_;
}
/**
* .substrait.RelCommon common = 1;
*/
@java.lang.Override
public io.substrait.proto.RelCommonOrBuilder getCommonOrBuilder() {
return common_ == null ? io.substrait.proto.RelCommon.getDefaultInstance() : common_;
}
public static final int INPUT_FIELD_NUMBER = 2;
private io.substrait.proto.Rel input_;
/**
* .substrait.Rel input = 2;
* @return Whether the input field is set.
*/
@java.lang.Override
public boolean hasInput() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .substrait.Rel input = 2;
* @return The input.
*/
@java.lang.Override
public io.substrait.proto.Rel getInput() {
return input_ == null ? io.substrait.proto.Rel.getDefaultInstance() : input_;
}
/**
* .substrait.Rel input = 2;
*/
@java.lang.Override
public io.substrait.proto.RelOrBuilder getInputOrBuilder() {
return input_ == null ? io.substrait.proto.Rel.getDefaultInstance() : input_;
}
public static final int WINDOW_FUNCTIONS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List windowFunctions_;
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
@java.lang.Override
public java.util.List getWindowFunctionsList() {
return windowFunctions_;
}
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunctionOrBuilder>
getWindowFunctionsOrBuilderList() {
return windowFunctions_;
}
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
@java.lang.Override
public int getWindowFunctionsCount() {
return windowFunctions_.size();
}
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
@java.lang.Override
public io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction getWindowFunctions(int index) {
return windowFunctions_.get(index);
}
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
@java.lang.Override
public io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunctionOrBuilder getWindowFunctionsOrBuilder(
int index) {
return windowFunctions_.get(index);
}
public static final int PARTITION_EXPRESSIONS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List partitionExpressions_;
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
@java.lang.Override
public java.util.List getPartitionExpressionsList() {
return partitionExpressions_;
}
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getPartitionExpressionsOrBuilderList() {
return partitionExpressions_;
}
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
@java.lang.Override
public int getPartitionExpressionsCount() {
return partitionExpressions_.size();
}
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
@java.lang.Override
public io.substrait.proto.Expression getPartitionExpressions(int index) {
return partitionExpressions_.get(index);
}
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
@java.lang.Override
public io.substrait.proto.ExpressionOrBuilder getPartitionExpressionsOrBuilder(
int index) {
return partitionExpressions_.get(index);
}
public static final int SORTS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List sorts_;
/**
* repeated .substrait.SortField sorts = 5;
*/
@java.lang.Override
public java.util.List getSortsList() {
return sorts_;
}
/**
* repeated .substrait.SortField sorts = 5;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.SortFieldOrBuilder>
getSortsOrBuilderList() {
return sorts_;
}
/**
* repeated .substrait.SortField sorts = 5;
*/
@java.lang.Override
public int getSortsCount() {
return sorts_.size();
}
/**
* repeated .substrait.SortField sorts = 5;
*/
@java.lang.Override
public io.substrait.proto.SortField getSorts(int index) {
return sorts_.get(index);
}
/**
* repeated .substrait.SortField sorts = 5;
*/
@java.lang.Override
public io.substrait.proto.SortFieldOrBuilder getSortsOrBuilder(
int index) {
return sorts_.get(index);
}
public static final int ADVANCED_EXTENSION_FIELD_NUMBER = 10;
private io.substrait.proto.AdvancedExtension advancedExtension_;
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return Whether the advancedExtension field is set.
*/
@java.lang.Override
public boolean hasAdvancedExtension() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return The advancedExtension.
*/
@java.lang.Override
public io.substrait.proto.AdvancedExtension getAdvancedExtension() {
return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
@java.lang.Override
public io.substrait.proto.AdvancedExtensionOrBuilder getAdvancedExtensionOrBuilder() {
return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_;
}
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, getCommon());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getInput());
}
for (int i = 0; i < windowFunctions_.size(); i++) {
output.writeMessage(3, windowFunctions_.get(i));
}
for (int i = 0; i < partitionExpressions_.size(); i++) {
output.writeMessage(4, partitionExpressions_.get(i));
}
for (int i = 0; i < sorts_.size(); i++) {
output.writeMessage(5, sorts_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(10, getAdvancedExtension());
}
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, getCommon());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getInput());
}
for (int i = 0; i < windowFunctions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, windowFunctions_.get(i));
}
for (int i = 0; i < partitionExpressions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, partitionExpressions_.get(i));
}
for (int i = 0; i < sorts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, sorts_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getAdvancedExtension());
}
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.ConsistentPartitionWindowRel)) {
return super.equals(obj);
}
io.substrait.proto.ConsistentPartitionWindowRel other = (io.substrait.proto.ConsistentPartitionWindowRel) obj;
if (hasCommon() != other.hasCommon()) return false;
if (hasCommon()) {
if (!getCommon()
.equals(other.getCommon())) return false;
}
if (hasInput() != other.hasInput()) return false;
if (hasInput()) {
if (!getInput()
.equals(other.getInput())) return false;
}
if (!getWindowFunctionsList()
.equals(other.getWindowFunctionsList())) return false;
if (!getPartitionExpressionsList()
.equals(other.getPartitionExpressionsList())) return false;
if (!getSortsList()
.equals(other.getSortsList())) return false;
if (hasAdvancedExtension() != other.hasAdvancedExtension()) return false;
if (hasAdvancedExtension()) {
if (!getAdvancedExtension()
.equals(other.getAdvancedExtension())) 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 (hasCommon()) {
hash = (37 * hash) + COMMON_FIELD_NUMBER;
hash = (53 * hash) + getCommon().hashCode();
}
if (hasInput()) {
hash = (37 * hash) + INPUT_FIELD_NUMBER;
hash = (53 * hash) + getInput().hashCode();
}
if (getWindowFunctionsCount() > 0) {
hash = (37 * hash) + WINDOW_FUNCTIONS_FIELD_NUMBER;
hash = (53 * hash) + getWindowFunctionsList().hashCode();
}
if (getPartitionExpressionsCount() > 0) {
hash = (37 * hash) + PARTITION_EXPRESSIONS_FIELD_NUMBER;
hash = (53 * hash) + getPartitionExpressionsList().hashCode();
}
if (getSortsCount() > 0) {
hash = (37 * hash) + SORTS_FIELD_NUMBER;
hash = (53 * hash) + getSortsList().hashCode();
}
if (hasAdvancedExtension()) {
hash = (37 * hash) + ADVANCED_EXTENSION_FIELD_NUMBER;
hash = (53 * hash) + getAdvancedExtension().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ConsistentPartitionWindowRel parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ConsistentPartitionWindowRel 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.ConsistentPartitionWindowRel parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ConsistentPartitionWindowRel 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.ConsistentPartitionWindowRel parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ConsistentPartitionWindowRel parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ConsistentPartitionWindowRel parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ConsistentPartitionWindowRel 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.ConsistentPartitionWindowRel parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ConsistentPartitionWindowRel 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.ConsistentPartitionWindowRel parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ConsistentPartitionWindowRel 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.ConsistentPartitionWindowRel 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;
}
/**
*
* ConsistentPartitionWindowRel provides the ability to perform calculations across sets of rows
* that are related to the current query row. It can be used to execute window functions where
* all the windows share the same partitioning and ordering.
*
*
* Protobuf type {@code substrait.ConsistentPartitionWindowRel}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ConsistentPartitionWindowRel)
io.substrait.proto.ConsistentPartitionWindowRelOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ConsistentPartitionWindowRel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ConsistentPartitionWindowRel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ConsistentPartitionWindowRel.class, io.substrait.proto.ConsistentPartitionWindowRel.Builder.class);
}
// Construct using io.substrait.proto.ConsistentPartitionWindowRel.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCommonFieldBuilder();
getInputFieldBuilder();
getWindowFunctionsFieldBuilder();
getPartitionExpressionsFieldBuilder();
getSortsFieldBuilder();
getAdvancedExtensionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
common_ = null;
if (commonBuilder_ != null) {
commonBuilder_.dispose();
commonBuilder_ = null;
}
input_ = null;
if (inputBuilder_ != null) {
inputBuilder_.dispose();
inputBuilder_ = null;
}
if (windowFunctionsBuilder_ == null) {
windowFunctions_ = java.util.Collections.emptyList();
} else {
windowFunctions_ = null;
windowFunctionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (partitionExpressionsBuilder_ == null) {
partitionExpressions_ = java.util.Collections.emptyList();
} else {
partitionExpressions_ = null;
partitionExpressionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (sortsBuilder_ == null) {
sorts_ = java.util.Collections.emptyList();
} else {
sorts_ = null;
sortsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
advancedExtension_ = null;
if (advancedExtensionBuilder_ != null) {
advancedExtensionBuilder_.dispose();
advancedExtensionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ConsistentPartitionWindowRel_descriptor;
}
@java.lang.Override
public io.substrait.proto.ConsistentPartitionWindowRel getDefaultInstanceForType() {
return io.substrait.proto.ConsistentPartitionWindowRel.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ConsistentPartitionWindowRel build() {
io.substrait.proto.ConsistentPartitionWindowRel result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ConsistentPartitionWindowRel buildPartial() {
io.substrait.proto.ConsistentPartitionWindowRel result = new io.substrait.proto.ConsistentPartitionWindowRel(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.substrait.proto.ConsistentPartitionWindowRel result) {
if (windowFunctionsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
windowFunctions_ = java.util.Collections.unmodifiableList(windowFunctions_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.windowFunctions_ = windowFunctions_;
} else {
result.windowFunctions_ = windowFunctionsBuilder_.build();
}
if (partitionExpressionsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
partitionExpressions_ = java.util.Collections.unmodifiableList(partitionExpressions_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.partitionExpressions_ = partitionExpressions_;
} else {
result.partitionExpressions_ = partitionExpressionsBuilder_.build();
}
if (sortsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
sorts_ = java.util.Collections.unmodifiableList(sorts_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.sorts_ = sorts_;
} else {
result.sorts_ = sortsBuilder_.build();
}
}
private void buildPartial0(io.substrait.proto.ConsistentPartitionWindowRel result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.common_ = commonBuilder_ == null
? common_
: commonBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.input_ = inputBuilder_ == null
? input_
: inputBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.advancedExtension_ = advancedExtensionBuilder_ == null
? advancedExtension_
: advancedExtensionBuilder_.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.ConsistentPartitionWindowRel) {
return mergeFrom((io.substrait.proto.ConsistentPartitionWindowRel)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ConsistentPartitionWindowRel other) {
if (other == io.substrait.proto.ConsistentPartitionWindowRel.getDefaultInstance()) return this;
if (other.hasCommon()) {
mergeCommon(other.getCommon());
}
if (other.hasInput()) {
mergeInput(other.getInput());
}
if (windowFunctionsBuilder_ == null) {
if (!other.windowFunctions_.isEmpty()) {
if (windowFunctions_.isEmpty()) {
windowFunctions_ = other.windowFunctions_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureWindowFunctionsIsMutable();
windowFunctions_.addAll(other.windowFunctions_);
}
onChanged();
}
} else {
if (!other.windowFunctions_.isEmpty()) {
if (windowFunctionsBuilder_.isEmpty()) {
windowFunctionsBuilder_.dispose();
windowFunctionsBuilder_ = null;
windowFunctions_ = other.windowFunctions_;
bitField0_ = (bitField0_ & ~0x00000004);
windowFunctionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getWindowFunctionsFieldBuilder() : null;
} else {
windowFunctionsBuilder_.addAllMessages(other.windowFunctions_);
}
}
}
if (partitionExpressionsBuilder_ == null) {
if (!other.partitionExpressions_.isEmpty()) {
if (partitionExpressions_.isEmpty()) {
partitionExpressions_ = other.partitionExpressions_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensurePartitionExpressionsIsMutable();
partitionExpressions_.addAll(other.partitionExpressions_);
}
onChanged();
}
} else {
if (!other.partitionExpressions_.isEmpty()) {
if (partitionExpressionsBuilder_.isEmpty()) {
partitionExpressionsBuilder_.dispose();
partitionExpressionsBuilder_ = null;
partitionExpressions_ = other.partitionExpressions_;
bitField0_ = (bitField0_ & ~0x00000008);
partitionExpressionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPartitionExpressionsFieldBuilder() : null;
} else {
partitionExpressionsBuilder_.addAllMessages(other.partitionExpressions_);
}
}
}
if (sortsBuilder_ == null) {
if (!other.sorts_.isEmpty()) {
if (sorts_.isEmpty()) {
sorts_ = other.sorts_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureSortsIsMutable();
sorts_.addAll(other.sorts_);
}
onChanged();
}
} else {
if (!other.sorts_.isEmpty()) {
if (sortsBuilder_.isEmpty()) {
sortsBuilder_.dispose();
sortsBuilder_ = null;
sorts_ = other.sorts_;
bitField0_ = (bitField0_ & ~0x00000010);
sortsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSortsFieldBuilder() : null;
} else {
sortsBuilder_.addAllMessages(other.sorts_);
}
}
}
if (other.hasAdvancedExtension()) {
mergeAdvancedExtension(other.getAdvancedExtension());
}
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(
getCommonFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getInputFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction m =
input.readMessage(
io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction.parser(),
extensionRegistry);
if (windowFunctionsBuilder_ == null) {
ensureWindowFunctionsIsMutable();
windowFunctions_.add(m);
} else {
windowFunctionsBuilder_.addMessage(m);
}
break;
} // case 26
case 34: {
io.substrait.proto.Expression m =
input.readMessage(
io.substrait.proto.Expression.parser(),
extensionRegistry);
if (partitionExpressionsBuilder_ == null) {
ensurePartitionExpressionsIsMutable();
partitionExpressions_.add(m);
} else {
partitionExpressionsBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
io.substrait.proto.SortField m =
input.readMessage(
io.substrait.proto.SortField.parser(),
extensionRegistry);
if (sortsBuilder_ == null) {
ensureSortsIsMutable();
sorts_.add(m);
} else {
sortsBuilder_.addMessage(m);
}
break;
} // case 42
case 82: {
input.readMessage(
getAdvancedExtensionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 82
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.RelCommon common_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.RelCommon, io.substrait.proto.RelCommon.Builder, io.substrait.proto.RelCommonOrBuilder> commonBuilder_;
/**
* .substrait.RelCommon common = 1;
* @return Whether the common field is set.
*/
public boolean hasCommon() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .substrait.RelCommon common = 1;
* @return The common.
*/
public io.substrait.proto.RelCommon getCommon() {
if (commonBuilder_ == null) {
return common_ == null ? io.substrait.proto.RelCommon.getDefaultInstance() : common_;
} else {
return commonBuilder_.getMessage();
}
}
/**
* .substrait.RelCommon common = 1;
*/
public Builder setCommon(io.substrait.proto.RelCommon value) {
if (commonBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
common_ = value;
} else {
commonBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .substrait.RelCommon common = 1;
*/
public Builder setCommon(
io.substrait.proto.RelCommon.Builder builderForValue) {
if (commonBuilder_ == null) {
common_ = builderForValue.build();
} else {
commonBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .substrait.RelCommon common = 1;
*/
public Builder mergeCommon(io.substrait.proto.RelCommon value) {
if (commonBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
common_ != null &&
common_ != io.substrait.proto.RelCommon.getDefaultInstance()) {
getCommonBuilder().mergeFrom(value);
} else {
common_ = value;
}
} else {
commonBuilder_.mergeFrom(value);
}
if (common_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .substrait.RelCommon common = 1;
*/
public Builder clearCommon() {
bitField0_ = (bitField0_ & ~0x00000001);
common_ = null;
if (commonBuilder_ != null) {
commonBuilder_.dispose();
commonBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.RelCommon common = 1;
*/
public io.substrait.proto.RelCommon.Builder getCommonBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getCommonFieldBuilder().getBuilder();
}
/**
* .substrait.RelCommon common = 1;
*/
public io.substrait.proto.RelCommonOrBuilder getCommonOrBuilder() {
if (commonBuilder_ != null) {
return commonBuilder_.getMessageOrBuilder();
} else {
return common_ == null ?
io.substrait.proto.RelCommon.getDefaultInstance() : common_;
}
}
/**
* .substrait.RelCommon common = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.RelCommon, io.substrait.proto.RelCommon.Builder, io.substrait.proto.RelCommonOrBuilder>
getCommonFieldBuilder() {
if (commonBuilder_ == null) {
commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.RelCommon, io.substrait.proto.RelCommon.Builder, io.substrait.proto.RelCommonOrBuilder>(
getCommon(),
getParentForChildren(),
isClean());
common_ = null;
}
return commonBuilder_;
}
private io.substrait.proto.Rel input_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder> inputBuilder_;
/**
* .substrait.Rel input = 2;
* @return Whether the input field is set.
*/
public boolean hasInput() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .substrait.Rel input = 2;
* @return The input.
*/
public io.substrait.proto.Rel getInput() {
if (inputBuilder_ == null) {
return input_ == null ? io.substrait.proto.Rel.getDefaultInstance() : input_;
} else {
return inputBuilder_.getMessage();
}
}
/**
* .substrait.Rel input = 2;
*/
public Builder setInput(io.substrait.proto.Rel value) {
if (inputBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
input_ = value;
} else {
inputBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .substrait.Rel input = 2;
*/
public Builder setInput(
io.substrait.proto.Rel.Builder builderForValue) {
if (inputBuilder_ == null) {
input_ = builderForValue.build();
} else {
inputBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .substrait.Rel input = 2;
*/
public Builder mergeInput(io.substrait.proto.Rel value) {
if (inputBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
input_ != null &&
input_ != io.substrait.proto.Rel.getDefaultInstance()) {
getInputBuilder().mergeFrom(value);
} else {
input_ = value;
}
} else {
inputBuilder_.mergeFrom(value);
}
if (input_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .substrait.Rel input = 2;
*/
public Builder clearInput() {
bitField0_ = (bitField0_ & ~0x00000002);
input_ = null;
if (inputBuilder_ != null) {
inputBuilder_.dispose();
inputBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.Rel input = 2;
*/
public io.substrait.proto.Rel.Builder getInputBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getInputFieldBuilder().getBuilder();
}
/**
* .substrait.Rel input = 2;
*/
public io.substrait.proto.RelOrBuilder getInputOrBuilder() {
if (inputBuilder_ != null) {
return inputBuilder_.getMessageOrBuilder();
} else {
return input_ == null ?
io.substrait.proto.Rel.getDefaultInstance() : input_;
}
}
/**
* .substrait.Rel input = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder>
getInputFieldBuilder() {
if (inputBuilder_ == null) {
inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder>(
getInput(),
getParentForChildren(),
isClean());
input_ = null;
}
return inputBuilder_;
}
private java.util.List windowFunctions_ =
java.util.Collections.emptyList();
private void ensureWindowFunctionsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
windowFunctions_ = new java.util.ArrayList(windowFunctions_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction, io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction.Builder, io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunctionOrBuilder> windowFunctionsBuilder_;
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
public java.util.List getWindowFunctionsList() {
if (windowFunctionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(windowFunctions_);
} else {
return windowFunctionsBuilder_.getMessageList();
}
}
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
public int getWindowFunctionsCount() {
if (windowFunctionsBuilder_ == null) {
return windowFunctions_.size();
} else {
return windowFunctionsBuilder_.getCount();
}
}
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
public io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction getWindowFunctions(int index) {
if (windowFunctionsBuilder_ == null) {
return windowFunctions_.get(index);
} else {
return windowFunctionsBuilder_.getMessage(index);
}
}
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
public Builder setWindowFunctions(
int index, io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction value) {
if (windowFunctionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWindowFunctionsIsMutable();
windowFunctions_.set(index, value);
onChanged();
} else {
windowFunctionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
public Builder setWindowFunctions(
int index, io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction.Builder builderForValue) {
if (windowFunctionsBuilder_ == null) {
ensureWindowFunctionsIsMutable();
windowFunctions_.set(index, builderForValue.build());
onChanged();
} else {
windowFunctionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
public Builder addWindowFunctions(io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction value) {
if (windowFunctionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWindowFunctionsIsMutable();
windowFunctions_.add(value);
onChanged();
} else {
windowFunctionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
public Builder addWindowFunctions(
int index, io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction value) {
if (windowFunctionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWindowFunctionsIsMutable();
windowFunctions_.add(index, value);
onChanged();
} else {
windowFunctionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
public Builder addWindowFunctions(
io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction.Builder builderForValue) {
if (windowFunctionsBuilder_ == null) {
ensureWindowFunctionsIsMutable();
windowFunctions_.add(builderForValue.build());
onChanged();
} else {
windowFunctionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
public Builder addWindowFunctions(
int index, io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction.Builder builderForValue) {
if (windowFunctionsBuilder_ == null) {
ensureWindowFunctionsIsMutable();
windowFunctions_.add(index, builderForValue.build());
onChanged();
} else {
windowFunctionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
public Builder addAllWindowFunctions(
java.lang.Iterable extends io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction> values) {
if (windowFunctionsBuilder_ == null) {
ensureWindowFunctionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, windowFunctions_);
onChanged();
} else {
windowFunctionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
public Builder clearWindowFunctions() {
if (windowFunctionsBuilder_ == null) {
windowFunctions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
windowFunctionsBuilder_.clear();
}
return this;
}
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
public Builder removeWindowFunctions(int index) {
if (windowFunctionsBuilder_ == null) {
ensureWindowFunctionsIsMutable();
windowFunctions_.remove(index);
onChanged();
} else {
windowFunctionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
public io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction.Builder getWindowFunctionsBuilder(
int index) {
return getWindowFunctionsFieldBuilder().getBuilder(index);
}
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
public io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunctionOrBuilder getWindowFunctionsOrBuilder(
int index) {
if (windowFunctionsBuilder_ == null) {
return windowFunctions_.get(index); } else {
return windowFunctionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
public java.util.List extends io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunctionOrBuilder>
getWindowFunctionsOrBuilderList() {
if (windowFunctionsBuilder_ != null) {
return windowFunctionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(windowFunctions_);
}
}
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
public io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction.Builder addWindowFunctionsBuilder() {
return getWindowFunctionsFieldBuilder().addBuilder(
io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction.getDefaultInstance());
}
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
public io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction.Builder addWindowFunctionsBuilder(
int index) {
return getWindowFunctionsFieldBuilder().addBuilder(
index, io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction.getDefaultInstance());
}
/**
* repeated .substrait.ConsistentPartitionWindowRel.WindowRelFunction window_functions = 3;
*/
public java.util.List
getWindowFunctionsBuilderList() {
return getWindowFunctionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction, io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction.Builder, io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunctionOrBuilder>
getWindowFunctionsFieldBuilder() {
if (windowFunctionsBuilder_ == null) {
windowFunctionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction, io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunction.Builder, io.substrait.proto.ConsistentPartitionWindowRel.WindowRelFunctionOrBuilder>(
windowFunctions_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
windowFunctions_ = null;
}
return windowFunctionsBuilder_;
}
private java.util.List partitionExpressions_ =
java.util.Collections.emptyList();
private void ensurePartitionExpressionsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
partitionExpressions_ = new java.util.ArrayList(partitionExpressions_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> partitionExpressionsBuilder_;
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
public java.util.List getPartitionExpressionsList() {
if (partitionExpressionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(partitionExpressions_);
} else {
return partitionExpressionsBuilder_.getMessageList();
}
}
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
public int getPartitionExpressionsCount() {
if (partitionExpressionsBuilder_ == null) {
return partitionExpressions_.size();
} else {
return partitionExpressionsBuilder_.getCount();
}
}
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
public io.substrait.proto.Expression getPartitionExpressions(int index) {
if (partitionExpressionsBuilder_ == null) {
return partitionExpressions_.get(index);
} else {
return partitionExpressionsBuilder_.getMessage(index);
}
}
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
public Builder setPartitionExpressions(
int index, io.substrait.proto.Expression value) {
if (partitionExpressionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartitionExpressionsIsMutable();
partitionExpressions_.set(index, value);
onChanged();
} else {
partitionExpressionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
public Builder setPartitionExpressions(
int index, io.substrait.proto.Expression.Builder builderForValue) {
if (partitionExpressionsBuilder_ == null) {
ensurePartitionExpressionsIsMutable();
partitionExpressions_.set(index, builderForValue.build());
onChanged();
} else {
partitionExpressionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
public Builder addPartitionExpressions(io.substrait.proto.Expression value) {
if (partitionExpressionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartitionExpressionsIsMutable();
partitionExpressions_.add(value);
onChanged();
} else {
partitionExpressionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
public Builder addPartitionExpressions(
int index, io.substrait.proto.Expression value) {
if (partitionExpressionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartitionExpressionsIsMutable();
partitionExpressions_.add(index, value);
onChanged();
} else {
partitionExpressionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
public Builder addPartitionExpressions(
io.substrait.proto.Expression.Builder builderForValue) {
if (partitionExpressionsBuilder_ == null) {
ensurePartitionExpressionsIsMutable();
partitionExpressions_.add(builderForValue.build());
onChanged();
} else {
partitionExpressionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
public Builder addPartitionExpressions(
int index, io.substrait.proto.Expression.Builder builderForValue) {
if (partitionExpressionsBuilder_ == null) {
ensurePartitionExpressionsIsMutable();
partitionExpressions_.add(index, builderForValue.build());
onChanged();
} else {
partitionExpressionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
public Builder addAllPartitionExpressions(
java.lang.Iterable extends io.substrait.proto.Expression> values) {
if (partitionExpressionsBuilder_ == null) {
ensurePartitionExpressionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, partitionExpressions_);
onChanged();
} else {
partitionExpressionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
public Builder clearPartitionExpressions() {
if (partitionExpressionsBuilder_ == null) {
partitionExpressions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
partitionExpressionsBuilder_.clear();
}
return this;
}
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
public Builder removePartitionExpressions(int index) {
if (partitionExpressionsBuilder_ == null) {
ensurePartitionExpressionsIsMutable();
partitionExpressions_.remove(index);
onChanged();
} else {
partitionExpressionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
public io.substrait.proto.Expression.Builder getPartitionExpressionsBuilder(
int index) {
return getPartitionExpressionsFieldBuilder().getBuilder(index);
}
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
public io.substrait.proto.ExpressionOrBuilder getPartitionExpressionsOrBuilder(
int index) {
if (partitionExpressionsBuilder_ == null) {
return partitionExpressions_.get(index); } else {
return partitionExpressionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
public java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getPartitionExpressionsOrBuilderList() {
if (partitionExpressionsBuilder_ != null) {
return partitionExpressionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(partitionExpressions_);
}
}
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
public io.substrait.proto.Expression.Builder addPartitionExpressionsBuilder() {
return getPartitionExpressionsFieldBuilder().addBuilder(
io.substrait.proto.Expression.getDefaultInstance());
}
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
public io.substrait.proto.Expression.Builder addPartitionExpressionsBuilder(
int index) {
return getPartitionExpressionsFieldBuilder().addBuilder(
index, io.substrait.proto.Expression.getDefaultInstance());
}
/**
* repeated .substrait.Expression partition_expressions = 4;
*/
public java.util.List
getPartitionExpressionsBuilderList() {
return getPartitionExpressionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>
getPartitionExpressionsFieldBuilder() {
if (partitionExpressionsBuilder_ == null) {
partitionExpressionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>(
partitionExpressions_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
partitionExpressions_ = null;
}
return partitionExpressionsBuilder_;
}
private java.util.List sorts_ =
java.util.Collections.emptyList();
private void ensureSortsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
sorts_ = new java.util.ArrayList(sorts_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.SortField, io.substrait.proto.SortField.Builder, io.substrait.proto.SortFieldOrBuilder> sortsBuilder_;
/**
* repeated .substrait.SortField sorts = 5;
*/
public java.util.List getSortsList() {
if (sortsBuilder_ == null) {
return java.util.Collections.unmodifiableList(sorts_);
} else {
return sortsBuilder_.getMessageList();
}
}
/**
* repeated .substrait.SortField sorts = 5;
*/
public int getSortsCount() {
if (sortsBuilder_ == null) {
return sorts_.size();
} else {
return sortsBuilder_.getCount();
}
}
/**
* repeated .substrait.SortField sorts = 5;
*/
public io.substrait.proto.SortField getSorts(int index) {
if (sortsBuilder_ == null) {
return sorts_.get(index);
} else {
return sortsBuilder_.getMessage(index);
}
}
/**
* repeated .substrait.SortField sorts = 5;
*/
public Builder setSorts(
int index, io.substrait.proto.SortField value) {
if (sortsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSortsIsMutable();
sorts_.set(index, value);
onChanged();
} else {
sortsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .substrait.SortField sorts = 5;
*/
public Builder setSorts(
int index, io.substrait.proto.SortField.Builder builderForValue) {
if (sortsBuilder_ == null) {
ensureSortsIsMutable();
sorts_.set(index, builderForValue.build());
onChanged();
} else {
sortsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.SortField sorts = 5;
*/
public Builder addSorts(io.substrait.proto.SortField value) {
if (sortsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSortsIsMutable();
sorts_.add(value);
onChanged();
} else {
sortsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .substrait.SortField sorts = 5;
*/
public Builder addSorts(
int index, io.substrait.proto.SortField value) {
if (sortsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSortsIsMutable();
sorts_.add(index, value);
onChanged();
} else {
sortsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .substrait.SortField sorts = 5;
*/
public Builder addSorts(
io.substrait.proto.SortField.Builder builderForValue) {
if (sortsBuilder_ == null) {
ensureSortsIsMutable();
sorts_.add(builderForValue.build());
onChanged();
} else {
sortsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .substrait.SortField sorts = 5;
*/
public Builder addSorts(
int index, io.substrait.proto.SortField.Builder builderForValue) {
if (sortsBuilder_ == null) {
ensureSortsIsMutable();
sorts_.add(index, builderForValue.build());
onChanged();
} else {
sortsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.SortField sorts = 5;
*/
public Builder addAllSorts(
java.lang.Iterable extends io.substrait.proto.SortField> values) {
if (sortsBuilder_ == null) {
ensureSortsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sorts_);
onChanged();
} else {
sortsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .substrait.SortField sorts = 5;
*/
public Builder clearSorts() {
if (sortsBuilder_ == null) {
sorts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
sortsBuilder_.clear();
}
return this;
}
/**
* repeated .substrait.SortField sorts = 5;
*/
public Builder removeSorts(int index) {
if (sortsBuilder_ == null) {
ensureSortsIsMutable();
sorts_.remove(index);
onChanged();
} else {
sortsBuilder_.remove(index);
}
return this;
}
/**
* repeated .substrait.SortField sorts = 5;
*/
public io.substrait.proto.SortField.Builder getSortsBuilder(
int index) {
return getSortsFieldBuilder().getBuilder(index);
}
/**
* repeated .substrait.SortField sorts = 5;
*/
public io.substrait.proto.SortFieldOrBuilder getSortsOrBuilder(
int index) {
if (sortsBuilder_ == null) {
return sorts_.get(index); } else {
return sortsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .substrait.SortField sorts = 5;
*/
public java.util.List extends io.substrait.proto.SortFieldOrBuilder>
getSortsOrBuilderList() {
if (sortsBuilder_ != null) {
return sortsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(sorts_);
}
}
/**
* repeated .substrait.SortField sorts = 5;
*/
public io.substrait.proto.SortField.Builder addSortsBuilder() {
return getSortsFieldBuilder().addBuilder(
io.substrait.proto.SortField.getDefaultInstance());
}
/**
* repeated .substrait.SortField sorts = 5;
*/
public io.substrait.proto.SortField.Builder addSortsBuilder(
int index) {
return getSortsFieldBuilder().addBuilder(
index, io.substrait.proto.SortField.getDefaultInstance());
}
/**
* repeated .substrait.SortField sorts = 5;
*/
public java.util.List
getSortsBuilderList() {
return getSortsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.SortField, io.substrait.proto.SortField.Builder, io.substrait.proto.SortFieldOrBuilder>
getSortsFieldBuilder() {
if (sortsBuilder_ == null) {
sortsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.SortField, io.substrait.proto.SortField.Builder, io.substrait.proto.SortFieldOrBuilder>(
sorts_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
sorts_ = null;
}
return sortsBuilder_;
}
private io.substrait.proto.AdvancedExtension advancedExtension_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder> advancedExtensionBuilder_;
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return Whether the advancedExtension field is set.
*/
public boolean hasAdvancedExtension() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return The advancedExtension.
*/
public io.substrait.proto.AdvancedExtension getAdvancedExtension() {
if (advancedExtensionBuilder_ == null) {
return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_;
} else {
return advancedExtensionBuilder_.getMessage();
}
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder setAdvancedExtension(io.substrait.proto.AdvancedExtension value) {
if (advancedExtensionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
advancedExtension_ = value;
} else {
advancedExtensionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder setAdvancedExtension(
io.substrait.proto.AdvancedExtension.Builder builderForValue) {
if (advancedExtensionBuilder_ == null) {
advancedExtension_ = builderForValue.build();
} else {
advancedExtensionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder mergeAdvancedExtension(io.substrait.proto.AdvancedExtension value) {
if (advancedExtensionBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
advancedExtension_ != null &&
advancedExtension_ != io.substrait.proto.AdvancedExtension.getDefaultInstance()) {
getAdvancedExtensionBuilder().mergeFrom(value);
} else {
advancedExtension_ = value;
}
} else {
advancedExtensionBuilder_.mergeFrom(value);
}
if (advancedExtension_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder clearAdvancedExtension() {
bitField0_ = (bitField0_ & ~0x00000020);
advancedExtension_ = null;
if (advancedExtensionBuilder_ != null) {
advancedExtensionBuilder_.dispose();
advancedExtensionBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public io.substrait.proto.AdvancedExtension.Builder getAdvancedExtensionBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getAdvancedExtensionFieldBuilder().getBuilder();
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public io.substrait.proto.AdvancedExtensionOrBuilder getAdvancedExtensionOrBuilder() {
if (advancedExtensionBuilder_ != null) {
return advancedExtensionBuilder_.getMessageOrBuilder();
} else {
return advancedExtension_ == null ?
io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_;
}
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder>
getAdvancedExtensionFieldBuilder() {
if (advancedExtensionBuilder_ == null) {
advancedExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder>(
getAdvancedExtension(),
getParentForChildren(),
isClean());
advancedExtension_ = null;
}
return advancedExtensionBuilder_;
}
@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.ConsistentPartitionWindowRel)
}
// @@protoc_insertion_point(class_scope:substrait.ConsistentPartitionWindowRel)
private static final io.substrait.proto.ConsistentPartitionWindowRel DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ConsistentPartitionWindowRel();
}
public static io.substrait.proto.ConsistentPartitionWindowRel getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConsistentPartitionWindowRel 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.ConsistentPartitionWindowRel getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy