Subversion Repositories SmartDukaan

Rev

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

Rev 6903 Rev 6906
Line 908... Line 908...
908
 
908
 
909
    public boolean refundRechargeOrder(long rechargeOrderId) throws TransactionServiceException, org.apache.thrift.TException;
909
    public boolean refundRechargeOrder(long rechargeOrderId) throws TransactionServiceException, org.apache.thrift.TException;
910
 
910
 
911
    public List<Order> getPhysicalOrders(long fromDate, long toDate) throws org.apache.thrift.TException;
911
    public List<Order> getPhysicalOrders(long fromDate, long toDate) throws org.apache.thrift.TException;
912
 
912
 
-
 
913
    public ByteBuffer getDocument(long docType, long docSource) throws org.apache.thrift.TException;
-
 
914
 
913
  }
915
  }
914
 
916
 
915
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
917
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
916
 
918
 
917
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
919
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1210... Line 1212...
1210
 
1212
 
1211
    public void refundRechargeOrder(long rechargeOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.refundRechargeOrder_call> resultHandler) throws org.apache.thrift.TException;
1213
    public void refundRechargeOrder(long rechargeOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.refundRechargeOrder_call> resultHandler) throws org.apache.thrift.TException;
1212
 
1214
 
1213
    public void getPhysicalOrders(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPhysicalOrders_call> resultHandler) throws org.apache.thrift.TException;
1215
    public void getPhysicalOrders(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPhysicalOrders_call> resultHandler) throws org.apache.thrift.TException;
1214
 
1216
 
-
 
1217
    public void getDocument(long docType, long docSource, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDocument_call> resultHandler) throws org.apache.thrift.TException;
-
 
1218
 
1215
  }
1219
  }
1216
 
1220
 
1217
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1221
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1218
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1222
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1219
      public Factory() {}
1223
      public Factory() {}
Line 4987... Line 4991...
4987
        return result.success;
4991
        return result.success;
4988
      }
4992
      }
4989
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPhysicalOrders failed: unknown result");
4993
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPhysicalOrders failed: unknown result");
4990
    }
4994
    }
4991
 
4995
 
-
 
4996
    public ByteBuffer getDocument(long docType, long docSource) throws org.apache.thrift.TException
-
 
4997
    {
-
 
4998
      send_getDocument(docType, docSource);
-
 
4999
      return recv_getDocument();
-
 
5000
    }
-
 
5001
 
-
 
5002
    public void send_getDocument(long docType, long docSource) throws org.apache.thrift.TException
-
 
5003
    {
-
 
5004
      getDocument_args args = new getDocument_args();
-
 
5005
      args.setDocType(docType);
-
 
5006
      args.setDocSource(docSource);
-
 
5007
      sendBase("getDocument", args);
-
 
5008
    }
-
 
5009
 
-
 
5010
    public ByteBuffer recv_getDocument() throws org.apache.thrift.TException
-
 
5011
    {
-
 
5012
      getDocument_result result = new getDocument_result();
-
 
5013
      receiveBase(result, "getDocument");
-
 
5014
      if (result.isSetSuccess()) {
-
 
5015
        return result.success;
-
 
5016
      }
-
 
5017
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDocument failed: unknown result");
-
 
5018
    }
-
 
5019
 
4992
  }
5020
  }
4993
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5021
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4994
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5022
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4995
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5023
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4996
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5024
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 10208... Line 10236...
10208
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10236
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10209
        return (new Client(prot)).recv_getPhysicalOrders();
10237
        return (new Client(prot)).recv_getPhysicalOrders();
10210
      }
10238
      }
10211
    }
10239
    }
10212
 
10240
 
-
 
10241
    public void getDocument(long docType, long docSource, org.apache.thrift.async.AsyncMethodCallback<getDocument_call> resultHandler) throws org.apache.thrift.TException {
-
 
10242
      checkReady();
-
 
10243
      getDocument_call method_call = new getDocument_call(docType, docSource, resultHandler, this, ___protocolFactory, ___transport);
-
 
10244
      this.___currentMethod = method_call;
-
 
10245
      ___manager.call(method_call);
-
 
10246
    }
-
 
10247
 
-
 
10248
    public static class getDocument_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10249
      private long docType;
-
 
10250
      private long docSource;
-
 
