Subversion Repositories SmartDukaan

Rev

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

Rev 9404 Rev 9571
Line 1051... Line 1051...
1051
 
1051
 
1052
    public FlipkartOrder getFlipkartOrderByOrderItemId(String flipkartOrderItemId) throws org.apache.thrift.TException;
1052
    public FlipkartOrder getFlipkartOrderByOrderItemId(String flipkartOrderItemId) throws org.apache.thrift.TException;
1053
 
1053
 
1054
    public void updateFlipkartOrderDatesAndAWB(String flipkartOrderId, String flipkartSubOrderId, long date, String awb) throws org.apache.thrift.TException;
1054
    public void updateFlipkartOrderDatesAndAWB(String flipkartOrderId, String flipkartSubOrderId, long date, String awb) throws org.apache.thrift.TException;
1055
 
1055
 
1056
    public long getOrdersCreatedAfterTimestampForSource(long timestamp, long source, long item_id) throws org.apache.thrift.TException;
1056
    public Map<Long,Long> getOrdersCreatedAfterTimestampForSource(long timestamp, long source) throws org.apache.thrift.TException;
1057
 
1057
 
1058
    public Order getOrderForAirwayBillNo(String airwaybillNo) throws TransactionServiceException, org.apache.thrift.TException;
1058
    public Order getOrderForAirwayBillNo(String airwaybillNo) throws TransactionServiceException, org.apache.thrift.TException;
1059
 
1059
 
1060
  }
1060
  }
1061
 
1061
 
Line 1493... Line 1493...
1493
 
1493
 
1494
    public void getFlipkartOrderByOrderItemId(String flipkartOrderItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartOrderByOrderItemId_call> resultHandler) throws org.apache.thrift.TException;
1494
    public void getFlipkartOrderByOrderItemId(String flipkartOrderItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartOrderByOrderItemId_call> resultHandler) throws org.apache.thrift.TException;
1495
 
1495
 
1496
    public void updateFlipkartOrderDatesAndAWB(String flipkartOrderId, String flipkartSubOrderId, long date, String awb, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateFlipkartOrderDatesAndAWB_call> resultHandler) throws org.apache.thrift.TException;
1496
    public void updateFlipkartOrderDatesAndAWB(String flipkartOrderId, String flipkartSubOrderId, long date, String awb, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateFlipkartOrderDatesAndAWB_call> resultHandler) throws org.apache.thrift.TException;
1497
 
1497
 
1498
    public void getOrdersCreatedAfterTimestampForSource(long timestamp, long source, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersCreatedAfterTimestampForSource_call> resultHandler) throws org.apache.thrift.TException;
1498
    public void getOrdersCreatedAfterTimestampForSource(long timestamp, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersCreatedAfterTimestampForSource_call> resultHandler) throws org.apache.thrift.TException;
1499
 
1499
 
1500
    public void getOrderForAirwayBillNo(String airwaybillNo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderForAirwayBillNo_call> resultHandler) throws org.apache.thrift.TException;
1500
    public void getOrderForAirwayBillNo(String airwaybillNo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderForAirwayBillNo_call> resultHandler) throws org.apache.thrift.TException;
1501
 
1501
 
1502
  }
1502
  }
1503
 
1503
 
Line 6870... Line 6870...
6870
      updateFlipkartOrderDatesAndAWB_result result = new updateFlipkartOrderDatesAndAWB_result();
6870
      updateFlipkartOrderDatesAndAWB_result result = new updateFlipkartOrderDatesAndAWB_result();
6871
      receiveBase(result, "updateFlipkartOrderDatesAndAWB");
6871
      receiveBase(result, "updateFlipkartOrderDatesAndAWB");
6872
      return;
6872
      return;
6873
    }
6873
    }
6874
 
6874
 
6875
    public long getOrdersCreatedAfterTimestampForSource(long timestamp, long source, long item_id) throws org.apache.thrift.TException
6875
    public Map<Long,Long> getOrdersCreatedAfterTimestampForSource(long timestamp, long source) throws org.apache.thrift.TException
6876
    {
6876
    {
6877
      send_getOrdersCreatedAfterTimestampForSource(timestamp, source, item_id);
6877
      send_getOrdersCreatedAfterTimestampForSource(timestamp, source);
6878
      return recv_getOrdersCreatedAfterTimestampForSource();
6878
      return recv_getOrdersCreatedAfterTimestampForSource();
6879
    }
6879
    }
6880
 
6880
 
6881
    public void send_getOrdersCreatedAfterTimestampForSource(long timestamp, long source, long item_id) throws org.apache.thrift.TException
