Subversion Repositories SmartDukaan

Rev

Rev 4008 | Rev 4065 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4008 Rev 4018
Line 479... Line 479...
479
     * @param transactionId
479
     * @param transactionId
480
     * @param category
480
     * @param category
481
     */
481
     */
482
    public void markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category) throws org.apache.thrift.TException;
482
    public void markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category) throws org.apache.thrift.TException;
483
 
483
 
-
 
484
    /**
-
 
485
     * Returns a map containing the number of risky orders keyed by item id. A risky order
-
 
486
     * is defined as one whose shipping date is about to expire.
-
 
487
     */
-
 
488
    public Map<Long,Long> getItemWiseRiskyOrdersCount() throws org.apache.thrift.TException;
-
 
489
 
484
  }
490
  }
485
 
491
 
486
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
492
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
487
 
493
 
488
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
494
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 597... Line 603...
597
 
603
 
598
    public void getTransactionsRequiringExtraProcessing(ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException;
604
    public void getTransactionsRequiringExtraProcessing(ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException;
599
 
605
 
600
    public void markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransactionAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
606
    public void markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransactionAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
601
 
607
 
-
 
608
    public void getItemWiseRiskyOrdersCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemWiseRiskyOrdersCount_call> resultHandler) throws org.apache.thrift.TException;
-
 
609
 
602
  }
610
  }
603
 
611
 
604
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
612
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
605
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
613
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
606
      public Factory() {}
614
      public Factory() {}
Line 2105... Line 2113...
2105
      markTransactionAsProcessed_result result = new markTransactionAsProcessed_result();
2113
      markTransactionAsProcessed_result result = new markTransactionAsProcessed_result();
2106
      receiveBase(result, "markTransactionAsProcessed");
2114
      receiveBase(result, "markTransactionAsProcessed");
2107
      return;
2115
      return;
2108
    }
2116
    }
2109
 
2117
 
-
 
2118
    public Map<Long,Long> getItemWiseRiskyOrdersCount() throws org.apache.thrift.TException
-
 
2119
    {
-
 
2120
      send_getItemWiseRiskyOrdersCount();
-
 
2121
      return recv_getItemWiseRiskyOrdersCount();
-
 
2122
    }
-
 
2123
 
-
 
2124
    public void send_getItemWiseRiskyOrdersCount() throws org.apache.thrift.TException
-
 
2125
    {
-
 
2126
      getItemWiseRiskyOrdersCount_args args = new getItemWiseRiskyOrdersCount_args();
-
 
2127
      sendBase("getItemWiseRiskyOrdersCount", args);
-
 
2128
    }
-
 
2129
 
-
 
2130
    public Map<Long,Long> recv_getItemWiseRiskyOrdersCount() throws org.apache.thrift.TException
-
 
2131
    {
-
 
2132
      getItemWiseRiskyOrdersCount_result result = new getItemWiseRiskyOrdersCount_result();
-
 
2133
      receiveBase(result, "getItemWiseRiskyOrdersCount");
-
 
2134
      if (result.isSetSuccess()) {
-
 
2135
        return result.success;
-
 
2136
      }
-
 
2137
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemWiseRiskyOrdersCount failed: unknown result");
-
 
2138
    }
-
 
2139
 
2110
  }
2140
  }
2111
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2141
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2112
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2142
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2113
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2143
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2114
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2144
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4112... Line 4142...
4112
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4142
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4113
        (new Client(prot)).recv_markTransactionAsProcessed();
4143
        (new Client(prot)).recv_markTransactionAsProcessed();
4114
      }
4144
      }
4115
    }
4145
    }
4116
 
4146
 
-
 
4147
    public void getItemWiseRiskyOrdersCount(org.apache.thrift.async.AsyncMethodCallback<getItemWiseRiskyOrdersCount_call> resultHandler) throws org.apache.thrift.TException {
-
 
4148
      checkReady();
-
 
4149
      getItemWiseRiskyOrdersCount_call method_call = new getItemWiseRiskyOrdersCount_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
4150
      this.___currentMethod = method_call;
-
 
4151
      ___manager.call(method_call);
-
 
4152
    }
