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

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


      }
    }

    @Override
    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, Schema 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.table = iprot.readString();
        struct.setTableIsSet(true);
      }
      if (incoming.get(1)) {
        {
          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map124 = 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.MAP, iprot.readI32());
          struct.families = new HashMap<String,Map<String,ColumnDefinition>>(2*_map124.size);
          for (int _i125 = 0; _i125 < _map124.size; ++_i125)
          {
            String _key126; // required
            Map<String,ColumnDefinition> _val127; // optional
            _key126 = iprot.readString();
            {
              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map128 = 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());
              _val127 = new HashMap<String,ColumnDefinition>(2*_map128.size);
              for (int _i129 = 0; _i129 < _map128.size; ++_i129)
              {
                String _key130; // required
                ColumnDefinition _val131; // optional
                _key130 = iprot.readString();
                _val131 = new ColumnDefinition();
                _val131.read(iprot);
                _val127.put(_key130, _val131);
              }
            }
View Full Code Here


  private static class BlurExceptionTupleScheme extends TupleScheme<BlurException> {

    @Override
    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, BlurException struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol oprot = (TTupleProtocol) prot;
      BitSet optionals = new BitSet();
      if (struct.isSetMessage()) {
        optionals.set(0);
      }
      if (struct.isSetStackTraceStr()) {
        optionals.set(1);
      }
      if (struct.isSetErrorType()) {
        optionals.set(2);
      }
      oprot.writeBitSet(optionals, 3);
      if (struct.isSetMessage()) {
        oprot.writeString(struct.message);
      }
      if (struct.isSetStackTraceStr()) {
        oprot.writeString(struct.stackTraceStr);
      }
      if (struct.isSetErrorType()) {
        oprot.writeI32(struct.errorType.getValue());
      }
    }
View Full Code Here

      }
    }

    @Override
    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, BlurException 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.message = iprot.readString();
        struct.setMessageIsSet(true);
      }
      if (incoming.get(1)) {
        struct.stackTraceStr = iprot.readString();
        struct.setStackTraceStrIsSet(true);
      }
      if (incoming.get(2)) {
        struct.errorType = ErrorType.findByValue(iprot.readI32());
        struct.setErrorTypeIsSet(true);
      }
    }
View Full Code Here

  private static class BlurQueryTupleScheme extends TupleScheme<BlurQuery> {

    @Override
    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, BlurQuery 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.isSetFacets()) {
        optionals.set(1);
      }
      if (struct.isSetSelector()) {
        optionals.set(2);
      }
      if (struct.isSetUseCacheIfPresent()) {
        optionals.set(3);
      }
      if (struct.isSetStart()) {
        optionals.set(4);
      }
      if (struct.isSetFetch()) {
        optionals.set(5);
      }
      if (struct.isSetMinimumNumberOfResults()) {
        optionals.set(6);
      }
      if (struct.isSetMaxQueryTime()) {
        optionals.set(7);
      }
      if (struct.isSetUuid()) {
        optionals.set(8);
      }
      if (struct.isSetUserContext()) {
        optionals.set(9);
      }
      if (struct.isSetCacheResult()) {
        optionals.set(10);
      }
      if (struct.isSetStartTime()) {
        optionals.set(11);
      }
      oprot.writeBitSet(optionals, 12);
      if (struct.isSetQuery()) {
        struct.query.write(oprot);
      }
      if (struct.isSetFacets()) {
        {
          oprot.writeI32(struct.facets.size());
          for (Facet _iter46 : struct.facets)
          {
            _iter46.write(oprot);
          }
        }
      }
      if (struct.isSetSelector()) {
        struct.selector.write(oprot);
      }
      if (struct.isSetUseCacheIfPresent()) {
        oprot.writeBool(struct.useCacheIfPresent);
      }
      if (struct.isSetStart()) {
        oprot.writeI64(struct.start);
      }
      if (struct.isSetFetch()) {
        oprot.writeI32(struct.fetch);
      }
      if (struct.isSetMinimumNumberOfResults()) {
        oprot.writeI64(struct.minimumNumberOfResults);
      }
      if (struct.isSetMaxQueryTime()) {
        oprot.writeI64(struct.maxQueryTime);
      }
      if (struct.isSetUuid()) {
        oprot.writeString(struct.uuid);
      }
      if (struct.isSetUserContext()) {
        oprot.writeString(struct.userContext);
      }
      if (struct.isSetCacheResult()) {
        oprot.writeBool(struct.cacheResult);
      }
      if (struct.isSetStartTime()) {
        oprot.writeI64(struct.startTime);
      }
    }