6881
    public void send_getOrdersCreatedAfterTimestampForSource(long timestamp, long source) throws org.apache.thrift.TException
6882
    {
6882
    {
6883
      getOrdersCreatedAfterTimestampForSource_args args = new getOrdersCreatedAfterTimestampForSource_args();
6883
      getOrdersCreatedAfterTimestampForSource_args args = new getOrdersCreatedAfterTimestampForSource_args();
6884
      args.setTimestamp(timestamp);
6884
      args.setTimestamp(timestamp);
6885
      args.setSource(source);
6885
      args.setSource(source);
6886
      args.setItem_id(item_id);
-
 
6887
      sendBase("getOrdersCreatedAfterTimestampForSource", args);
6886
      sendBase("getOrdersCreatedAfterTimestampForSource", args);
6888
    }
6887
    }
6889
 
6888
 
6890
    public long recv_getOrdersCreatedAfterTimestampForSource() throws org.apache.thrift.TException
6889
    public Map<Long,Long> recv_getOrdersCreatedAfterTimestampForSource() throws org.apache.thrift.TException
6891
    {
6890
    {
6892
      getOrdersCreatedAfterTimestampForSource_result result = new getOrdersCreatedAfterTimestampForSource_result();
6891
      getOrdersCreatedAfterTimestampForSource_result result = new getOrdersCreatedAfterTimestampForSource_result();
6893
      receiveBase(result, "getOrdersCreatedAfterTimestampForSource");
6892
      receiveBase(result, "getOrdersCreatedAfterTimestampForSource");
6894
      if (result.isSetSuccess()) {
6893
      if (result.isSetSuccess()) {
6895
        return result.success;
6894
        return result.success;
Line 14486... Line 14485...
14486
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
14485
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
14487
        (new Client(prot)).recv_updateFlipkartOrderDatesAndAWB();
14486
        (new Client(prot)).recv_updateFlipkartOrderDatesAndAWB();
14488
      }
14487
      }
14489
    }
14488
    }
14490
 
14489
 
14491
    public void getOrdersCreatedAfterTimestampForSource(long timestamp, long source, long item_id, org.apache.thrift.async.AsyncMethodCallback<getOrdersCreatedAfterTimestampForSource_call> resultHandler) throws org.apache.thrift.TException {
14490
    public void getOrdersCreatedAfterTimestampForSource(long timestamp, long source, org.apache.thrift.async.AsyncMethodCallback<getOrdersCreatedAfterTimestampForSource_call> resultHandler) throws org.apache.thrift.TException {
14492
      checkReady();
14491
      checkReady();
14493
      getOrdersCreatedAfterTimestampForSource_call method_call = new getOrdersCreatedAfterTimestampForSource_call(timestamp, source, item_id, resultHandler, this, ___protocolFactory, ___transport);
14492
      getOrdersCreatedAfterTimestampForSource_call method_call = new getOrdersCreatedAfterTimestampForSource_call(timestamp, source, resultHandler, this, ___protocolFactory, ___transport);
14494
      this.___currentMethod = method_call;
14493
      this.___currentMethod = method_call;
14495
      ___manager.call(method_call);
14494
      ___manager.call(method_call);
14496
    }
14495
    }
14497
 
14496
 
14498
    public static class getOrdersCreatedAfterTimestampForSource_call extends org.apache.thrift.async.TAsyncMethodCall {
14497
    public static class getOrdersCreatedAfterTimestampForSource_call extends org.apache.thrift.async.TAsyncMethodCall {
14499
      private long timestamp;
14498
      private long timestamp;
14500
      private long source;
14499
      private long source;
14501
      private long item_id;
-
 
14502
      public getOrdersCreatedAfterTimestampForSource_call(long timestamp, long source, long item_id, org.apache.thrift.async.AsyncMethodCallback<getOrdersCreatedAfterTimestampForSource_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 {
14500
      public getOrdersCreatedAfterTimestampForSource_call(long timestamp, long source, org.apache.thrift.async.AsyncMethodCallback<getOrdersCreatedAfterTimestampForSource_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 {
14503
        super(client, protocolFactory, transport, resultHandler, false);
14501
        super(client, protocolFactory, transport, resultHandler, false);
14504
        this.timestamp = timestamp;
14502
        this.timestamp = timestamp;
14505
        this.source = source;
14503
        this.source = source;
14506
        this.item_id = item_id;
-
 
14507
      }
14504
      }
14508
 
14505
 
14509
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
14506
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
14510
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersCreatedAfterTimestampForSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
14507
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersCreatedAfterTimestampForSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
14511
        getOrdersCreatedAfterTimestampForSource_args args = new getOrdersCreatedAfterTimestampForSource_args();
14508
        getOrdersCreatedAfterTimestampForSource_args args = new getOrdersCreatedAfterTimestampForSource_args();
14512
        args.setTimestamp(timestamp);
14509
        args.setTimestamp(timestamp);
14513
        args.setSource(source);
14510
        args.setSource(source);
14514
        args.setItem_id(item_id);
-
 
14515
        args.write(prot);
14511
        args.write(prot);
14516
        prot.writeMessageEnd();
14512
        prot.writeMessageEnd();
14517
      }
14513
      }
14518
 
14514
 
14519
      public long getResult() throws org.apache.thrift.TException {
14515
      public Map<Long,Long> getResult() throws org.apache.thrift.TException {
14520
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
14516
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
14521
          throw new IllegalStateException("Method call not finished!");
14517
          throw new IllegalStateException("Method call not finished!");
14522
        }
14518
        }
14523
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
14519
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
14524
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
14520
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
Line 18725... Line 18721...
18725
        return new getOrdersCreatedAfterTimestampForSource_args();
18721
        return new getOrdersCreatedAfterTimestampForSource_args();
18726
      }
18722
      }