-
 
4153
 
-
 
4154
    public static class getItemWiseRiskyOrdersCount_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4155
      public getItemWiseRiskyOrdersCount_call(org.apache.thrift.async.AsyncMethodCallback<getItemWiseRiskyOrdersCount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
4156
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4157
      }
-
 
4158
 
-
 
4159
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4160
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemWiseRiskyOrdersCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4161
        getItemWiseRiskyOrdersCount_args args = new getItemWiseRiskyOrdersCount_args();
-
 
4162
        args.write(prot);
-
 
4163
        prot.writeMessageEnd();
-
 
4164
      }
-
 
4165
 
-
 
4166
      public Map<Long,Long> getResult() throws org.apache.thrift.TException {
-
 
4167
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4168
          throw new IllegalStateException("Method call not finished!");
-
 
4169
        }
-
 
4170
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4171
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4172
        return (new Client(prot)).recv_getItemWiseRiskyOrdersCount();
-
 
4173
      }
-
 
4174
    }
-
 
4175
 
4117
  }
4176
  }
4118
 
4177
 
4119
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4178
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4120
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4179
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4121
    public Processor(I iface) {
4180
    public Processor(I iface) {
Line 4182... Line 4241...
4182
      processMap.put("shiftToWarehouse", new shiftToWarehouse());
4241
      processMap.put("shiftToWarehouse", new shiftToWarehouse());
4183
      processMap.put("addDelayReason", new addDelayReason());
4242
      processMap.put("addDelayReason", new addDelayReason());
4184
      processMap.put("reconcileCodCollection", new reconcileCodCollection());
4243
      processMap.put("reconcileCodCollection", new reconcileCodCollection());
4185
      processMap.put("getTransactionsRequiringExtraProcessing", new getTransactionsRequiringExtraProcessing());
4244
      processMap.put("getTransactionsRequiringExtraProcessing", new getTransactionsRequiringExtraProcessing());
4186
      processMap.put("markTransactionAsProcessed", new markTransactionAsProcessed());
4245
      processMap.put("markTransactionAsProcessed", new markTransactionAsProcessed());
-
 
4246
      processMap.put("getItemWiseRiskyOrdersCount", new getItemWiseRiskyOrdersCount());
4187
      return processMap;
4247
      return processMap;
4188
    }
4248
    }
4189
 
4249
 
4190
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
4250
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
4191
      public createTransaction() {
4251
      public createTransaction() {
Line 5304... Line 5364...
5304
        iface.markTransactionAsProcessed(args.transactionId, args.category);
5364
        iface.markTransactionAsProcessed(args.transactionId, args.category);
5305
        return result;
5365
        return result;
5306
      }
5366
      }
5307
    }
5367
    }
5308
 
5368
 
-
 
5369
    private static class getItemWiseRiskyOrdersCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemWiseRiskyOrdersCount_args> {
-
 
5370
      public getItemWiseRiskyOrdersCount() {
-
 
5371
        super("getItemWiseRiskyOrdersCount");
-
 
5372
      }
-
 
5373
 
-
 
5374
      protected getItemWiseRiskyOrdersCount_args getEmptyArgsInstance() {
-
 
5375
        return new getItemWiseRiskyOrdersCount_args();
-
 
5376
      }
-
 
5377
 
-
 
5378
      protected getItemWiseRiskyOrdersCount_result getResult(I iface, getItemWiseRiskyOrdersCount_args args) throws org.apache.thrift.TException {
-
 
5379
        getItemWiseRiskyOrdersCount_result result = new getItemWiseRiskyOrdersCount_result();
-
 
5380
        result.success = iface.getItemWiseRiskyOrdersCount();
-
 
5381
        return result;
-
 
5382
      }
-
 
5383
    }
-
 
5384
 
5309
  }
5385
  }
5310
 
5386
 
5311
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
5387
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
5312
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
5388
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
5313
 
5389
 
Line 48039... Line 48115...
48039
      sb.append(")");
48115
      sb.append(")");
48040
      return sb.toString();
48116
      return sb.toString();
48041
    }
48117
    }
48042
 
48118
 
