diff options
Diffstat (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java')
-rw-r--r-- | src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java | 252 |
1 files changed, 114 insertions, 138 deletions
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java b/src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java index df1d0c4..19205a0 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-11-23") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fields>, java.io.Serializable, Cloneable, Comparable<NetShare> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("NetShare"); @@ -46,22 +19,19 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField SHARE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("shareId", org.apache.thrift.protocol.TType.I32, (short)7); - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new NetShareStandardSchemeFactory()); - schemes.put(TupleScheme.class, new NetShareTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new NetShareStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new NetShareTupleSchemeFactory(); /** * * @see NetShareAuth */ - public NetShareAuth auth; // required - public String path; // required - public String displayname; // optional - public String mountpoint; // optional - public String username; // optional - public String password; // optional + public @org.apache.thrift.annotation.Nullable NetShareAuth auth; // required + public @org.apache.thrift.annotation.Nullable java.lang.String path; // required + public @org.apache.thrift.annotation.Nullable java.lang.String displayname; // optional + public @org.apache.thrift.annotation.Nullable java.lang.String mountpoint; // optional + public @org.apache.thrift.annotation.Nullable java.lang.String username; // optional + public @org.apache.thrift.annotation.Nullable java.lang.String password; // optional public int shareId; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -78,10 +48,10 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie PASSWORD((short)3, "password"), SHARE_ID((short)7, "shareId"); - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); + private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -89,6 +59,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie /** * 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 4: // AUTH @@ -116,21 +87,22 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + 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. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -139,7 +111,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -148,9 +120,9 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie private static final int __SHAREID_ISSET_ID = 0; private byte __isset_bitfield = 0; private static final _Fields optionals[] = {_Fields.DISPLAYNAME,_Fields.MOUNTPOINT,_Fields.USERNAME,_Fields.PASSWORD,_Fields.SHARE_ID}; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + 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.AUTH, new org.apache.thrift.meta_data.FieldMetaData("auth", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, NetShareAuth.class))); tmpMap.put(_Fields.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -165,7 +137,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.SHARE_ID, new org.apache.thrift.meta_data.FieldMetaData("shareId", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(NetShare.class, metaDataMap); } @@ -174,7 +146,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie public NetShare( NetShareAuth auth, - String path) + java.lang.String path) { this(); this.auth = auth; @@ -227,6 +199,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie * * @see NetShareAuth */ + @org.apache.thrift.annotation.Nullable public NetShareAuth getAuth() { return this.auth; } @@ -235,7 +208,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie * * @see NetShareAuth */ - public NetShare setAuth(NetShareAuth auth) { + public NetShare setAuth(@org.apache.thrift.annotation.Nullable NetShareAuth auth) { this.auth = auth; return this; } @@ -255,11 +228,12 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie } } - public String getPath() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getPath() { return this.path; } - public NetShare setPath(String path) { + public NetShare setPath(@org.apache.thrift.annotation.Nullable java.lang.String path) { this.path = path; return this; } @@ -279,11 +253,12 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie } } - public String getDisplayname() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getDisplayname() { return this.displayname; } - public NetShare setDisplayname(String displayname) { + public NetShare setDisplayname(@org.apache.thrift.annotation.Nullable java.lang.String displayname) { this.displayname = displayname; return this; } @@ -303,11 +278,12 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie } } - public String getMountpoint() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getMountpoint() { return this.mountpoint; } - public NetShare setMountpoint(String mountpoint) { + public NetShare setMountpoint(@org.apache.thrift.annotation.Nullable java.lang.String mountpoint) { this.mountpoint = mountpoint; return this; } @@ -327,11 +303,12 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie } } - public String getUsername() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUsername() { return this.username; } - public NetShare setUsername(String username) { + public NetShare setUsername(@org.apache.thrift.annotation.Nullable java.lang.String username) { this.username = username; return this; } @@ -351,11 +328,12 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie } } - public String getPassword() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getPassword() { return this.password; } - public NetShare setPassword(String password) { + public NetShare setPassword(@org.apache.thrift.annotation.Nullable java.lang.String password) { this.password = password; return this; } @@ -386,19 +364,19 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie } public void unsetShareId() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SHAREID_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SHAREID_ISSET_ID); } /** Returns true if field shareId is set (has been assigned a value) and false otherwise */ public boolean isSetShareId() { - return EncodingUtils.testBit(__isset_bitfield, __SHAREID_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SHAREID_ISSET_ID); } public void setShareIdIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SHAREID_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SHAREID_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case AUTH: if (value == null) { @@ -412,7 +390,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie if (value == null) { unsetPath(); } else { - setPath((String)value); + setPath((java.lang.String)value); } break; @@ -420,7 +398,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie if (value == null) { unsetDisplayname(); } else { - setDisplayname((String)value); + setDisplayname((java.lang.String)value); } break; @@ -428,7 +406,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie if (value == null) { unsetMountpoint(); } else { - setMountpoint((String)value); + setMountpoint((java.lang.String)value); } break; @@ -436,7 +414,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie if (value == null) { unsetUsername(); } else { - setUsername((String)value); + setUsername((java.lang.String)value); } break; @@ -444,7 +422,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie if (value == null) { unsetPassword(); } else { - setPassword((String)value); + setPassword((java.lang.String)value); } break; @@ -452,14 +430,15 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie if (value == null) { unsetShareId(); } else { - setShareId((Integer)value); + setShareId((java.lang.Integer)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case AUTH: return getAuth(); @@ -483,13 +462,13 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie return getShareId(); } - throw new IllegalStateException(); + 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 IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -508,13 +487,11 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie case SHARE_ID: return isSetShareId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof NetShare) return this.equals((NetShare)that); return false; @@ -523,6 +500,8 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie public boolean equals(NetShare that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_auth = true && this.isSetAuth(); boolean that_present_auth = true && that.isSetAuth(); @@ -592,44 +571,37 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie @Override public int hashCode() { - List<Object> list = new ArrayList<Object>(); - - boolean present_auth = true && (isSetAuth()); - list.add(present_auth); - if (present_auth) - list.add(auth.getValue()); - - boolean present_path = true && (isSetPath()); - list.add(present_path); - if (present_path) - list.add(path); - - boolean present_displayname = true && (isSetDisplayname()); - list.add(present_displayname); - if (present_displayname) - list.add(displayname); - - boolean present_mountpoint = true && (isSetMountpoint()); - list.add(present_mountpoint); - if (present_mountpoint) - list.add(mountpoint); - - boolean present_username = true && (isSetUsername()); - list.add(present_username); - if (present_username) - list.add(username); - - boolean present_password = true && (isSetPassword()); - list.add(present_password); - if (present_password) - list.add(password); - - boolean present_shareId = true && (isSetShareId()); - list.add(present_shareId); - if (present_shareId) - list.add(shareId); - - return list.hashCode(); + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetAuth()) ? 131071 : 524287); + if (isSetAuth()) + hashCode = hashCode * 8191 + auth.getValue(); + + hashCode = hashCode * 8191 + ((isSetPath()) ? 131071 : 524287); + if (isSetPath()) + hashCode = hashCode * 8191 + path.hashCode(); + + hashCode = hashCode * 8191 + ((isSetDisplayname()) ? 131071 : 524287); + if (isSetDisplayname()) + hashCode = hashCode * 8191 + displayname.hashCode(); + + hashCode = hashCode * 8191 + ((isSetMountpoint()) ? 131071 : 524287); + if (isSetMountpoint()) + hashCode = hashCode * 8191 + mountpoint.hashCode(); + + hashCode = hashCode * 8191 + ((isSetUsername()) ? 131071 : 524287); + if (isSetUsername()) + hashCode = hashCode * 8191 + username.hashCode(); + + hashCode = hashCode * 8191 + ((isSetPassword()) ? 131071 : 524287); + if (isSetPassword()) + hashCode = hashCode * 8191 + password.hashCode(); + + hashCode = hashCode * 8191 + ((isSetShareId()) ? 131071 : 524287); + if (isSetShareId()) + hashCode = hashCode * 8191 + shareId; + + return hashCode; } @Override @@ -640,7 +612,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetAuth()).compareTo(other.isSetAuth()); + lastComparison = java.lang.Boolean.compare(isSetAuth(), other.isSetAuth()); if (lastComparison != 0) { return lastComparison; } @@ -650,7 +622,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPath()).compareTo(other.isSetPath()); + lastComparison = java.lang.Boolean.compare(isSetPath(), other.isSetPath()); if (lastComparison != 0) { return lastComparison; } @@ -660,7 +632,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDisplayname()).compareTo(other.isSetDisplayname()); + lastComparison = java.lang.Boolean.compare(isSetDisplayname(), other.isSetDisplayname()); if (lastComparison != 0) { return lastComparison; } @@ -670,7 +642,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMountpoint()).compareTo(other.isSetMountpoint()); + lastComparison = java.lang.Boolean.compare(isSetMountpoint(), other.isSetMountpoint()); if (lastComparison != 0) { return lastComparison; } @@ -680,7 +652,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); + lastComparison = java.lang.Boolean.compare(isSetUsername(), other.isSetUsername()); if (lastComparison != 0) { return lastComparison; } @@ -690,7 +662,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPassword()).compareTo(other.isSetPassword()); + lastComparison = java.lang.Boolean.compare(isSetPassword(), other.isSetPassword()); if (lastComparison != 0) { return lastComparison; } @@ -700,7 +672,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie return lastComparison; } } - lastComparison = Boolean.valueOf(isSetShareId()).compareTo(other.isSetShareId()); + lastComparison = java.lang.Boolean.compare(isSetShareId(), other.isSetShareId()); if (lastComparison != 0) { return lastComparison; } @@ -713,21 +685,22 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie 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 { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("NetShare("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("NetShare("); boolean first = true; sb.append("auth:"); @@ -808,7 +781,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + 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; @@ -818,13 +791,13 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie } } - private static class NetShareStandardSchemeFactory implements SchemeFactory { + private static class NetShareStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public NetShareStandardScheme getScheme() { return new NetShareStandardScheme(); } } - private static class NetShareStandardScheme extends StandardScheme<NetShare> { + private static class NetShareStandardScheme extends org.apache.thrift.scheme.StandardScheme<NetShare> { public void read(org.apache.thrift.protocol.TProtocol iprot, NetShare struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -956,18 +929,18 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie } - private static class NetShareTupleSchemeFactory implements SchemeFactory { + private static class NetShareTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public NetShareTupleScheme getScheme() { return new NetShareTupleScheme(); } } - private static class NetShareTupleScheme extends TupleScheme<NetShare> { + private static class NetShareTupleScheme extends org.apache.thrift.scheme.TupleScheme<NetShare> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, NetShare struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAuth()) { optionals.set(0); } @@ -1015,8 +988,8 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie @Override public void read(org.apache.thrift.protocol.TProtocol prot, NetShare struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(7); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.auth = org.openslx.bwlp.thrift.iface.NetShareAuth.findByValue(iprot.readI32()); struct.setAuthIsSet(true); @@ -1048,5 +1021,8 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie } } + 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(); + } } |