Package org.apache.thrift.protocol

Examples of org.apache.thrift.protocol.TTupleProtocol.writeI16()


      }
      if (struct.isSetMtime()) {
        oprot.writeI64(struct.mtime);
      }
      if (struct.isSetPerms()) {
        oprot.writeI16(struct.perms);
      }
      if (struct.isSetOwner()) {
        oprot.writeString(struct.owner);
      }
      if (struct.isSetGroup()) {
View Full Code Here


      }
      if (struct.isSetBlockSize()) {
        oprot.writeI64(struct.blockSize);
      }
      if (struct.isSetReplication()) {
        oprot.writeI16(struct.replication);
      }
    }

    @Override
    public void read(org.apache.thrift.protocol.TProtocol prot, Stat struct) throws org.apache.thrift.TException {
View Full Code Here

        }
        if (struct.isSetPath()) {
          oprot.writeString(struct.path);
        }
        if (struct.isSetReplication()) {
          oprot.writeI16(struct.replication);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, setReplication_args struct) throws org.apache.thrift.TException {
View Full Code Here

      oprot.writeBitSet(optionals, 4);
      if (struct.isSetVersion()) {
        oprot.writeI32(struct.version);
      }
      if (struct.isSetPercentComplete()) {
        oprot.writeI16(struct.percentComplete);
      }
      if (struct.isSetFinalized()) {
        oprot.writeBool(struct.finalized);
      }
      if (struct.isSetStatusText()) {
View Full Code Here

        }
        if (struct.isSetPath()) {
          oprot.writeString(struct.path);
        }
        if (struct.isSetPerms()) {
          oprot.writeI16(struct.perms);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, mkdirhier_args struct) throws org.apache.thrift.TException {
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.