1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 /**
18 * Autogenerated by Thrift Compiler (0.9.0)
19 *
20 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
21 * @generated
22 */
23 package org.apache.accumulo.core.tabletserver.thrift;
24
25 import org.apache.thrift.scheme.IScheme;
26 import org.apache.thrift.scheme.SchemeFactory;
27 import org.apache.thrift.scheme.StandardScheme;
28
29 import org.apache.thrift.scheme.TupleScheme;
30 import org.apache.thrift.protocol.TTupleProtocol;
31 import org.apache.thrift.protocol.TProtocolException;
32 import org.apache.thrift.EncodingUtils;
33 import org.apache.thrift.TException;
34 import java.util.List;
35 import java.util.ArrayList;
36 import java.util.Map;
37 import java.util.HashMap;
38 import java.util.EnumMap;
39 import java.util.Set;
40 import java.util.HashSet;
41 import java.util.EnumSet;
42 import java.util.Collections;
43 import java.util.BitSet;
44 import java.nio.ByteBuffer;
45 import java.util.Arrays;
46 import org.slf4j.Logger;
47 import org.slf4j.LoggerFactory;
48
49 @SuppressWarnings("all") public class NoSuchScanIDException extends TException implements org.apache.thrift.TBase<NoSuchScanIDException, NoSuchScanIDException._Fields>, java.io.Serializable, Cloneable {
50 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("NoSuchScanIDException");
51
52
53 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
54 static {
55 schemes.put(StandardScheme.class, new NoSuchScanIDExceptionStandardSchemeFactory());
56 schemes.put(TupleScheme.class, new NoSuchScanIDExceptionTupleSchemeFactory());
57 }
58
59
60 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
61 @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
62 ;
63
64 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
65
66 static {
67 for (_Fields field : EnumSet.allOf(_Fields.class)) {
68 byName.put(field.getFieldName(), field);
69 }
70 }
71
72 /**
73 * Find the _Fields constant that matches fieldId, or null if its not found.
74 */
75 public static _Fields findByThriftId(int fieldId) {
76 switch(fieldId) {
77 default:
78 return null;
79 }
80 }
81
82 /**
83 * Find the _Fields constant that matches fieldId, throwing an exception
84 * if it is not found.
85 */
86 public static _Fields findByThriftIdOrThrow(int fieldId) {
87 _Fields fields = findByThriftId(fieldId);
88 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
89 return fields;
90 }
91
92 /**
93 * Find the _Fields constant that matches name, or null if its not found.
94 */
95 public static _Fields findByName(String name) {
96 return byName.get(name);
97 }
98
99 private final short _thriftId;
100 private final String _fieldName;
101
102 _Fields(short thriftId, String fieldName) {
103 _thriftId = thriftId;
104 _fieldName = fieldName;
105 }
106
107 public short getThriftFieldId() {
108 return _thriftId;
109 }
110
111 public String getFieldName() {
112 return _fieldName;
113 }
114 }
115 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
116 static {
117 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
118 metaDataMap = Collections.unmodifiableMap(tmpMap);
119 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(NoSuchScanIDException.class, metaDataMap);
120 }
121
122 public NoSuchScanIDException() {
123 }
124
125 /**
126 * Performs a deep copy on <i>other</i>.
127 */
128 public NoSuchScanIDException(NoSuchScanIDException other) {
129 }
130
131 public NoSuchScanIDException deepCopy() {
132 return new NoSuchScanIDException(this);
133 }
134
135 @Override
136 public void clear() {
137 }
138
139 public void setFieldValue(_Fields field, Object value) {
140 switch (field) {
141 }
142 }
143
144 public Object getFieldValue(_Fields field) {
145 switch (field) {
146 }
147 throw new IllegalStateException();
148 }
149
150 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
151 public boolean isSet(_Fields field) {
152 if (field == null) {
153 throw new IllegalArgumentException();
154 }
155
156 switch (field) {
157 }
158 throw new IllegalStateException();
159 }
160
161 @Override
162 public boolean equals(Object that) {
163 if (that == null)
164 return false;
165 if (that instanceof NoSuchScanIDException)
166 return this.equals((NoSuchScanIDException)that);
167 return false;
168 }
169
170 public boolean equals(NoSuchScanIDException that) {
171 if (that == null)
172 return false;
173
174 return true;
175 }
176
177 @Override
178 public int hashCode() {
179 return 0;
180 }
181
182 public int compareTo(NoSuchScanIDException other) {
183 if (!getClass().equals(other.getClass())) {
184 return getClass().getName().compareTo(other.getClass().getName());
185 }
186
187 int lastComparison = 0;
188 NoSuchScanIDException typedOther = (NoSuchScanIDException)other;
189
190 return 0;
191 }
192
193 public _Fields fieldForId(int fieldId) {
194 return _Fields.findByThriftId(fieldId);
195 }
196
197 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
198 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
199 }
200
201 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
202 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
203 }
204
205 @Override
206 public String toString() {
207 StringBuilder sb = new StringBuilder("NoSuchScanIDException(");
208 boolean first = true;
209
210 sb.append(")");
211 return sb.toString();
212 }
213
214 public void validate() throws org.apache.thrift.TException {
215
216
217 }
218
219 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
220 try {
221 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
222 } catch (org.apache.thrift.TException te) {
223 throw new java.io.IOException(te);
224 }
225 }
226
227 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
228 try {
229 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
230 } catch (org.apache.thrift.TException te) {
231 throw new java.io.IOException(te);
232 }
233 }
234
235 private static class NoSuchScanIDExceptionStandardSchemeFactory implements SchemeFactory {
236 public NoSuchScanIDExceptionStandardScheme getScheme() {
237 return new NoSuchScanIDExceptionStandardScheme();
238 }
239 }
240
241 private static class NoSuchScanIDExceptionStandardScheme extends StandardScheme<NoSuchScanIDException> {
242
243 public void read(org.apache.thrift.protocol.TProtocol iprot, NoSuchScanIDException struct) throws org.apache.thrift.TException {
244 org.apache.thrift.protocol.TField schemeField;
245 iprot.readStructBegin();
246 while (true)
247 {
248 schemeField = iprot.readFieldBegin();
249 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
250 break;
251 }
252 switch (schemeField.id) {
253 default:
254 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
255 }
256 iprot.readFieldEnd();
257 }
258 iprot.readStructEnd();
259
260
261 struct.validate();
262 }
263
264 public void write(org.apache.thrift.protocol.TProtocol oprot, NoSuchScanIDException struct) throws org.apache.thrift.TException {
265 struct.validate();
266
267 oprot.writeStructBegin(STRUCT_DESC);
268 oprot.writeFieldStop();
269 oprot.writeStructEnd();
270 }
271
272 }
273
274 private static class NoSuchScanIDExceptionTupleSchemeFactory implements SchemeFactory {
275 public NoSuchScanIDExceptionTupleScheme getScheme() {
276 return new NoSuchScanIDExceptionTupleScheme();
277 }
278 }
279
280 private static class NoSuchScanIDExceptionTupleScheme extends TupleScheme<NoSuchScanIDException> {
281
282 @Override
283 public void write(org.apache.thrift.protocol.TProtocol prot, NoSuchScanIDException struct) throws org.apache.thrift.TException {
284 TTupleProtocol oprot = (TTupleProtocol) prot;
285 }
286
287 @Override
288 public void read(org.apache.thrift.protocol.TProtocol prot, NoSuchScanIDException struct) throws org.apache.thrift.TException {
289 TTupleProtocol iprot = (TTupleProtocol) prot;
290 }
291 }
292
293 }
294