10251
      public getDocument_call(long docType, long docSource, org.apache.thrift.async.AsyncMethodCallback<getDocument_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 {
-
 
10252
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10253
        this.docType = docType;
-
 
10254
        this.docSource = docSource;
-
 
10255
      }
-
 
10256
 
-
 
10257
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10258
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDocument", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10259
        getDocument_args args = new getDocument_args();
-
 
10260
        args.setDocType(docType);
-
 
10261
        args.setDocSource(docSource);
-
 
10262
        args.write(prot);
-
 
10263
        prot.writeMessageEnd();
-
 
10264
      }
-
 
10265
 
-
 
10266
      public ByteBuffer getResult() throws org.apache.thrift.TException {
-
 
10267
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10268
          throw new IllegalStateException("Method call not finished!");
-
 
10269
        }
-
 
10270
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10271
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10272
        return (new Client(prot)).recv_getDocument();
-
 
10273
      }
-
 
10274
    }
-
 
10275
 
10213
  }
10276
  }
10214
 
10277
 
10215
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10278
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10216
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10279
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10217
    public Processor(I iface) {
10280
    public Processor(I iface) {
Line 10370... Line 10433...
10370
      processMap.put("updateAvailabilityStatus", new updateAvailabilityStatus());
10433
      processMap.put("updateAvailabilityStatus", new updateAvailabilityStatus());
10371
      processMap.put("getAvailableEmiSchemes", new getAvailableEmiSchemes());
10434
      processMap.put("getAvailableEmiSchemes", new getAvailableEmiSchemes());
10372
      processMap.put("getMiscCharges", new getMiscCharges());
10435
      processMap.put("getMiscCharges", new getMiscCharges());
10373
      processMap.put("refundRechargeOrder", new refundRechargeOrder());
10436
      processMap.put("refundRechargeOrder", new refundRechargeOrder());
10374
      processMap.put("getPhysicalOrders", new getPhysicalOrders());
10437
      processMap.put("getPhysicalOrders", new getPhysicalOrders());
-
 
10438
      processMap.put("getDocument", new getDocument());
10375
      return processMap;
10439
      return processMap;
10376
    }
10440
    }
10377
 
10441
 
10378
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
10442
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
10379
      public createTransaction() {
10443
      public createTransaction() {
Line 13184... Line 13248...
13184
        result.success = iface.getPhysicalOrders(args.fromDate, args.toDate);
13248
        result.success = iface.getPhysicalOrders(args.fromDate, args.toDate);
13185
        return result;
13249
        return result;
13186
      }
13250
      }
13187
    }
13251
    }
13188
 
13252
 
-
 
13253
    private static class getDocument<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDocument_args> {
-
 
13254
      public getDocument() {
-
 
13255
        super("getDocument");
-
 
13256
      }
-
 
13257
 
-
 
13258
      protected getDocument_args getEmptyArgsInstance() {
-
 
13259
        return new getDocument_args();
-
 
13260
      }
-
 
13261
 
-
 
13262
      protected getDocument_result getResult(I iface, getDocument_args args) throws org.apache.thrift.TException {
-
 
13263
        getDocument_result result = new getDocument_result();
-
 
13264
        result.success = iface.getDocument(args.docType, args.docSource);
-
 
13265
        return result;
-
 
13266
      }
-
 
13267
    }
-
 
13268
 
13189
  }
13269
  }
13190
 
13270
 
13191
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
13271
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
13192
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
13272
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
13193
 
13273
 
Line 57290... Line 57370...
57290
      }
57370
      }
57291
    }
57371
    }
57292
 
57372
 
57293
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57373
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57294
      try {
57374
      try {
57295
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
57296
        __isset_bit_vector = new BitSet(1);
-
 
57297
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57375
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57298
      } catch (org.apache.thrift.TException te) {
57376
      } catch (org.apache.thrift.TException te) {
57299
        throw new java.io.IOException(te);
57377
        throw new java.io.IOException(te);
57300
      }
57378
      }
57301
    }
57379
    }
Line 62142... Line 62220...
62142
      }
62220
      }
62143
    }
62221
    }
62144
 
62222
 
62145
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
62223
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
62146
      try {
62224
      try {
62147
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
62148
        __isset_bit_vector = new BitSet(1);
-
 
62149
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
62225
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
62150
      } catch (org.apache.thrift.TException te) {
62226
      } catch (org.apache.thrift.TException te) {
62151
        throw new java.io.IOException(te);
62227
        throw new java.io.IOException(te);
62152
      }
62228
      }
62153
    }
62229
    }
Line 63575... Line 63651...
63575
      }
63651
      }
63576
    }
63652
    }
63577
 
63653
 