48043
    public void validate() throws org.apache.thrift.TException {
48119
    public void validate() throws org.apache.thrift.TException {
-
 
48120
      // check for required fields
-
 
48121
    }
-
 
48122
 
-
 
48123
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
48124
      try {
-
 
48125
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
48126
      } catch (org.apache.thrift.TException te) {
-
 
48127
        throw new java.io.IOException(te);
-
 
48128
      }
-
 
48129
    }
-
 
48130
 
-
 
48131
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
48132
      try {
-
 
48133
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
48134
      } catch (org.apache.thrift.TException te) {
-
 
48135
        throw new java.io.IOException(te);
-
 
48136
      }
-
 
48137
    }
-
 
48138
 
-
 
48139
  }
-
 
48140
 
-
 
48141
  public static class getItemWiseRiskyOrdersCount_args implements org.apache.thrift.TBase<getItemWiseRiskyOrdersCount_args, getItemWiseRiskyOrdersCount_args._Fields>, java.io.Serializable, Cloneable   {
-
 
48142
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemWiseRiskyOrdersCount_args");
-
 
48143
 
-
 
48144
 
-
 
48145
 
-
 
48146
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
48147
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
48148
;
-
 
48149
 
-
 
48150
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
48151
 
-
 
48152
      static {
-
 
48153
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
48154
          byName.put(field.getFieldName(), field);
-
 
48155
        }
-
 
48156
      }
-
 
48157
 
-
 
48158
      /**
-
 
48159
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
48160
       */
-
 
48161
      public static _Fields findByThriftId(int fieldId) {
-
 
48162
        switch(fieldId) {
-
 
48163
          default:
-
 
48164
            return null;
-
 
48165
        }
-
 
48166
      }
-
 
48167
 
-
 
48168
      /**
-
 
48169
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
48170
       * if it is not found.
-
 
48171
       */
-
 
48172
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
48173
        _Fields fields = findByThriftId(fieldId);
-
 
48174
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
48175
        return fields;
-
 
48176
      }
-
 
48177
 
-
 
48178
      /**
-
 
48179
       * Find the _Fields constant that matches name, or null if its not found.
-
 
48180
       */
-
 
48181
      public static _Fields findByName(String name) {
-
 
48182
        return byName.get(name);
-
 
48183
      }
-
 
48184
 
-
 
48185
      private final short _thriftId;
-
 
48186
      private final String _fieldName;
-
 
48187
 
-
 
48188
      _Fields(short thriftId, String fieldName) {
-
 
48189
        _thriftId = thriftId;
-
 
48190
        _fieldName = fieldName;
-
 
48191
      }
-
 
48192
 
-
 
48193
      public short getThriftFieldId() {
-
 
48194
        return _thriftId;
-
 
48195
      }
-
 
48196
 
-
 
48197
      public String getFieldName() {
-
 
48198
        return _fieldName;
-
 
48199
      }
-
 
48200
    }
-
 
48201
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
48202
    static {
-
 
48203
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
48204
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
48205
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemWiseRiskyOrdersCount_args.class, metaDataMap);
-
 
48206
    }
-
 
48207
 
-
 
48208
    public getItemWiseRiskyOrdersCount_args() {
-
 
48209
    }
-
 
48210
 
-
 
48211
    /**
-
 
48212
     * Performs a deep copy on <i>other</i>.
-
 
48213
     */
-
 
48214
    public getItemWiseRiskyOrdersCount_args(getItemWiseRiskyOrdersCount_args other) {
-
 
48215
    }
-
 
48216
 
-
 
48217
    public getItemWiseRiskyOrdersCount_args deepCopy() {
-
 
48218
      return new getItemWiseRiskyOrdersCount_args(this);
-
 
48219
    }
-
 
48220
 
-
 
48221
    @Override
-
 
48222
    public void clear() {
-
 
48223
    }
-
 
48224
 
-
 
48225
    public void setFieldValue(_Fields field, Object value) {
-
 
48226
      switch (field) {
-
 
48227
      }
-
 
48228
    }
-
 
48229
 
-
 
