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

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


  private static class FetchRowResultTupleScheme extends TupleScheme<FetchRowResult> {

    @Override
    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, FetchRowResult struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol oprot = (TTupleProtocol) prot;
      BitSet optionals = new BitSet();
      if (struct.isSetRow()) {
        optionals.set(0);
      }
      oprot.writeBitSet(optionals, 1);
      if (struct.isSetRow()) {
        struct.row.write(oprot);
      }
    }
View Full Code Here


      }
    }

    @Override
    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, FetchRowResult struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol iprot = (TTupleProtocol) prot;
      BitSet incoming = iprot.readBitSet(1);
      if (incoming.get(0)) {
        struct.row = new Row();
        struct.row.read(iprot);
        struct.setRowIsSet(true);
      }
View Full Code Here

  private static class RecordMutationTupleScheme extends TupleScheme<RecordMutation> {

    @Override
    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, RecordMutation struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol oprot = (TTupleProtocol) prot;
      BitSet optionals = new BitSet();
      if (struct.isSetRecordMutationType()) {
        optionals.set(0);
      }
      if (struct.isSetRecord()) {
        optionals.set(1);
      }
      oprot.writeBitSet(optionals, 2);
      if (struct.isSetRecordMutationType()) {
        oprot.writeI32(struct.recordMutationType.getValue());
      }
      if (struct.isSetRecord()) {
        struct.record.write(oprot);
      }
    }
View Full Code Here

      }
    }

    @Override
    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, RecordMutation 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.recordMutationType = RecordMutationType.findByValue(iprot.readI32());
        struct.setRecordMutationTypeIsSet(true);
      }
      if (incoming.get(1)) {
        struct.record = new Record();
        struct.record.read(iprot);
View Full Code Here

  private static class RowMutationTupleScheme extends TupleScheme<RowMutation> {

    @Override
    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, RowMutation struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol oprot = (TTupleProtocol) prot;
      BitSet optionals = new BitSet();
      if (struct.isSetTable()) {
        optionals.set(0);
      }
      if (struct.isSetRowId()) {
        optionals.set(1);
      }
      if (struct.isSetWal()) {
        optionals.set(2);
      }
      if (struct.isSetRowMutationType()) {
        optionals.set(3);
      }
      if (struct.isSetRecordMutations()) {
        optionals.set(4);
      }
      if (struct.isSetWaitToBeVisible()) {
        optionals.set(5);
      }
      oprot.writeBitSet(optionals, 6);
      if (struct.isSetTable()) {
        oprot.writeString(struct.table);
      }
      if (struct.isSetRowId()) {
        oprot.writeString(struct.rowId);
      }
      if (struct.isSetWal()) {
        oprot.writeBool(struct.wal);
      }
      if (struct.isSetRowMutationType()) {
        oprot.writeI32(struct.rowMutationType.getValue());
      }
      if (struct.isSetRecordMutations()) {
        {
          oprot.writeI32(struct.recordMutations.size());
          for (RecordMutation _iter88 : struct.recordMutations)
          {
            _iter88.write(oprot);
          }
        }
      }
      if (struct.isSetWaitToBeVisible()) {
        oprot.writeBool(struct.waitToBeVisible);
      }
    }
View Full Code Here

      }
    }

    @Override
    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, RowMutation struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol iprot = (TTupleProtocol) prot;
      BitSet incoming = iprot.readBitSet(6);
      if (incoming.get(0)) {
        struct.table = iprot.readString();
        struct.setTableIsSet(true);
      }
      if (incoming.get(1)) {
        struct.rowId = iprot.readString();
        struct.setRowIdIsSet(true);
      }
      if (incoming.get(2)) {
        struct.wal = iprot.readBool();
        struct.setWalIsSet(true);
      }
      if (incoming.get(3)) {
        struct.rowMutationType = RowMutationType.findByValue(iprot.readI32());
        struct.setRowMutationTypeIsSet(true);
      }
      if (incoming.get(4)) {
        {
          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list89 = 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.recordMutations = new ArrayList<RecordMutation>(_list89.size);
          for (int _i90 = 0; _i90 < _list89.size; ++_i90)
          {
            RecordMutation _elem91; // required
            _elem91 = new RecordMutation();
            _elem91.read(iprot);
            struct.recordMutations.add(_elem91);
          }
        }
        struct.setRecordMutationsIsSet(true);
      }
      if (incoming.get(5)) {
        struct.waitToBeVisible = iprot.readBool();
        struct.setWaitToBeVisibleIsSet(true);
      }
    }
View Full Code Here

  private static class SchemaTupleScheme extends TupleScheme<Schema> {

    @Override
    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, Schema struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol oprot = (TTupleProtocol) prot;
      BitSet optionals = new BitSet();
      if (struct.isSetTable()) {
        optionals.set(0);
      }
      if (struct.isSetFamilies()) {
        optionals.set(1);
      }
      oprot.writeBitSet(optionals, 2);
      if (struct.isSetTable()) {
        oprot.writeString(struct.table);
      }
      if (struct.isSetFamilies()) {
        {
          oprot.writeI32(struct.families.size());
          for (Map.Entry<String, Map<String,ColumnDefinition>> _iter122 : struct.families.entrySet())
          {
            oprot.writeString(_iter122.getKey());
            {
              oprot.writeI32(_iter122.getValue().size());
              for (Map.Entry<String, ColumnDefinition> _iter123 : _iter122.getValue().entrySet())
              {
                oprot.writeString(_iter123.getKey());
                _iter123.getValue().write(oprot);
              }
            }
          }
        }
View Full Code Here

      }
    }

    @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

TOP

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

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.