63578
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
63654
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
63579
      try {
63655
      try {
63580
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
63581
        __isset_bit_vector = new BitSet(1);
-
 
63582
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
63656
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
63583
      } catch (org.apache.thrift.TException te) {
63657
      } catch (org.apache.thrift.TException te) {
63584
        throw new java.io.IOException(te);
63658
        throw new java.io.IOException(te);
63585
      }
63659
      }
63586
    }
63660
    }
Line 121563... Line 121637...
121563
      }
121637
      }
121564
      first = false;
121638
      first = false;
121565
      sb.append(")");
121639
      sb.append(")");
121566
      return sb.toString();
121640
      return sb.toString();
121567
    }
121641
    }
-
 
121642
 
-
 
121643
    public void validate() throws org.apache.thrift.TException {
-
 
121644
      // check for required fields
-
 
121645
    }
-
 
121646
 
-
 
121647
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
121648
      try {
-
 
121649
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
121650
      } catch (org.apache.thrift.TException te) {
-
 
121651
        throw new java.io.IOException(te);
-
 
121652
      }
-
 
121653
    }
-
 
121654
 
-
 
121655
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
121656
      try {
-
 
121657
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
121658
      } catch (org.apache.thrift.TException te) {
-
 
121659
        throw new java.io.IOException(te);
-
 
121660
      }
-
 
121661
    }
-
 
121662
 
-
 
121663
  }
-
 
121664
 
-
 
121665
  public static class getDocument_args implements org.apache.thrift.TBase<getDocument_args, getDocument_args._Fields>, java.io.Serializable, Cloneable   {
-
 
121666
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDocument_args");
-
 
121667
 
-
 
121668
    private static final org.apache.thrift.protocol.TField DOC_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("docType", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
121669
    private static final org.apache.thrift.protocol.TField DOC_SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("docSource", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
121670
 
-
 
121671
    private long docType; // required
-
 
121672
    private long docSource; // required
-
 
121673
 
-
 
121674
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
121675
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
121676
      DOC_TYPE((short)1, "docType"),
-
 
121677
      DOC_SOURCE((short)2, "docSource");
-
 
121678
 
-
 
121679
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
121680
 
-
 
121681
      static {
-
 
121682
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
121683
          byName.put(field.getFieldName(), field);
-
 
121684
        }
-
 
121685
      }
-
 
121686
 
-
 
121687
      /**
-
 
121688
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
121689
       */
-
 
121690
      public static _Fields findByThriftId(int fieldId) {
-
 
121691
        switch(fieldId) {
-
 
121692
          case 1: // DOC_TYPE
-
 
121693
            return DOC_TYPE;
-
 
121694
          case 2: // DOC_SOURCE
-
 
121695
            return DOC_SOURCE;
-
 
121696
          default:
-
 
121697
            return null;
-
 
121698
        }
-
 
121699
      }
-
 
121700
 
-
 
121701
      /**
-
 
121702
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
121703
       * if it is not found.
-
 
121704
       */
-
 
121705
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
121706
        _Fields fields = findByThriftId(fieldId);
-
 
121707
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
121708
        return fields;
-
 
121709
      }
-
 
121710
 
-
 
121711
      /**
-
 
121712
       * Find the _Fields constant that matches name, or null if its not found.
-
 
121713
       */
-
 
121714
      public static _Fields findByName(String name) {
-
 
121715
        return byName.get(name);
-
 
121716
      }
-
 
121717
 
-
 
121718
      private final short _thriftId;
-
 
121719
      private final String _fieldName;
-
 
121720
 
-
 
121721
      _Fields(short thriftId, String fieldName) {
-
 
121722
        _thriftId = thriftId;
-
 
121723
        _fieldName = fieldName;
-
 
121724
      }
-
 
121725
 
-
 
121726
      public short getThriftFieldId() {
-
 
121727
        return _thriftId;
-
 
121728
      }
-
 
121729
 
-
 
121730
      public String getFieldName() {
-
 
121731
        return _fieldName;
-
 
121732
      }
-
 
121733
    }
-
 
121734
 
-
 
121735
    // isset id assignments
-
 
121736
    private static final int __DOCTYPE_ISSET_ID = 0;
-
 
121737
    private static final int __DOCSOURCE_ISSET_ID = 1;
-
 
121738
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
121739
 
-
 
