| 11905 |
kshitij.so |
1 |
/**
|
|
|
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
|
|
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.model.v1.catalog;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
|
|
18 |
import java.nio.ByteBuffer;
|
|
|
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
public class PdPriceComp implements org.apache.thrift.TBase<PdPriceComp, PdPriceComp._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PdPriceComp");
|
|
|
25 |
|
|
|
26 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
27 |
private static final org.apache.thrift.protocol.TField DEAL_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("dealPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField SAHOLIC_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("saholicPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField SD_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("sdPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField FK_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("fkPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
|
|
|
31 |
private static final org.apache.thrift.protocol.TField AMAZON_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
|
|
|
32 |
private static final org.apache.thrift.protocol.TField PRODUCT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("productName", org.apache.thrift.protocol.TType.STRING, (short)7);
|
| 12169 |
kshitij.so |
33 |
private static final org.apache.thrift.protocol.TField LAST_PROCESSED_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("lastProcessedTimestamp", org.apache.thrift.protocol.TType.I64, (short)8);
|
| 12243 |
kshitij.so |
34 |
private static final org.apache.thrift.protocol.TField DIFF_FIELD_DESC = new org.apache.thrift.protocol.TField("diff", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
|
| 11905 |
kshitij.so |
35 |
|
|
|
36 |
private long item_id; // required
|
|
|
37 |
private double dealPrice; // required
|
|
|
38 |
private double saholicPrice; // required
|
|
|
39 |
private double sdPrice; // required
|
|
|
40 |
private double fkPrice; // required
|
|
|
41 |
private double amazonPrice; // required
|
|
|
42 |
private String productName; // required
|
| 12169 |
kshitij.so |
43 |
private long lastProcessedTimestamp; // required
|
| 12243 |
kshitij.so |
44 |
private double diff; // required
|
| 11905 |
kshitij.so |
45 |
|
|
|
46 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
47 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
48 |
ITEM_ID((short)1, "item_id"),
|
|
|
49 |
DEAL_PRICE((short)2, "dealPrice"),
|
|
|
50 |
SAHOLIC_PRICE((short)3, "saholicPrice"),
|
|
|
51 |
SD_PRICE((short)4, "sdPrice"),
|
|
|
52 |
FK_PRICE((short)5, "fkPrice"),
|
|
|
53 |
AMAZON_PRICE((short)6, "amazonPrice"),
|
| 12169 |
kshitij.so |
54 |
PRODUCT_NAME((short)7, "productName"),
|
| 12243 |
kshitij.so |
55 |
LAST_PROCESSED_TIMESTAMP((short)8, "lastProcessedTimestamp"),
|
|
|
56 |
DIFF((short)9, "diff");
|
| 11905 |
kshitij.so |
57 |
|
|
|
58 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
59 |
|
|
|
60 |
static {
|
|
|
61 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
62 |
byName.put(field.getFieldName(), field);
|
|
|
63 |
}
|
|
|
64 |
}
|
|
|
65 |
|
|
|
66 |
/**
|
|
|
67 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
68 |
*/
|
|
|
69 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
70 |
switch(fieldId) {
|
|
|
71 |
case 1: // ITEM_ID
|
|
|
72 |
return ITEM_ID;
|
|
|
73 |
case 2: // DEAL_PRICE
|
|
|
74 |
return DEAL_PRICE;
|
|
|
75 |
case 3: // SAHOLIC_PRICE
|
|
|
76 |
return SAHOLIC_PRICE;
|
|
|
77 |
case 4: // SD_PRICE
|
|
|
78 |
return SD_PRICE;
|
|
|
79 |
case 5: // FK_PRICE
|
|
|
80 |
return FK_PRICE;
|
|
|
81 |
case 6: // AMAZON_PRICE
|
|
|
82 |
return AMAZON_PRICE;
|
|
|
83 |
case 7: // PRODUCT_NAME
|
|
|
84 |
return PRODUCT_NAME;
|
| 12169 |
kshitij.so |
85 |
case 8: // LAST_PROCESSED_TIMESTAMP
|
|
|
86 |
return LAST_PROCESSED_TIMESTAMP;
|
| 12243 |
kshitij.so |
87 |
case 9: // DIFF
|
|
|
88 |
return DIFF;
|
| 11905 |
kshitij.so |
89 |
default:
|
|
|
90 |
return null;
|
|
|
91 |
}
|
|
|
92 |
}
|
|
|
93 |
|
|
|
94 |
/**
|
|
|
95 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
96 |
* if it is not found.
|
|
|
97 |
*/
|
|
|
98 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
99 |
_Fields fields = findByThriftId(fieldId);
|
|
|
100 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
101 |
return fields;
|
|
|
102 |
}
|
|
|
103 |
|
|
|
104 |
/**
|
|
|
105 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
106 |
*/
|
|
|
107 |
public static _Fields findByName(String name) {
|
|
|
108 |
return byName.get(name);
|
|
|
109 |
}
|
|
|
110 |
|
|
|
111 |
private final short _thriftId;
|
|
|
112 |
private final String _fieldName;
|
|
|
113 |
|
|
|
114 |
_Fields(short thriftId, String fieldName) {
|
|
|
115 |
_thriftId = thriftId;
|
|
|
116 |
_fieldName = fieldName;
|
|
|
117 |
}
|
|
|
118 |
|
|
|
119 |
public short getThriftFieldId() {
|
|
|
120 |
return _thriftId;
|
|
|
121 |
}
|
|
|
122 |
|
|
|
123 |
public String getFieldName() {
|
|
|
124 |
return _fieldName;
|
|
|
125 |
}
|
|
|
126 |
}
|
|
|
127 |
|
|
|
128 |
// isset id assignments
|
|
|
129 |
private static final int __ITEM_ID_ISSET_ID = 0;
|
|
|
130 |
private static final int __DEALPRICE_ISSET_ID = 1;
|
|
|
131 |
private static final int __SAHOLICPRICE_ISSET_ID = 2;
|
|
|
132 |
private static final int __SDPRICE_ISSET_ID = 3;
|
|
|
133 |
private static final int __FKPRICE_ISSET_ID = 4;
|
|
|
134 |
private static final int __AMAZONPRICE_ISSET_ID = 5;
|
| 12169 |
kshitij.so |
135 |
private static final int __LASTPROCESSEDTIMESTAMP_ISSET_ID = 6;
|
| 12243 |
kshitij.so |
136 |
private static final int __DIFF_ISSET_ID = 7;
|
|
|
137 |
private BitSet __isset_bit_vector = new BitSet(8);
|
| 11905 |
kshitij.so |
138 |
|
|
|
139 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
140 |
static {
|
|
|
141 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
142 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
143 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
144 |
tmpMap.put(_Fields.DEAL_PRICE, new org.apache.thrift.meta_data.FieldMetaData("dealPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
145 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
146 |
tmpMap.put(_Fields.SAHOLIC_PRICE, new org.apache.thrift.meta_data.FieldMetaData("saholicPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
147 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
148 |
tmpMap.put(_Fields.SD_PRICE, new org.apache.thrift.meta_data.FieldMetaData("sdPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
149 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
150 |
tmpMap.put(_Fields.FK_PRICE, new org.apache.thrift.meta_data.FieldMetaData("fkPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
151 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
152 |
tmpMap.put(_Fields.AMAZON_PRICE, new org.apache.thrift.meta_data.FieldMetaData("amazonPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
153 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
154 |
tmpMap.put(_Fields.PRODUCT_NAME, new org.apache.thrift.meta_data.FieldMetaData("productName", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
155 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 12169 |
kshitij.so |
156 |
tmpMap.put(_Fields.LAST_PROCESSED_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("lastProcessedTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
157 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 12243 |
kshitij.so |
158 |
tmpMap.put(_Fields.DIFF, new org.apache.thrift.meta_data.FieldMetaData("diff", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
159 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 11905 |
kshitij.so |
160 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
161 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PdPriceComp.class, metaDataMap);
|
|
|
162 |
}
|
|
|
163 |
|
|
|
164 |
public PdPriceComp() {
|
|
|
165 |
}
|
|
|
166 |
|
|
|
167 |
public PdPriceComp(
|
|
|
168 |
long item_id,
|
|
|
169 |
double dealPrice,
|
|
|
170 |
double saholicPrice,
|
|
|
171 |
double sdPrice,
|
|
|
172 |
double fkPrice,
|
|
|
173 |
double amazonPrice,
|
| 12169 |
kshitij.so |
174 |
String productName,
|
| 12243 |
kshitij.so |
175 |
long lastProcessedTimestamp,
|
|
|
176 |
double diff)
|
| 11905 |
kshitij.so |
177 |
{
|
|
|
178 |
this();
|
|
|
179 |
this.item_id = item_id;
|
|
|
180 |
setItem_idIsSet(true);
|
|
|
181 |
this.dealPrice = dealPrice;
|
|
|
182 |
setDealPriceIsSet(true);
|
|
|
183 |
this.saholicPrice = saholicPrice;
|
|
|
184 |
setSaholicPriceIsSet(true);
|
|
|
185 |
this.sdPrice = sdPrice;
|
|
|
186 |
setSdPriceIsSet(true);
|
|
|
187 |
this.fkPrice = fkPrice;
|
|
|
188 |
setFkPriceIsSet(true);
|
|
|
189 |
this.amazonPrice = amazonPrice;
|
|
|
190 |
setAmazonPriceIsSet(true);
|
|
|
191 |
this.productName = productName;
|
| 12169 |
kshitij.so |
192 |
this.lastProcessedTimestamp = lastProcessedTimestamp;
|
|
|
193 |
setLastProcessedTimestampIsSet(true);
|
| 12243 |
kshitij.so |
194 |
this.diff = diff;
|
|
|
195 |
setDiffIsSet(true);
|
| 11905 |
kshitij.so |
196 |
}
|
|
|
197 |
|
|
|
198 |
/**
|
|
|
199 |
* Performs a deep copy on <i>other</i>.
|
|
|
200 |
*/
|
|
|
201 |
public PdPriceComp(PdPriceComp other) {
|
|
|
202 |
__isset_bit_vector.clear();
|
|
|
203 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
204 |
this.item_id = other.item_id;
|
|
|
205 |
this.dealPrice = other.dealPrice;
|
|
|
206 |
this.saholicPrice = other.saholicPrice;
|
|
|
207 |
this.sdPrice = other.sdPrice;
|
|
|
208 |
this.fkPrice = other.fkPrice;
|
|
|
209 |
this.amazonPrice = other.amazonPrice;
|
|
|
210 |
if (other.isSetProductName()) {
|
|
|
211 |
this.productName = other.productName;
|
|
|
212 |
}
|
| 12169 |
kshitij.so |
213 |
this.lastProcessedTimestamp = other.lastProcessedTimestamp;
|
| 12243 |
kshitij.so |
214 |
this.diff = other.diff;
|
| 11905 |
kshitij.so |
215 |
}
|
|
|
216 |
|
|
|
217 |
public PdPriceComp deepCopy() {
|
|
|
218 |
return new PdPriceComp(this);
|
|
|
219 |
}
|
|
|
220 |
|
|
|
221 |
@Override
|
|
|
222 |
public void clear() {
|
|
|
223 |
setItem_idIsSet(false);
|
|
|
224 |
this.item_id = 0;
|
|
|
225 |
setDealPriceIsSet(false);
|
|
|
226 |
this.dealPrice = 0.0;
|
|
|
227 |
setSaholicPriceIsSet(false);
|
|
|
228 |
this.saholicPrice = 0.0;
|
|
|
229 |
setSdPriceIsSet(false);
|
|
|
230 |
this.sdPrice = 0.0;
|
|
|
231 |
setFkPriceIsSet(false);
|
|
|
232 |
this.fkPrice = 0.0;
|
|
|
233 |
setAmazonPriceIsSet(false);
|
|
|
234 |
this.amazonPrice = 0.0;
|
|
|
235 |
this.productName = null;
|
| 12169 |
kshitij.so |
236 |
setLastProcessedTimestampIsSet(false);
|
|
|
237 |
this.lastProcessedTimestamp = 0;
|
| 12243 |
kshitij.so |
238 |
setDiffIsSet(false);
|
|
|
239 |
this.diff = 0.0;
|
| 11905 |
kshitij.so |
240 |
}
|
|
|
241 |
|
|
|
242 |
public long getItem_id() {
|
|
|
243 |
return this.item_id;
|
|
|
244 |
}
|
|
|
245 |
|
|
|
246 |
public void setItem_id(long item_id) {
|
|
|
247 |
this.item_id = item_id;
|
|
|
248 |
setItem_idIsSet(true);
|
|
|
249 |
}
|
|
|
250 |
|
|
|
251 |
public void unsetItem_id() {
|
|
|
252 |
__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
|
|
|
253 |
}
|
|
|
254 |
|
|
|
255 |
/** Returns true if field item_id is set (has been assigned a value) and false otherwise */
|
|
|
256 |
public boolean isSetItem_id() {
|
|
|
257 |
return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
|
|
|
258 |
}
|
|
|
259 |
|
|
|
260 |
public void setItem_idIsSet(boolean value) {
|
|
|
261 |
__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
|
|
|
262 |
}
|
|
|
263 |
|
|
|
264 |
public double getDealPrice() {
|
|
|
265 |
return this.dealPrice;
|
|
|
266 |
}
|
|
|
267 |
|
|
|
268 |
public void setDealPrice(double dealPrice) {
|
|
|
269 |
this.dealPrice = dealPrice;
|
|
|
270 |
setDealPriceIsSet(true);
|
|
|
271 |
}
|
|
|
272 |
|
|
|
273 |
public void unsetDealPrice() {
|
|
|
274 |
__isset_bit_vector.clear(__DEALPRICE_ISSET_ID);
|
|
|
275 |
}
|
|
|
276 |
|
|
|
277 |
/** Returns true if field dealPrice is set (has been assigned a value) and false otherwise */
|
|
|
278 |
public boolean isSetDealPrice() {
|
|
|
279 |
return __isset_bit_vector.get(__DEALPRICE_ISSET_ID);
|
|
|
280 |
}
|
|
|
281 |
|
|
|
282 |
public void setDealPriceIsSet(boolean value) {
|
|
|
283 |
__isset_bit_vector.set(__DEALPRICE_ISSET_ID, value);
|
|
|
284 |
}
|
|
|
285 |
|
|
|
286 |
public double getSaholicPrice() {
|
|
|
287 |
return this.saholicPrice;
|
|
|
288 |
}
|
|
|
289 |
|
|
|
290 |
public void setSaholicPrice(double saholicPrice) {
|
|
|
291 |
this.saholicPrice = saholicPrice;
|
|
|
292 |
setSaholicPriceIsSet(true);
|
|
|
293 |
}
|
|
|
294 |
|
|
|
295 |
public void unsetSaholicPrice() {
|
|
|
296 |
__isset_bit_vector.clear(__SAHOLICPRICE_ISSET_ID);
|
|
|
297 |
}
|
|
|
298 |
|
|
|
299 |
/** Returns true if field saholicPrice is set (has been assigned a value) and false otherwise */
|
|
|
300 |
public boolean isSetSaholicPrice() {
|
|
|
301 |
return __isset_bit_vector.get(__SAHOLICPRICE_ISSET_ID);
|
|
|
302 |
}
|
|
|
303 |
|
|
|
304 |
public void setSaholicPriceIsSet(boolean value) {
|
|
|
305 |
__isset_bit_vector.set(__SAHOLICPRICE_ISSET_ID, value);
|
|
|
306 |
}
|
|
|
307 |
|
|
|
308 |
public double getSdPrice() {
|
|
|
309 |
return this.sdPrice;
|
|
|
310 |
}
|
|
|
311 |
|
|
|
312 |
public void setSdPrice(double sdPrice) {
|
|
|
313 |
this.sdPrice = sdPrice;
|
|
|
314 |
setSdPriceIsSet(true);
|
|
|
315 |
}
|
|
|
316 |
|
|
|
317 |
public void unsetSdPrice() {
|
|
|
318 |
__isset_bit_vector.clear(__SDPRICE_ISSET_ID);
|
|
|
319 |
}
|
|
|
320 |
|
|
|
321 |
/** Returns true if field sdPrice is set (has been assigned a value) and false otherwise */
|
|
|
322 |
public boolean isSetSdPrice() {
|
|
|
323 |
return __isset_bit_vector.get(__SDPRICE_ISSET_ID);
|
|
|
324 |
}
|
|
|
325 |
|
|
|
326 |
public void setSdPriceIsSet(boolean value) {
|
|
|
327 |
__isset_bit_vector.set(__SDPRICE_ISSET_ID, value);
|
|
|
328 |
}
|
|
|
329 |
|
|
|
330 |
public double getFkPrice() {
|
|
|
331 |
return this.fkPrice;
|
|
|
332 |
}
|
|
|
333 |
|
|
|
334 |
public void setFkPrice(double fkPrice) {
|
|
|
335 |
this.fkPrice = fkPrice;
|
|
|
336 |
setFkPriceIsSet(true);
|
|
|
337 |
}
|
|
|
338 |
|
|
|
339 |
public void unsetFkPrice() {
|
|
|
340 |
__isset_bit_vector.clear(__FKPRICE_ISSET_ID);
|
|
|
341 |
}
|
|
|
342 |
|
|
|
343 |
/** Returns true if field fkPrice is set (has been assigned a value) and false otherwise */
|
|
|
344 |
public boolean isSetFkPrice() {
|
|
|
345 |
return __isset_bit_vector.get(__FKPRICE_ISSET_ID);
|
|
|
346 |
}
|
|
|
347 |
|
|
|
348 |
public void setFkPriceIsSet(boolean value) {
|
|
|
349 |
__isset_bit_vector.set(__FKPRICE_ISSET_ID, value);
|
|
|
350 |
}
|
|
|
351 |
|
|
|
352 |
public double getAmazonPrice() {
|
|
|
353 |
return this.amazonPrice;
|
|
|
354 |
}
|
|
|
355 |
|
|
|
356 |
public void setAmazonPrice(double amazonPrice) {
|
|
|
357 |
this.amazonPrice = amazonPrice;
|
|
|
358 |
setAmazonPriceIsSet(true);
|
|
|
359 |
}
|
|
|
360 |
|
|
|
361 |
public void unsetAmazonPrice() {
|
|
|
362 |
__isset_bit_vector.clear(__AMAZONPRICE_ISSET_ID);
|
|
|
363 |
}
|
|
|
364 |
|
|
|
365 |
/** Returns true if field amazonPrice is set (has been assigned a value) and false otherwise */
|
|
|
366 |
public boolean isSetAmazonPrice() {
|
|
|
367 |
return __isset_bit_vector.get(__AMAZONPRICE_ISSET_ID);
|
|
|
368 |
}
|
|
|
369 |
|
|
|
370 |
public void setAmazonPriceIsSet(boolean value) {
|
|
|
371 |
__isset_bit_vector.set(__AMAZONPRICE_ISSET_ID, value);
|
|
|
372 |
}
|
|
|
373 |
|
|
|
374 |
public String getProductName() {
|
|
|
375 |
return this.productName;
|
|
|
376 |
}
|
|
|
377 |
|
|
|
378 |
public void setProductName(String productName) {
|
|
|
379 |
this.productName = productName;
|
|
|
380 |
}
|
|
|
381 |
|
|
|
382 |
public void unsetProductName() {
|
|
|
383 |
this.productName = null;
|
|
|
384 |
}
|
|
|
385 |
|
|
|
386 |
/** Returns true if field productName is set (has been assigned a value) and false otherwise */
|
|
|
387 |
public boolean isSetProductName() {
|
|
|
388 |
return this.productName != null;
|
|
|
389 |
}
|
|
|
390 |
|
|
|
391 |
public void setProductNameIsSet(boolean value) {
|
|
|
392 |
if (!value) {
|
|
|
393 |
this.productName = null;
|
|
|
394 |
}
|
|
|
395 |
}
|
|
|
396 |
|
| 12169 |
kshitij.so |
397 |
public long getLastProcessedTimestamp() {
|
|
|
398 |
return this.lastProcessedTimestamp;
|
|
|
399 |
}
|
|
|
400 |
|
|
|
401 |
public void setLastProcessedTimestamp(long lastProcessedTimestamp) {
|
|
|
402 |
this.lastProcessedTimestamp = lastProcessedTimestamp;
|
|
|
403 |
setLastProcessedTimestampIsSet(true);
|
|
|
404 |
}
|
|
|
405 |
|
|
|
406 |
public void unsetLastProcessedTimestamp() {
|
|
|
407 |
__isset_bit_vector.clear(__LASTPROCESSEDTIMESTAMP_ISSET_ID);
|
|
|
408 |
}
|
|
|
409 |
|
|
|
410 |
/** Returns true if field lastProcessedTimestamp is set (has been assigned a value) and false otherwise */
|
|
|
411 |
public boolean isSetLastProcessedTimestamp() {
|
|
|
412 |
return __isset_bit_vector.get(__LASTPROCESSEDTIMESTAMP_ISSET_ID);
|
|
|
413 |
}
|
|
|
414 |
|
|
|
415 |
public void setLastProcessedTimestampIsSet(boolean value) {
|
|
|
416 |
__isset_bit_vector.set(__LASTPROCESSEDTIMESTAMP_ISSET_ID, value);
|
|
|
417 |
}
|
|
|
418 |
|
| 12243 |
kshitij.so |
419 |
public double getDiff() {
|
|
|
420 |
return this.diff;
|
|
|
421 |
}
|
|
|
422 |
|
|
|
423 |
public void setDiff(double diff) {
|
|
|
424 |
this.diff = diff;
|
|
|
425 |
setDiffIsSet(true);
|
|
|
426 |
}
|
|
|
427 |
|
|
|
428 |
public void unsetDiff() {
|
|
|
429 |
__isset_bit_vector.clear(__DIFF_ISSET_ID);
|
|
|
430 |
}
|
|
|
431 |
|
|
|
432 |
/** Returns true if field diff is set (has been assigned a value) and false otherwise */
|
|
|
433 |
public boolean isSetDiff() {
|
|
|
434 |
return __isset_bit_vector.get(__DIFF_ISSET_ID);
|
|
|
435 |
}
|
|
|
436 |
|
|
|
437 |
public void setDiffIsSet(boolean value) {
|
|
|
438 |
__isset_bit_vector.set(__DIFF_ISSET_ID, value);
|
|
|
439 |
}
|
|
|
440 |
|
| 11905 |
kshitij.so |
441 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
442 |
switch (field) {
|
|
|
443 |
case ITEM_ID:
|
|
|
444 |
if (value == null) {
|
|
|
445 |
unsetItem_id();
|
|
|
446 |
} else {
|
|
|
447 |
setItem_id((Long)value);
|
|
|
448 |
}
|
|
|
449 |
break;
|
|
|
450 |
|
|
|
451 |
case DEAL_PRICE:
|
|
|
452 |
if (value == null) {
|
|
|
453 |
unsetDealPrice();
|
|
|
454 |
} else {
|
|
|
455 |
setDealPrice((Double)value);
|
|
|
456 |
}
|
|
|
457 |
break;
|
|
|
458 |
|
|
|
459 |
case SAHOLIC_PRICE:
|
|
|
460 |
if (value == null) {
|
|
|
461 |
unsetSaholicPrice();
|
|
|
462 |
} else {
|
|
|
463 |
setSaholicPrice((Double)value);
|
|
|
464 |
}
|
|
|
465 |
break;
|
|
|
466 |
|
|
|
467 |
case SD_PRICE:
|
|
|
468 |
if (value == null) {
|
|
|
469 |
unsetSdPrice();
|
|
|
470 |
} else {
|
|
|
471 |
setSdPrice((Double)value);
|
|
|
472 |
}
|
|
|
473 |
break;
|
|
|
474 |
|
|
|
475 |
case FK_PRICE:
|
|
|
476 |
if (value == null) {
|
|
|
477 |
unsetFkPrice();
|
|
|
478 |
} else {
|
|
|
479 |
setFkPrice((Double)value);
|
|
|
480 |
}
|
|
|
481 |
break;
|
|
|
482 |
|
|
|
483 |
case AMAZON_PRICE:
|
|
|
484 |
if (value == null) {
|
|
|
485 |
unsetAmazonPrice();
|
|
|
486 |
} else {
|
|
|
487 |
setAmazonPrice((Double)value);
|
|
|
488 |
}
|
|
|
489 |
break;
|
|
|
490 |
|
|
|
491 |
case PRODUCT_NAME:
|
|
|
492 |
if (value == null) {
|
|
|
493 |
unsetProductName();
|
|
|
494 |
} else {
|
|
|
495 |
setProductName((String)value);
|
|
|
496 |
}
|
|
|
497 |
break;
|
|
|
498 |
|
| 12169 |
kshitij.so |
499 |
case LAST_PROCESSED_TIMESTAMP:
|
|
|
500 |
if (value == null) {
|
|
|
501 |
unsetLastProcessedTimestamp();
|
|
|
502 |
} else {
|
|
|
503 |
setLastProcessedTimestamp((Long)value);
|
|
|
504 |
}
|
|
|
505 |
break;
|
|
|
506 |
|
| 12243 |
kshitij.so |
507 |
case DIFF:
|
|
|
508 |
if (value == null) {
|
|
|
509 |
unsetDiff();
|
|
|
510 |
} else {
|
|
|
511 |
setDiff((Double)value);
|
|
|
512 |
}
|
|
|
513 |
break;
|
|
|
514 |
|
| 11905 |
kshitij.so |
515 |
}
|
|
|
516 |
}
|
|
|
517 |
|
|
|
518 |
public Object getFieldValue(_Fields field) {
|
|
|
519 |
switch (field) {
|
|
|
520 |
case ITEM_ID:
|
|
|
521 |
return Long.valueOf(getItem_id());
|
|
|
522 |
|
|
|
523 |
case DEAL_PRICE:
|
|
|
524 |
return Double.valueOf(getDealPrice());
|
|
|
525 |
|
|
|
526 |
case SAHOLIC_PRICE:
|
|
|
527 |
return Double.valueOf(getSaholicPrice());
|
|
|
528 |
|
|
|
529 |
case SD_PRICE:
|
|
|
530 |
return Double.valueOf(getSdPrice());
|
|
|
531 |
|
|
|
532 |
case FK_PRICE:
|
|
|
533 |
return Double.valueOf(getFkPrice());
|
|
|
534 |
|
|
|
535 |
case AMAZON_PRICE:
|
|
|
536 |
return Double.valueOf(getAmazonPrice());
|
|
|
537 |
|
|
|
538 |
case PRODUCT_NAME:
|
|
|
539 |
return getProductName();
|
|
|
540 |
|
| 12169 |
kshitij.so |
541 |
case LAST_PROCESSED_TIMESTAMP:
|
|
|
542 |
return Long.valueOf(getLastProcessedTimestamp());
|
|
|
543 |
|
| 12243 |
kshitij.so |
544 |
case DIFF:
|
|
|
545 |
return Double.valueOf(getDiff());
|
|
|
546 |
|
| 11905 |
kshitij.so |
547 |
}
|
|
|
548 |
throw new IllegalStateException();
|
|
|
549 |
}
|
|
|
550 |
|
|
|
551 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
552 |
public boolean isSet(_Fields field) {
|
|
|
553 |
if (field == null) {
|
|
|
554 |
throw new IllegalArgumentException();
|
|
|
555 |
}
|
|
|
556 |
|
|
|
557 |
switch (field) {
|
|
|
558 |
case ITEM_ID:
|
|
|
559 |
return isSetItem_id();
|
|
|
560 |
case DEAL_PRICE:
|
|
|
561 |
return isSetDealPrice();
|
|
|
562 |
case SAHOLIC_PRICE:
|
|
|
563 |
return isSetSaholicPrice();
|
|
|
564 |
case SD_PRICE:
|
|
|
565 |
return isSetSdPrice();
|
|
|
566 |
case FK_PRICE:
|
|
|
567 |
return isSetFkPrice();
|
|
|
568 |
case AMAZON_PRICE:
|
|
|
569 |
return isSetAmazonPrice();
|
|
|
570 |
case PRODUCT_NAME:
|
|
|
571 |
return isSetProductName();
|
| 12169 |
kshitij.so |
572 |
case LAST_PROCESSED_TIMESTAMP:
|
|
|
573 |
return isSetLastProcessedTimestamp();
|
| 12243 |
kshitij.so |
574 |
case DIFF:
|
|
|
575 |
return isSetDiff();
|
| 11905 |
kshitij.so |
576 |
}
|
|
|
577 |
throw new IllegalStateException();
|
|
|
578 |
}
|
|
|
579 |
|
|
|
580 |
@Override
|
|
|
581 |
public boolean equals(Object that) {
|
|
|
582 |
if (that == null)
|
|
|
583 |
return false;
|
|
|
584 |
if (that instanceof PdPriceComp)
|
|
|
585 |
return this.equals((PdPriceComp)that);
|
|
|
586 |
return false;
|
|
|
587 |
}
|
|
|
588 |
|
|
|
589 |
public boolean equals(PdPriceComp that) {
|
|
|
590 |
if (that == null)
|
|
|
591 |
return false;
|
|
|
592 |
|
|
|
593 |
boolean this_present_item_id = true;
|
|
|
594 |
boolean that_present_item_id = true;
|
|
|
595 |
if (this_present_item_id || that_present_item_id) {
|
|
|
596 |
if (!(this_present_item_id && that_present_item_id))
|
|
|
597 |
return false;
|
|
|
598 |
if (this.item_id != that.item_id)
|
|
|
599 |
return false;
|
|
|
600 |
}
|
|
|
601 |
|
|
|
602 |
boolean this_present_dealPrice = true;
|
|
|
603 |
boolean that_present_dealPrice = true;
|
|
|
604 |
if (this_present_dealPrice || that_present_dealPrice) {
|
|
|
605 |
if (!(this_present_dealPrice && that_present_dealPrice))
|
|
|
606 |
return false;
|
|
|
607 |
if (this.dealPrice != that.dealPrice)
|
|
|
608 |
return false;
|
|
|
609 |
}
|
|
|
610 |
|
|
|
611 |
boolean this_present_saholicPrice = true;
|
|
|
612 |
boolean that_present_saholicPrice = true;
|
|
|
613 |
if (this_present_saholicPrice || that_present_saholicPrice) {
|
|
|
614 |
if (!(this_present_saholicPrice && that_present_saholicPrice))
|
|
|
615 |
return false;
|
|
|
616 |
if (this.saholicPrice != that.saholicPrice)
|
|
|
617 |
return false;
|
|
|
618 |
}
|
|
|
619 |
|
|
|
620 |
boolean this_present_sdPrice = true;
|
|
|
621 |
boolean that_present_sdPrice = true;
|
|
|
622 |
if (this_present_sdPrice || that_present_sdPrice) {
|
|
|
623 |
if (!(this_present_sdPrice && that_present_sdPrice))
|
|
|
624 |
return false;
|
|
|
625 |
if (this.sdPrice != that.sdPrice)
|
|
|
626 |
return false;
|
|
|
627 |
}
|
|
|
628 |
|
|
|
629 |
boolean this_present_fkPrice = true;
|
|
|
630 |
boolean that_present_fkPrice = true;
|
|
|
631 |
if (this_present_fkPrice || that_present_fkPrice) {
|
|
|
632 |
if (!(this_present_fkPrice && that_present_fkPrice))
|
|
|
633 |
return false;
|
|
|
634 |
if (this.fkPrice != that.fkPrice)
|
|
|
635 |
return false;
|
|
|
636 |
}
|
|
|
637 |
|
|
|
638 |
boolean this_present_amazonPrice = true;
|
|
|
639 |
boolean that_present_amazonPrice = true;
|
|
|
640 |
if (this_present_amazonPrice || that_present_amazonPrice) {
|
|
|
641 |
if (!(this_present_amazonPrice && that_present_amazonPrice))
|
|
|
642 |
return false;
|
|
|
643 |
if (this.amazonPrice != that.amazonPrice)
|
|
|
644 |
return false;
|
|
|
645 |
}
|
|
|
646 |
|
|
|
647 |
boolean this_present_productName = true && this.isSetProductName();
|
|
|
648 |
boolean that_present_productName = true && that.isSetProductName();
|
|
|
649 |
if (this_present_productName || that_present_productName) {
|
|
|
650 |
if (!(this_present_productName && that_present_productName))
|
|
|
651 |
return false;
|
|
|
652 |
if (!this.productName.equals(that.productName))
|
|
|
653 |
return false;
|
|
|
654 |
}
|
|
|
655 |
|
| 12169 |
kshitij.so |
656 |
boolean this_present_lastProcessedTimestamp = true;
|
|
|
657 |
boolean that_present_lastProcessedTimestamp = true;
|
|
|
658 |
if (this_present_lastProcessedTimestamp || that_present_lastProcessedTimestamp) {
|
|
|
659 |
if (!(this_present_lastProcessedTimestamp && that_present_lastProcessedTimestamp))
|
|
|
660 |
return false;
|
|
|
661 |
if (this.lastProcessedTimestamp != that.lastProcessedTimestamp)
|
|
|
662 |
return false;
|
|
|
663 |
}
|
|
|
664 |
|
| 12243 |
kshitij.so |
665 |
boolean this_present_diff = true;
|
|
|
666 |
boolean that_present_diff = true;
|
|
|
667 |
if (this_present_diff || that_present_diff) {
|
|
|
668 |
if (!(this_present_diff && that_present_diff))
|
|
|
669 |
return false;
|
|
|
670 |
if (this.diff != that.diff)
|
|
|
671 |
return false;
|
|
|
672 |
}
|
|
|
673 |
|
| 11905 |
kshitij.so |
674 |
return true;
|
|
|
675 |
}
|
|
|
676 |
|
|
|
677 |
@Override
|
|
|
678 |
public int hashCode() {
|
|
|
679 |
return 0;
|
|
|
680 |
}
|
|
|
681 |
|
|
|
682 |
public int compareTo(PdPriceComp other) {
|
|
|
683 |
if (!getClass().equals(other.getClass())) {
|
|
|
684 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
685 |
}
|
|
|
686 |
|
|
|
687 |
int lastComparison = 0;
|
|
|
688 |
PdPriceComp typedOther = (PdPriceComp)other;
|
|
|
689 |
|
|
|
690 |
lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
|
|
|
691 |
if (lastComparison != 0) {
|
|
|
692 |
return lastComparison;
|
|
|
693 |
}
|
|
|
694 |
if (isSetItem_id()) {
|
|
|
695 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
|
|
|
696 |
if (lastComparison != 0) {
|
|
|
697 |
return lastComparison;
|
|
|
698 |
}
|
|
|
699 |
}
|
|
|
700 |
lastComparison = Boolean.valueOf(isSetDealPrice()).compareTo(typedOther.isSetDealPrice());
|
|
|
701 |
if (lastComparison != 0) {
|
|
|
702 |
return lastComparison;
|
|
|
703 |
}
|
|
|
704 |
if (isSetDealPrice()) {
|
|
|
705 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dealPrice, typedOther.dealPrice);
|
|
|
706 |
if (lastComparison != 0) {
|
|
|
707 |
return lastComparison;
|
|
|
708 |
}
|
|
|
709 |
}
|
|
|
710 |
lastComparison = Boolean.valueOf(isSetSaholicPrice()).compareTo(typedOther.isSetSaholicPrice());
|
|
|
711 |
if (lastComparison != 0) {
|
|
|
712 |
return lastComparison;
|
|
|
713 |
}
|
|
|
714 |
if (isSetSaholicPrice()) {
|
|
|
715 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.saholicPrice, typedOther.saholicPrice);
|
|
|
716 |
if (lastComparison != 0) {
|
|
|
717 |
return lastComparison;
|
|
|
718 |
}
|
|
|
719 |
}
|
|
|
720 |
lastComparison = Boolean.valueOf(isSetSdPrice()).compareTo(typedOther.isSetSdPrice());
|
|
|
721 |
if (lastComparison != 0) {
|
|
|
722 |
return lastComparison;
|
|
|
723 |
}
|
|
|
724 |
if (isSetSdPrice()) {
|
|
|
725 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sdPrice, typedOther.sdPrice);
|
|
|
726 |
if (lastComparison != 0) {
|
|
|
727 |
return lastComparison;
|
|
|
728 |
}
|
|
|
729 |
}
|
|
|
730 |
lastComparison = Boolean.valueOf(isSetFkPrice()).compareTo(typedOther.isSetFkPrice());
|
|
|
731 |
if (lastComparison != 0) {
|
|
|
732 |
return lastComparison;
|
|
|
733 |
}
|
|
|
734 |
if (isSetFkPrice()) {
|
|
|
735 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fkPrice, typedOther.fkPrice);
|
|
|
736 |
if (lastComparison != 0) {
|
|
|
737 |
return lastComparison;
|
|
|
738 |
}
|
|
|
739 |
}
|
|
|
740 |
lastComparison = Boolean.valueOf(isSetAmazonPrice()).compareTo(typedOther.isSetAmazonPrice());
|
|
|
741 |
if (lastComparison != 0) {
|
|
|
742 |
return lastComparison;
|
|
|
743 |
}
|
|
|
744 |
if (isSetAmazonPrice()) {
|
|
|
745 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonPrice, typedOther.amazonPrice);
|
|
|
746 |
if (lastComparison != 0) {
|
|
|
747 |
return lastComparison;
|
|
|
748 |
}
|
|
|
749 |
}
|
|
|
750 |
lastComparison = Boolean.valueOf(isSetProductName()).compareTo(typedOther.isSetProductName());
|
|
|
751 |
if (lastComparison != 0) {
|
|
|
752 |
return lastComparison;
|
|
|
753 |
}
|
|
|
754 |
if (isSetProductName()) {
|
|
|
755 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productName, typedOther.productName);
|
|
|
756 |
if (lastComparison != 0) {
|
|
|
757 |
return lastComparison;
|
|
|
758 |
}
|
|
|
759 |
}
|
| 12169 |
kshitij.so |
760 |
lastComparison = Boolean.valueOf(isSetLastProcessedTimestamp()).compareTo(typedOther.isSetLastProcessedTimestamp());
|
|
|
761 |
if (lastComparison != 0) {
|
|
|
762 |
return lastComparison;
|
|
|
763 |
}
|
|
|
764 |
if (isSetLastProcessedTimestamp()) {
|
|
|
765 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastProcessedTimestamp, typedOther.lastProcessedTimestamp);
|
|
|
766 |
if (lastComparison != 0) {
|
|
|
767 |
return lastComparison;
|
|
|
768 |
}
|
|
|
769 |
}
|
| 12243 |
kshitij.so |
770 |
lastComparison = Boolean.valueOf(isSetDiff()).compareTo(typedOther.isSetDiff());
|
|
|
771 |
if (lastComparison != 0) {
|
|
|
772 |
return lastComparison;
|
|
|
773 |
}
|
|
|
774 |
if (isSetDiff()) {
|
|
|
775 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.diff, typedOther.diff);
|
|
|
776 |
if (lastComparison != 0) {
|
|
|
777 |
return lastComparison;
|
|
|
778 |
}
|
|
|
779 |
}
|
| 11905 |
kshitij.so |
780 |
return 0;
|
|
|
781 |
}
|
|
|
782 |
|
|
|
783 |
public _Fields fieldForId(int fieldId) {
|
|
|
784 |
return _Fields.findByThriftId(fieldId);
|
|
|
785 |
}
|
|
|
786 |
|
|
|
787 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
788 |
org.apache.thrift.protocol.TField field;
|
|
|
789 |
iprot.readStructBegin();
|
|
|
790 |
while (true)
|
|
|
791 |
{
|
|
|
792 |
field = iprot.readFieldBegin();
|
|
|
793 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
794 |
break;
|
|
|
795 |
}
|
|
|
796 |
switch (field.id) {
|
|
|
797 |
case 1: // ITEM_ID
|
|
|
798 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
799 |
this.item_id = iprot.readI64();
|
|
|
800 |
setItem_idIsSet(true);
|
|
|
801 |
} else {
|
|
|
802 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
803 |
}
|
|
|
804 |
break;
|
|
|
805 |
case 2: // DEAL_PRICE
|
|
|
806 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
807 |
this.dealPrice = iprot.readDouble();
|
|
|
808 |
setDealPriceIsSet(true);
|
|
|
809 |
} else {
|
|
|
810 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
811 |
}
|
|
|
812 |
break;
|
|
|
813 |
case 3: // SAHOLIC_PRICE
|
|
|
814 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
815 |
this.saholicPrice = iprot.readDouble();
|
|
|
816 |
setSaholicPriceIsSet(true);
|
|
|
817 |
} else {
|
|
|
818 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
819 |
}
|
|
|
820 |
break;
|
|
|
821 |
case 4: // SD_PRICE
|
|
|
822 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
823 |
this.sdPrice = iprot.readDouble();
|
|
|
824 |
setSdPriceIsSet(true);
|
|
|
825 |
} else {
|
|
|
826 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
827 |
}
|
|
|
828 |
break;
|
|
|
829 |
case 5: // FK_PRICE
|
|
|
830 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
831 |
this.fkPrice = iprot.readDouble();
|
|
|
832 |
setFkPriceIsSet(true);
|
|
|
833 |
} else {
|
|
|
834 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
835 |
}
|
|
|
836 |
break;
|
|
|
837 |
case 6: // AMAZON_PRICE
|
|
|
838 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
839 |
this.amazonPrice = iprot.readDouble();
|
|
|
840 |
setAmazonPriceIsSet(true);
|
|
|
841 |
} else {
|
|
|
842 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
843 |
}
|
|
|
844 |
break;
|
|
|
845 |
case 7: // PRODUCT_NAME
|
|
|
846 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
847 |
this.productName = iprot.readString();
|
|
|
848 |
} else {
|
|
|
849 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
850 |
}
|
|
|
851 |
break;
|
| 12169 |
kshitij.so |
852 |
case 8: // LAST_PROCESSED_TIMESTAMP
|
|
|
853 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
854 |
this.lastProcessedTimestamp = iprot.readI64();
|
|
|
855 |
setLastProcessedTimestampIsSet(true);
|
|
|
856 |
} else {
|
|
|
857 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
858 |
}
|
|
|
859 |
break;
|
| 12243 |
kshitij.so |
860 |
case 9: // DIFF
|
|
|
861 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
862 |
this.diff = iprot.readDouble();
|
|
|
863 |
setDiffIsSet(true);
|
|
|
864 |
} else {
|
|
|
865 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
866 |
}
|
|
|
867 |
break;
|
| 11905 |
kshitij.so |
868 |
default:
|
|
|
869 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
870 |
}
|
|
|
871 |
iprot.readFieldEnd();
|
|
|
872 |
}
|
|
|
873 |
iprot.readStructEnd();
|
|
|
874 |
validate();
|
|
|
875 |
}
|
|
|
876 |
|
|
|
877 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
878 |
validate();
|
|
|
879 |
|
|
|
880 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
881 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
882 |
oprot.writeI64(this.item_id);
|
|
|
883 |
oprot.writeFieldEnd();
|
|
|
884 |
oprot.writeFieldBegin(DEAL_PRICE_FIELD_DESC);
|
|
|
885 |
oprot.writeDouble(this.dealPrice);
|
|
|
886 |
oprot.writeFieldEnd();
|
|
|
887 |
oprot.writeFieldBegin(SAHOLIC_PRICE_FIELD_DESC);
|
|
|
888 |
oprot.writeDouble(this.saholicPrice);
|
|
|
889 |
oprot.writeFieldEnd();
|
|
|
890 |
oprot.writeFieldBegin(SD_PRICE_FIELD_DESC);
|
|
|
891 |
oprot.writeDouble(this.sdPrice);
|
|
|
892 |
oprot.writeFieldEnd();
|
|
|
893 |
oprot.writeFieldBegin(FK_PRICE_FIELD_DESC);
|
|
|
894 |
oprot.writeDouble(this.fkPrice);
|
|
|
895 |
oprot.writeFieldEnd();
|
|
|
896 |
oprot.writeFieldBegin(AMAZON_PRICE_FIELD_DESC);
|
|
|
897 |
oprot.writeDouble(this.amazonPrice);
|
|
|
898 |
oprot.writeFieldEnd();
|
|
|
899 |
if (this.productName != null) {
|
|
|
900 |
oprot.writeFieldBegin(PRODUCT_NAME_FIELD_DESC);
|
|
|
901 |
oprot.writeString(this.productName);
|
|
|
902 |
oprot.writeFieldEnd();
|
|
|
903 |
}
|
| 12169 |
kshitij.so |
904 |
oprot.writeFieldBegin(LAST_PROCESSED_TIMESTAMP_FIELD_DESC);
|
|
|
905 |
oprot.writeI64(this.lastProcessedTimestamp);
|
|
|
906 |
oprot.writeFieldEnd();
|
| 12243 |
kshitij.so |
907 |
oprot.writeFieldBegin(DIFF_FIELD_DESC);
|
|
|
908 |
oprot.writeDouble(this.diff);
|
|
|
909 |
oprot.writeFieldEnd();
|
| 11905 |
kshitij.so |
910 |
oprot.writeFieldStop();
|
|
|
911 |
oprot.writeStructEnd();
|
|
|
912 |
}
|
|
|
913 |
|
|
|
914 |
@Override
|
|
|
915 |
public String toString() {
|
|
|
916 |
StringBuilder sb = new StringBuilder("PdPriceComp(");
|
|
|
917 |
boolean first = true;
|
|
|
918 |
|
|
|
919 |
sb.append("item_id:");
|
|
|
920 |
sb.append(this.item_id);
|
|
|
921 |
first = false;
|
|
|
922 |
if (!first) sb.append(", ");
|
|
|
923 |
sb.append("dealPrice:");
|
|
|
924 |
sb.append(this.dealPrice);
|
|
|
925 |
first = false;
|
|
|
926 |
if (!first) sb.append(", ");
|
|
|
927 |
sb.append("saholicPrice:");
|
|
|
928 |
sb.append(this.saholicPrice);
|
|
|
929 |
first = false;
|
|
|
930 |
if (!first) sb.append(", ");
|
|
|
931 |
sb.append("sdPrice:");
|
|
|
932 |
sb.append(this.sdPrice);
|
|
|
933 |
first = false;
|
|
|
934 |
if (!first) sb.append(", ");
|
|
|
935 |
sb.append("fkPrice:");
|
|
|
936 |
sb.append(this.fkPrice);
|
|
|
937 |
first = false;
|
|
|
938 |
if (!first) sb.append(", ");
|
|
|
939 |
sb.append("amazonPrice:");
|
|
|
940 |
sb.append(this.amazonPrice);
|
|
|
941 |
first = false;
|
|
|
942 |
if (!first) sb.append(", ");
|
|
|
943 |
sb.append("productName:");
|
|
|
944 |
if (this.productName == null) {
|
|
|
945 |
sb.append("null");
|
|
|
946 |
} else {
|
|
|
947 |
sb.append(this.productName);
|
|
|
948 |
}
|
|
|
949 |
first = false;
|
| 12169 |
kshitij.so |
950 |
if (!first) sb.append(", ");
|
|
|
951 |
sb.append("lastProcessedTimestamp:");
|
|
|
952 |
sb.append(this.lastProcessedTimestamp);
|
|
|
953 |
first = false;
|
| 12243 |
kshitij.so |
954 |
if (!first) sb.append(", ");
|
|
|
955 |
sb.append("diff:");
|
|
|
956 |
sb.append(this.diff);
|
|
|
957 |
first = false;
|
| 11905 |
kshitij.so |
958 |
sb.append(")");
|
|
|
959 |
return sb.toString();
|
|
|
960 |
}
|
|
|
961 |
|
|
|
962 |
public void validate() throws org.apache.thrift.TException {
|
|
|
963 |
// check for required fields
|
|
|
964 |
}
|
|
|
965 |
|
|
|
966 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
967 |
try {
|
|
|
968 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
969 |
} catch (org.apache.thrift.TException te) {
|
|
|
970 |
throw new java.io.IOException(te);
|
|
|
971 |
}
|
|
|
972 |
}
|
|
|
973 |
|
|
|
974 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
975 |
try {
|
|
|
976 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
977 |
__isset_bit_vector = new BitSet(1);
|
|
|
978 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
979 |
} catch (org.apache.thrift.TException te) {
|
|
|
980 |
throw new java.io.IOException(te);
|
|
|
981 |
}
|
|
|
982 |
}
|
|
|
983 |
|
|
|
984 |
}
|
|
|
985 |
|