Package org.apache.blur.thirdparty.thrift_0_9_0.protocol

Examples of org.apache.blur.thirdparty.thrift_0_9_0.protocol.TTupleProtocol


      }
    }

    @Override
    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, Column struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol iprot = (TTupleProtocol) prot;
      BitSet incoming = iprot.readBitSet(2);
      if (incoming.get(0)) {
        struct.name = iprot.readString();
        struct.setNameIsSet(true);
      }
      if (incoming.get(1)) {
        struct.value = iprot.readString();
        struct.setValueIsSet(true);
      }
    }
View Full Code Here


  private static class BlurQueryStatusTupleScheme extends TupleScheme<BlurQueryStatus> {

    @Override
    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, BlurQueryStatus struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol oprot = (TTupleProtocol) prot;
      BitSet optionals = new BitSet();
      if (struct.isSetQuery()) {
        optionals.set(0);
      }
      if (struct.isSetCpuTimes()) {
        optionals.set(1);
      }
      if (struct.isSetCompleteShards()) {
        optionals.set(2);
      }
      if (struct.isSetTotalShards()) {
        optionals.set(3);
      }
      if (struct.isSetState()) {
        optionals.set(4);
      }
      if (struct.isSetUuid()) {
        optionals.set(5);
      }
      if (struct.isSetStatus()) {
        optionals.set(6);
      }
      oprot.writeBitSet(optionals, 7);
      if (struct.isSetQuery()) {
        struct.query.write(oprot);
      }
      if (struct.isSetCpuTimes()) {
        {
          oprot.writeI32(struct.cpuTimes.size());
          for (Map.Entry<String, CpuTime> _iter97 : struct.cpuTimes.entrySet())
          {
            oprot.writeString(_iter97.getKey());
            _iter97.getValue().write(oprot);
          }
        }
      }
      if (struct.isSetCompleteShards()) {
        oprot.writeI32(struct.completeShards);
      }
      if (struct.isSetTotalShards()) {
        oprot.writeI32(struct.totalShards);
      }
      if (struct.isSetState()) {
        oprot.writeI32(struct.state.getValue());
      }
      if (struct.isSetUuid()) {
        oprot.writeString(struct.uuid);
      }
      if (struct.isSetStatus()) {
        oprot.writeI32(struct.status.getValue());
      }
    }
View Full Code Here

      }
    }

    @Override
    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, BlurQueryStatus struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol iprot = (TTupleProtocol) prot;
      BitSet incoming = iprot.readBitSet(7);
      if (incoming.get(0)) {
        struct.query = new BlurQuery();
        struct.query.read(iprot);
        struct.setQueryIsSet(true);
      }
      if (incoming.get(1)) {
        {
          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map98 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, iprot.readI32());
          struct.cpuTimes = new HashMap<String,CpuTime>(2*_map98.size);
          for (int _i99 = 0; _i99 < _map98.size; ++_i99)
          {
            String _key100; // required
            CpuTime _val101; // optional
            _key100 = iprot.readString();
            _val101 = new CpuTime();
            _val101.read(iprot);
            struct.cpuTimes.put(_key100, _val101);
          }
        }
        struct.setCpuTimesIsSet(true);
      }
      if (incoming.get(2)) {
        struct.completeShards = iprot.readI32();
        struct.setCompleteShardsIsSet(true);
      }
      if (incoming.get(3)) {
        struct.totalShards = iprot.readI32();
        struct.setTotalShardsIsSet(true);
      }
      if (incoming.get(4)) {
        struct.state = QueryState.findByValue(iprot.readI32());
        struct.setStateIsSet(true);
      }
      if (incoming.get(5)) {
        struct.uuid = iprot.readString();
        struct.setUuidIsSet(true);
      }
      if (incoming.get(6)) {
        struct.status = Status.findByValue(iprot.readI32());
        struct.setStatusIsSet(true);
      }
    }
View Full Code Here

  private static class CpuTimeTupleScheme extends TupleScheme<CpuTime> {

    @Override
    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, CpuTime struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol oprot = (TTupleProtocol) prot;
      BitSet optionals = new BitSet();
      if (struct.isSetCpuTime()) {
        optionals.set(0);
      }
      if (struct.isSetRealTime()) {
        optionals.set(1);
      }
      oprot.writeBitSet(optionals, 2);
      if (struct.isSetCpuTime()) {
        oprot.writeI64(struct.cpuTime);
      }
      if (struct.isSetRealTime()) {
        oprot.writeI64(struct.realTime);
      }
    }