48230
    public Object getFieldValue(_Fields field) {
-
 
48231
      switch (field) {
-
 
48232
      }
-
 
48233
      throw new IllegalStateException();
-
 
48234
    }
-
 
48235
 
-
 
48236
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
48237
    public boolean isSet(_Fields field) {
-
 
48238
      if (field == null) {
-
 
48239
        throw new IllegalArgumentException();
-
 
48240
      }
-
 
48241
 
-
 
48242
      switch (field) {
-
 
48243
      }
-
 
48244
      throw new IllegalStateException();
-
 
48245
    }
-
 
48246
 
-
 
48247
    @Override
-
 
48248
    public boolean equals(Object that) {
-
 
48249
      if (that == null)
-
 
48250
        return false;
-
 
48251
      if (that instanceof getItemWiseRiskyOrdersCount_args)
-
 
48252
        return this.equals((getItemWiseRiskyOrdersCount_args)that);
-
 
48253
      return false;
-
 
48254
    }
-
 
48255
 
-
 
48256
    public boolean equals(getItemWiseRiskyOrdersCount_args that) {
-
 
48257
      if (that == null)
-
 
48258
        return false;
-
 
48259
 
-
 
48260
      return true;
-
 
48261
    }
-
 
48262
 
-
 
48263
    @Override
-
 
48264
    public int hashCode() {
-
 
48265
      return 0;
-
 
48266
    }
-
 
48267
 
-
 
48268
    public int compareTo(getItemWiseRiskyOrdersCount_args other) {
-
 
48269
      if (!getClass().equals(other.getClass())) {
-
 
48270
        return getClass().getName().compareTo(other.getClass().getName());
-
 
48271
      }
-
 
48272
 
-
 
48273
      int lastComparison = 0;
-
 
48274
      getItemWiseRiskyOrdersCount_args typedOther = (getItemWiseRiskyOrdersCount_args)other;
-
 
48275
 
-
 
48276
      return 0;
-
 
48277
    }
-
 
48278
 
-
 
48279
    public _Fields fieldForId(int fieldId) {
-
 
48280
      return _Fields.findByThriftId(fieldId);
-
 
48281
    }
-
 
48282
 
-
 
48283
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
48284
      org.apache.thrift.protocol.TField field;
-
 
48285
      iprot.readStructBegin();
-
 
48286
      while (true)
-
 
48287
      {
-
 
48288
        field = iprot.readFieldBegin();
-
 
48289
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
48290
          break;
-
 
48291
        }
-
 
48292
        switch (field.id) {
-
 
48293
          default:
-
 
48294
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
48295
        }
-
 
48296
        iprot.readFieldEnd();
-
 
48297
      }
-
 
48298
      iprot.readStructEnd();
-
 
48299
      validate();
-
 
48300
    }
-
 
48301
 
-
 
48302
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
48303
      validate();
-
 
48304
 
-
 
48305
      oprot.writeStructBegin(STRUCT_DESC);
-
 
48306
      oprot.writeFieldStop();
-
 
48307
      oprot.writeStructEnd();
-
 
48308
    }
-
 
48309
 
-
 
48310
    @Override
-
 
48311
    public String toString() {
-
 
48312
      StringBuilder sb = new StringBuilder("getItemWiseRiskyOrdersCount_args(");
-
 
48313
      boolean first = true;
-
 
48314
 
-
 
48315
      sb.append(")");
-
 
48316
      return sb.toString();
-
 
48317
    }
-
 
48318
 
-
 
48319
    public void validate() throws org.apache.thrift.TException {
-
 
48320
      // check for required fields
-
 
48321
    }
-
 
48322
 
-
 
48323
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
48324
      try {
-
 
48325
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
48326
      } catch (org.apache.thrift.TException te) {
-
 
48327
        throw new java.io.IOException(te);
-
 
48328
      }
-
 
48329
    }
-
 
48330
 
-
 
48331
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
48332
      try {
-
 
48333
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
48334
      } catch (org.apache.thrift.TException te) {
-
 
48335
        throw new java.io.IOException(te);
-
 
48336
      }
-
 
48337
    }
-
 
48338
 
-
 
48339
  }
-
 
48340
 
-
 