18727
 
18723
 
18728
      protected getOrdersCreatedAfterTimestampForSource_result getResult(I iface, getOrdersCreatedAfterTimestampForSource_args args) throws org.apache.thrift.TException {
18724
      protected getOrdersCreatedAfterTimestampForSource_result getResult(I iface, getOrdersCreatedAfterTimestampForSource_args args) throws org.apache.thrift.TException {
18729
        getOrdersCreatedAfterTimestampForSource_result result = new getOrdersCreatedAfterTimestampForSource_result();
18725
        getOrdersCreatedAfterTimestampForSource_result result = new getOrdersCreatedAfterTimestampForSource_result();
18730
        result.success = iface.getOrdersCreatedAfterTimestampForSource(args.timestamp, args.source, args.item_id);
18726
        result.success = iface.getOrdersCreatedAfterTimestampForSource(args.timestamp, args.source);
18731
        result.setSuccessIsSet(true);
-
 
18732
        return result;
18727
        return result;
18733
      }
18728
      }
18734
    }
18729
    }
18735
 
18730
 
18736
    private static class getOrderForAirwayBillNo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderForAirwayBillNo_args> {
18731
    private static class getOrderForAirwayBillNo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderForAirwayBillNo_args> {
Line 172052... Line 172047...
172052
  public static class getOrdersCreatedAfterTimestampForSource_args implements org.apache.thrift.TBase<getOrdersCreatedAfterTimestampForSource_args, getOrdersCreatedAfterTimestampForSource_args._Fields>, java.io.Serializable, Cloneable   {
172047
  public static class getOrdersCreatedAfterTimestampForSource_args implements org.apache.thrift.TBase<getOrdersCreatedAfterTimestampForSource_args, getOrdersCreatedAfterTimestampForSource_args._Fields>, java.io.Serializable, Cloneable   {
172053
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersCreatedAfterTimestampForSource_args");
172048
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersCreatedAfterTimestampForSource_args");
172054
 
172049
 
172055
    private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)1);
172050
    private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)1);
172056
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)2);
172051
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)2);
172057
    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)3);
-
 
172058
 
172052
 
172059
    private long timestamp; // required
172053
    private long timestamp; // required
172060
    private long source; // required
172054
    private long source; // required
172061
    private long item_id; // required
-
 
172062
 
172055
 
172063
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
172056
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
172064
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
172057
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
172065
      TIMESTAMP((short)1, "timestamp"),
172058
      TIMESTAMP((short)1, "timestamp"),
172066
      SOURCE((short)2, "source"),
172059
      SOURCE((short)2, "source");
172067
      ITEM_ID((short)3, "item_id");
-
 
172068
 
172060
 
172069
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
172061
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
172070
 
172062
 
172071
      static {
172063
      static {
172072
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
172064
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 172081... Line 172073...
172081
        switch(fieldId) {
172073
        switch(fieldId) {
172082
          case 1: // TIMESTAMP
172074
          case 1: // TIMESTAMP
172083
            return TIMESTAMP;
172075
            return TIMESTAMP;
172084
          case 2: // SOURCE
172076
          case 2: // SOURCE
172085
            return SOURCE;
172077
            return SOURCE;
172086
          case 3: // ITEM_ID
-
 
172087
            return ITEM_ID;
-
 
172088
          default:
172078
          default:
172089
            return null;
172079
            return null;
172090
        }
172080
        }
172091
      }
172081
      }
172092
 
172082
 
Line 172125... Line 172115...
172125
    }
172115
    }
172126
 
172116
 
172127
    // isset id assignments