View Full Code Here

      }
    }

    @Override
    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, BlurQuery struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol iprot = (TTupleProtocol) prot;
      BitSet incoming = iprot.readBitSet(12);
      if (incoming.get(0)) {
        struct.query = new Query();
        struct.query.read(iprot);
        struct.setQueryIsSet(true);
      }
      if (incoming.get(1)) {
        {
          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list47 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, iprot.readI32());
          struct.facets = new ArrayList<Facet>(_list47.size);
          for (int _i48 = 0; _i48 < _list47.size; ++_i48)
          {
            Facet _elem49; // required
            _elem49 = new Facet();
            _elem49.read(iprot);
            struct.facets.add(_elem49);
          }
        }
        struct.setFacetsIsSet(true);
      }
      if (incoming.get(2)) {
        struct.selector = new Selector();
        struct.selector.read(iprot);
        struct.setSelectorIsSet(true);
      }
      if (incoming.get(3)) {
        struct.useCacheIfPresent = iprot.readBool();
        struct.setUseCacheIfPresentIsSet(true);
      }
      if (incoming.get(4)) {
        struct.start = iprot.readI64();
        struct.setStartIsSet(true);
      }
      if (incoming.get(5)) {
        struct.fetch = iprot.readI32();
        struct.setFetchIsSet(true);
      }
      if (incoming.get(6)) {
        struct.minimumNumberOfResults = iprot.readI64();
        struct.setMinimumNumberOfResultsIsSet(true);
      }
      if (incoming.get(7)) {
        struct.maxQueryTime = iprot.readI64();
        struct.setMaxQueryTimeIsSet(true);
      }
      if (incoming.get(8)) {
        struct.uuid = iprot.readString();
        struct.setUuidIsSet(true);
      }
      if (incoming.get(9)) {
        struct.userContext = iprot.readString();
        struct.setUserContextIsSet(true);
      }
      if (incoming.get(10)) {
        struct.cacheResult = iprot.readBool();
        struct.setCacheResultIsSet(true);
      }
      if (incoming.get(11)) {
        struct.startTime = iprot.readI64();
        struct.setStartTimeIsSet(true);
      }
    }
View Full Code Here

  private static class RecordTupleScheme extends TupleScheme<Record> {

    @Override
    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, Record struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol oprot = (TTupleProtocol) prot;
      BitSet optionals = new BitSet();
      if (struct.isSetRecordId()) {
        optionals.set(0);
      }
      if (struct.isSetFamily()) {
        optionals.set(1);
      }
      if (struct.isSetColumns()) {
        optionals.set(2);
      }
      oprot.writeBitSet(optionals, 3);
      if (struct.isSetRecordId()) {
        oprot.writeString(struct.recordId);
      }
      if (struct.isSetFamily()) {
        oprot.writeString(struct.family);
      }
      if (struct.isSetColumns()) {
        {
          oprot.writeI32(struct.columns.size());
          for (Column _iter4 : struct.columns)
          {
            _iter4.write(oprot);
          }
        }
View Full Code Here

      }
    }

    @Override
    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, Record 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.recordId = iprot.readString();
        struct.setRecordIdIsSet(true);
      }
      if (incoming.get(1)) {
        struct.family = iprot.readString();
        struct.setFamilyIsSet(true);
      }
      if (incoming.get(2)) {
        {
          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list5 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, iprot.readI32());
          struct.columns = new ArrayList<Column>(_list5.size);
          for (int _i6 = 0; _i6 < _list5.size; ++_i6)
          {
            Column _elem7; // required
            _elem7 = new Column();
View Full Code Here

  private static class QueryTupleScheme extends TupleScheme<Query> {

    @Override
    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, Query 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.isSetRowQuery()) {
        optionals.set(1);
      }
      if (struct.isSetScoreType()) {
        optionals.set(2);
      }
      if (struct.isSetRowFilter()) {
        optionals.set(3);
      }
      if (struct.isSetRecordFilter()) {
        optionals.set(4);
      }
      oprot.writeBitSet(optionals, 5);
      if (struct.isSetQuery()) {
        oprot.writeString(struct.query);
      }
      if (struct.isSetRowQuery()) {
        oprot.writeBool(struct.rowQuery);
      }
      if (struct.isSetScoreType()) {
        oprot.writeI32(struct.scoreType.getValue());
      }
      if (struct.isSetRowFilter()) {
        oprot.writeString(struct.rowFilter);
      }
      if (struct.isSetRecordFilter()) {
        oprot.writeString(struct.recordFilter);
      }
    }
View Full Code Here

      }
    }

    @Override
    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, Query struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol iprot = (TTupleProtocol) prot;
      BitSet incoming = iprot.readBitSet(5);
      if (incoming.get(0)) {
        struct.query = iprot.readString();
        struct.setQueryIsSet(true);
      }
      if (incoming.get(1)) {
        struct.rowQuery = iprot.readBool();
        struct.setRowQueryIsSet(true);
      }
      if (incoming.get(2)) {
        struct.scoreType = ScoreType.findByValue(iprot.readI32());
        struct.setScoreTypeIsSet(true);
      }
      if (incoming.get(3)) {
        struct.rowFilter = iprot.readString();
        struct.setRowFilterIsSet(true);
      }
      if (incoming.get(4)) {
        struct.recordFilter = iprot.readString();
        struct.setRecordFilterIsSet(true);
      }
    }
View Full Code Here

  private static class ColumnTupleScheme extends TupleScheme<Column> {

    @Override
    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, Column struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol oprot = (TTupleProtocol) prot;
      BitSet optionals = new BitSet();
      if (struct.isSetName()) {
        optionals.set(0);
      }
      if (struct.isSetValue()) {
        optionals.set(1);
      }
      oprot.writeBitSet(optionals, 2);
      if (struct.isSetName()) {
        oprot.writeString(struct.name);
      }
      if (struct.isSetValue()) {
        oprot.writeString(struct.value);
      }
    }
View Full Code Here

TOP

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

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.