48341
  public static class getItemWiseRiskyOrdersCount_result implements org.apache.thrift.TBase<getItemWiseRiskyOrdersCount_result, getItemWiseRiskyOrdersCount_result._Fields>, java.io.Serializable, Cloneable   {
-
 
48342
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemWiseRiskyOrdersCount_result");
-
 
48343
 
-
 
48344
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
-
 
48345
 
-
 
48346
    private Map<Long,Long> success; // required
-
 
48347
 
-
 
48348
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
48349
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
48350
      SUCCESS((short)0, "success");
-
 
48351
 
-
 
48352
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
48353
 
-
 
48354
      static {
-
 
48355
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
48356
          byName.put(field.getFieldName(), field);
-
 
48357
        }
-
 
48358
      }
-
 
48359
 
-
 
48360
      /**
-
 
48361
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
48362
       */
-
 
48363
      public static _Fields findByThriftId(int fieldId) {
-
 
48364
        switch(fieldId) {
-
 
48365
          case 0: // SUCCESS
-
 
48366
            return SUCCESS;
-
 
48367
          default:
-
 
48368
            return null;
-
 
48369
        }
-
 
48370
      }
-
 
48371
 
-
 
48372
      /**
-
 
48373
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
48374
       * if it is not found.
-
 
48375
       */
-
 
48376
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
48377
        _Fields fields = findByThriftId(fieldId);
-
 
48378
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
48379
        return fields;
-
 
48380
      }
-
 
48381
 
-
 
48382
      /**
-
 
48383
       * Find the _Fields constant that matches name, or null if its not found.
-
 
48384
       */
-
 
48385
      public static _Fields findByName(String name) {
-
 
48386
        return byName.get(name);
-
 
48387
      }
-
 
48388
 
-
 
48389
      private final short _thriftId;
-
 
48390
      private final String _fieldName;
-
 
48391
 
-
 
48392
      _Fields(short thriftId, String fieldName) {
-
 
48393
        _thriftId = thriftId;
-
 
48394
        _fieldName = fieldName;
-
 
48395
      }
-
 
48396
 
-
 
48397
      public short getThriftFieldId() {
-
 
48398
        return _thriftId;
-
 
48399
      }
-
 
48400
 
-
 
48401
      public String getFieldName() {
-
 
48402
        return _fieldName;
-
 
48403
      }
-
 
48404
    }
-
 
48405
 
-
 
48406
    // isset id assignments
-
 
48407
 
-
 
48408
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
48409
    static {
-
 
48410
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
48411
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
48412
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
48413
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
48414
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
48415
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
48416
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemWiseRiskyOrdersCount_result.class, metaDataMap);
-
 
48417
    }
-
 
48418
 
-
 
48419
    public getItemWiseRiskyOrdersCount_result() {
-
 
48420
    }
-
 
48421
 
-
 
48422
    public getItemWiseRiskyOrdersCount_result(
-
 
48423
      Map<Long,Long> success)
-
 
48424
    {
-
 
48425
      this();
-
 
48426
      this.success = success;
-
 
48427
    }
-
 
48428
 
-
 
48429
    /**
-
 
48430
     * Performs a deep copy on <i>other</i>.
-
 
48431
     */
-
 
48432
    public getItemWiseRiskyOrdersCount_result(getItemWiseRiskyOrdersCount_result other) {
-
 
48433
      if (other.isSetSuccess()) {
-
 
48434
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
-
 
48435
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
-
 
48436
 
-
 
48437
          Long other_element_key = other_element.getKey();
-
 
48438
          Long other_element_value = other_element.getValue();
-
 
48439
 
-
 
48440
          Long __this__success_copy_key = other_element_key;
-
 
48441
 
-
 
48442
          Long __this__success_copy_value = other_element_value;
-
 
48443
 
-
 
48444
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
48445
        }
-
 
48446
        this.success = __this__success;
-
 
48447
      }
-
 
48448
    }
-
 
48449
 
-
 
48450
    public getItemWiseRiskyOrdersCount_result deepCopy() {
-
 
48451
      return new getItemWiseRiskyOrdersCount_result(this);
-
 
48452
    }
-
 
48453
 