121740
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
121741
    static {
-
 
121742
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
121743
      tmpMap.put(_Fields.DOC_TYPE, new org.apache.thrift.meta_data.FieldMetaData("docType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
121744
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
121745
      tmpMap.put(_Fields.DOC_SOURCE, new org.apache.thrift.meta_data.FieldMetaData("docSource", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
121746
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
121747
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
121748
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDocument_args.class, metaDataMap);
-
 
121749
    }
-
 
121750
 
-
 
121751
    public getDocument_args() {
-
 
121752
    }
-
 
121753
 
-
 
121754
    public getDocument_args(
-
 
121755
      long docType,
-
 
121756
      long docSource)
-
 
121757
    {
-
 
121758
      this();
-
 
121759
      this.docType = docType;
-
 
121760
      setDocTypeIsSet(true);
-
 
121761
      this.docSource = docSource;
-
 
121762
      setDocSourceIsSet(true);
-
 
121763
    }
-
 
121764
 
-
 
121765
    /**
-
 
121766
     * Performs a deep copy on <i>other</i>.
-
 
121767
     */
-
 
121768
    public getDocument_args(getDocument_args other) {
-
 
121769
      __isset_bit_vector.clear();
-
 
121770
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
121771
      this.docType = other.docType;
-
 
121772
      this.docSource = other.docSource;
-
 
121773
    }
-
 
121774
 
-
 
121775
    public getDocument_args deepCopy() {
-
 
121776
      return new getDocument_args(this);
-
 
121777
    }
-
 
121778
 
-
 
121779
    @Override
-
 
121780
    public void clear() {
-
 
121781
      setDocTypeIsSet(false);
-
 
121782
      this.docType = 0;
-
 
121783
      setDocSourceIsSet(false);
-
 
121784
      this.docSource = 0;
-
 
121785
    }
-
 
121786
 
-
 
121787
    public long getDocType() {
-
 
121788
      return this.docType;
-
 
121789
    }
-
 
121790
 
-
 
121791
    public void setDocType(long docType) {
-
 
121792
      this.docType = docType;
-
 
121793
      setDocTypeIsSet(true);
-
 
121794
    }
-
 
121795
 
-
 
121796
    public void unsetDocType() {
-
 
121797
      __isset_bit_vector.clear(__DOCTYPE_ISSET_ID);
-
 
121798
    }
-
 
121799
 
-
 
121800
    /** Returns true if field docType is set (has been assigned a value) and false otherwise */
-
 
121801
    public boolean isSetDocType() {
-
 
121802
      return __isset_bit_vector.get(__DOCTYPE_ISSET_ID);
-
 
121803
    }
-
 
121804
 
-
 
121805
    public void setDocTypeIsSet(boolean value) {
-
 
121806
      __isset_bit_vector.set(__DOCTYPE_ISSET_ID, value);
-
 
121807
    }
-
 
121808
 
-
 
121809
    public long getDocSource() {
-
 
121810
      return this.docSource;
-
 
121811
    }
-
 
121812
 
-
 
121813
    public void setDocSource(long docSource) {
-
 
121814
      this.docSource = docSource;
-
 
121815
      setDocSourceIsSet(true);
-
 
121816
    }
-
 
121817
 
-
 
121818
    public void unsetDocSource() {
-
 
121819
      __isset_bit_vector.clear(__DOCSOURCE_ISSET_ID);
-
 
121820
    }
-
 
121821
 
-
 
121822
    /** Returns true if field docSource is set (has been assigned a value) and false otherwise */
-
 
121823
    public boolean isSetDocSource() {
-
 
121824
      return __isset_bit_vector.get(__DOCSOURCE_ISSET_ID);
-
 
121825
    }
-
 
121826
 
-
 
121827
    public void setDocSourceIsSet(boolean value) {
-
 
121828
      __isset_bit_vector.set(__DOCSOURCE_ISSET_ID, value);
-
 
121829
    }
-
 
121830
 
-
 
121831
    public void setFieldValue(_Fields field, Object value) {
-
 
121832
      switch (field) {
-
 
121833
      case DOC_TYPE:
-
 
121834
        if (value == null) {
-
 
121835
          unsetDocType();
-
 
121836
        } else {
-
 
121837
          setDocType((Long)value);
-
 
121838
        }
-
 
121839
        break;
-
 
121840
 
-
 
121841
      case DOC_SOURCE:
-
 
121842
        if (value == null) {
-
 
121843
          unsetDocSource();
-
 
121844
        } else {
-
 
121845
          setDocSource((Long)value);
-
 
121846
        }
-
 
121847
        break;
-
 
121848
 
-
 
121849
      }
-
 
121850
    }
-
 
121851
 
-
 
121852
    public Object getFieldValue(_Fields field) {
-
 
121853
      switch (field) {
-
 
121854
      case DOC_TYPE:
-
 
121855
        return Long.valueOf(getDocType());
-
 
121856
 
-
 
121857
      case DOC_SOURCE:
-
 
121858
        return Long.valueOf(getDocSource());
-
 
121859
 
-
 
121860
      }
-
 
121861
      throw new IllegalStateException();
-
 
121862
    }
-
 
121863
 
-
 
121864
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
121865
    public boolean isSet(_Fields field) {
-
 
121866
      if (field == null) {
-
 
121867
        throw new IllegalArgumentException();
-
 
121868
      }
-
 
121869
 
-
 
121870
      switch (field) {
-
 
121871
      case DOC_TYPE:
-
 
121872
        return isSetDocType();
-
 
121873
      case DOC_SOURCE:
-
 
121874
        return isSetDocSource();
-
 
121875
      }
-
 
121876
      throw new IllegalStateException();
-
 
121877
    }
-
 
121878
 
-
 
121879
    @Override
-
 
121880
    public boolean equals(Object that) {
-
 
121881
      if (that == null)
-
 
121882
        return false;
-
 
121883
      if (that instanceof getDocument_args)
-
 
121884
        return this.equals((getDocument_args)that);
-
 
121885
      return false;
-
 
121886
    }
-
 
121887
 
-
 
121888
    public boolean equals(getDocument_args that) {
-
 
121889
      if (that == null)
-
 
121890
        return false;
-
 
121891
 
-
 
121892
      boolean this_present_docType = true;
-
 
121893
      boolean that_present_docType = true;
-
 
121894
      if (this_present_docType || that_present_docType) {
-
 
121895
        if (!(this_present_docType && that_present_docType))
-
 
121896
          return false;
-
 
121897
        if (this.docType != that.docType)
-
 
121898
          return false;
-
 
121899
      }
-
 
121900
 
-
 
121901
      boolean this_present_docSource = true;
-
 
121902
      boolean that_present_docSource = true;
-
 
121903
      if (this_present_docSource || that_present_docSource) {
-
 
121904
        if (!(this_present_docSource && that_present_docSource))
-
 
121905
          return false;
-
 
121906
        if (this.docSource != that.docSource)
-
 
121907
          return false;
-
 
121908
      }
-
 
121909
 
-
 
121910
      return true;
-
 
121911
    }
-
 
121912
 
-
 
121913
    @Override
-
 
121914
    public int hashCode() {
-
 
121915
      return 0;
-
 
121916
    }
-
 
121917
 
-
 
121918
    public int compareTo(getDocument_args other) {
-
 
121919
      if (!getClass().equals(other.getClass())) {
-
 
121920
        return getClass().getName().compareTo(other.getClass().getName());
-
 
121921
      }
-
 
121922
 
-
 
121923
      int lastComparison = 0;
-
 
121924
      getDocument_args typedOther = (getDocument_args)other;
-
 
121925
 
-
 
121926
      lastComparison = Boolean.valueOf(isSetDocType()).compareTo(typedOther.isSetDocType());
-
 
121927
      if (lastComparison != 0) {
-
 
121928
        return lastComparison;
-
 
121929
      }
-
 
121930
      if (isSetDocType()) {
-
 
121931
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.docType, typedOther.docType);
-
 
121932
        if (lastComparison != 0) {
-
 
121933
          return lastComparison;
-
 
121934
        }
-
 
121935
      }
-
 
121936
      lastComparison = Boolean.valueOf(isSetDocSource()).compareTo(typedOther.isSetDocSource());
-
 
121937
      if (lastComparison != 0) {
-
 
121938
        return lastComparison;
-
 
121939
      }
-
 
121940
      if (isSetDocSource()) {
-
 
121941
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.docSource, typedOther.docSource);
-
 
121942
        if (lastComparison != 0) {
-
 
121943
          return lastComparison;
-
 
121944
        }
-
 
121945
      }
-
 
121946
      return 0;
-
 
121947
    }
-
 
121948
 
-
 
121949
    public _Fields fieldForId(int fieldId) {
-
 
121950
      return _Fields.findByThriftId(fieldId);
-
 
121951
    }
-
 
121952
 
-
 
121953
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
121954
      org.apache.thrift.protocol.TField field;
-
 
121955
      iprot.readStructBegin();
-
 
121956
      while (true)
-
 
121957
      {
-
 
121958
        field = iprot.readFieldBegin();
-
 
121959
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
121960
          break;
-
 
121961
        }
-
 
121962
        switch (field.id) {
-
 
121963
          case 1: // DOC_TYPE
-
 
121964
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
121965
              this.docType = iprot.readI64();
-
 
121966
              setDocTypeIsSet(true);
-
 
121967
            } else { 
-
 
121968
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
121969
            }
-
 
121970
            break;
-
 
121971
          case 2: // DOC_SOURCE
-
 
121972
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
121973
              this.docSource = iprot.readI64();
-
 
121974
              setDocSourceIsSet(true);
-
 
121975
            } else { 
-
 
121976
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
121977
            }