172117
    // isset id assignments
172128
    private static final int __TIMESTAMP_ISSET_ID = 0;
172118
    private static final int __TIMESTAMP_ISSET_ID = 0;
172129
    private static final int __SOURCE_ISSET_ID = 1;
172119
    private static final int __SOURCE_ISSET_ID = 1;
172130
    private static final int __ITEM_ID_ISSET_ID = 2;
-
 
172131
    private BitSet __isset_bit_vector = new BitSet(3);
172120
    private BitSet __isset_bit_vector = new BitSet(2);
172132
 
172121
 
172133
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
172122
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
172134
    static {
172123
    static {
172135
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
172124
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
172136
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
172125
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
172137
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
172126
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
172138
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
172127
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
172139
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
172128
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
172140
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
172141
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
172142
      metaDataMap = Collections.unmodifiableMap(tmpMap);
172129
      metaDataMap = Collections.unmodifiableMap(tmpMap);
172143
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersCreatedAfterTimestampForSource_args.class, metaDataMap);
172130
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersCreatedAfterTimestampForSource_args.class, metaDataMap);
172144
    }
172131
    }
172145
 
172132
 
172146
    public getOrdersCreatedAfterTimestampForSource_args() {
172133
    public getOrdersCreatedAfterTimestampForSource_args() {
172147
    }
172134
    }
172148
 
172135
 
172149
    public getOrdersCreatedAfterTimestampForSource_args(
172136
    public getOrdersCreatedAfterTimestampForSource_args(
172150
      long timestamp,
172137
      long timestamp,
172151
      long source,
172138
      long source)
172152
      long item_id)
-
 
172153
    {
172139
    {
172154
      this();
172140
      this();
172155
      this.timestamp = timestamp;
172141
      this.timestamp = timestamp;
172156
      setTimestampIsSet(true);
172142
      setTimestampIsSet(true);
172157
      this.source = source;
172143
      this.source = source;
172158
      setSourceIsSet(true);
172144
      setSourceIsSet(true);
172159
      this.item_id = item_id;
-
 
172160
      setItem_idIsSet(true);
-
 
172161
    }
172145
    }
172162
 
172146
 
172163
    /**
172147
    /**
172164
     * Performs a deep copy on <i>other</i>.
172148
     * Performs a deep copy on <i>other</i>.
172165
     */
172149
     */
172166
    public getOrdersCreatedAfterTimestampForSource_args(getOrdersCreatedAfterTimestampForSource_args other) {
172150
    public getOrdersCreatedAfterTimestampForSource_args(getOrdersCreatedAfterTimestampForSource_args other) {
172167
      __isset_bit_vector.clear();
172151
      __isset_bit_vector.clear();
172168
      __isset_bit_vector.or(other.__isset_bit_vector);
172152
      __isset_bit_vector.or(other.__isset_bit_vector);
172169
      this.timestamp = other.timestamp;
172153
      this.timestamp = other.timestamp;
172170
      this.source = other.source;
172154
      this.source = other.source;
172171
      this.item_id = other.item_id;
-
 
172172
    }
172155
    }
172173
 
172156
 
172174
    public getOrdersCreatedAfterTimestampForSource_args deepCopy() {
172157
    public getOrdersCreatedAfterTimestampForSource_args deepCopy() {
172175
      return new getOrdersCreatedAfterTimestampForSource_args(this);
172158
      return new getOrdersCreatedAfterTimestampForSource_args(this);
172176
    }
172159
    }
Line 172179... Line 172162...
172179
    public void clear() {
172162
    public void clear() {
172180
      setTimestampIsSet(false);
172163
      setTimestampIsSet(false);
172181
      this.timestamp = 0;
172164
      this.timestamp = 0;
172182
      setSourceIsSet(false);
172165
      setSourceIsSet(false);
172183
      this.source = 0;
172166
      this.source = 0;
172184
      setItem_idIsSet(false);
-
 
172185
      this.item_id = 0;
-
 
172186
    }
172167
    }
172187
 
172168
 
172188
    public long getTimestamp() {
172169
    public long getTimestamp() {
172189
      return this.timestamp;
172170
      return this.timestamp;
172190
    }
172171
    }
Line 172227... Line 172208...
172227
 
172208
 
172228
    public void setSourceIsSet(boolean value) {
172209
    public void setSourceIsSet(boolean value) {
172229
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
172210
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
172230
    }
172211
    }
172231
 
172212
 
172232
    public long getItem_id() {
-
 
172233
      return this.item_id;
-
 
172234
    }
-
 
172235
 
-
 
172236
    public void setItem_id(long item_id) {
-
 
172237
      this.item_id = item_id;
-
 
172238
      setItem_idIsSet(true);
-
 
172239
    }
