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, TableDescriptor struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol iprot = (TTupleProtocol) prot;
      BitSet incoming = iprot.readBitSet(15);
      if (incoming.get(0)) {
        struct.enabled = iprot.readBool();
        struct.setEnabledIsSet(true);
      }
      if (incoming.get(1)) {
        struct.shardCount = iprot.readI32();
        struct.setShardCountIsSet(true);
      }
      if (incoming.get(2)) {
        struct.tableUri = iprot.readString();
        struct.setTableUriIsSet(true);
      }
      if (incoming.get(3)) {
        struct.cluster = iprot.readString();
        struct.setClusterIsSet(true);
      }
      if (incoming.get(4)) {
        struct.name = iprot.readString();
        struct.setNameIsSet(true);
      }
      if (incoming.get(5)) {
        struct.similarityClass = iprot.readString();
        struct.setSimilarityClassIsSet(true);
      }
      if (incoming.get(6)) {
        struct.blockCaching = iprot.readBool();
        struct.setBlockCachingIsSet(true);
      }
      if (incoming.get(7)) {
        {
          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TSet _set154 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TSet(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, iprot.readI32());
          struct.blockCachingFileTypes = new HashSet<String>(2*_set154.size);
          for (int _i155 = 0; _i155 < _set154.size; ++_i155)
          {
            String _elem156; // required
            _elem156 = iprot.readString();
            struct.blockCachingFileTypes.add(_elem156);
          }
        }
        struct.setBlockCachingFileTypesIsSet(true);
      }
      if (incoming.get(8)) {
        struct.readOnly = iprot.readBool();
        struct.setReadOnlyIsSet(true);
      }
      if (incoming.get(9)) {
        {
          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list157 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, iprot.readI32());
          struct.preCacheCols = new ArrayList<String>(_list157.size);
          for (int _i158 = 0; _i158 < _list157.size; ++_i158)
          {
            String _elem159; // required
            _elem159 = iprot.readString();
            struct.preCacheCols.add(_elem159);
          }
        }
        struct.setPreCacheColsIsSet(true);
      }
      if (incoming.get(10)) {
        {
          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map160 = 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.STRING, iprot.readI32());
          struct.tableProperties = new HashMap<String,String>(2*_map160.size);
          for (int _i161 = 0; _i161 < _map160.size; ++_i161)
          {
            String _key162; // required
            String _val163; // optional
            _key162 = iprot.readString();
            _val163 = iprot.readString();
            struct.tableProperties.put(_key162, _val163);
          }
        }
        struct.setTablePropertiesIsSet(true);
      }
      if (incoming.get(11)) {
        struct.strictTypes = iprot.readBool();
        struct.setStrictTypesIsSet(true);
      }
      if (incoming.get(12)) {
        struct.defaultMissingFieldType = iprot.readString();
        struct.setDefaultMissingFieldTypeIsSet(true);
      }
      if (incoming.get(13)) {
        struct.defaultMissingFieldLessIndexing = iprot.readBool();
        struct.setDefaultMissingFieldLessIndexingIsSet(true);
      }
      if (incoming.get(14)) {
        {
          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map164 = 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.STRING, iprot.readI32());
          struct.defaultMissingFieldProps = new HashMap<String,String>(2*_map164.size);
          for (int _i165 = 0; _i165 < _map164.size; ++_i165)
          {
            String _key166; // required
            String _val167; // optional
            _key166 = iprot.readString();
            _val167 = iprot.readString();
            struct.defaultMissingFieldProps.put(_key166, _val167);
          }
        }
        struct.setDefaultMissingFieldPropsIsSet(true);
      }