-
 
121978
            break;
-
 
121979
          default:
-
 
121980
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
121981
        }
-
 
121982
        iprot.readFieldEnd();
-
 
121983
      }
-
 
121984
      iprot.readStructEnd();
-
 
121985
      validate();
-
 
121986
    }
-
 
121987
 
-
 
121988
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
121989
      validate();
-
 
121990
 
-
 
121991
      oprot.writeStructBegin(STRUCT_DESC);
-
 
121992
      oprot.writeFieldBegin(DOC_TYPE_FIELD_DESC);
-
 
121993
      oprot.writeI64(this.docType);
-
 
121994
      oprot.writeFieldEnd();
-
 
121995
      oprot.writeFieldBegin(DOC_SOURCE_FIELD_DESC);
-
 
121996
      oprot.writeI64(this.docSource);
-
 
121997
      oprot.writeFieldEnd();
-
 
121998
      oprot.writeFieldStop();
-
 
121999
      oprot.writeStructEnd();
-
 
122000
    }
-
 
122001
 
-
 
122002
    @Override
-
 
122003
    public String toString() {
-
 
122004
      StringBuilder sb = new StringBuilder("getDocument_args(");
-
 
122005
      boolean first = true;
-
 
122006
 
-
 
122007
      sb.append("docType:");
-
 
122008
      sb.append(this.docType);
-
 
122009
      first = false;
-
 
122010
      if (!first) sb.append(", ");
-
 
122011
      sb.append("docSource:");
-
 
122012
      sb.append(this.docSource);
-
 
122013
      first = false;
-
 
122014
      sb.append(")");
-
 
122015
      return sb.toString();
-
 
122016
    }