-
 
172240
 
-
 
172241
    public void unsetItem_id() {
-
 
172242
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
172243
    }
-
 
172244
 
-
 
172245
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
172246
    public boolean isSetItem_id() {
-
 
172247
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
172248
    }
-
 
172249
 
-
 
172250
    public void setItem_idIsSet(boolean value) {
-
 
172251
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
172252
    }
-
 
172253
 
-
 
172254
    public void setFieldValue(_Fields field, Object value) {
172213
    public void setFieldValue(_Fields field, Object value) {
172255
      switch (field) {
172214
      switch (field) {
172256
      case TIMESTAMP:
172215
      case TIMESTAMP:
172257
        if (value == null) {
172216
        if (value == null) {
172258
          unsetTimestamp();
172217
          unsetTimestamp();
Line 172267... Line 172226...
172267
        } else {
172226
        } else {
172268
          setSource((Long)value);
172227
          setSource((Long)value);
172269
        }
172228
        }
172270
        break;
172229
        break;
172271
 
172230
 
172272
      case ITEM_ID:
-
 
172273
        if (value == null) {
-
 
172274
          unsetItem_id();
-
 
172275
        } else {
-
 
172276
          setItem_id((Long)value);
-
 
172277
        }
-
 
172278
        break;
-
 
172279
 
-
 
172280
      }
172231
      }
172281
    }
172232
    }
172282
 
172233
 
172283
    public Object getFieldValue(_Fields field) {
172234
    public Object getFieldValue(_Fields field) {
172284
      switch (field) {
172235
      switch (field) {
Line 172286... Line 172237...
172286
        return Long.valueOf(getTimestamp());
172237
        return Long.valueOf(getTimestamp());
172287
 
172238
 
172288
      case SOURCE:
172239
      case SOURCE:
172289
        return Long.valueOf(getSource());
172240
        return Long.valueOf(getSource());
172290
 
172241
 
172291
      case ITEM_ID:
-
 
172292
        return Long.valueOf(getItem_id());
-
 
172293
 
-
 
172294
      }
172242
      }
172295
      throw new IllegalStateException();
172243
      throw new IllegalStateException();
172296
    }
172244
    }
172297
 
172245
 
172298
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
172246
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 172304... Line 172252...
172304
      switch (field) {
172252
      switch (field) {
172305
      case TIMESTAMP:
172253
      case TIMESTAMP:
172306
        return isSetTimestamp();
172254
        return isSetTimestamp();
172307
      case SOURCE:
172255
      case SOURCE:
172308
        return isSetSource();
172256
        return isSetSource();
172309
      case ITEM_ID:
-
 
172310
        return isSetItem_id();
-
 
172311
      }
172257
      }
172312
      throw new IllegalStateException();
172258
      throw new IllegalStateException();
172313
    }
172259
    }
172314
 
172260
 
172315
    @Override
172261
    @Override
Line 172341... Line 172287...
172341
          return false;
172287
          return false;
172342
        if (this.source != that.source)
172288
        if (this.source != that.source)
172343
          return false;
172289
          return false;
172344
      }
172290
      }
172345
 
172291
 
172346
      boolean this_present_item_id = true;
-
 
172347
      boolean that_present_item_id = true;
-
 
172348
      if (this_present_item_id || that_present_item_id) {
-
 
172349
        if (!(this_present_item_id && that_present_item_id))
-
 
172350
          return false;
-
 
172351
        if (this.item_id != that.item_id)
-
 
172352
          return false;
-
 
172353
      }
-
 
172354
 
-
 
172355
      return true;
172292
      return true;
172356
    }
172293
    }
172357
 
172294
 
172358
    @Override
172295
    @Override
172359
    public int hashCode() {
172296
    public int hashCode() {
Line 172386... Line 172323...
172386
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
172323
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
172387
        if (lastComparison != 0) {
172324
        if (lastComparison != 0) {
172388
          return lastComparison;
172325
          return lastComparison;
172389
        }
172326
        }
172390
      }
172327
      }
172391
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
172392
      if (lastComparison != 0) {
-
 
172393
        return lastComparison;
-
 
172394
      }
-
 
172395
      if (isSetItem_id()) {
-
 
172396
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
172397
        if (lastComparison != 0) {
-
 
172398
          return lastComparison;
-
 
172399
        }
-
 
172400
      }
-
 
172401
      return 0;
172328
      return 0;
172402
    }
172329
    }
172403
 
172330
 