-
 
48454
    @Override
-
 
48455
    public void clear() {
-
 
48456
      this.success = null;
-
 
48457
    }
-
 
48458
 
-
 
48459
    public int getSuccessSize() {
-
 
48460
      return (this.success == null) ? 0 : this.success.size();
-
 
48461
    }
-
 
48462
 
-
 
48463
    public void putToSuccess(long key, long val) {
-
 
48464
      if (this.success == null) {
-
 
48465
        this.success = new HashMap<Long,Long>();
-
 
48466
      }
-
 
48467
      this.success.put(key, val);
-
 
48468
    }
-
 
48469
 
-
 
48470
    public Map<Long,Long> getSuccess() {
-
 
48471
      return this.success;
-
 
48472
    }
-
 
48473
 
-
 
48474
    public void setSuccess(Map<Long,Long> success) {
-
 
48475
      this.success = success;
-
 
48476
    }
-
 
48477
 
-
 
48478
    public void unsetSuccess() {
-
 
48479
      this.success = null;
-
 
48480
    }
-
 
48481
 
-
 
48482
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
48483
    public boolean isSetSuccess() {
-
 
48484
      return this.success != null;
-
 
48485
    }
-
 
48486
 
-
 
48487
    public void setSuccessIsSet(boolean value) {
-
 
48488
      if (!value) {
-
 
48489
        this.success = null;
-
 
48490
      }
-
 
48491
    }
-
 
48492
 
-
 
48493
    public void setFieldValue(_Fields field, Object value) {
-
 
48494
      switch (field) {
-
 
48495
      case SUCCESS:
-
 
48496
        if (value == null) {
-
 
48497
          unsetSuccess();
-
 
48498
        } else {
-
 
48499
          setSuccess((Map<Long,Long>)value);
-
 
48500
        }
-
 
48501
        break;
-
 
48502
 
-
 
48503
      }
-
 
48504
    }
-
 
48505
 
-
 
48506
    public Object getFieldValue(_Fields field) {
-
 
48507
      switch (field) {
-
 
48508
      case SUCCESS:
-
 
48509
        return getSuccess();
-
 
48510
 
-
 
48511
      }
-
 
48512
      throw new IllegalStateException();
-
 
48513
    }
-
 
48514
 
-
 
48515
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
48516
    public boolean isSet(_Fields field) {
-
 
48517
      if (field == null) {
-
 
48518
        throw new IllegalArgumentException();
-
 
48519
      }
-
 
48520
 
-
 
48521
      switch (field) {
-
 
48522
      case SUCCESS:
-
 
48523
        return isSetSuccess();
-
 
48524
      }
-
 
48525
      throw new IllegalStateException();
-
 
48526
    }
-
 
48527
 
-
 
48528
    @Override
-
 
48529
    public boolean equals(Object that) {
-
 
48530
      if (that == null)
-
 
48531
        return false;
-
 
48532
      if (that instanceof getItemWiseRiskyOrdersCount_result)
-
 
48533
        return this.equals((getItemWiseRiskyOrdersCount_result)that);
-
 
48534
      return false;
-
 
48535
    }
-
 
48536
 
-
 
48537
    public boolean equals(getItemWiseRiskyOrdersCount_result that) {
-
 
48538
      if (that == null)
-
 
48539
        return false;
-
 
48540
 
-
 
48541
      boolean this_present_success = true && this.isSetSuccess();
-
 
48542
      boolean that_present_success = true && that.isSetSuccess();
-
 
48543
      if (this_present_success || that_present_success) {
-
 
48544
        if (!(this_present_success && that_present_success))
-
 
48545
          return false;
-
 
48546
        if (!this.success.equals(that.success))
-
 
48547
          return false;
-
 
48548
      }
-
 
48549
 
-
 
48550
      return true;
-
 
48551
    }
-
 
48552
 
-
 
48553
    @Override
-
 
48554
    public int hashCode() {
-
 
48555
      return 0;
-
 
48556
    }
-
 
48557
 
-
 