-
 
122017
 
-
 
122018
    public void validate() throws org.apache.thrift.TException {
-
 
122019
      // check for required fields
-
 
122020
    }
-
 
122021
 
-
 
122022
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
122023
      try {
-
 
122024
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
122025
      } catch (org.apache.thrift.TException te) {
-
 
122026
        throw new java.io.IOException(te);
-
 
122027
      }
-
 
122028
    }
-
 
122029
 
-
 
122030
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
122031
      try {
-
 
122032
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
122033
        __isset_bit_vector = new BitSet(1);
-
 
122034
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
122035
      } catch (org.apache.thrift.TException te) {
-
 
122036
        throw new java.io.IOException(te);
-
 
122037
      }
-
 
122038
    }
-
 
122039
 
-
 
122040
  }
-
 
122041
 
-
 
122042
  public static class getDocument_result implements org.apache.thrift.TBase<getDocument_result, getDocument_result._Fields>, java.io.Serializable, Cloneable   {
-
 
122043
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDocument_result");
-
 
122044
 
-
 
122045
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
-
 
122046
 
-
 
122047
    private ByteBuffer success; // required
-
 
122048
 
-
 
122049
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
122050
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
122051
      SUCCESS((short)0, "success");
-
 
122052
 
-
 
122053
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
122054
 
-
 
122055
      static {
-
 
122056
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
122057
          byName.put(field.getFieldName(), field);
-
 
122058
        }
-
 
122059
      }
-
 
122060
 
-
 
122061
      /**
-
 
122062
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
122063
       */
-
 
122064
      public static _Fields findByThriftId(int fieldId) {
-
 
122065
        switch(fieldId) {
-
 
122066
          case 0: // SUCCESS
-
 
122067
            return SUCCESS;
-
 
122068
          default:
-
 
122069
            return null;
-
 
122070
        }
-
 
122071
      }
-
 
122072
 
-
 
122073
      /**
-
 
122074
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
122075
       * if it is not found.
-
 
122076
       */
-
 
122077
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
122078
        _Fields fields = findByThriftId(fieldId);
-
 
122079
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
122080
        return fields;
-
 
122081
      }
-
 
122082
 
-
 
122083
      /**
-
 
122084
       * Find the _Fields constant that matches name, or null if its not found.
-
 
122085
       */
-
 
