Package com.facebook.presto.hive.shaded.org.apache.thrift.protocol

Examples of com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TTupleProtocol


  private static class GetPrincipalsInRoleResponseTupleScheme extends TupleScheme<GetPrincipalsInRoleResponse> {

    @Override
    public void write(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TProtocol prot, GetPrincipalsInRoleResponse struct) throws com.facebook.presto.hive.shaded.org.apache.thrift.TException {
      TTupleProtocol oprot = (TTupleProtocol) prot;
      {
        oprot.writeI32(struct.principalGrants.size());
        for (RolePrincipalGrant _iter90 : struct.principalGrants)
        {
          _iter90.write(oprot);
        }
      }
View Full Code Here


      }
    }

    @Override
    public void read(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TProtocol prot, GetPrincipalsInRoleResponse struct) throws com.facebook.presto.hive.shaded.org.apache.thrift.TException {
      TTupleProtocol iprot = (TTupleProtocol) prot;
      {
        com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TList _list91 = new com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TList(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
        struct.principalGrants = new ArrayList<RolePrincipalGrant>(_list91.size);
        for (int _i92 = 0; _i92 < _list91.size; ++_i92)
        {
          RolePrincipalGrant _elem93; // required
          _elem93 = new RolePrincipalGrant();
View Full Code Here

  private static class AbortTxnRequestTupleScheme extends TupleScheme<AbortTxnRequest> {

    @Override
    public void write(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TProtocol prot, AbortTxnRequest struct) throws com.facebook.presto.hive.shaded.org.apache.thrift.TException {
      TTupleProtocol oprot = (TTupleProtocol) prot;
      oprot.writeI64(struct.txnid);
    }
View Full Code Here

      oprot.writeI64(struct.txnid);
    }

    @Override
    public void read(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TProtocol prot, AbortTxnRequest struct) throws com.facebook.presto.hive.shaded.org.apache.thrift.TException {
      TTupleProtocol iprot = (TTupleProtocol) prot;
      struct.txnid = iprot.readI64();
      struct.setTxnidIsSet(true);
    }
View Full Code Here

  private static class TableStatsResultTupleScheme extends TupleScheme<TableStatsResult> {

    @Override
    public void write(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TProtocol prot, TableStatsResult struct) throws com.facebook.presto.hive.shaded.org.apache.thrift.TException {
      TTupleProtocol oprot = (TTupleProtocol) prot;
      {
        oprot.writeI32(struct.tableStats.size());
        for (ColumnStatisticsObj _iter284 : struct.tableStats)
        {
          _iter284.write(oprot);
        }
      }
View Full Code Here

      }
    }

    @Override
    public void read(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TProtocol prot, TableStatsResult struct) throws com.facebook.presto.hive.shaded.org.apache.thrift.TException {
      TTupleProtocol iprot = (TTupleProtocol) prot;
      {
        com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TList _list285 = new com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TList(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
        struct.tableStats = new ArrayList<ColumnStatisticsObj>(_list285.size);
        for (int _i286 = 0; _i286 < _list285.size; ++_i286)
        {
          ColumnStatisticsObj _elem287; // required
          _elem287 = new ColumnStatisticsObj();
View Full Code Here

  private static class ShowCompactRequestTupleScheme extends TupleScheme<ShowCompactRequest> {

    @Override
    public void write(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TProtocol prot, ShowCompactRequest struct) throws com.facebook.presto.hive.shaded.org.apache.thrift.TException {
      TTupleProtocol oprot = (TTupleProtocol) prot;
    }
View Full Code Here

      TTupleProtocol oprot = (TTupleProtocol) prot;
    }

    @Override
    public void read(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TProtocol prot, ShowCompactRequest struct) throws com.facebook.presto.hive.shaded.org.apache.thrift.TException {
      TTupleProtocol iprot = (TTupleProtocol) prot;
    }
View Full Code Here

  private static class LockRequestTupleScheme extends TupleScheme<LockRequest> {

    @Override
    public void write(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TProtocol prot, LockRequest struct) throws com.facebook.presto.hive.shaded.org.apache.thrift.TException {
      TTupleProtocol oprot = (TTupleProtocol) prot;
      {
        oprot.writeI32(struct.component.size());
        for (LockComponent _iter406 : struct.component)
        {
          _iter406.write(oprot);
        }
      }
      oprot.writeString(struct.user);
      oprot.writeString(struct.hostname);
      BitSet optionals = new BitSet();
      if (struct.isSetTxnid()) {
        optionals.set(0);
      }
      oprot.writeBitSet(optionals, 1);
      if (struct.isSetTxnid()) {
        oprot.writeI64(struct.txnid);
      }
    }
View Full Code Here

      }
    }

    @Override
    public void read(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TProtocol prot, LockRequest struct) throws com.facebook.presto.hive.shaded.org.apache.thrift.TException {
      TTupleProtocol iprot = (TTupleProtocol) prot;
      {
        com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TList _list407 = new com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TList(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
        struct.component = new ArrayList<LockComponent>(_list407.size);
        for (int _i408 = 0; _i408 < _list407.size; ++_i408)
        {
          LockComponent _elem409; // required
          _elem409 = new LockComponent();
          _elem409.read(iprot);
          struct.component.add(_elem409);
        }
      }
      struct.setComponentIsSet(true);
      struct.user = iprot.readString();
      struct.setUserIsSet(true);
      struct.hostname = iprot.readString();
      struct.setHostnameIsSet(true);
      BitSet incoming = iprot.readBitSet(1);
      if (incoming.get(0)) {
        struct.txnid = iprot.readI64();
        struct.setTxnidIsSet(true);
      }
    }
View Full Code Here

TOP

Related Classes of com.facebook.presto.hive.shaded.org.apache.thrift.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.