View Full Code Here


  private static class SelectorTupleScheme extends TupleScheme<Selector> {

    @Override
    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, Selector struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol oprot = (TTupleProtocol) prot;
      BitSet optionals = new BitSet();
      if (struct.isSetRecordOnly()) {
        optionals.set(0);
      }
      if (struct.isSetLocationId()) {
        optionals.set(1);
      }
      if (struct.isSetRowId()) {
        optionals.set(2);
      }
      if (struct.isSetRecordId()) {
        optionals.set(3);
      }
      if (struct.isSetColumnFamiliesToFetch()) {
        optionals.set(4);
      }
      if (struct.isSetColumnsToFetch()) {
        optionals.set(5);
      }
      if (struct.isSetStartRecord()) {
        optionals.set(6);
      }
      if (struct.isSetMaxRecordsToFetch()) {
        optionals.set(7);
      }
      if (struct.isSetHighlightOptions()) {
        optionals.set(8);
      }
      oprot.writeBitSet(optionals, 9);
      if (struct.isSetRecordOnly()) {
        oprot.writeBool(struct.recordOnly);
      }
      if (struct.isSetLocationId()) {
        oprot.writeString(struct.locationId);
      }
      if (struct.isSetRowId()) {
        oprot.writeString(struct.rowId);
      }
      if (struct.isSetRecordId()) {
        oprot.writeString(struct.recordId);
      }
      if (struct.isSetColumnFamiliesToFetch()) {
        {
          oprot.writeI32(struct.columnFamiliesToFetch.size());
          for (String _iter29 : struct.columnFamiliesToFetch)
          {
            oprot.writeString(_iter29);
          }
        }
      }
      if (struct.isSetColumnsToFetch()) {
        {
          oprot.writeI32(struct.columnsToFetch.size());
          for (Map.Entry<String, Set<String>> _iter30 : struct.columnsToFetch.entrySet())
          {
            oprot.writeString(_iter30.getKey());
            {
              oprot.writeI32(_iter30.getValue().size());
              for (String _iter31 : _iter30.getValue())
              {
                oprot.writeString(_iter31);
              }
            }
          }
        }
      }
      if (struct.isSetStartRecord()) {
        oprot.writeI32(struct.startRecord);
      }
      if (struct.isSetMaxRecordsToFetch()) {
        oprot.writeI32(struct.maxRecordsToFetch);
      }
      if (struct.isSetHighlightOptions()) {
        struct.highlightOptions.write(oprot);
      }
    }
View Full Code Here

      }
    }

    @Override
    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, Selector struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
      TTupleProtocol iprot = (TTupleProtocol) prot;
      BitSet incoming = iprot.readBitSet(9);
      if (incoming.get(0)) {
        struct.recordOnly = iprot.readBool();
        struct.setRecordOnlyIsSet(true);
      }
      if (incoming.get(1)) {
        struct.locationId = iprot.readString();
        struct.setLocationIdIsSet(true);
      }
      if (incoming.get(2)) {
        struct.rowId = iprot.readString();
        struct.setRowIdIsSet(true);
      }
      if (incoming.get(3)) {
        struct.recordId = iprot.readString();
        struct.setRecordIdIsSet(true);
      }
      if (incoming.get(4)) {
        {
          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list32 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, iprot.readI32());
          struct.columnFamiliesToFetch = new ArrayList<String>(_list32.size);
          for (int _i33 = 0; _i33 < _list32.size; ++_i33)
          {
            String _elem34; // required
            _elem34 = iprot.readString();
            struct.columnFamiliesToFetch.add(_elem34);
          }
        }
        struct.setColumnFamiliesToFetchIsSet(true);
      }
      if (incoming.get(5)) {
        {
          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map35 = 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.SET, iprot.readI32());
          struct.columnsToFetch = new HashMap<String,Set<String>>(2*_map35.size);
          for (int _i36 = 0; _i36 < _map35.size; ++_i36)
          {
            String _key37; // required
            Set<String> _val38; // optional
            _key37 = iprot.readString();
            {
              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TSet _set39 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TSet(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, iprot.readI32());
              _val38 = new HashSet<String>(2*_set39.size);
              for (int _i40 = 0; _i40 < _set39.size; ++_i40)
              {
                String _elem41; // required
                _elem41 = iprot.readString();
                _val38.add(_elem41);
              }
            }
            struct.columnsToFetch.put(_key37, _val38);
          }
        }
        struct.setColumnsToFetchIsSet(true);
      }
      if (incoming.get(6)) {
        struct.startRecord = iprot.readI32();
        struct.setStartRecordIsSet(true);
      }
      if (incoming.get(7)) {
        struct.maxRecordsToFetch = iprot.readI32();
        struct.setMaxRecordsToFetchIsSet(true);
      }
      if (incoming.get(8)) {
        struct.highlightOptions = new HighlightOptions();
        struct.highlightOptions.read(iprot);
View Full Code Here

  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

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.