122086
      public static _Fields findByName(String name) {
-
 
122087
        return byName.get(name);
-
 
122088
      }
-
 
122089
 
-
 
122090
      private final short _thriftId;
-
 
122091
      private final String _fieldName;
-
 
122092
 
-
 
122093
      _Fields(short thriftId, String fieldName) {
-
 
122094
        _thriftId = thriftId;
-
 
122095
        _fieldName = fieldName;
-
 
122096
      }
-
 
122097
 
-
 
122098
      public short getThriftFieldId() {
-
 
122099
        return _thriftId;
-
 
122100
      }
-
 
122101
 
-
 
122102
      public String getFieldName() {
-
 
122103
        return _fieldName;
-
 
122104
      }
-
 
122105
    }
-
 
122106
 
-
 
122107
    // isset id assignments
-
 
122108
 
-
 
122109
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
122110
    static {
-
 
122111
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
122112
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
122113
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , true)));
-
 
122114
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
122115
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDocument_result.class, metaDataMap);
-
 
122116
    }
-
 
122117
 
-
 
122118
    public getDocument_result() {
-
 
122119
    }
-
 
122120
 
-
 
122121
    public getDocument_result(
-
 
122122
      ByteBuffer success)
-
 
122123
    {
-
 
122124
      this();
-
 
122125
      this.success = success;
-
 
122126
    }
-
 
122127
 
-
 
122128
    /**
-
 
122129
     * Performs a deep copy on <i>other</i>.
-
 
122130
     */
-
 
122131
    public getDocument_result(getDocument_result other) {
-
 
122132
      if (other.isSetSuccess()) {
-
 
122133
        this.success = org.apache.thrift.TBaseHelper.copyBinary(other.success);
-
 
122134
;
-
 
122135
      }
-
 
122136
    }
-
 
122137
 
-
 
122138
    public getDocument_result deepCopy() {
-
 
122139
      return new getDocument_result(this);
-
 
122140
    }
-
 
122141
 
-
 
122142
    @Override
-
 
122143
    public void clear() {
-
 
122144
      this.success = null;
-
 
122145
    }
-
 
122146
 
-
 
122147
    public byte[] getSuccess() {
-
 
122148
      setSuccess(org.apache.thrift.TBaseHelper.rightSize(success));
-
 
122149
      return success == null ? null : success.array();
-
 
122150
    }
-
 
122151
 
-
 
122152
    public ByteBuffer bufferForSuccess() {
-
 
122153
      return success;
-
 
122154
    }
-
 
122155
 
-
 
122156
    public void setSuccess(byte[] success) {
-
 
122157
      setSuccess(success == null ? (ByteBuffer)null : ByteBuffer.wrap(success));
-
 
122158
    }
-
 
122159
 
-
 
122160
    public void setSuccess(ByteBuffer success) {
-
 
122161
      this.success = success;
-
 
122162
    }
-
 
122163
 
-
 
122164
    public void unsetSuccess() {
-
 
122165
      this.success = null;
-
 
122166
    }
-
 
122167
 
-
 
122168
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
122169
    public boolean isSetSuccess() {
-
 
122170
      return this.success != null;
-
 
122171
    }
-
 
122172
 
-
 
122173
    public void setSuccessIsSet(boolean value) {
-
 
122174
      if (!value) {
-
 
122175
        this.success = null;
-
 
122176
      }
-
 
122177
    }
-
 
122178
 
-
 
122179
    public void setFieldValue(_Fields field, Object value) {
-
 
122180
      switch (field) {
-
 
122181
      case SUCCESS:
-
 
122182
        if (value == null) {
-
 
122183
          unsetSuccess();
-
 
122184
        } else {
-
 
122185
          setSuccess((ByteBuffer)value);
-
 
122186
        }
-
 
122187
        break;
-
 
122188
 
-
 
122189
      }
-
 
122190
    }
-
 
122191
 
-
 
122192
    public Object getFieldValue(_Fields field) {
-
 
122193
      switch (field) {
-
 
122194
      case SUCCESS:
-
 
122195
        return getSuccess();
-
 
122196
 
-
 
122197
      }
-
 
122198
      throw new IllegalStateException();
-
 
122199
    }
-
 
122200
 
-
 
122201
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
122202
    public boolean isSet(_Fields field) {
-
 
122203
      if (field == null) {
-
 
122204
        throw new IllegalArgumentException();
-
 
122205
      }
-
 
122206
 
-
 
122207
      switch (field) {
-
 
122208
      case SUCCESS:
-
 
122209
        return isSetSuccess();
-
 
122210
      }
-
 
122211
      throw new IllegalStateException();
-
 
122212
    }
