TTableFunctionNode.java
/**
* Autogenerated by Thrift Compiler (0.16.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.doris.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)", date = "2026-05-14")
public class TTableFunctionNode implements org.apache.thrift.TBase<TTableFunctionNode, TTableFunctionNode._Fields>, java.io.Serializable, Cloneable, Comparable<TTableFunctionNode> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TTableFunctionNode");
private static final org.apache.thrift.protocol.TField FN_CALL_EXPR_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("fnCallExprList", org.apache.thrift.protocol.TType.LIST, (short)1);
private static final org.apache.thrift.protocol.TField OUTPUT_SLOT_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("outputSlotIds", org.apache.thrift.protocol.TType.LIST, (short)2);
private static final org.apache.thrift.protocol.TField EXPAND_CONJUNCTS_FIELD_DESC = new org.apache.thrift.protocol.TField("expand_conjuncts", org.apache.thrift.protocol.TType.LIST, (short)3);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TTableFunctionNodeStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TTableFunctionNodeTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable java.util.List<org.apache.doris.thrift.TExpr> fnCallExprList; // optional
public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.Integer> outputSlotIds; // optional
public @org.apache.thrift.annotation.Nullable java.util.List<org.apache.doris.thrift.TExpr> expand_conjuncts; // optional
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
FN_CALL_EXPR_LIST((short)1, "fnCallExprList"),
OUTPUT_SLOT_IDS((short)2, "outputSlotIds"),
EXPAND_CONJUNCTS((short)3, "expand_conjuncts");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // FN_CALL_EXPR_LIST
return FN_CALL_EXPR_LIST;
case 2: // OUTPUT_SLOT_IDS
return OUTPUT_SLOT_IDS;
case 3: // EXPAND_CONJUNCTS
return EXPAND_CONJUNCTS;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final _Fields optionals[] = {_Fields.FN_CALL_EXPR_LIST,_Fields.OUTPUT_SLOT_IDS,_Fields.EXPAND_CONJUNCTS};
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.FN_CALL_EXPR_LIST, new org.apache.thrift.meta_data.FieldMetaData("fnCallExprList", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.doris.thrift.TExpr.class))));
tmpMap.put(_Fields.OUTPUT_SLOT_IDS, new org.apache.thrift.meta_data.FieldMetaData("outputSlotIds", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "TSlotId"))));
tmpMap.put(_Fields.EXPAND_CONJUNCTS, new org.apache.thrift.meta_data.FieldMetaData("expand_conjuncts", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.doris.thrift.TExpr.class))));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TTableFunctionNode.class, metaDataMap);
}
public TTableFunctionNode() {
}
/**
* Performs a deep copy on <i>other</i>.
*/
public TTableFunctionNode(TTableFunctionNode other) {
if (other.isSetFnCallExprList()) {
java.util.List<org.apache.doris.thrift.TExpr> __this__fnCallExprList = new java.util.ArrayList<org.apache.doris.thrift.TExpr>(other.fnCallExprList.size());
for (org.apache.doris.thrift.TExpr other_element : other.fnCallExprList) {
__this__fnCallExprList.add(new org.apache.doris.thrift.TExpr(other_element));
}
this.fnCallExprList = __this__fnCallExprList;
}
if (other.isSetOutputSlotIds()) {
java.util.List<java.lang.Integer> __this__outputSlotIds = new java.util.ArrayList<java.lang.Integer>(other.outputSlotIds.size());
for (java.lang.Integer other_element : other.outputSlotIds) {
__this__outputSlotIds.add(other_element);
}
this.outputSlotIds = __this__outputSlotIds;
}
if (other.isSetExpandConjuncts()) {
java.util.List<org.apache.doris.thrift.TExpr> __this__expand_conjuncts = new java.util.ArrayList<org.apache.doris.thrift.TExpr>(other.expand_conjuncts.size());
for (org.apache.doris.thrift.TExpr other_element : other.expand_conjuncts) {
__this__expand_conjuncts.add(new org.apache.doris.thrift.TExpr(other_element));
}
this.expand_conjuncts = __this__expand_conjuncts;
}
}
public TTableFunctionNode deepCopy() {
return new TTableFunctionNode(this);
}
@Override
public void clear() {
this.fnCallExprList = null;
this.outputSlotIds = null;
this.expand_conjuncts = null;
}
public int getFnCallExprListSize() {
return (this.fnCallExprList == null) ? 0 : this.fnCallExprList.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<org.apache.doris.thrift.TExpr> getFnCallExprListIterator() {
return (this.fnCallExprList == null) ? null : this.fnCallExprList.iterator();
}
public void addToFnCallExprList(org.apache.doris.thrift.TExpr elem) {
if (this.fnCallExprList == null) {
this.fnCallExprList = new java.util.ArrayList<org.apache.doris.thrift.TExpr>();
}
this.fnCallExprList.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<org.apache.doris.thrift.TExpr> getFnCallExprList() {
return this.fnCallExprList;
}
public TTableFunctionNode setFnCallExprList(@org.apache.thrift.annotation.Nullable java.util.List<org.apache.doris.thrift.TExpr> fnCallExprList) {
this.fnCallExprList = fnCallExprList;
return this;
}
public void unsetFnCallExprList() {
this.fnCallExprList = null;
}
/** Returns true if field fnCallExprList is set (has been assigned a value) and false otherwise */
public boolean isSetFnCallExprList() {
return this.fnCallExprList != null;
}
public void setFnCallExprListIsSet(boolean value) {
if (!value) {
this.fnCallExprList = null;
}
}
public int getOutputSlotIdsSize() {
return (this.outputSlotIds == null) ? 0 : this.outputSlotIds.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<java.lang.Integer> getOutputSlotIdsIterator() {
return (this.outputSlotIds == null) ? null : this.outputSlotIds.iterator();
}
public void addToOutputSlotIds(int elem) {
if (this.outputSlotIds == null) {
this.outputSlotIds = new java.util.ArrayList<java.lang.Integer>();
}
this.outputSlotIds.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<java.lang.Integer> getOutputSlotIds() {
return this.outputSlotIds;
}
public TTableFunctionNode setOutputSlotIds(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.Integer> outputSlotIds) {
this.outputSlotIds = outputSlotIds;
return this;
}
public void unsetOutputSlotIds() {
this.outputSlotIds = null;
}
/** Returns true if field outputSlotIds is set (has been assigned a value) and false otherwise */
public boolean isSetOutputSlotIds() {
return this.outputSlotIds != null;
}
public void setOutputSlotIdsIsSet(boolean value) {
if (!value) {
this.outputSlotIds = null;
}
}
public int getExpandConjunctsSize() {
return (this.expand_conjuncts == null) ? 0 : this.expand_conjuncts.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<org.apache.doris.thrift.TExpr> getExpandConjunctsIterator() {
return (this.expand_conjuncts == null) ? null : this.expand_conjuncts.iterator();
}
public void addToExpandConjuncts(org.apache.doris.thrift.TExpr elem) {
if (this.expand_conjuncts == null) {
this.expand_conjuncts = new java.util.ArrayList<org.apache.doris.thrift.TExpr>();
}
this.expand_conjuncts.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<org.apache.doris.thrift.TExpr> getExpandConjuncts() {
return this.expand_conjuncts;
}
public TTableFunctionNode setExpandConjuncts(@org.apache.thrift.annotation.Nullable java.util.List<org.apache.doris.thrift.TExpr> expand_conjuncts) {
this.expand_conjuncts = expand_conjuncts;
return this;
}
public void unsetExpandConjuncts() {
this.expand_conjuncts = null;
}
/** Returns true if field expand_conjuncts is set (has been assigned a value) and false otherwise */
public boolean isSetExpandConjuncts() {
return this.expand_conjuncts != null;
}
public void setExpandConjunctsIsSet(boolean value) {
if (!value) {
this.expand_conjuncts = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case FN_CALL_EXPR_LIST:
if (value == null) {
unsetFnCallExprList();
} else {
setFnCallExprList((java.util.List<org.apache.doris.thrift.TExpr>)value);
}
break;
case OUTPUT_SLOT_IDS:
if (value == null) {
unsetOutputSlotIds();
} else {
setOutputSlotIds((java.util.List<java.lang.Integer>)value);
}
break;
case EXPAND_CONJUNCTS:
if (value == null) {
unsetExpandConjuncts();
} else {
setExpandConjuncts((java.util.List<org.apache.doris.thrift.TExpr>)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case FN_CALL_EXPR_LIST:
return getFnCallExprList();
case OUTPUT_SLOT_IDS:
return getOutputSlotIds();
case EXPAND_CONJUNCTS:
return getExpandConjuncts();
}
throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
}
switch (field) {
case FN_CALL_EXPR_LIST:
return isSetFnCallExprList();
case OUTPUT_SLOT_IDS:
return isSetOutputSlotIds();
case EXPAND_CONJUNCTS:
return isSetExpandConjuncts();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof TTableFunctionNode)
return this.equals((TTableFunctionNode)that);
return false;
}
public boolean equals(TTableFunctionNode that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_fnCallExprList = true && this.isSetFnCallExprList();
boolean that_present_fnCallExprList = true && that.isSetFnCallExprList();
if (this_present_fnCallExprList || that_present_fnCallExprList) {
if (!(this_present_fnCallExprList && that_present_fnCallExprList))
return false;
if (!this.fnCallExprList.equals(that.fnCallExprList))
return false;
}
boolean this_present_outputSlotIds = true && this.isSetOutputSlotIds();
boolean that_present_outputSlotIds = true && that.isSetOutputSlotIds();
if (this_present_outputSlotIds || that_present_outputSlotIds) {
if (!(this_present_outputSlotIds && that_present_outputSlotIds))
return false;
if (!this.outputSlotIds.equals(that.outputSlotIds))
return false;
}
boolean this_present_expand_conjuncts = true && this.isSetExpandConjuncts();
boolean that_present_expand_conjuncts = true && that.isSetExpandConjuncts();
if (this_present_expand_conjuncts || that_present_expand_conjuncts) {
if (!(this_present_expand_conjuncts && that_present_expand_conjuncts))
return false;
if (!this.expand_conjuncts.equals(that.expand_conjuncts))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetFnCallExprList()) ? 131071 : 524287);
if (isSetFnCallExprList())
hashCode = hashCode * 8191 + fnCallExprList.hashCode();
hashCode = hashCode * 8191 + ((isSetOutputSlotIds()) ? 131071 : 524287);
if (isSetOutputSlotIds())
hashCode = hashCode * 8191 + outputSlotIds.hashCode();
hashCode = hashCode * 8191 + ((isSetExpandConjuncts()) ? 131071 : 524287);
if (isSetExpandConjuncts())
hashCode = hashCode * 8191 + expand_conjuncts.hashCode();
return hashCode;
}
@Override
public int compareTo(TTableFunctionNode other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetFnCallExprList(), other.isSetFnCallExprList());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFnCallExprList()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fnCallExprList, other.fnCallExprList);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetOutputSlotIds(), other.isSetOutputSlotIds());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetOutputSlotIds()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.outputSlotIds, other.outputSlotIds);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetExpandConjuncts(), other.isSetExpandConjuncts());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetExpandConjuncts()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expand_conjuncts, other.expand_conjuncts);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("TTableFunctionNode(");
boolean first = true;
if (isSetFnCallExprList()) {
sb.append("fnCallExprList:");
if (this.fnCallExprList == null) {
sb.append("null");
} else {
sb.append(this.fnCallExprList);
}
first = false;
}
if (isSetOutputSlotIds()) {
if (!first) sb.append(", ");
sb.append("outputSlotIds:");
if (this.outputSlotIds == null) {
sb.append("null");
} else {
sb.append(this.outputSlotIds);
}
first = false;
}
if (isSetExpandConjuncts()) {
if (!first) sb.append(", ");
sb.append("expand_conjuncts:");
if (this.expand_conjuncts == null) {
sb.append("null");
} else {
sb.append(this.expand_conjuncts);
}
first = false;
}
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class TTableFunctionNodeStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TTableFunctionNodeStandardScheme getScheme() {
return new TTableFunctionNodeStandardScheme();
}
}
private static class TTableFunctionNodeStandardScheme extends org.apache.thrift.scheme.StandardScheme<TTableFunctionNode> {
public void read(org.apache.thrift.protocol.TProtocol iprot, TTableFunctionNode struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // FN_CALL_EXPR_LIST
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list1130 = iprot.readListBegin();
struct.fnCallExprList = new java.util.ArrayList<org.apache.doris.thrift.TExpr>(_list1130.size);
@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TExpr _elem1131;
for (int _i1132 = 0; _i1132 < _list1130.size; ++_i1132)
{
_elem1131 = new org.apache.doris.thrift.TExpr();
_elem1131.read(iprot);
struct.fnCallExprList.add(_elem1131);
}
iprot.readListEnd();
}
struct.setFnCallExprListIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // OUTPUT_SLOT_IDS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list1133 = iprot.readListBegin();
struct.outputSlotIds = new java.util.ArrayList<java.lang.Integer>(_list1133.size);
int _elem1134;
for (int _i1135 = 0; _i1135 < _list1133.size; ++_i1135)
{
_elem1134 = iprot.readI32();
struct.outputSlotIds.add(_elem1134);
}
iprot.readListEnd();
}
struct.setOutputSlotIdsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // EXPAND_CONJUNCTS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list1136 = iprot.readListBegin();
struct.expand_conjuncts = new java.util.ArrayList<org.apache.doris.thrift.TExpr>(_list1136.size);
@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TExpr _elem1137;
for (int _i1138 = 0; _i1138 < _list1136.size; ++_i1138)
{
_elem1137 = new org.apache.doris.thrift.TExpr();
_elem1137.read(iprot);
struct.expand_conjuncts.add(_elem1137);
}
iprot.readListEnd();
}
struct.setExpandConjunctsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, TTableFunctionNode struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.fnCallExprList != null) {
if (struct.isSetFnCallExprList()) {
oprot.writeFieldBegin(FN_CALL_EXPR_LIST_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.fnCallExprList.size()));
for (org.apache.doris.thrift.TExpr _iter1139 : struct.fnCallExprList)
{
_iter1139.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.outputSlotIds != null) {
if (struct.isSetOutputSlotIds()) {
oprot.writeFieldBegin(OUTPUT_SLOT_IDS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.outputSlotIds.size()));
for (int _iter1140 : struct.outputSlotIds)
{
oprot.writeI32(_iter1140);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.expand_conjuncts != null) {
if (struct.isSetExpandConjuncts()) {
oprot.writeFieldBegin(EXPAND_CONJUNCTS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.expand_conjuncts.size()));
for (org.apache.doris.thrift.TExpr _iter1141 : struct.expand_conjuncts)
{
_iter1141.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class TTableFunctionNodeTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TTableFunctionNodeTupleScheme getScheme() {
return new TTableFunctionNodeTupleScheme();
}
}
private static class TTableFunctionNodeTupleScheme extends org.apache.thrift.scheme.TupleScheme<TTableFunctionNode> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, TTableFunctionNode struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetFnCallExprList()) {
optionals.set(0);
}
if (struct.isSetOutputSlotIds()) {
optionals.set(1);
}
if (struct.isSetExpandConjuncts()) {
optionals.set(2);
}
oprot.writeBitSet(optionals, 3);
if (struct.isSetFnCallExprList()) {
{
oprot.writeI32(struct.fnCallExprList.size());
for (org.apache.doris.thrift.TExpr _iter1142 : struct.fnCallExprList)
{
_iter1142.write(oprot);
}
}
}
if (struct.isSetOutputSlotIds()) {
{
oprot.writeI32(struct.outputSlotIds.size());
for (int _iter1143 : struct.outputSlotIds)
{
oprot.writeI32(_iter1143);
}
}
}
if (struct.isSetExpandConjuncts()) {
{
oprot.writeI32(struct.expand_conjuncts.size());
for (org.apache.doris.thrift.TExpr _iter1144 : struct.expand_conjuncts)
{
_iter1144.write(oprot);
}
}
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TTableFunctionNode struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list1145 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
struct.fnCallExprList = new java.util.ArrayList<org.apache.doris.thrift.TExpr>(_list1145.size);
@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TExpr _elem1146;
for (int _i1147 = 0; _i1147 < _list1145.size; ++_i1147)
{
_elem1146 = new org.apache.doris.thrift.TExpr();
_elem1146.read(iprot);
struct.fnCallExprList.add(_elem1146);
}
}
struct.setFnCallExprListIsSet(true);
}
if (incoming.get(1)) {
{
org.apache.thrift.protocol.TList _list1148 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32);
struct.outputSlotIds = new java.util.ArrayList<java.lang.Integer>(_list1148.size);
int _elem1149;
for (int _i1150 = 0; _i1150 < _list1148.size; ++_i1150)
{
_elem1149 = iprot.readI32();
struct.outputSlotIds.add(_elem1149);
}
}
struct.setOutputSlotIdsIsSet(true);
}
if (incoming.get(2)) {
{
org.apache.thrift.protocol.TList _list1151 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
struct.expand_conjuncts = new java.util.ArrayList<org.apache.doris.thrift.TExpr>(_list1151.size);
@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TExpr _elem1152;
for (int _i1153 = 0; _i1153 < _list1151.size; ++_i1153)
{
_elem1152 = new org.apache.doris.thrift.TExpr();
_elem1152.read(iprot);
struct.expand_conjuncts.add(_elem1152);
}
}
struct.setExpandConjunctsIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}