View Full Code Here

      }
    }

    @Override
    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, CpuTime struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol iprot = (TTupleProtocol) prot;
      BitSet incoming = iprot.readBitSet(2);
      if (incoming.get(0)) {
        struct.cpuTime = iprot.readI64();
        struct.setCpuTimeIsSet(true);
      }
      if (incoming.get(1)) {
        struct.realTime = iprot.readI64();
        struct.setRealTimeIsSet(true);
      }
    }
View Full Code Here

  private static class HighlightOptionsTupleScheme extends TupleScheme<HighlightOptions> {

    @Override
    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, HighlightOptions struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol oprot = (TTupleProtocol) prot;
      BitSet optionals = new BitSet();
      if (struct.isSetQuery()) {
        optionals.set(0);
      }
      if (struct.isSetPreTag()) {
        optionals.set(1);
      }
      if (struct.isSetPostTag()) {
        optionals.set(2);
      }
      oprot.writeBitSet(optionals, 3);
      if (struct.isSetQuery()) {
        struct.query.write(oprot);
      }
      if (struct.isSetPreTag()) {
        oprot.writeString(struct.preTag);
      }
      if (struct.isSetPostTag()) {
        oprot.writeString(struct.postTag);
      }
    }
View Full Code Here

      }
    }

    @Override
    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, HighlightOptions struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol iprot = (TTupleProtocol) prot;
      BitSet incoming = iprot.readBitSet(3);
      if (incoming.get(0)) {
        struct.query = new Query();
        struct.query.read(iprot);
        struct.setQueryIsSet(true);
      }
      if (incoming.get(1)) {
        struct.preTag = iprot.readString();
        struct.setPreTagIsSet(true);
      }
      if (incoming.get(2)) {
        struct.postTag = iprot.readString();
        struct.setPostTagIsSet(true);
      }
    }
View Full Code Here

  private static class FacetTupleScheme extends TupleScheme<Facet> {

    @Override
    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, Facet struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol oprot = (TTupleProtocol) prot;
      BitSet optionals = new BitSet();
      if (struct.isSetQueryStr()) {
        optionals.set(0);
      }
      if (struct.isSetMinimumNumberOfBlurResults()) {
        optionals.set(1);
      }
      oprot.writeBitSet(optionals, 2);
      if (struct.isSetQueryStr()) {
        oprot.writeString(struct.queryStr);
      }
      if (struct.isSetMinimumNumberOfBlurResults()) {
        oprot.writeI64(struct.minimumNumberOfBlurResults);
      }
    }
View Full Code Here

      }
    }

    @Override
    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, Facet struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol iprot = (TTupleProtocol) prot;
      BitSet incoming = iprot.readBitSet(2);
      if (incoming.get(0)) {
        struct.queryStr = iprot.readString();
        struct.setQueryStrIsSet(true);
      }
      if (incoming.get(1)) {
        struct.minimumNumberOfBlurResults = iprot.readI64();
        struct.setMinimumNumberOfBlurResultsIsSet(true);
      }
    }
View Full Code Here

  private static class RowTupleScheme extends TupleScheme<Row> {

    @Override
    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, Row struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol oprot = (TTupleProtocol) prot;
      BitSet optionals = new BitSet();
      if (struct.isSetId()) {
        optionals.set(0);
      }
      if (struct.isSetRecords()) {
        optionals.set(1);
      }
      if (struct.isSetRecordCount()) {
        optionals.set(2);
      }
      oprot.writeBitSet(optionals, 3);
      if (struct.isSetId()) {
        oprot.writeString(struct.id);
      }
      if (struct.isSetRecords()) {
        {
          oprot.writeI32(struct.records.size());
          for (Record _iter12 : struct.records)
          {
            _iter12.write(oprot);
          }
        }
      }
      if (struct.isSetRecordCount()) {
        oprot.writeI32(struct.recordCount);
      }
    }
View Full Code Here

TOP

Related Classes of org.apache.blur.thirdparty.thrift_0_9_0.protocol.TTupleProtocol

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.