-
 
122213
 
-
 
122214
    @Override
-
 
122215
    public boolean equals(Object that) {
-
 
122216
      if (that == null)
-
 
122217
        return false;
-
 
122218
      if (that instanceof getDocument_result)
-
 
122219
        return this.equals((getDocument_result)that);
-
 
122220
      return false;
-
 
122221
    }
-
 
122222
 
-
 
122223
    public boolean equals(getDocument_result that) {
-
 
122224
      if (that == null)
-
 
122225
        return false;
-
 
122226
 
-
 
122227
      boolean this_present_success = true && this.isSetSuccess();
-
 
122228
      boolean that_present_success = true && that.isSetSuccess();
-
 
122229
      if (this_present_success || that_present_success) {
-
 
122230
        if (!(this_present_success && that_present_success))
-
 
122231
          return false;
-
 
122232
        if (!this.success.equals(that.success))
-
 
122233
          return false;
-
 
122234
      }
-
 
122235
 
-
 
122236
      return true;
-
 
122237
    }
-
 
122238
 
-
 
122239
    @Override
-
 
122240
    public int hashCode() {
-
 
122241
      return 0;
-
 
122242
    }
-
 
122243
 
-
 
122244
    public int compareTo(getDocument_result other) {
-
 
122245
      if (!getClass().equals(other.getClass())) {
-
 
122246
        return getClass().getName().compareTo(other.getClass().getName());
-
 
122247
      }
-
 
122248
 
-
 
122249
      int lastComparison = 0;
-
 
122250
      getDocument_result typedOther = (getDocument_result)other;
-
 
122251
 
-
 
122252
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
122253
      if (lastComparison != 0) {
-
 
122254
        return lastComparison;
-
 
122255
      }
-
 
122256
      if (isSetSuccess()) {
-
 
122257
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
122258
        if (lastComparison != 0) {
-
 
122259
          return lastComparison;
-
 
122260
        }
-
 
122261
      }
-
 
122262
      return 0;
-
 
122263
    }
-
 
122264
 
-
 
122265
    public _Fields fieldForId(int fieldId) {
-
 
122266
      return _Fields.findByThriftId(fieldId);
-
 
122267
    }
-
 
122268
 
-
 
122269
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
122270
      org.apache.thrift.protocol.TField field;
-
 
122271
      iprot.readStructBegin();
-
 
122272
      while (true)
-
 
122273
      {
-
 
122274
        field = iprot.readFieldBegin();
-
 
122275
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
122276
          break;
-
 
122277
        }
-
 
122278
        switch (field.id) {
-
 
122279
          case 0: // SUCCESS
-
 
122280
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
122281
              this.success = iprot.readBinary();
-
 
122282
            } else { 
-
 
122283
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
122284
            }
-
 
122285
            break;
-
 
122286
          default:
-
 
122287
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
122288
        }
-
 
122289
        iprot.readFieldEnd();
-
 
122290
      }
-
 
122291
      iprot.readStructEnd();
-
 
122292
      validate();
-
 
122293
    }
-
 
122294
 
-
 
122295
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
122296
      oprot.writeStructBegin(STRUCT_DESC);
-
 
122297
 
-
 
122298
      if (this.isSetSuccess()) {
-
 
122299
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
122300
        oprot.writeBinary(this.success);
-
 
122301
        oprot.writeFieldEnd();
-
 
122302
      }
-
 
122303
      oprot.writeFieldStop();
-
 
122304
      oprot.writeStructEnd();
-
 
122305
    }
-
 
122306
 
-
 
122307
    @Override
-
 
122308
    public String toString() {
-
 
122309
      StringBuilder sb = new StringBuilder("getDocument_result(");
-
 
122310
      boolean first = true;
-
 
122311
 
-
 
122312
      sb.append("success:");
-
 
122313
      if (this.success == null) {
-
 
122314
        sb.append("null");
-
 
122315
      } else {
-
 
122316
        org.apache.thrift.TBaseHelper.toString(this.success, sb);
-
 
122317
      }
-
 
122318
      first = false;
-
 
122319
      sb.append(")");
-
 
122320
      return sb.toString();
-
 
122321
    }
121568
 
122322
 
121569
    public void validate() throws org.apache.thrift.TException {
122323
    public void validate() throws org.apache.thrift.TException {
121570
      // check for required fields
122324
      // check for required fields
121571
    }
122325
    }
121572
 
122326