48558
    public int compareTo(getItemWiseRiskyOrdersCount_result other) {
-
 
48559
      if (!getClass().equals(other.getClass())) {
-
 
48560
        return getClass().getName().compareTo(other.getClass().getName());
-
 
48561
      }
-
 
48562
 
-
 
48563
      int lastComparison = 0;
-
 
48564
      getItemWiseRiskyOrdersCount_result typedOther = (getItemWiseRiskyOrdersCount_result)other;
-
 
48565
 
-
 
48566
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
48567
      if (lastComparison != 0) {
-
 
48568
        return lastComparison;
-
 
48569
      }
-
 
48570
      if (isSetSuccess()) {
-
 
48571
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
48572
        if (lastComparison != 0) {
-
 
48573
          return lastComparison;
-
 
48574
        }
-
 
48575
      }
-
 
48576
      return 0;
-
 
48577
    }
-
 
48578
 
-
 
48579
    public _Fields fieldForId(int fieldId) {
-
 
48580
      return _Fields.findByThriftId(fieldId);
-
 
48581
    }
-
 
48582
 
-
 
48583
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
48584
      org.apache.thrift.protocol.TField field;
-
 
48585
      iprot.readStructBegin();
-
 
48586
      while (true)
-
 
48587
      {
-
 
48588
        field = iprot.readFieldBegin();
-
 
48589
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
48590
          break;
-
 
48591
        }
-
 
48592
        switch (field.id) {
-
 
48593
          case 0: // SUCCESS
-
 
48594
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
48595
              {
-
 
48596
                org.apache.thrift.protocol.TMap _map123 = iprot.readMapBegin();
-
 
48597
                this.success = new HashMap<Long,Long>(2*_map123.size);
-
 
48598
                for (int _i124 = 0; _i124 < _map123.size; ++_i124)
-
 
48599
                {
-
 
48600
                  long _key125; // required
-
 
48601
                  long _val126; // required
-
 
48602
                  _key125 = iprot.readI64();
-
 
48603
                  _val126 = iprot.readI64();
-
 
48604
                  this.success.put(_key125, _val126);
-
 
48605
                }
-
 
48606
                iprot.readMapEnd();
-
 
48607
              }
-
 
48608
            } else { 
-
 
48609
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
48610
            }
-
 
48611
            break;
-
 
48612
          default:
-
 
48613
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
48614
        }
-
 
48615
        iprot.readFieldEnd();
-
 
48616
      }
-
 
48617
      iprot.readStructEnd();
-
 
48618
      validate();
-
 
48619
    }
-
 
48620
 
-
 
48621
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
48622
      oprot.writeStructBegin(STRUCT_DESC);
-
 
48623
 
-
 
48624
      if (this.isSetSuccess()) {
-
 
48625
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
48626
        {
-
 
48627
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
48628
          for (Map.Entry<Long, Long> _iter127 : this.success.entrySet())
-
 
48629
          {
-
 
48630
            oprot.writeI64(_iter127.getKey());
-
 
48631
            oprot.writeI64(_iter127.getValue());
-
 
48632
          }
-
 
48633
          oprot.writeMapEnd();
-
 
48634
        }
-
 
48635
        oprot.writeFieldEnd();
-
 
48636
      }
-
 
48637
      oprot.writeFieldStop();
-
 
48638
      oprot.writeStructEnd();
-
 
48639
    }
-
 
48640
 
-
 
48641
    @Override
-
 
48642
    public String toString() {
-
 
48643
      StringBuilder sb = new StringBuilder("getItemWiseRiskyOrdersCount_result(");
-
 
48644
      boolean first = true;
-
 
48645
 
-
 
48646
      sb.append("success:");
-
 
48647
      if (this.success == null) {
-
 
48648
        sb.append("null");
-
 
48649
      } else {
-
 
48650
        sb.append(this.success);
-
 
48651
      }
-
 
48652
      first = false;
-
 
48653
      sb.append(")");
-
 
48654
      return sb.toString();
-
 
48655
    }
-
 
48656
 
-
 
48657
    public void validate() throws org.apache.thrift.TException {
48044
      // check for required fields
48658
      // check for required fields
48045
    }
48659
    }
48046
 
48660
 
48047
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48661
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48048
      try {
48662
      try {