org.apache.iotdb.service.rpc.thrift.TSCreateMultiTimeseriesReq Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of timechodb-thrift Show documentation
Show all versions of timechodb-thrift Show documentation
RPC (Thrift) framework for client and DataNodes.
The newest version!
/**
* Autogenerated by Thrift Compiler (0.14.1)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.iotdb.service.rpc.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.14.1)", date = "2024-09-12")
public class TSCreateMultiTimeseriesReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSCreateMultiTimeseriesReq");
private static final org.apache.thrift.protocol.TField SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionId", org.apache.thrift.protocol.TType.I64, (short)1);
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)2);
private static final org.apache.thrift.protocol.TField DATA_TYPES_FIELD_DESC = new org.apache.thrift.protocol.TField("dataTypes", org.apache.thrift.protocol.TType.LIST, (short)3);
private static final org.apache.thrift.protocol.TField ENCODINGS_FIELD_DESC = new org.apache.thrift.protocol.TField("encodings", org.apache.thrift.protocol.TType.LIST, (short)4);
private static final org.apache.thrift.protocol.TField COMPRESSORS_FIELD_DESC = new org.apache.thrift.protocol.TField("compressors", org.apache.thrift.protocol.TType.LIST, (short)5);
private static final org.apache.thrift.protocol.TField PROPS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("propsList", org.apache.thrift.protocol.TType.LIST, (short)6);
private static final org.apache.thrift.protocol.TField TAGS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("tagsList", org.apache.thrift.protocol.TType.LIST, (short)7);
private static final org.apache.thrift.protocol.TField ATTRIBUTES_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("attributesList", org.apache.thrift.protocol.TType.LIST, (short)8);
private static final org.apache.thrift.protocol.TField MEASUREMENT_ALIAS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("measurementAliasList", org.apache.thrift.protocol.TType.LIST, (short)9);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TSCreateMultiTimeseriesReqStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TSCreateMultiTimeseriesReqTupleSchemeFactory();
public long sessionId; // required
public @org.apache.thrift.annotation.Nullable java.util.List paths; // required
public @org.apache.thrift.annotation.Nullable java.util.List dataTypes; // required
public @org.apache.thrift.annotation.Nullable java.util.List encodings; // required
public @org.apache.thrift.annotation.Nullable java.util.List compressors; // required
public @org.apache.thrift.annotation.Nullable java.util.List> propsList; // optional
public @org.apache.thrift.annotation.Nullable java.util.List> tagsList; // optional
public @org.apache.thrift.annotation.Nullable java.util.List> attributesList; // optional
public @org.apache.thrift.annotation.Nullable java.util.List measurementAliasList; // 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 {
SESSION_ID((short)1, "sessionId"),
PATHS((short)2, "paths"),
DATA_TYPES((short)3, "dataTypes"),
ENCODINGS((short)4, "encodings"),
COMPRESSORS((short)5, "compressors"),
PROPS_LIST((short)6, "propsList"),
TAGS_LIST((short)7, "tagsList"),
ATTRIBUTES_LIST((short)8, "attributesList"),
MEASUREMENT_ALIAS_LIST((short)9, "measurementAliasList");
private static final java.util.Map byName = new java.util.HashMap();
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: // SESSION_ID
return SESSION_ID;
case 2: // PATHS
return PATHS;
case 3: // DATA_TYPES
return DATA_TYPES;
case 4: // ENCODINGS
return ENCODINGS;
case 5: // COMPRESSORS
return COMPRESSORS;
case 6: // PROPS_LIST
return PROPS_LIST;
case 7: // TAGS_LIST
return TAGS_LIST;
case 8: // ATTRIBUTES_LIST
return ATTRIBUTES_LIST;
case 9: // MEASUREMENT_ALIAS_LIST
return MEASUREMENT_ALIAS_LIST;
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 int __SESSIONID_ISSET_ID = 0;
private byte __isset_bitfield = 0;
private static final _Fields optionals[] = {_Fields.PROPS_LIST,_Fields.TAGS_LIST,_Fields.ATTRIBUTES_LIST,_Fields.MEASUREMENT_ALIAS_LIST};
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.SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("sessionId", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.PATHS, new org.apache.thrift.meta_data.FieldMetaData("paths", org.apache.thrift.TFieldRequirementType.REQUIRED,
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.DATA_TYPES, new org.apache.thrift.meta_data.FieldMetaData("dataTypes", org.apache.thrift.TFieldRequirementType.REQUIRED,
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))));
tmpMap.put(_Fields.ENCODINGS, new org.apache.thrift.meta_data.FieldMetaData("encodings", org.apache.thrift.TFieldRequirementType.REQUIRED,
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))));
tmpMap.put(_Fields.COMPRESSORS, new org.apache.thrift.meta_data.FieldMetaData("compressors", org.apache.thrift.TFieldRequirementType.REQUIRED,
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))));
tmpMap.put(_Fields.PROPS_LIST, new org.apache.thrift.meta_data.FieldMetaData("propsList", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
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.TAGS_LIST, new org.apache.thrift.meta_data.FieldMetaData("tagsList", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
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.ATTRIBUTES_LIST, new org.apache.thrift.meta_data.FieldMetaData("attributesList", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
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.MEASUREMENT_ALIAS_LIST, new org.apache.thrift.meta_data.FieldMetaData("measurementAliasList", 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))));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TSCreateMultiTimeseriesReq.class, metaDataMap);
}
public TSCreateMultiTimeseriesReq() {
}
public TSCreateMultiTimeseriesReq(
long sessionId,
java.util.List paths,
java.util.List dataTypes,
java.util.List encodings,
java.util.List compressors)
{
this();
this.sessionId = sessionId;
setSessionIdIsSet(true);
this.paths = paths;
this.dataTypes = dataTypes;
this.encodings = encodings;
this.compressors = compressors;
}
/**
* Performs a deep copy on other.
*/
public TSCreateMultiTimeseriesReq(TSCreateMultiTimeseriesReq other) {
__isset_bitfield = other.__isset_bitfield;
this.sessionId = other.sessionId;
if (other.isSetPaths()) {
java.util.List __this__paths = new java.util.ArrayList(other.paths);
this.paths = __this__paths;
}
if (other.isSetDataTypes()) {
java.util.List __this__dataTypes = new java.util.ArrayList(other.dataTypes);
this.dataTypes = __this__dataTypes;
}
if (other.isSetEncodings()) {
java.util.List __this__encodings = new java.util.ArrayList(other.encodings);
this.encodings = __this__encodings;
}
if (other.isSetCompressors()) {
java.util.List __this__compressors = new java.util.ArrayList(other.compressors);
this.compressors = __this__compressors;
}
if (other.isSetPropsList()) {
java.util.List> __this__propsList = new java.util.ArrayList>(other.propsList.size());
for (java.util.Map other_element : other.propsList) {
java.util.Map __this__propsList_copy = new java.util.HashMap(other_element);
__this__propsList.add(__this__propsList_copy);
}
this.propsList = __this__propsList;
}
if (other.isSetTagsList()) {
java.util.List> __this__tagsList = new java.util.ArrayList>(other.tagsList.size());
for (java.util.Map other_element : other.tagsList) {
java.util.Map __this__tagsList_copy = new java.util.HashMap(other_element);
__this__tagsList.add(__this__tagsList_copy);
}
this.tagsList = __this__tagsList;
}
if (other.isSetAttributesList()) {
java.util.List> __this__attributesList = new java.util.ArrayList>(other.attributesList.size());
for (java.util.Map other_element : other.attributesList) {
java.util.Map __this__attributesList_copy = new java.util.HashMap(other_element);
__this__attributesList.add(__this__attributesList_copy);
}
this.attributesList = __this__attributesList;
}
if (other.isSetMeasurementAliasList()) {
java.util.List __this__measurementAliasList = new java.util.ArrayList(other.measurementAliasList);
this.measurementAliasList = __this__measurementAliasList;
}
}
public TSCreateMultiTimeseriesReq deepCopy() {
return new TSCreateMultiTimeseriesReq(this);
}
@Override
public void clear() {
setSessionIdIsSet(false);
this.sessionId = 0;
this.paths = null;
this.dataTypes = null;
this.encodings = null;
this.compressors = null;
this.propsList = null;
this.tagsList = null;
this.attributesList = null;
this.measurementAliasList = null;
}
public long getSessionId() {
return this.sessionId;
}
public TSCreateMultiTimeseriesReq setSessionId(long sessionId) {
this.sessionId = sessionId;
setSessionIdIsSet(true);
return this;
}
public void unsetSessionId() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SESSIONID_ISSET_ID);
}
/** Returns true if field sessionId is set (has been assigned a value) and false otherwise */
public boolean isSetSessionId() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SESSIONID_ISSET_ID);
}
public void setSessionIdIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SESSIONID_ISSET_ID, value);
}
public int getPathsSize() {
return (this.paths == null) ? 0 : this.paths.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator 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();
}
this.paths.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List getPaths() {
return this.paths;
}
public TSCreateMultiTimeseriesReq setPaths(@org.apache.thrift.annotation.Nullable java.util.List 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;
}
}
public int getDataTypesSize() {
return (this.dataTypes == null) ? 0 : this.dataTypes.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator getDataTypesIterator() {
return (this.dataTypes == null) ? null : this.dataTypes.iterator();
}
public void addToDataTypes(int elem) {
if (this.dataTypes == null) {
this.dataTypes = new java.util.ArrayList();
}
this.dataTypes.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List getDataTypes() {
return this.dataTypes;
}
public TSCreateMultiTimeseriesReq setDataTypes(@org.apache.thrift.annotation.Nullable java.util.List dataTypes) {
this.dataTypes = dataTypes;
return this;
}
public void unsetDataTypes() {
this.dataTypes = null;
}
/** Returns true if field dataTypes is set (has been assigned a value) and false otherwise */
public boolean isSetDataTypes() {
return this.dataTypes != null;
}
public void setDataTypesIsSet(boolean value) {
if (!value) {
this.dataTypes = null;
}
}
public int getEncodingsSize() {
return (this.encodings == null) ? 0 : this.encodings.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator getEncodingsIterator() {
return (this.encodings == null) ? null : this.encodings.iterator();
}
public void addToEncodings(int elem) {
if (this.encodings == null) {
this.encodings = new java.util.ArrayList();
}
this.encodings.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List getEncodings() {
return this.encodings;
}
public TSCreateMultiTimeseriesReq setEncodings(@org.apache.thrift.annotation.Nullable java.util.List encodings) {
this.encodings = encodings;
return this;
}
public void unsetEncodings() {
this.encodings = null;
}
/** Returns true if field encodings is set (has been assigned a value) and false otherwise */
public boolean isSetEncodings() {
return this.encodings != null;
}
public void setEncodingsIsSet(boolean value) {
if (!value) {
this.encodings = null;
}
}
public int getCompressorsSize() {
return (this.compressors == null) ? 0 : this.compressors.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator getCompressorsIterator() {
return (this.compressors == null) ? null : this.compressors.iterator();
}
public void addToCompressors(int elem) {
if (this.compressors == null) {
this.compressors = new java.util.ArrayList();
}
this.compressors.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List getCompressors() {
return this.compressors;
}
public TSCreateMultiTimeseriesReq setCompressors(@org.apache.thrift.annotation.Nullable java.util.List compressors) {
this.compressors = compressors;
return this;
}
public void unsetCompressors() {
this.compressors = null;
}
/** Returns true if field compressors is set (has been assigned a value) and false otherwise */
public boolean isSetCompressors() {
return this.compressors != null;
}
public void setCompressorsIsSet(boolean value) {
if (!value) {
this.compressors = null;
}
}
public int getPropsListSize() {
return (this.propsList == null) ? 0 : this.propsList.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator> getPropsListIterator() {
return (this.propsList == null) ? null : this.propsList.iterator();
}
public void addToPropsList(java.util.Map elem) {
if (this.propsList == null) {
this.propsList = new java.util.ArrayList>();
}
this.propsList.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List> getPropsList() {
return this.propsList;
}
public TSCreateMultiTimeseriesReq setPropsList(@org.apache.thrift.annotation.Nullable java.util.List> propsList) {
this.propsList = propsList;
return this;
}
public void unsetPropsList() {
this.propsList = null;
}
/** Returns true if field propsList is set (has been assigned a value) and false otherwise */
public boolean isSetPropsList() {
return this.propsList != null;
}
public void setPropsListIsSet(boolean value) {
if (!value) {
this.propsList = null;
}
}
public int getTagsListSize() {
return (this.tagsList == null) ? 0 : this.tagsList.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator> getTagsListIterator() {
return (this.tagsList == null) ? null : this.tagsList.iterator();
}
public void addToTagsList(java.util.Map elem) {
if (this.tagsList == null) {
this.tagsList = new java.util.ArrayList>();
}
this.tagsList.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List> getTagsList() {
return this.tagsList;
}
public TSCreateMultiTimeseriesReq setTagsList(@org.apache.thrift.annotation.Nullable java.util.List> tagsList) {
this.tagsList = tagsList;
return this;
}
public void unsetTagsList() {
this.tagsList = null;
}
/** Returns true if field tagsList is set (has been assigned a value) and false otherwise */
public boolean isSetTagsList() {
return this.tagsList != null;
}
public void setTagsListIsSet(boolean value) {
if (!value) {
this.tagsList = null;
}
}
public int getAttributesListSize() {
return (this.attributesList == null) ? 0 : this.attributesList.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator> getAttributesListIterator() {
return (this.attributesList == null) ? null : this.attributesList.iterator();
}
public void addToAttributesList(java.util.Map elem) {
if (this.attributesList == null) {
this.attributesList = new java.util.ArrayList>();
}
this.attributesList.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List> getAttributesList() {
return this.attributesList;
}
public TSCreateMultiTimeseriesReq setAttributesList(@org.apache.thrift.annotation.Nullable java.util.List> attributesList) {
this.attributesList = attributesList;
return this;
}
public void unsetAttributesList() {
this.attributesList = null;
}
/** Returns true if field attributesList is set (has been assigned a value) and false otherwise */
public boolean isSetAttributesList() {
return this.attributesList != null;
}
public void setAttributesListIsSet(boolean value) {
if (!value) {
this.attributesList = null;
}
}
public int getMeasurementAliasListSize() {
return (this.measurementAliasList == null) ? 0 : this.measurementAliasList.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator getMeasurementAliasListIterator() {
return (this.measurementAliasList == null) ? null : this.measurementAliasList.iterator();
}
public void addToMeasurementAliasList(java.lang.String elem) {
if (this.measurementAliasList == null) {
this.measurementAliasList = new java.util.ArrayList();
}
this.measurementAliasList.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List getMeasurementAliasList() {
return this.measurementAliasList;
}
public TSCreateMultiTimeseriesReq setMeasurementAliasList(@org.apache.thrift.annotation.Nullable java.util.List measurementAliasList) {
this.measurementAliasList = measurementAliasList;
return this;
}
public void unsetMeasurementAliasList() {
this.measurementAliasList = null;
}
/** Returns true if field measurementAliasList is set (has been assigned a value) and false otherwise */
public boolean isSetMeasurementAliasList() {
return this.measurementAliasList != null;
}
public void setMeasurementAliasListIsSet(boolean value) {
if (!value) {
this.measurementAliasList = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SESSION_ID:
if (value == null) {
unsetSessionId();
} else {
setSessionId((java.lang.Long)value);
}
break;
case PATHS:
if (value == null) {
unsetPaths();
} else {
setPaths((java.util.List)value);
}
break;
case DATA_TYPES:
if (value == null) {
unsetDataTypes();
} else {
setDataTypes((java.util.List)value);
}
break;
case ENCODINGS:
if (value == null) {
unsetEncodings();
} else {
setEncodings((java.util.List)value);
}
break;
case COMPRESSORS:
if (value == null) {
unsetCompressors();
} else {
setCompressors((java.util.List)value);
}
break;
case PROPS_LIST:
if (value == null) {
unsetPropsList();
} else {
setPropsList((java.util.List>)value);
}
break;
case TAGS_LIST:
if (value == null) {
unsetTagsList();
} else {
setTagsList((java.util.List>)value);
}
break;
case ATTRIBUTES_LIST:
if (value == null) {
unsetAttributesList();
} else {
setAttributesList((java.util.List>)value);
}
break;
case MEASUREMENT_ALIAS_LIST:
if (value == null) {
unsetMeasurementAliasList();
} else {
setMeasurementAliasList((java.util.List)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SESSION_ID:
return getSessionId();
case PATHS:
return getPaths();
case DATA_TYPES:
return getDataTypes();
case ENCODINGS:
return getEncodings();
case COMPRESSORS:
return getCompressors();
case PROPS_LIST:
return getPropsList();
case TAGS_LIST:
return getTagsList();
case ATTRIBUTES_LIST:
return getAttributesList();
case MEASUREMENT_ALIAS_LIST:
return getMeasurementAliasList();
}
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 SESSION_ID:
return isSetSessionId();
case PATHS:
return isSetPaths();
case DATA_TYPES:
return isSetDataTypes();
case ENCODINGS:
return isSetEncodings();
case COMPRESSORS:
return isSetCompressors();
case PROPS_LIST:
return isSetPropsList();
case TAGS_LIST:
return isSetTagsList();
case ATTRIBUTES_LIST:
return isSetAttributesList();
case MEASUREMENT_ALIAS_LIST:
return isSetMeasurementAliasList();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof TSCreateMultiTimeseriesReq)
return this.equals((TSCreateMultiTimeseriesReq)that);
return false;
}
public boolean equals(TSCreateMultiTimeseriesReq that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_sessionId = true;
boolean that_present_sessionId = true;
if (this_present_sessionId || that_present_sessionId) {
if (!(this_present_sessionId && that_present_sessionId))
return false;
if (this.sessionId != that.sessionId)
return false;
}
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_dataTypes = true && this.isSetDataTypes();
boolean that_present_dataTypes = true && that.isSetDataTypes();
if (this_present_dataTypes || that_present_dataTypes) {
if (!(this_present_dataTypes && that_present_dataTypes))
return false;
if (!this.dataTypes.equals(that.dataTypes))
return false;
}
boolean this_present_encodings = true && this.isSetEncodings();
boolean that_present_encodings = true && that.isSetEncodings();
if (this_present_encodings || that_present_encodings) {
if (!(this_present_encodings && that_present_encodings))
return false;
if (!this.encodings.equals(that.encodings))
return false;
}
boolean this_present_compressors = true && this.isSetCompressors();
boolean that_present_compressors = true && that.isSetCompressors();
if (this_present_compressors || that_present_compressors) {
if (!(this_present_compressors && that_present_compressors))
return false;
if (!this.compressors.equals(that.compressors))
return false;
}
boolean this_present_propsList = true && this.isSetPropsList();
boolean that_present_propsList = true && that.isSetPropsList();
if (this_present_propsList || that_present_propsList) {
if (!(this_present_propsList && that_present_propsList))
return false;
if (!this.propsList.equals(that.propsList))
return false;
}
boolean this_present_tagsList = true && this.isSetTagsList();
boolean that_present_tagsList = true && that.isSetTagsList();
if (this_present_tagsList || that_present_tagsList) {
if (!(this_present_tagsList && that_present_tagsList))
return false;
if (!this.tagsList.equals(that.tagsList))
return false;
}
boolean this_present_attributesList = true && this.isSetAttributesList();
boolean that_present_attributesList = true && that.isSetAttributesList();
if (this_present_attributesList || that_present_attributesList) {
if (!(this_present_attributesList && that_present_attributesList))
return false;
if (!this.attributesList.equals(that.attributesList))
return false;
}
boolean this_present_measurementAliasList = true && this.isSetMeasurementAliasList();
boolean that_present_measurementAliasList = true && that.isSetMeasurementAliasList();
if (this_present_measurementAliasList || that_present_measurementAliasList) {
if (!(this_present_measurementAliasList && that_present_measurementAliasList))
return false;
if (!this.measurementAliasList.equals(that.measurementAliasList))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(sessionId);
hashCode = hashCode * 8191 + ((isSetPaths()) ? 131071 : 524287);
if (isSetPaths())
hashCode = hashCode * 8191 + paths.hashCode();
hashCode = hashCode * 8191 + ((isSetDataTypes()) ? 131071 : 524287);
if (isSetDataTypes())
hashCode = hashCode * 8191 + dataTypes.hashCode();
hashCode = hashCode * 8191 + ((isSetEncodings()) ? 131071 : 524287);
if (isSetEncodings())
hashCode = hashCode * 8191 + encodings.hashCode();
hashCode = hashCode * 8191 + ((isSetCompressors()) ? 131071 : 524287);
if (isSetCompressors())
hashCode = hashCode * 8191 + compressors.hashCode();
hashCode = hashCode * 8191 + ((isSetPropsList()) ? 131071 : 524287);
if (isSetPropsList())
hashCode = hashCode * 8191 + propsList.hashCode();
hashCode = hashCode * 8191 + ((isSetTagsList()) ? 131071 : 524287);
if (isSetTagsList())
hashCode = hashCode * 8191 + tagsList.hashCode();
hashCode = hashCode * 8191 + ((isSetAttributesList()) ? 131071 : 524287);
if (isSetAttributesList())
hashCode = hashCode * 8191 + attributesList.hashCode();
hashCode = hashCode * 8191 + ((isSetMeasurementAliasList()) ? 131071 : 524287);
if (isSetMeasurementAliasList())
hashCode = hashCode * 8191 + measurementAliasList.hashCode();
return hashCode;
}
@Override
public int compareTo(TSCreateMultiTimeseriesReq other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSessionId(), other.isSetSessionId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSessionId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, other.sessionId);
if (lastComparison != 0) {
return lastComparison;
}
}
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(isSetDataTypes(), other.isSetDataTypes());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetDataTypes()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dataTypes, other.dataTypes);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetEncodings(), other.isSetEncodings());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEncodings()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.encodings, other.encodings);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetCompressors(), other.isSetCompressors());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCompressors()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compressors, other.compressors);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetPropsList(), other.isSetPropsList());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPropsList()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.propsList, other.propsList);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetTagsList(), other.isSetTagsList());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTagsList()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tagsList, other.tagsList);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetAttributesList(), other.isSetAttributesList());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetAttributesList()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributesList, other.attributesList);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetMeasurementAliasList(), other.isSetMeasurementAliasList());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetMeasurementAliasList()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.measurementAliasList, other.measurementAliasList);
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("TSCreateMultiTimeseriesReq(");
boolean first = true;
sb.append("sessionId:");
sb.append(this.sessionId);
first = false;
if (!first) sb.append(", ");
sb.append("paths:");
if (this.paths == null) {
sb.append("null");
} else {
sb.append(this.paths);
}
first = false;
if (!first) sb.append(", ");
sb.append("dataTypes:");
if (this.dataTypes == null) {
sb.append("null");
} else {
sb.append(this.dataTypes);
}
first = false;
if (!first) sb.append(", ");
sb.append("encodings:");
if (this.encodings == null) {
sb.append("null");
} else {
sb.append(this.encodings);
}
first = false;
if (!first) sb.append(", ");
sb.append("compressors:");
if (this.compressors == null) {
sb.append("null");
} else {
sb.append(this.compressors);
}
first = false;
if (isSetPropsList()) {
if (!first) sb.append(", ");
sb.append("propsList:");
if (this.propsList == null) {
sb.append("null");
} else {
sb.append(this.propsList);
}
first = false;
}
if (isSetTagsList()) {
if (!first) sb.append(", ");
sb.append("tagsList:");
if (this.tagsList == null) {
sb.append("null");
} else {
sb.append(this.tagsList);
}
first = false;
}
if (isSetAttributesList()) {
if (!first) sb.append(", ");
sb.append("attributesList:");
if (this.attributesList == null) {
sb.append("null");
} else {
sb.append(this.attributesList);
}
first = false;
}
if (isSetMeasurementAliasList()) {
if (!first) sb.append(", ");
sb.append("measurementAliasList:");
if (this.measurementAliasList == null) {
sb.append("null");
} else {
sb.append(this.measurementAliasList);
}
first = false;
}
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// alas, we cannot check 'sessionId' because it's a primitive and you chose the non-beans generator.
if (paths == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'paths' was not present! Struct: " + toString());
}
if (dataTypes == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'dataTypes' was not present! Struct: " + toString());
}
if (encodings == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'encodings' was not present! Struct: " + toString());
}
if (compressors == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'compressors' was not present! Struct: " + toString());
}
// 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 {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
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 TSCreateMultiTimeseriesReqStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TSCreateMultiTimeseriesReqStandardScheme getScheme() {
return new TSCreateMultiTimeseriesReqStandardScheme();
}
}
private static class TSCreateMultiTimeseriesReqStandardScheme extends org.apache.thrift.scheme.StandardScheme {
public void read(org.apache.thrift.protocol.TProtocol iprot, TSCreateMultiTimeseriesReq 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: // SESSION_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.sessionId = iprot.readI64();
struct.setSessionIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // PATHS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list560 = iprot.readListBegin();
struct.paths = new java.util.ArrayList(_list560.size);
@org.apache.thrift.annotation.Nullable java.lang.String _elem561;
for (int _i562 = 0; _i562 < _list560.size; ++_i562)
{
_elem561 = iprot.readString();
struct.paths.add(_elem561);
}
iprot.readListEnd();
}
struct.setPathsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // DATA_TYPES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list563 = iprot.readListBegin();
struct.dataTypes = new java.util.ArrayList(_list563.size);
int _elem564;
for (int _i565 = 0; _i565 < _list563.size; ++_i565)
{
_elem564 = iprot.readI32();
struct.dataTypes.add(_elem564);
}
iprot.readListEnd();
}
struct.setDataTypesIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // ENCODINGS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list566 = iprot.readListBegin();
struct.encodings = new java.util.ArrayList(_list566.size);
int _elem567;
for (int _i568 = 0; _i568 < _list566.size; ++_i568)
{
_elem567 = iprot.readI32();
struct.encodings.add(_elem567);
}
iprot.readListEnd();
}
struct.setEncodingsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // COMPRESSORS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list569 = iprot.readListBegin();
struct.compressors = new java.util.ArrayList(_list569.size);
int _elem570;
for (int _i571 = 0; _i571 < _list569.size; ++_i571)
{
_elem570 = iprot.readI32();
struct.compressors.add(_elem570);
}
iprot.readListEnd();
}
struct.setCompressorsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 6: // PROPS_LIST
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list572 = iprot.readListBegin();
struct.propsList = new java.util.ArrayList>(_list572.size);
@org.apache.thrift.annotation.Nullable java.util.Map _elem573;
for (int _i574 = 0; _i574 < _list572.size; ++_i574)
{
{
org.apache.thrift.protocol.TMap _map575 = iprot.readMapBegin();
_elem573 = new java.util.HashMap(2*_map575.size);
@org.apache.thrift.annotation.Nullable java.lang.String _key576;
@org.apache.thrift.annotation.Nullable java.lang.String _val577;
for (int _i578 = 0; _i578 < _map575.size; ++_i578)
{
_key576 = iprot.readString();
_val577 = iprot.readString();
_elem573.put(_key576, _val577);
}
iprot.readMapEnd();
}
struct.propsList.add(_elem573);
}
iprot.readListEnd();
}
struct.setPropsListIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 7: // TAGS_LIST
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list579 = iprot.readListBegin();
struct.tagsList = new java.util.ArrayList>(_list579.size);
@org.apache.thrift.annotation.Nullable java.util.Map _elem580;
for (int _i581 = 0; _i581 < _list579.size; ++_i581)
{
{
org.apache.thrift.protocol.TMap _map582 = iprot.readMapBegin();
_elem580 = new java.util.HashMap(2*_map582.size);
@org.apache.thrift.annotation.Nullable java.lang.String _key583;
@org.apache.thrift.annotation.Nullable java.lang.String _val584;
for (int _i585 = 0; _i585 < _map582.size; ++_i585)
{
_key583 = iprot.readString();
_val584 = iprot.readString();
_elem580.put(_key583, _val584);
}
iprot.readMapEnd();
}
struct.tagsList.add(_elem580);
}
iprot.readListEnd();
}
struct.setTagsListIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 8: // ATTRIBUTES_LIST
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list586 = iprot.readListBegin();
struct.attributesList = new java.util.ArrayList>(_list586.size);
@org.apache.thrift.annotation.Nullable java.util.Map _elem587;
for (int _i588 = 0; _i588 < _list586.size; ++_i588)
{
{
org.apache.thrift.protocol.TMap _map589 = iprot.readMapBegin();
_elem587 = new java.util.HashMap(2*_map589.size);
@org.apache.thrift.annotation.Nullable java.lang.String _key590;
@org.apache.thrift.annotation.Nullable java.lang.String _val591;
for (int _i592 = 0; _i592 < _map589.size; ++_i592)
{
_key590 = iprot.readString();
_val591 = iprot.readString();
_elem587.put(_key590, _val591);
}
iprot.readMapEnd();
}
struct.attributesList.add(_elem587);
}
iprot.readListEnd();
}
struct.setAttributesListIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 9: // MEASUREMENT_ALIAS_LIST
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list593 = iprot.readListBegin();
struct.measurementAliasList = new java.util.ArrayList(_list593.size);
@org.apache.thrift.annotation.Nullable java.lang.String _elem594;
for (int _i595 = 0; _i595 < _list593.size; ++_i595)
{
_elem594 = iprot.readString();
struct.measurementAliasList.add(_elem594);
}
iprot.readListEnd();
}
struct.setMeasurementAliasListIsSet(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
if (!struct.isSetSessionId()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'sessionId' was not found in serialized data! Struct: " + toString());
}
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, TSCreateMultiTimeseriesReq struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(SESSION_ID_FIELD_DESC);
oprot.writeI64(struct.sessionId);
oprot.writeFieldEnd();
if (struct.paths != null) {
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 _iter596 : struct.paths)
{
oprot.writeString(_iter596);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.dataTypes != null) {
oprot.writeFieldBegin(DATA_TYPES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.dataTypes.size()));
for (int _iter597 : struct.dataTypes)
{
oprot.writeI32(_iter597);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.encodings != null) {
oprot.writeFieldBegin(ENCODINGS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.encodings.size()));
for (int _iter598 : struct.encodings)
{
oprot.writeI32(_iter598);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.compressors != null) {
oprot.writeFieldBegin(COMPRESSORS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.compressors.size()));
for (int _iter599 : struct.compressors)
{
oprot.writeI32(_iter599);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.propsList != null) {
if (struct.isSetPropsList()) {
oprot.writeFieldBegin(PROPS_LIST_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.MAP, struct.propsList.size()));
for (java.util.Map _iter600 : struct.propsList)
{
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, _iter600.size()));
for (java.util.Map.Entry _iter601 : _iter600.entrySet())
{
oprot.writeString(_iter601.getKey());
oprot.writeString(_iter601.getValue());
}
oprot.writeMapEnd();
}
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.tagsList != null) {
if (struct.isSetTagsList()) {
oprot.writeFieldBegin(TAGS_LIST_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.MAP, struct.tagsList.size()));
for (java.util.Map _iter602 : struct.tagsList)
{
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, _iter602.size()));
for (java.util.Map.Entry _iter603 : _iter602.entrySet())
{
oprot.writeString(_iter603.getKey());
oprot.writeString(_iter603.getValue());
}
oprot.writeMapEnd();
}
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.attributesList != null) {
if (struct.isSetAttributesList()) {
oprot.writeFieldBegin(ATTRIBUTES_LIST_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.MAP, struct.attributesList.size()));
for (java.util.Map _iter604 : struct.attributesList)
{
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, _iter604.size()));
for (java.util.Map.Entry _iter605 : _iter604.entrySet())
{
oprot.writeString(_iter605.getKey());
oprot.writeString(_iter605.getValue());
}
oprot.writeMapEnd();
}
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.measurementAliasList != null) {
if (struct.isSetMeasurementAliasList()) {
oprot.writeFieldBegin(MEASUREMENT_ALIAS_LIST_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.measurementAliasList.size()));
for (java.lang.String _iter606 : struct.measurementAliasList)
{
oprot.writeString(_iter606);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class TSCreateMultiTimeseriesReqTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TSCreateMultiTimeseriesReqTupleScheme getScheme() {
return new TSCreateMultiTimeseriesReqTupleScheme();
}
}
private static class TSCreateMultiTimeseriesReqTupleScheme extends org.apache.thrift.scheme.TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, TSCreateMultiTimeseriesReq struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
oprot.writeI64(struct.sessionId);
{
oprot.writeI32(struct.paths.size());
for (java.lang.String _iter607 : struct.paths)
{
oprot.writeString(_iter607);
}
}
{
oprot.writeI32(struct.dataTypes.size());
for (int _iter608 : struct.dataTypes)
{
oprot.writeI32(_iter608);
}
}
{
oprot.writeI32(struct.encodings.size());
for (int _iter609 : struct.encodings)
{
oprot.writeI32(_iter609);
}
}
{
oprot.writeI32(struct.compressors.size());
for (int _iter610 : struct.compressors)
{
oprot.writeI32(_iter610);
}
}
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetPropsList()) {
optionals.set(0);
}
if (struct.isSetTagsList()) {
optionals.set(1);
}
if (struct.isSetAttributesList()) {
optionals.set(2);
}
if (struct.isSetMeasurementAliasList()) {
optionals.set(3);
}
oprot.writeBitSet(optionals, 4);
if (struct.isSetPropsList()) {
{
oprot.writeI32(struct.propsList.size());
for (java.util.Map _iter611 : struct.propsList)
{
{
oprot.writeI32(_iter611.size());
for (java.util.Map.Entry _iter612 : _iter611.entrySet())
{
oprot.writeString(_iter612.getKey());
oprot.writeString(_iter612.getValue());
}
}
}
}
}
if (struct.isSetTagsList()) {
{
oprot.writeI32(struct.tagsList.size());
for (java.util.Map _iter613 : struct.tagsList)
{
{
oprot.writeI32(_iter613.size());
for (java.util.Map.Entry _iter614 : _iter613.entrySet())
{
oprot.writeString(_iter614.getKey());
oprot.writeString(_iter614.getValue());
}
}
}
}
}
if (struct.isSetAttributesList()) {
{
oprot.writeI32(struct.attributesList.size());
for (java.util.Map _iter615 : struct.attributesList)
{
{
oprot.writeI32(_iter615.size());
for (java.util.Map.Entry _iter616 : _iter615.entrySet())
{
oprot.writeString(_iter616.getKey());
oprot.writeString(_iter616.getValue());
}
}
}
}
}
if (struct.isSetMeasurementAliasList()) {
{
oprot.writeI32(struct.measurementAliasList.size());
for (java.lang.String _iter617 : struct.measurementAliasList)
{
oprot.writeString(_iter617);
}
}
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TSCreateMultiTimeseriesReq struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
struct.sessionId = iprot.readI64();
struct.setSessionIdIsSet(true);
{
org.apache.thrift.protocol.TList _list618 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
struct.paths = new java.util.ArrayList(_list618.size);
@org.apache.thrift.annotation.Nullable java.lang.String _elem619;
for (int _i620 = 0; _i620 < _list618.size; ++_i620)
{
_elem619 = iprot.readString();
struct.paths.add(_elem619);
}
}
struct.setPathsIsSet(true);
{
org.apache.thrift.protocol.TList _list621 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32);
struct.dataTypes = new java.util.ArrayList(_list621.size);
int _elem622;
for (int _i623 = 0; _i623 < _list621.size; ++_i623)
{
_elem622 = iprot.readI32();
struct.dataTypes.add(_elem622);
}
}
struct.setDataTypesIsSet(true);
{
org.apache.thrift.protocol.TList _list624 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32);
struct.encodings = new java.util.ArrayList(_list624.size);
int _elem625;
for (int _i626 = 0; _i626 < _list624.size; ++_i626)
{
_elem625 = iprot.readI32();
struct.encodings.add(_elem625);
}
}
struct.setEncodingsIsSet(true);
{
org.apache.thrift.protocol.TList _list627 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32);
struct.compressors = new java.util.ArrayList(_list627.size);
int _elem628;
for (int _i629 = 0; _i629 < _list627.size; ++_i629)
{
_elem628 = iprot.readI32();
struct.compressors.add(_elem628);
}
}
struct.setCompressorsIsSet(true);
java.util.BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list630 = iprot.readListBegin(org.apache.thrift.protocol.TType.MAP);
struct.propsList = new java.util.ArrayList>(_list630.size);
@org.apache.thrift.annotation.Nullable java.util.Map _elem631;
for (int _i632 = 0; _i632 < _list630.size; ++_i632)
{
{
org.apache.thrift.protocol.TMap _map633 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING);
_elem631 = new java.util.HashMap(2*_map633.size);
@org.apache.thrift.annotation.Nullable java.lang.String _key634;
@org.apache.thrift.annotation.Nullable java.lang.String _val635;
for (int _i636 = 0; _i636 < _map633.size; ++_i636)
{
_key634 = iprot.readString();
_val635 = iprot.readString();
_elem631.put(_key634, _val635);
}
}
struct.propsList.add(_elem631);
}
}
struct.setPropsListIsSet(true);
}
if (incoming.get(1)) {
{
org.apache.thrift.protocol.TList _list637 = iprot.readListBegin(org.apache.thrift.protocol.TType.MAP);
struct.tagsList = new java.util.ArrayList>(_list637.size);
@org.apache.thrift.annotation.Nullable java.util.Map _elem638;
for (int _i639 = 0; _i639 < _list637.size; ++_i639)
{
{
org.apache.thrift.protocol.TMap _map640 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING);
_elem638 = new java.util.HashMap(2*_map640.size);
@org.apache.thrift.annotation.Nullable java.lang.String _key641;
@org.apache.thrift.annotation.Nullable java.lang.String _val642;
for (int _i643 = 0; _i643 < _map640.size; ++_i643)
{
_key641 = iprot.readString();
_val642 = iprot.readString();
_elem638.put(_key641, _val642);
}
}
struct.tagsList.add(_elem638);
}
}
struct.setTagsListIsSet(true);
}
if (incoming.get(2)) {
{
org.apache.thrift.protocol.TList _list644 = iprot.readListBegin(org.apache.thrift.protocol.TType.MAP);
struct.attributesList = new java.util.ArrayList>(_list644.size);
@org.apache.thrift.annotation.Nullable java.util.Map _elem645;
for (int _i646 = 0; _i646 < _list644.size; ++_i646)
{
{
org.apache.thrift.protocol.TMap _map647 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING);
_elem645 = new java.util.HashMap(2*_map647.size);
@org.apache.thrift.annotation.Nullable java.lang.String _key648;
@org.apache.thrift.annotation.Nullable java.lang.String _val649;
for (int _i650 = 0; _i650 < _map647.size; ++_i650)
{
_key648 = iprot.readString();
_val649 = iprot.readString();
_elem645.put(_key648, _val649);
}
}
struct.attributesList.add(_elem645);
}
}
struct.setAttributesListIsSet(true);
}
if (incoming.get(3)) {
{
org.apache.thrift.protocol.TList _list651 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
struct.measurementAliasList = new java.util.ArrayList(_list651.size);
@org.apache.thrift.annotation.Nullable java.lang.String _elem652;
for (int _i653 = 0; _i653 < _list651.size; ++_i653)
{
_elem652 = iprot.readString();
struct.measurementAliasList.add(_elem652);
}
}
struct.setMeasurementAliasListIsSet(true);
}
}
}
private static 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();
}
}