172404
    public _Fields fieldForId(int fieldId) {
172331
    public _Fields fieldForId(int fieldId) {
172405
      return _Fields.findByThriftId(fieldId);
172332
      return _Fields.findByThriftId(fieldId);
Line 172429... Line 172356...
172429
              setSourceIsSet(true);
172356
              setSourceIsSet(true);
172430
            } else { 
172357
            } else { 
172431
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
172358
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
172432
            }
172359
            }
172433
            break;
172360
            break;
172434
          case 3: // ITEM_ID
-
 
172435
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
172436
              this.item_id = iprot.readI64();
-
 
172437
              setItem_idIsSet(true);
-
 
172438
            } else { 
-
 
172439
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
172440
            }
-
 
172441
            break;
-
 
172442
          default:
172361
          default:
172443
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
172362
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
172444
        }
172363
        }
172445
        iprot.readFieldEnd();
172364
        iprot.readFieldEnd();
172446
      }
172365
      }
Line 172456... Line 172375...
172456
      oprot.writeI64(this.timestamp);
172375
      oprot.writeI64(this.timestamp);
172457
      oprot.writeFieldEnd();
172376
      oprot.writeFieldEnd();
172458
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
172377
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
172459
      oprot.writeI64(this.source);
172378
      oprot.writeI64(this.source);
172460
      oprot.writeFieldEnd();
172379
      oprot.writeFieldEnd();
172461
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
172462
      oprot.writeI64(this.item_id);
-
 
172463
      oprot.writeFieldEnd();
-
 
172464
      oprot.writeFieldStop();
172380
      oprot.writeFieldStop();
172465
      oprot.writeStructEnd();
172381
      oprot.writeStructEnd();
172466
    }
172382
    }
172467
 
172383
 
172468
    @Override
172384
    @Override
Line 172475... Line 172391...
172475
      first = false;
172391
      first = false;
172476
      if (!first) sb.append(", ");
172392
      if (!first) sb.append(", ");
172477
      sb.append("source:");
172393
      sb.append("source:");
172478
      sb.append(this.source);
172394
      sb.append(this.source);
172479
      first = false;
172395
      first = false;
172480
      if (!first) sb.append(", ");
-
 
172481
      sb.append("item_id:");
-
 
172482
      sb.append(this.item_id);
-
 
172483
      first = false;
-
 
172484
      sb.append(")");
172396
      sb.append(")");
172485
      return sb.toString();
172397
      return sb.toString();
172486
    }
172398
    }
172487
 
172399
 
172488
    public void validate() throws org.apache.thrift.TException {
172400
    public void validate() throws org.apache.thrift.TException {
Line 172510... Line 172422...
172510
  }
172422
  }
172511
 
172423
 
172512
  public static class getOrdersCreatedAfterTimestampForSource_result implements org.apache.thrift.TBase<getOrdersCreatedAfterTimestampForSource_result, getOrdersCreatedAfterTimestampForSource_result._Fields>, java.io.Serializable, Cloneable   {
172424
  public static class getOrdersCreatedAfterTimestampForSource_result implements org.apache.thrift.TBase<getOrdersCreatedAfterTimestampForSource_result, getOrdersCreatedAfterTimestampForSource_result._Fields>, java.io.Serializable, Cloneable   {
172513
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersCreatedAfterTimestampForSource_result");
172425
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersCreatedAfterTimestampForSource_result");
172514
 
172426
 
172515
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
172427
    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);
172516
 
172428
 
172517
    private long success; // required
172429
    private Map<Long,Long> success; // required
172518
 
172430
 
172519
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
172431
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
172520
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
172432
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
172521
      SUCCESS((short)0, "success");
172433
      SUCCESS((short)0, "success");
172522
 
172434
 
Line 172573... Line 172485...
172573
        return _fieldName;
172485
        return _fieldName;
172574
      }
172486
      }
172575
    }
172487
    }
172576
 
172488
 
172577
    // isset id assignments
172489
    // isset id assignments
172578
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
172579
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
172580
 
172490
 
172581
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
172491
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
172582
    static {
172492
    static {
172583
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
172493
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
172584
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
172494
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
172495
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
172496
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
172585
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
172497
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
172586
      metaDataMap = Collections.unmodifiableMap(tmpMap);
172498
      metaDataMap = Collections.unmodifiableMap(tmpMap);
172587
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersCreatedAfterTimestampForSource_result.class, metaDataMap);
172499
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersCreatedAfterTimestampForSource_result.class, metaDataMap);
172588
    }
172500
    }
172589
 
172501
 
172590
    public getOrdersCreatedAfterTimestampForSource_result() {
172502
    public getOrdersCreatedAfterTimestampForSource_result() {
172591
    }
172503
    }
172592
 
172504
 
