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

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


  private static class ColumnStatisticsDescTupleScheme extends TupleScheme<ColumnStatisticsDesc> {

    @Override
    public void write(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TProtocol prot, ColumnStatisticsDesc struct) throws com.facebook.presto.hive.shaded.org.apache.thrift.TException {
      TTupleProtocol oprot = (TTupleProtocol) prot;
      oprot.writeBool(struct.isTblLevel);
      oprot.writeString(struct.dbName);
      oprot.writeString(struct.tableName);
      BitSet optionals = new BitSet();
      if (struct.isSetPartName()) {
        optionals.set(0);
View Full Code Here


        for (Partition _iter342 : struct.parts)
        {
          _iter342.write(oprot);
        }
      }
      oprot.writeBool(struct.ifNotExists);
      BitSet optionals = new BitSet();
      if (struct.isSetNeedResult()) {
        optionals.set(0);
      }
      oprot.writeBitSet(optionals, 1);
View Full Code Here

      if (struct.isSetNeedResult()) {
        optionals.set(0);
      }
      oprot.writeBitSet(optionals, 1);
      if (struct.isSetNeedResult()) {
        oprot.writeBool(struct.needResult);
      }
    }

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

      }
      if (struct.isSetGrantorType()) {
        oprot.writeI32(struct.grantorType.getValue());
      }
      if (struct.isSetGrantOption()) {
        oprot.writeBool(struct.grantOption);
      }
    }

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

      }
      if (struct.isSetOutputFormat()) {
        oprot.writeString(struct.outputFormat);
      }
      if (struct.isSetCompressed()) {
        oprot.writeBool(struct.compressed);
      }
      if (struct.isSetNumBuckets()) {
        oprot.writeI32(struct.numBuckets);
      }
      if (struct.isSetSerdeInfo()) {
View Full Code Here

      }
      if (struct.isSetSkewedInfo()) {
        struct.skewedInfo.write(oprot);
      }
      if (struct.isSetStoredAsSubDirectories()) {
        oprot.writeBool(struct.storedAsSubDirectories);
      }
    }

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

            oprot.writeString(_iter215.getValue());
          }
        }
      }
      if (struct.isSetDeferredRebuild()) {
        oprot.writeBool(struct.deferredRebuild);
      }
    }

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

      if (struct.isSetMy_structset()) {
        optionals.set(19);
      }
      oprot.writeBitSet(optionals, 20);
      if (struct.isSetMy_bool()) {
        oprot.writeBool(struct.my_bool);
      }
      if (struct.isSetMy_byte()) {
        oprot.writeByte(struct.my_byte);
      }
      if (struct.isSetMy_16bit_int()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.