TParquetMetadataParams.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 TParquetMetadataParams implements org.apache.thrift.TBase<TParquetMetadataParams, TParquetMetadataParams._Fields>, java.io.Serializable, Cloneable, Comparable<TParquetMetadataParams> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TParquetMetadataParams");
private static final org.apache.thrift.protocol.TField PATHS_FIELD_DESC = new org.apache.thrift.protocol.TField("paths", org.apache.thrift.protocol.TType.LIST, (short)1);
private static final org.apache.thrift.protocol.TField MODE_FIELD_DESC = new org.apache.thrift.protocol.TField("mode", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final org.apache.thrift.protocol.TField FILE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("file_type", org.apache.thrift.protocol.TType.I32, (short)3);
private static final org.apache.thrift.protocol.TField PROPERTIES_FIELD_DESC = new org.apache.thrift.protocol.TField("properties", org.apache.thrift.protocol.TType.MAP, (short)4);
private static final org.apache.thrift.protocol.TField BLOOM_COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("bloom_column", org.apache.thrift.protocol.TType.STRING, (short)5);
private static final org.apache.thrift.protocol.TField BLOOM_LITERAL_FIELD_DESC = new org.apache.thrift.protocol.TField("bloom_literal", org.apache.thrift.protocol.TType.STRING, (short)6);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TParquetMetadataParamsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TParquetMetadataParamsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> paths; // optional
public @org.apache.thrift.annotation.Nullable java.lang.String mode; // optional
/**
*
* @see org.apache.doris.thrift.TFileType
*/
public @org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TFileType file_type; // optional
public @org.apache.thrift.annotation.Nullable java.util.Map<java.lang.String,java.lang.String> properties; // optional
public @org.apache.thrift.annotation.Nullable java.lang.String bloom_column; // optional
public @org.apache.thrift.annotation.Nullable java.lang.String bloom_literal; // 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 {
PATHS((short)1, "paths"),
MODE((short)2, "mode"),
/**
*
* @see org.apache.doris.thrift.TFileType
*/
FILE_TYPE((short)3, "file_type"),
PROPERTIES((short)4, "properties"),
BLOOM_COLUMN((short)5, "bloom_column"),
BLOOM_LITERAL((short)6, "bloom_literal");
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: // PATHS
return PATHS;
case 2: // MODE
return MODE;
case 3: // FILE_TYPE
return FILE_TYPE;
case 4: // PROPERTIES
return PROPERTIES;
case 5: // BLOOM_COLUMN
return BLOOM_COLUMN;
case 6: // BLOOM_LITERAL
return BLOOM_LITERAL;
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.PATHS,_Fields.MODE,_Fields.FILE_TYPE,_Fields.PROPERTIES,_Fields.BLOOM_COLUMN,_Fields.BLOOM_LITERAL};
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.PATHS, new org.apache.thrift.meta_data.FieldMetaData("paths", 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.STRING))));
tmpMap.put(_Fields.MODE, new org.apache.thrift.meta_data.FieldMetaData("mode", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.FILE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("file_type", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, org.apache.doris.thrift.TFileType.class)));
tmpMap.put(_Fields.PROPERTIES, new org.apache.thrift.meta_data.FieldMetaData("properties", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.BLOOM_COLUMN, new org.apache.thrift.meta_data.FieldMetaData("bloom_column", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.BLOOM_LITERAL, new org.apache.thrift.meta_data.FieldMetaData("bloom_literal", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TParquetMetadataParams.class, metaDataMap);
}
public TParquetMetadataParams() {
}
/**
* Performs a deep copy on <i>other</i>.
*/
public TParquetMetadataParams(TParquetMetadataParams other) {
if (other.isSetPaths()) {
java.util.List<java.lang.String> __this__paths = new java.util.ArrayList<java.lang.String>(other.paths);
this.paths = __this__paths;
}
if (other.isSetMode()) {
this.mode = other.mode;
}
if (other.isSetFileType()) {
this.file_type = other.file_type;
}
if (other.isSetProperties()) {
java.util.Map<java.lang.String,java.lang.String> __this__properties = new java.util.HashMap<java.lang.String,java.lang.String>(other.properties);
this.properties = __this__properties;
}
if (other.isSetBloomColumn()) {
this.bloom_column = other.bloom_column;
}
if (other.isSetBloomLiteral()) {
this.bloom_literal = other.bloom_literal;
}
}
public TParquetMetadataParams deepCopy() {
return new TParquetMetadataParams(this);
}
@Override
public void clear() {
this.paths = null;
this.mode = null;
this.file_type = null;
this.properties = null;
this.bloom_column = null;
this.bloom_literal = null;
}
public int getPathsSize() {
return (this.paths == null) ? 0 : this.paths.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<java.lang.String> getPathsIterator() {
return (this.paths == null) ? null : this.paths.iterator();
}
public void addToPaths(java.lang.String elem) {
if (this.paths == null) {
this.paths = new java.util.ArrayList<java.lang.String>();
}
this.paths.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<java.lang.String> getPaths() {
return this.paths;
}
public TParquetMetadataParams setPaths(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> paths) {
this.paths = paths;
return this;
}
public void unsetPaths() {
this.paths = null;
}
/** Returns true if field paths is set (has been assigned a value) and false otherwise */
public boolean isSetPaths() {
return this.paths != null;
}
public void setPathsIsSet(boolean value) {
if (!value) {
this.paths = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getMode() {
return this.mode;
}
public TParquetMetadataParams setMode(@org.apache.thrift.annotation.Nullable java.lang.String mode) {
this.mode = mode;
return this;
}
public void unsetMode() {
this.mode = null;
}
/** Returns true if field mode is set (has been assigned a value) and false otherwise */
public boolean isSetMode() {
return this.mode != null;
}
public void setModeIsSet(boolean value) {
if (!value) {
this.mode = null;
}
}
/**
*
* @see org.apache.doris.thrift.TFileType
*/
@org.apache.thrift.annotation.Nullable
public org.apache.doris.thrift.TFileType getFileType() {
return this.file_type;
}
/**
*
* @see org.apache.doris.thrift.TFileType
*/
public TParquetMetadataParams setFileType(@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TFileType file_type) {
this.file_type = file_type;
return this;
}
public void unsetFileType() {
this.file_type = null;
}
/** Returns true if field file_type is set (has been assigned a value) and false otherwise */
public boolean isSetFileType() {
return this.file_type != null;
}
public void setFileTypeIsSet(boolean value) {
if (!value) {
this.file_type = null;
}
}
public int getPropertiesSize() {
return (this.properties == null) ? 0 : this.properties.size();
}
public void putToProperties(java.lang.String key, java.lang.String val) {
if (this.properties == null) {
this.properties = new java.util.HashMap<java.lang.String,java.lang.String>();
}
this.properties.put(key, val);
}
@org.apache.thrift.annotation.Nullable
public java.util.Map<java.lang.String,java.lang.String> getProperties() {
return this.properties;
}
public TParquetMetadataParams setProperties(@org.apache.thrift.annotation.Nullable java.util.Map<java.lang.String,java.lang.String> properties) {
this.properties = properties;
return this;
}
public void unsetProperties() {
this.properties = null;
}
/** Returns true if field properties is set (has been assigned a value) and false otherwise */
public boolean isSetProperties() {
return this.properties != null;
}
public void setPropertiesIsSet(boolean value) {
if (!value) {
this.properties = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getBloomColumn() {
return this.bloom_column;
}
public TParquetMetadataParams setBloomColumn(@org.apache.thrift.annotation.Nullable java.lang.String bloom_column) {
this.bloom_column = bloom_column;
return this;
}
public void unsetBloomColumn() {
this.bloom_column = null;
}
/** Returns true if field bloom_column is set (has been assigned a value) and false otherwise */
public boolean isSetBloomColumn() {
return this.bloom_column != null;
}
public void setBloomColumnIsSet(boolean value) {
if (!value) {
this.bloom_column = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getBloomLiteral() {
return this.bloom_literal;
}
public TParquetMetadataParams setBloomLiteral(@org.apache.thrift.annotation.Nullable java.lang.String bloom_literal) {
this.bloom_literal = bloom_literal;
return this;
}
public void unsetBloomLiteral() {
this.bloom_literal = null;
}
/** Returns true if field bloom_literal is set (has been assigned a value) and false otherwise */
public boolean isSetBloomLiteral() {
return this.bloom_literal != null;
}
public void setBloomLiteralIsSet(boolean value) {
if (!value) {
this.bloom_literal = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case PATHS:
if (value == null) {
unsetPaths();
} else {
setPaths((java.util.List<java.lang.String>)value);
}
break;
case MODE:
if (value == null) {
unsetMode();
} else {
setMode((java.lang.String)value);
}
break;
case FILE_TYPE:
if (value == null) {
unsetFileType();
} else {
setFileType((org.apache.doris.thrift.TFileType)value);
}
break;
case PROPERTIES:
if (value == null) {
unsetProperties();
} else {
setProperties((java.util.Map<java.lang.String,java.lang.String>)value);
}
break;
case BLOOM_COLUMN:
if (value == null) {
unsetBloomColumn();
} else {
setBloomColumn((java.lang.String)value);
}
break;
case BLOOM_LITERAL:
if (value == null) {
unsetBloomLiteral();
} else {
setBloomLiteral((java.lang.String)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case PATHS:
return getPaths();
case MODE:
return getMode();
case FILE_TYPE:
return getFileType();
case PROPERTIES:
return getProperties();
case BLOOM_COLUMN:
return getBloomColumn();
case BLOOM_LITERAL:
return getBloomLiteral();
}
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 PATHS:
return isSetPaths();
case MODE:
return isSetMode();
case FILE_TYPE:
return isSetFileType();
case PROPERTIES:
return isSetProperties();
case BLOOM_COLUMN:
return isSetBloomColumn();
case BLOOM_LITERAL:
return isSetBloomLiteral();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof TParquetMetadataParams)
return this.equals((TParquetMetadataParams)that);
return false;
}
public boolean equals(TParquetMetadataParams that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_paths = true && this.isSetPaths();
boolean that_present_paths = true && that.isSetPaths();
if (this_present_paths || that_present_paths) {
if (!(this_present_paths && that_present_paths))
return false;
if (!this.paths.equals(that.paths))
return false;
}
boolean this_present_mode = true && this.isSetMode();
boolean that_present_mode = true && that.isSetMode();
if (this_present_mode || that_present_mode) {
if (!(this_present_mode && that_present_mode))
return false;
if (!this.mode.equals(that.mode))
return false;
}
boolean this_present_file_type = true && this.isSetFileType();
boolean that_present_file_type = true && that.isSetFileType();
if (this_present_file_type || that_present_file_type) {
if (!(this_present_file_type && that_present_file_type))
return false;
if (!this.file_type.equals(that.file_type))
return false;
}
boolean this_present_properties = true && this.isSetProperties();
boolean that_present_properties = true && that.isSetProperties();
if (this_present_properties || that_present_properties) {
if (!(this_present_properties && that_present_properties))
return false;
if (!this.properties.equals(that.properties))
return false;
}
boolean this_present_bloom_column = true && this.isSetBloomColumn();
boolean that_present_bloom_column = true && that.isSetBloomColumn();
if (this_present_bloom_column || that_present_bloom_column) {
if (!(this_present_bloom_column && that_present_bloom_column))
return false;
if (!this.bloom_column.equals(that.bloom_column))
return false;
}
boolean this_present_bloom_literal = true && this.isSetBloomLiteral();
boolean that_present_bloom_literal = true && that.isSetBloomLiteral();
if (this_present_bloom_literal || that_present_bloom_literal) {
if (!(this_present_bloom_literal && that_present_bloom_literal))
return false;
if (!this.bloom_literal.equals(that.bloom_literal))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetPaths()) ? 131071 : 524287);
if (isSetPaths())
hashCode = hashCode * 8191 + paths.hashCode();
hashCode = hashCode * 8191 + ((isSetMode()) ? 131071 : 524287);
if (isSetMode())
hashCode = hashCode * 8191 + mode.hashCode();
hashCode = hashCode * 8191 + ((isSetFileType()) ? 131071 : 524287);
if (isSetFileType())
hashCode = hashCode * 8191 + file_type.getValue();
hashCode = hashCode * 8191 + ((isSetProperties()) ? 131071 : 524287);
if (isSetProperties())
hashCode = hashCode * 8191 + properties.hashCode();
hashCode = hashCode * 8191 + ((isSetBloomColumn()) ? 131071 : 524287);
if (isSetBloomColumn())
hashCode = hashCode * 8191 + bloom_column.hashCode();
hashCode = hashCode * 8191 + ((isSetBloomLiteral()) ? 131071 : 524287);
if (isSetBloomLiteral())
hashCode = hashCode * 8191 + bloom_literal.hashCode();
return hashCode;
}
@Override
public int compareTo(TParquetMetadataParams other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetPaths(), other.isSetPaths());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPaths()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paths, other.paths);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetMode(), other.isSetMode());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetMode()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mode, other.mode);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetFileType(), other.isSetFileType());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFileType()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.file_type, other.file_type);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetProperties(), other.isSetProperties());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetProperties()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.properties, other.properties);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetBloomColumn(), other.isSetBloomColumn());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetBloomColumn()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bloom_column, other.bloom_column);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetBloomLiteral(), other.isSetBloomLiteral());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetBloomLiteral()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bloom_literal, other.bloom_literal);
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("TParquetMetadataParams(");
boolean first = true;
if (isSetPaths()) {
sb.append("paths:");
if (this.paths == null) {
sb.append("null");
} else {
sb.append(this.paths);
}
first = false;
}
if (isSetMode()) {
if (!first) sb.append(", ");
sb.append("mode:");
if (this.mode == null) {
sb.append("null");
} else {
sb.append(this.mode);
}
first = false;
}
if (isSetFileType()) {
if (!first) sb.append(", ");
sb.append("file_type:");
if (this.file_type == null) {
sb.append("null");
} else {
sb.append(this.file_type);
}
first = false;
}
if (isSetProperties()) {
if (!first) sb.append(", ");
sb.append("properties:");
if (this.properties == null) {
sb.append("null");
} else {
sb.append(this.properties);
}
first = false;
}
if (isSetBloomColumn()) {
if (!first) sb.append(", ");
sb.append("bloom_column:");
if (this.bloom_column == null) {
sb.append("null");
} else {
sb.append(this.bloom_column);
}
first = false;
}
if (isSetBloomLiteral()) {
if (!first) sb.append(", ");
sb.append("bloom_literal:");
if (this.bloom_literal == null) {
sb.append("null");
} else {
sb.append(this.bloom_literal);
}
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 TParquetMetadataParamsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TParquetMetadataParamsStandardScheme getScheme() {
return new TParquetMetadataParamsStandardScheme();
}
}
private static class TParquetMetadataParamsStandardScheme extends org.apache.thrift.scheme.StandardScheme<TParquetMetadataParams> {
public void read(org.apache.thrift.protocol.TProtocol iprot, TParquetMetadataParams 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: // PATHS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list372 = iprot.readListBegin();
struct.paths = new java.util.ArrayList<java.lang.String>(_list372.size);
@org.apache.thrift.annotation.Nullable java.lang.String _elem373;
for (int _i374 = 0; _i374 < _list372.size; ++_i374)
{
_elem373 = iprot.readString();
struct.paths.add(_elem373);
}
iprot.readListEnd();
}
struct.setPathsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // MODE
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.mode = iprot.readString();
struct.setModeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // FILE_TYPE
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.file_type = org.apache.doris.thrift.TFileType.findByValue(iprot.readI32());
struct.setFileTypeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // PROPERTIES
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
org.apache.thrift.protocol.TMap _map375 = iprot.readMapBegin();
struct.properties = new java.util.HashMap<java.lang.String,java.lang.String>(2*_map375.size);
@org.apache.thrift.annotation.Nullable java.lang.String _key376;
@org.apache.thrift.annotation.Nullable java.lang.String _val377;
for (int _i378 = 0; _i378 < _map375.size; ++_i378)
{
_key376 = iprot.readString();
_val377 = iprot.readString();
struct.properties.put(_key376, _val377);
}
iprot.readMapEnd();
}
struct.setPropertiesIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // BLOOM_COLUMN
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.bloom_column = iprot.readString();
struct.setBloomColumnIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 6: // BLOOM_LITERAL
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.bloom_literal = iprot.readString();
struct.setBloomLiteralIsSet(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, TParquetMetadataParams struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.paths != null) {
if (struct.isSetPaths()) {
oprot.writeFieldBegin(PATHS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.paths.size()));
for (java.lang.String _iter379 : struct.paths)
{
oprot.writeString(_iter379);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.mode != null) {
if (struct.isSetMode()) {
oprot.writeFieldBegin(MODE_FIELD_DESC);
oprot.writeString(struct.mode);
oprot.writeFieldEnd();
}
}
if (struct.file_type != null) {
if (struct.isSetFileType()) {
oprot.writeFieldBegin(FILE_TYPE_FIELD_DESC);
oprot.writeI32(struct.file_type.getValue());
oprot.writeFieldEnd();
}
}
if (struct.properties != null) {
if (struct.isSetProperties()) {
oprot.writeFieldBegin(PROPERTIES_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.properties.size()));
for (java.util.Map.Entry<java.lang.String, java.lang.String> _iter380 : struct.properties.entrySet())
{
oprot.writeString(_iter380.getKey());
oprot.writeString(_iter380.getValue());
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.bloom_column != null) {
if (struct.isSetBloomColumn()) {
oprot.writeFieldBegin(BLOOM_COLUMN_FIELD_DESC);
oprot.writeString(struct.bloom_column);
oprot.writeFieldEnd();
}
}
if (struct.bloom_literal != null) {
if (struct.isSetBloomLiteral()) {
oprot.writeFieldBegin(BLOOM_LITERAL_FIELD_DESC);
oprot.writeString(struct.bloom_literal);
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class TParquetMetadataParamsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TParquetMetadataParamsTupleScheme getScheme() {
return new TParquetMetadataParamsTupleScheme();
}
}
private static class TParquetMetadataParamsTupleScheme extends org.apache.thrift.scheme.TupleScheme<TParquetMetadataParams> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, TParquetMetadataParams 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.isSetPaths()) {
optionals.set(0);
}
if (struct.isSetMode()) {
optionals.set(1);
}
if (struct.isSetFileType()) {
optionals.set(2);
}
if (struct.isSetProperties()) {
optionals.set(3);
}
if (struct.isSetBloomColumn()) {
optionals.set(4);
}
if (struct.isSetBloomLiteral()) {
optionals.set(5);
}
oprot.writeBitSet(optionals, 6);
if (struct.isSetPaths()) {
{
oprot.writeI32(struct.paths.size());
for (java.lang.String _iter381 : struct.paths)
{
oprot.writeString(_iter381);
}
}
}
if (struct.isSetMode()) {
oprot.writeString(struct.mode);
}
if (struct.isSetFileType()) {
oprot.writeI32(struct.file_type.getValue());
}
if (struct.isSetProperties()) {
{
oprot.writeI32(struct.properties.size());
for (java.util.Map.Entry<java.lang.String, java.lang.String> _iter382 : struct.properties.entrySet())
{
oprot.writeString(_iter382.getKey());
oprot.writeString(_iter382.getValue());
}
}
}
if (struct.isSetBloomColumn()) {
oprot.writeString(struct.bloom_column);
}
if (struct.isSetBloomLiteral()) {
oprot.writeString(struct.bloom_literal);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TParquetMetadataParams struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(6);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list383 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
struct.paths = new java.util.ArrayList<java.lang.String>(_list383.size);
@org.apache.thrift.annotation.Nullable java.lang.String _elem384;
for (int _i385 = 0; _i385 < _list383.size; ++_i385)
{
_elem384 = iprot.readString();
struct.paths.add(_elem384);
}
}
struct.setPathsIsSet(true);
}
if (incoming.get(1)) {
struct.mode = iprot.readString();
struct.setModeIsSet(true);
}
if (incoming.get(2)) {
struct.file_type = org.apache.doris.thrift.TFileType.findByValue(iprot.readI32());
struct.setFileTypeIsSet(true);
}
if (incoming.get(3)) {
{
org.apache.thrift.protocol.TMap _map386 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING);
struct.properties = new java.util.HashMap<java.lang.String,java.lang.String>(2*_map386.size);
@org.apache.thrift.annotation.Nullable java.lang.String _key387;
@org.apache.thrift.annotation.Nullable java.lang.String _val388;
for (int _i389 = 0; _i389 < _map386.size; ++_i389)
{
_key387 = iprot.readString();
_val388 = iprot.readString();
struct.properties.put(_key387, _val388);
}
}
struct.setPropertiesIsSet(true);
}
if (incoming.get(4)) {
struct.bloom_column = iprot.readString();
struct.setBloomColumnIsSet(true);
}
if (incoming.get(5)) {
struct.bloom_literal = iprot.readString();
struct.setBloomLiteralIsSet(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();
}
}