172593
    public getOrdersCreatedAfterTimestampForSource_result(
172505
    public getOrdersCreatedAfterTimestampForSource_result(
172594
      long success)
172506
      Map<Long,Long> success)
172595
    {
172507
    {
172596
      this();
172508
      this();
172597
      this.success = success;
172509
      this.success = success;
172598
      setSuccessIsSet(true);
-
 
172599
    }
172510
    }
172600
 
172511
 
172601
    /**
172512
    /**
172602
     * Performs a deep copy on <i>other</i>.
172513
     * Performs a deep copy on <i>other</i>.
172603
     */
172514
     */
172604
    public getOrdersCreatedAfterTimestampForSource_result(getOrdersCreatedAfterTimestampForSource_result other) {
172515
    public getOrdersCreatedAfterTimestampForSource_result(getOrdersCreatedAfterTimestampForSource_result other) {
172605
      __isset_bit_vector.clear();
172516
      if (other.isSetSuccess()) {
-
 
172517
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
-
 
172518
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
-
 
172519
 
172606
      __isset_bit_vector.or(other.__isset_bit_vector);
172520
          Long other_element_key = other_element.getKey();
-
 
172521
          Long other_element_value = other_element.getValue();
-
 
172522
 
-
 
172523
          Long __this__success_copy_key = other_element_key;
-
 
172524
 
-
 
172525
          Long __this__success_copy_value = other_element_value;
-
 
172526
 
-
 
172527
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
172528
        }
172607
      this.success = other.success;
172529
        this.success = __this__success;
-
 
172530
      }
172608
    }
172531
    }
172609
 
172532
 
172610
    public getOrdersCreatedAfterTimestampForSource_result deepCopy() {
172533
    public getOrdersCreatedAfterTimestampForSource_result deepCopy() {
172611
      return new getOrdersCreatedAfterTimestampForSource_result(this);
172534
      return new getOrdersCreatedAfterTimestampForSource_result(this);
172612
    }
172535
    }
172613
 
172536
 
172614
    @Override
172537
    @Override
172615
    public void clear() {
172538
    public void clear() {
172616
      setSuccessIsSet(false);
-
 
172617
      this.success = 0;
172539
      this.success = null;
172618
    }
172540
    }
172619
 
172541
 
172620
    public long getSuccess() {
172542
    public int getSuccessSize() {
-
 
172543
      return (this.success == null) ? 0 : this.success.size();
-
 
172544
    }
-
 
172545
 
-
 
172546
    public void putToSuccess(long key, long val) {
-
 
172547
      if (this.success == null) {
-
 
172548
        this.success = new HashMap<Long,Long>();
-
 
172549
      }
-
 
172550
      this.success.put(key, val);
-
 
172551
    }
-
 
172552
 
-
 
172553
    public Map<Long,Long> getSuccess() {
172621
      return this.success;
172554
      return this.success;
172622
    }
172555
    }
172623
 
172556
 
172624
    public void setSuccess(long success) {
172557
    public void setSuccess(Map<Long,Long> success) {
172625
      this.success = success;
172558
      this.success = success;
172626
      setSuccessIsSet(true);
-
 
172627
    }
172559
    }
172628
 
172560
 
172629
    public void unsetSuccess() {
172561
    public void unsetSuccess() {
172630
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
172562
      this.success = null;
172631
    }
172563
    }
172632
 
172564
 
172633
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
172565
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
172634
    public boolean isSetSuccess() {
172566
    public boolean isSetSuccess() {
172635
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
172567
      return this.success != null;
172636
    }
172568
    }
172637
 
172569
 
172638
    public void setSuccessIsSet(boolean value) {
172570
    public void setSuccessIsSet(boolean value) {
-
 
172571
      if (!value) {
172639
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
172572
        this.success = null;
-
 
172573
      }
172640
    }
172574
    }
172641
 
172575
 
172642
    public void setFieldValue(_Fields field, Object value) {
172576
    public void setFieldValue(_Fields field, Object value) {
172643
      switch (field) {
172577
      switch (field) {
172644
      case SUCCESS:
172578
      case SUCCESS:
172645
        if (value == null) {
172579
        if (value == null) {
172646
          unsetSuccess();
172580
          unsetSuccess();
172647
        } else {
172581
        } else {
172648
          setSuccess((Long)value);
172582
          setSuccess((Map<Long,Long>)value);
172649
        }
172583
        }
172650
        break;
172584
        break;
172651
 
172585
 
172652
      }
172586
      }
172653
    }
172587
    }
172654
 
172588
 
172655
    public Object getFieldValue(_Fields field) {
172589
    public Object getFieldValue(_Fields field) {
172656
      switch (field) {
172590
      switch (field) {
172657
      case SUCCESS:
172591
      case SUCCESS:
172658
        return Long.valueOf(getSuccess());
172592
        return getSuccess();
172659
 
172593
 
172660
      }
172594
      }
172661
      throw new IllegalStateException();
172595
      throw new IllegalStateException();
172662
    }
172596
    }
172663
 
172597
 
Line 172685... Line 172619...
172685
 
172619
 
172686
    public boolean equals(getOrdersCreatedAfterTimestampForSource_result that) {
172620
    public boolean equals(getOrdersCreatedAfterTimestampForSource_result that) {
172687
      if (that == null)
172621
      if (that == null)
172688
        return false;
172622
        return false;
172689
 
172623
 
172690
      boolean this_present_success = true;
172624
      boolean this_present_success = true && this.isSetSuccess();
172691
      boolean that_present_success = true;
172625
      boolean that_present_success = true && that.isSetSuccess();
172692
      if (this_present_success || that_present_success) {
172626
      if (this_present_success || that_present_success) {
172693
        if (!(this_present_success && that_present_success))
172627
        if (!(this_present_success && that_present_success))
172694
          return false;
172628
          return false;
172695
        if (this.success != that.success)
172629
        if (!this.success.equals(that.success))
172696
          return false;
172630
          return false;
172697
      }
172631
      }
172698
 
172632
 
172699
      return true;
172633
      return true;
172700
    }
172634
    }
Line 172738... Line 172672...
172738
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
172672
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
172739
          break;
172673
          break;
172740
        }
172674
        }
172741
        switch (field.id) {
172675
        switch (field.id) {
172742
          case 0: // SUCCESS
172676
          case 0: // SUCCESS
172743
            if (field.type == org.apache.thrift.protocol.TType.I64) {
172677
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
172678
              {
-
 
172679
                org.apache.thrift.protocol.TMap _map516 = iprot.readMapBegin();
-
 
172680
                this.success = new HashMap<Long,Long>(2*_map516.size);
-
 
172681
                for (int _i517 = 0; _i517 < _map516.size; ++_i517)
-
 
172682
                {
-
 
172683
                  long _key518; // required
-
 
172684
                  long _val519; // required
-
 
172685
                  _key518 = iprot.readI64();
172744
              this.success = iprot.readI64();
172686
                  _val519 = iprot.readI64();
-
 
172687
                  this.success.put(_key518, _val519);
-
 
172688
                }
172745
              setSuccessIsSet(true);
172689
                iprot.readMapEnd();
-
 
172690
              }
172746
            } else { 
172691
            } else { 
172747
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
172692
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
172748
            }
172693
            }
172749
            break;
172694
            break;
172750
          default:
172695
          default:
Line 172759... Line 172704...
172759
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
172704
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
172760
      oprot.writeStructBegin(STRUCT_DESC);
172705
      oprot.writeStructBegin(STRUCT_DESC);
172761
 
172706
 
172762
      if (this.isSetSuccess()) {
172707
      if (this.isSetSuccess()) {
172763
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
172708
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
172709
        {
-
 
172710
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
172711
          for (Map.Entry<Long, Long> _iter520 : this.success.entrySet())
-
 
172712
          {
172764
        oprot.writeI64(this.success);
172713
            oprot.writeI64(_iter520.getKey());
-
 
172714
            oprot.writeI64(_iter520.getValue());
-
 
172715
          }
-
 
172716
          oprot.writeMapEnd();
-
 
172717
        }
172765
        oprot.writeFieldEnd();
172718
        oprot.writeFieldEnd();
172766
      }
172719
      }
172767
      oprot.writeFieldStop();
172720
      oprot.writeFieldStop();
172768
      oprot.writeStructEnd();
172721
      oprot.writeStructEnd();
172769
    }
172722
    }
Line 172772... Line 172725...
172772
    public String toString() {
172725
    public String toString() {
172773
      StringBuilder sb = new StringBuilder("getOrdersCreatedAfterTimestampForSource_result(");
172726
      StringBuilder sb = new StringBuilder("getOrdersCreatedAfterTimestampForSource_result(");
172774
      boolean first = true;
172727
      boolean first = true;
172775
 
172728
 
172776
      sb.append("success:");
172729
      sb.append("success:");
-
 
172730
      if (this.success == null) {
-
 
172731
        sb.append("null");
-
 
172732
      } else {
172777
      sb.append(this.success);
172733
        sb.append(this.success);
-
 
172734
      }
172778
      first = false;
172735
      first = false;
172779
      sb.append(")");
172736
      sb.append(")");
172780
      return sb.toString();
172737
      return sb.toString();
172781
    }
172738
    }
172782
 
172739