ThriftHadoopFileSystem.java
上传用户:quxuerui
上传日期:2018-01-08
资源大小:41811k
文件大小:166k
- if (field.type == TType.I64) {
- this.offset = iprot.readI64();
- this.__isset.offset = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case -2:
- if (field.type == TType.I32) {
- this.size = iprot.readI32();
- this.__isset.size = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("read_args");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.handle != null) {
- field.name = "handle";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.handle.write(oprot);
- oprot.writeFieldEnd();
- }
- field.name = "offset";
- field.type = TType.I64;
- field.id = -1;
- oprot.writeFieldBegin(field);
- oprot.writeI64(this.offset);
- oprot.writeFieldEnd();
- field.name = "size";
- field.type = TType.I32;
- field.id = -2;
- oprot.writeFieldBegin(field);
- oprot.writeI32(this.size);
- oprot.writeFieldEnd();
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("read_args(");
- sb.append("handle:");
- sb.append(this.handle);
- sb.append(",offset:");
- sb.append(this.offset);
- sb.append(",size:");
- sb.append(this.size);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class read_result implements TBase, java.io.Serializable {
- public String success;
- public ThriftIOException ouch;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean success = false;
- public boolean ouch = false;
- }
- public read_result() {
- }
- public read_result(
- String success,
- ThriftIOException ouch)
- {
- this();
- this.success = success;
- this.__isset.success = true;
- this.ouch = ouch;
- this.__isset.ouch = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof read_result)
- return this.equals((read_result)that);
- return false;
- }
- public boolean equals(read_result that) {
- if (that == null)
- return false;
- boolean this_present_success = true && (this.success != null);
- boolean that_present_success = true && (that.success != null);
- if (this_present_success || that_present_success) {
- if (!(this_present_success && that_present_success))
- return false;
- if (!this.success.equals(that.success))
- return false;
- }
- boolean this_present_ouch = true && (this.ouch != null);
- boolean that_present_ouch = true && (that.ouch != null);
- if (this_present_ouch || that_present_ouch) {
- if (!(this_present_ouch && that_present_ouch))
- return false;
- if (!this.ouch.equals(that.ouch))
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 0:
- if (field.type == TType.STRING) {
- this.success = iprot.readString();
- this.__isset.success = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 1:
- if (field.type == TType.STRUCT) {
- this.ouch = new ThriftIOException();
- this.ouch.read(iprot);
- this.__isset.ouch = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("read_result");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.__isset.success) {
- if (this.success != null) {
- field.name = "success";
- field.type = TType.STRING;
- field.id = 0;
- oprot.writeFieldBegin(field);
- oprot.writeString(this.success);
- oprot.writeFieldEnd();
- }
- } else if (this.__isset.ouch) {
- if (this.ouch != null) {
- field.name = "ouch";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.ouch.write(oprot);
- oprot.writeFieldEnd();
- }
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("read_result(");
- sb.append("success:");
- sb.append(this.success);
- sb.append(",ouch:");
- sb.append(this.ouch);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class close_args implements TBase, java.io.Serializable {
- public ThriftHandle out;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean out = false;
- }
- public close_args() {
- }
- public close_args(
- ThriftHandle out)
- {
- this();
- this.out = out;
- this.__isset.out = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof close_args)
- return this.equals((close_args)that);
- return false;
- }
- public boolean equals(close_args that) {
- if (that == null)
- return false;
- boolean this_present_out = true && (this.out != null);
- boolean that_present_out = true && (that.out != null);
- if (this_present_out || that_present_out) {
- if (!(this_present_out && that_present_out))
- return false;
- if (!this.out.equals(that.out))
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 1:
- if (field.type == TType.STRUCT) {
- this.out = new ThriftHandle();
- this.out.read(iprot);
- this.__isset.out = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("close_args");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.out != null) {
- field.name = "out";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.out.write(oprot);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("close_args(");
- sb.append("out:");
- sb.append(this.out);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class close_result implements TBase, java.io.Serializable {
- public boolean success;
- public ThriftIOException ouch;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean success = false;
- public boolean ouch = false;
- }
- public close_result() {
- }
- public close_result(
- boolean success,
- ThriftIOException ouch)
- {
- this();
- this.success = success;
- this.__isset.success = true;
- this.ouch = ouch;
- this.__isset.ouch = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof close_result)
- return this.equals((close_result)that);
- return false;
- }
- public boolean equals(close_result that) {
- if (that == null)
- return false;
- boolean this_present_success = true;
- boolean that_present_success = true;
- if (this_present_success || that_present_success) {
- if (!(this_present_success && that_present_success))
- return false;
- if (this.success != that.success)
- return false;
- }
- boolean this_present_ouch = true && (this.ouch != null);
- boolean that_present_ouch = true && (that.ouch != null);
- if (this_present_ouch || that_present_ouch) {
- if (!(this_present_ouch && that_present_ouch))
- return false;
- if (!this.ouch.equals(that.ouch))
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 0:
- if (field.type == TType.BOOL) {
- this.success = iprot.readBool();
- this.__isset.success = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 1:
- if (field.type == TType.STRUCT) {
- this.ouch = new ThriftIOException();
- this.ouch.read(iprot);
- this.__isset.ouch = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("close_result");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.__isset.success) {
- field.name = "success";
- field.type = TType.BOOL;
- field.id = 0;
- oprot.writeFieldBegin(field);
- oprot.writeBool(this.success);
- oprot.writeFieldEnd();
- } else if (this.__isset.ouch) {
- if (this.ouch != null) {
- field.name = "ouch";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.ouch.write(oprot);
- oprot.writeFieldEnd();
- }
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("close_result(");
- sb.append("success:");
- sb.append(this.success);
- sb.append(",ouch:");
- sb.append(this.ouch);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class rm_args implements TBase, java.io.Serializable {
- public Pathname path;
- public boolean recursive;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean path = false;
- public boolean recursive = false;
- }
- public rm_args() {
- }
- public rm_args(
- Pathname path,
- boolean recursive)
- {
- this();
- this.path = path;
- this.__isset.path = true;
- this.recursive = recursive;
- this.__isset.recursive = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof rm_args)
- return this.equals((rm_args)that);
- return false;
- }
- public boolean equals(rm_args that) {
- if (that == null)
- return false;
- boolean this_present_path = true && (this.path != null);
- boolean that_present_path = true && (that.path != null);
- if (this_present_path || that_present_path) {
- if (!(this_present_path && that_present_path))
- return false;
- if (!this.path.equals(that.path))
- return false;
- }
- boolean this_present_recursive = true;
- boolean that_present_recursive = true;
- if (this_present_recursive || that_present_recursive) {
- if (!(this_present_recursive && that_present_recursive))
- return false;
- if (this.recursive != that.recursive)
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 1:
- if (field.type == TType.STRUCT) {
- this.path = new Pathname();
- this.path.read(iprot);
- this.__isset.path = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 2:
- if (field.type == TType.BOOL) {
- this.recursive = iprot.readBool();
- this.__isset.recursive = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("rm_args");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.path != null) {
- field.name = "path";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.path.write(oprot);
- oprot.writeFieldEnd();
- }
- field.name = "recursive";
- field.type = TType.BOOL;
- field.id = 2;
- oprot.writeFieldBegin(field);
- oprot.writeBool(this.recursive);
- oprot.writeFieldEnd();
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("rm_args(");
- sb.append("path:");
- sb.append(this.path);
- sb.append(",recursive:");
- sb.append(this.recursive);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class rm_result implements TBase, java.io.Serializable {
- public boolean success;
- public ThriftIOException ouch;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean success = false;
- public boolean ouch = false;
- }
- public rm_result() {
- }
- public rm_result(
- boolean success,
- ThriftIOException ouch)
- {
- this();
- this.success = success;
- this.__isset.success = true;
- this.ouch = ouch;
- this.__isset.ouch = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof rm_result)
- return this.equals((rm_result)that);
- return false;
- }
- public boolean equals(rm_result that) {
- if (that == null)
- return false;
- boolean this_present_success = true;
- boolean that_present_success = true;
- if (this_present_success || that_present_success) {
- if (!(this_present_success && that_present_success))
- return false;
- if (this.success != that.success)
- return false;
- }
- boolean this_present_ouch = true && (this.ouch != null);
- boolean that_present_ouch = true && (that.ouch != null);
- if (this_present_ouch || that_present_ouch) {
- if (!(this_present_ouch && that_present_ouch))
- return false;
- if (!this.ouch.equals(that.ouch))
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 0:
- if (field.type == TType.BOOL) {
- this.success = iprot.readBool();
- this.__isset.success = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 1:
- if (field.type == TType.STRUCT) {
- this.ouch = new ThriftIOException();
- this.ouch.read(iprot);
- this.__isset.ouch = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("rm_result");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.__isset.success) {
- field.name = "success";
- field.type = TType.BOOL;
- field.id = 0;
- oprot.writeFieldBegin(field);
- oprot.writeBool(this.success);
- oprot.writeFieldEnd();
- } else if (this.__isset.ouch) {
- if (this.ouch != null) {
- field.name = "ouch";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.ouch.write(oprot);
- oprot.writeFieldEnd();
- }
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("rm_result(");
- sb.append("success:");
- sb.append(this.success);
- sb.append(",ouch:");
- sb.append(this.ouch);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class rename_args implements TBase, java.io.Serializable {
- public Pathname path;
- public Pathname dest;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean path = false;
- public boolean dest = false;
- }
- public rename_args() {
- }
- public rename_args(
- Pathname path,
- Pathname dest)
- {
- this();
- this.path = path;
- this.__isset.path = true;
- this.dest = dest;
- this.__isset.dest = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof rename_args)
- return this.equals((rename_args)that);
- return false;
- }
- public boolean equals(rename_args that) {
- if (that == null)
- return false;
- boolean this_present_path = true && (this.path != null);
- boolean that_present_path = true && (that.path != null);
- if (this_present_path || that_present_path) {
- if (!(this_present_path && that_present_path))
- return false;
- if (!this.path.equals(that.path))
- return false;
- }
- boolean this_present_dest = true && (this.dest != null);
- boolean that_present_dest = true && (that.dest != null);
- if (this_present_dest || that_present_dest) {
- if (!(this_present_dest && that_present_dest))
- return false;
- if (!this.dest.equals(that.dest))
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 1:
- if (field.type == TType.STRUCT) {
- this.path = new Pathname();
- this.path.read(iprot);
- this.__isset.path = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 2:
- if (field.type == TType.STRUCT) {
- this.dest = new Pathname();
- this.dest.read(iprot);
- this.__isset.dest = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("rename_args");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.path != null) {
- field.name = "path";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.path.write(oprot);
- oprot.writeFieldEnd();
- }
- if (this.dest != null) {
- field.name = "dest";
- field.type = TType.STRUCT;
- field.id = 2;
- oprot.writeFieldBegin(field);
- this.dest.write(oprot);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("rename_args(");
- sb.append("path:");
- sb.append(this.path);
- sb.append(",dest:");
- sb.append(this.dest);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class rename_result implements TBase, java.io.Serializable {
- public boolean success;
- public ThriftIOException ouch;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean success = false;
- public boolean ouch = false;
- }
- public rename_result() {
- }
- public rename_result(
- boolean success,
- ThriftIOException ouch)
- {
- this();
- this.success = success;
- this.__isset.success = true;
- this.ouch = ouch;
- this.__isset.ouch = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof rename_result)
- return this.equals((rename_result)that);
- return false;
- }
- public boolean equals(rename_result that) {
- if (that == null)
- return false;
- boolean this_present_success = true;
- boolean that_present_success = true;
- if (this_present_success || that_present_success) {
- if (!(this_present_success && that_present_success))
- return false;
- if (this.success != that.success)
- return false;
- }
- boolean this_present_ouch = true && (this.ouch != null);
- boolean that_present_ouch = true && (that.ouch != null);
- if (this_present_ouch || that_present_ouch) {
- if (!(this_present_ouch && that_present_ouch))
- return false;
- if (!this.ouch.equals(that.ouch))
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 0:
- if (field.type == TType.BOOL) {
- this.success = iprot.readBool();
- this.__isset.success = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 1:
- if (field.type == TType.STRUCT) {
- this.ouch = new ThriftIOException();
- this.ouch.read(iprot);
- this.__isset.ouch = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("rename_result");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.__isset.success) {
- field.name = "success";
- field.type = TType.BOOL;
- field.id = 0;
- oprot.writeFieldBegin(field);
- oprot.writeBool(this.success);
- oprot.writeFieldEnd();
- } else if (this.__isset.ouch) {
- if (this.ouch != null) {
- field.name = "ouch";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.ouch.write(oprot);
- oprot.writeFieldEnd();
- }
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("rename_result(");
- sb.append("success:");
- sb.append(this.success);
- sb.append(",ouch:");
- sb.append(this.ouch);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class mkdirs_args implements TBase, java.io.Serializable {
- public Pathname path;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean path = false;
- }
- public mkdirs_args() {
- }
- public mkdirs_args(
- Pathname path)
- {
- this();
- this.path = path;
- this.__isset.path = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof mkdirs_args)
- return this.equals((mkdirs_args)that);
- return false;
- }
- public boolean equals(mkdirs_args that) {
- if (that == null)
- return false;
- boolean this_present_path = true && (this.path != null);
- boolean that_present_path = true && (that.path != null);
- if (this_present_path || that_present_path) {
- if (!(this_present_path && that_present_path))
- return false;
- if (!this.path.equals(that.path))
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 1:
- if (field.type == TType.STRUCT) {
- this.path = new Pathname();
- this.path.read(iprot);
- this.__isset.path = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("mkdirs_args");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.path != null) {
- field.name = "path";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.path.write(oprot);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("mkdirs_args(");
- sb.append("path:");
- sb.append(this.path);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class mkdirs_result implements TBase, java.io.Serializable {
- public boolean success;
- public ThriftIOException ouch;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean success = false;
- public boolean ouch = false;
- }
- public mkdirs_result() {
- }
- public mkdirs_result(
- boolean success,
- ThriftIOException ouch)
- {
- this();
- this.success = success;
- this.__isset.success = true;
- this.ouch = ouch;
- this.__isset.ouch = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof mkdirs_result)
- return this.equals((mkdirs_result)that);
- return false;
- }
- public boolean equals(mkdirs_result that) {
- if (that == null)
- return false;
- boolean this_present_success = true;
- boolean that_present_success = true;
- if (this_present_success || that_present_success) {
- if (!(this_present_success && that_present_success))
- return false;
- if (this.success != that.success)
- return false;
- }
- boolean this_present_ouch = true && (this.ouch != null);
- boolean that_present_ouch = true && (that.ouch != null);
- if (this_present_ouch || that_present_ouch) {
- if (!(this_present_ouch && that_present_ouch))
- return false;
- if (!this.ouch.equals(that.ouch))
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 0:
- if (field.type == TType.BOOL) {
- this.success = iprot.readBool();
- this.__isset.success = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 1:
- if (field.type == TType.STRUCT) {
- this.ouch = new ThriftIOException();
- this.ouch.read(iprot);
- this.__isset.ouch = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("mkdirs_result");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.__isset.success) {
- field.name = "success";
- field.type = TType.BOOL;
- field.id = 0;
- oprot.writeFieldBegin(field);
- oprot.writeBool(this.success);
- oprot.writeFieldEnd();
- } else if (this.__isset.ouch) {
- if (this.ouch != null) {
- field.name = "ouch";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.ouch.write(oprot);
- oprot.writeFieldEnd();
- }
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("mkdirs_result(");
- sb.append("success:");
- sb.append(this.success);
- sb.append(",ouch:");
- sb.append(this.ouch);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class exists_args implements TBase, java.io.Serializable {
- public Pathname path;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean path = false;
- }
- public exists_args() {
- }
- public exists_args(
- Pathname path)
- {
- this();
- this.path = path;
- this.__isset.path = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof exists_args)
- return this.equals((exists_args)that);
- return false;
- }
- public boolean equals(exists_args that) {
- if (that == null)
- return false;
- boolean this_present_path = true && (this.path != null);
- boolean that_present_path = true && (that.path != null);
- if (this_present_path || that_present_path) {
- if (!(this_present_path && that_present_path))
- return false;
- if (!this.path.equals(that.path))
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 1:
- if (field.type == TType.STRUCT) {
- this.path = new Pathname();
- this.path.read(iprot);
- this.__isset.path = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("exists_args");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.path != null) {
- field.name = "path";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.path.write(oprot);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("exists_args(");
- sb.append("path:");
- sb.append(this.path);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class exists_result implements TBase, java.io.Serializable {
- public boolean success;
- public ThriftIOException ouch;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean success = false;
- public boolean ouch = false;
- }
- public exists_result() {
- }
- public exists_result(
- boolean success,
- ThriftIOException ouch)
- {
- this();
- this.success = success;
- this.__isset.success = true;
- this.ouch = ouch;
- this.__isset.ouch = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof exists_result)
- return this.equals((exists_result)that);
- return false;
- }
- public boolean equals(exists_result that) {
- if (that == null)
- return false;
- boolean this_present_success = true;
- boolean that_present_success = true;
- if (this_present_success || that_present_success) {
- if (!(this_present_success && that_present_success))
- return false;
- if (this.success != that.success)
- return false;
- }
- boolean this_present_ouch = true && (this.ouch != null);
- boolean that_present_ouch = true && (that.ouch != null);
- if (this_present_ouch || that_present_ouch) {
- if (!(this_present_ouch && that_present_ouch))
- return false;
- if (!this.ouch.equals(that.ouch))
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 0:
- if (field.type == TType.BOOL) {
- this.success = iprot.readBool();
- this.__isset.success = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 1:
- if (field.type == TType.STRUCT) {
- this.ouch = new ThriftIOException();
- this.ouch.read(iprot);
- this.__isset.ouch = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("exists_result");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.__isset.success) {
- field.name = "success";
- field.type = TType.BOOL;
- field.id = 0;
- oprot.writeFieldBegin(field);
- oprot.writeBool(this.success);
- oprot.writeFieldEnd();
- } else if (this.__isset.ouch) {
- if (this.ouch != null) {
- field.name = "ouch";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.ouch.write(oprot);
- oprot.writeFieldEnd();
- }
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("exists_result(");
- sb.append("success:");
- sb.append(this.success);
- sb.append(",ouch:");
- sb.append(this.ouch);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class stat_args implements TBase, java.io.Serializable {
- public Pathname path;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean path = false;
- }
- public stat_args() {
- }
- public stat_args(
- Pathname path)
- {
- this();
- this.path = path;
- this.__isset.path = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof stat_args)
- return this.equals((stat_args)that);
- return false;
- }
- public boolean equals(stat_args that) {
- if (that == null)
- return false;
- boolean this_present_path = true && (this.path != null);
- boolean that_present_path = true && (that.path != null);
- if (this_present_path || that_present_path) {
- if (!(this_present_path && that_present_path))
- return false;
- if (!this.path.equals(that.path))
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 1:
- if (field.type == TType.STRUCT) {
- this.path = new Pathname();
- this.path.read(iprot);
- this.__isset.path = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("stat_args");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.path != null) {
- field.name = "path";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.path.write(oprot);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("stat_args(");
- sb.append("path:");
- sb.append(this.path);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class stat_result implements TBase, java.io.Serializable {
- public FileStatus success;
- public ThriftIOException ouch;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean success = false;
- public boolean ouch = false;
- }
- public stat_result() {
- }
- public stat_result(
- FileStatus success,
- ThriftIOException ouch)
- {
- this();
- this.success = success;
- this.__isset.success = true;
- this.ouch = ouch;
- this.__isset.ouch = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof stat_result)
- return this.equals((stat_result)that);
- return false;
- }
- public boolean equals(stat_result that) {
- if (that == null)
- return false;
- boolean this_present_success = true && (this.success != null);
- boolean that_present_success = true && (that.success != null);
- if (this_present_success || that_present_success) {
- if (!(this_present_success && that_present_success))
- return false;
- if (!this.success.equals(that.success))
- return false;
- }
- boolean this_present_ouch = true && (this.ouch != null);
- boolean that_present_ouch = true && (that.ouch != null);
- if (this_present_ouch || that_present_ouch) {
- if (!(this_present_ouch && that_present_ouch))
- return false;
- if (!this.ouch.equals(that.ouch))
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 0:
- if (field.type == TType.STRUCT) {
- this.success = new FileStatus();
- this.success.read(iprot);
- this.__isset.success = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 1:
- if (field.type == TType.STRUCT) {
- this.ouch = new ThriftIOException();
- this.ouch.read(iprot);
- this.__isset.ouch = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("stat_result");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.__isset.success) {
- if (this.success != null) {
- field.name = "success";
- field.type = TType.STRUCT;
- field.id = 0;
- oprot.writeFieldBegin(field);
- this.success.write(oprot);
- oprot.writeFieldEnd();
- }
- } else if (this.__isset.ouch) {
- if (this.ouch != null) {
- field.name = "ouch";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.ouch.write(oprot);
- oprot.writeFieldEnd();
- }
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("stat_result(");
- sb.append("success:");
- sb.append(this.success);
- sb.append(",ouch:");
- sb.append(this.ouch);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class listStatus_args implements TBase, java.io.Serializable {
- public Pathname path;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean path = false;
- }
- public listStatus_args() {
- }
- public listStatus_args(
- Pathname path)
- {
- this();
- this.path = path;
- this.__isset.path = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof listStatus_args)
- return this.equals((listStatus_args)that);
- return false;
- }
- public boolean equals(listStatus_args that) {
- if (that == null)
- return false;
- boolean this_present_path = true && (this.path != null);
- boolean that_present_path = true && (that.path != null);
- if (this_present_path || that_present_path) {
- if (!(this_present_path && that_present_path))
- return false;
- if (!this.path.equals(that.path))
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 1:
- if (field.type == TType.STRUCT) {
- this.path = new Pathname();
- this.path.read(iprot);
- this.__isset.path = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("listStatus_args");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.path != null) {
- field.name = "path";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.path.write(oprot);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("listStatus_args(");
- sb.append("path:");
- sb.append(this.path);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class listStatus_result implements TBase, java.io.Serializable {
- public List<FileStatus> success;
- public ThriftIOException ouch;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean success = false;
- public boolean ouch = false;
- }
- public listStatus_result() {
- }
- public listStatus_result(
- List<FileStatus> success,
- ThriftIOException ouch)
- {
- this();
- this.success = success;
- this.__isset.success = true;
- this.ouch = ouch;
- this.__isset.ouch = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof listStatus_result)
- return this.equals((listStatus_result)that);
- return false;
- }
- public boolean equals(listStatus_result that) {
- if (that == null)
- return false;
- boolean this_present_success = true && (this.success != null);
- boolean that_present_success = true && (that.success != null);
- if (this_present_success || that_present_success) {
- if (!(this_present_success && that_present_success))
- return false;
- if (!this.success.equals(that.success))
- return false;
- }
- boolean this_present_ouch = true && (this.ouch != null);
- boolean that_present_ouch = true && (that.ouch != null);
- if (this_present_ouch || that_present_ouch) {
- if (!(this_present_ouch && that_present_ouch))
- return false;
- if (!this.ouch.equals(that.ouch))
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 0:
- if (field.type == TType.LIST) {
- {
- TList _list8 = iprot.readListBegin();
- this.success = new ArrayList<FileStatus>(_list8.size);
- for (int _i9 = 0; _i9 < _list8.size; ++_i9)
- {
- FileStatus _elem10 = new FileStatus();
- _elem10 = new FileStatus();
- _elem10.read(iprot);
- this.success.add(_elem10);
- }
- iprot.readListEnd();
- }
- this.__isset.success = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 1:
- if (field.type == TType.STRUCT) {
- this.ouch = new ThriftIOException();
- this.ouch.read(iprot);
- this.__isset.ouch = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("listStatus_result");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.__isset.success) {
- if (this.success != null) {
- field.name = "success";
- field.type = TType.LIST;
- field.id = 0;
- oprot.writeFieldBegin(field);
- {
- oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
- for (FileStatus _iter11 : this.success) {
- _iter11.write(oprot);
- }
- oprot.writeListEnd();
- }
- oprot.writeFieldEnd();
- }
- } else if (this.__isset.ouch) {
- if (this.ouch != null) {
- field.name = "ouch";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.ouch.write(oprot);
- oprot.writeFieldEnd();
- }
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("listStatus_result(");
- sb.append("success:");
- sb.append(this.success);
- sb.append(",ouch:");
- sb.append(this.ouch);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class chmod_args implements TBase, java.io.Serializable {
- public Pathname path;
- public short mode;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean path = false;
- public boolean mode = false;
- }
- public chmod_args() {
- }
- public chmod_args(
- Pathname path,
- short mode)
- {
- this();
- this.path = path;
- this.__isset.path = true;
- this.mode = mode;
- this.__isset.mode = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof chmod_args)
- return this.equals((chmod_args)that);
- return false;
- }
- public boolean equals(chmod_args that) {
- if (that == null)
- return false;
- boolean this_present_path = true && (this.path != null);
- boolean that_present_path = true && (that.path != null);
- if (this_present_path || that_present_path) {
- if (!(this_present_path && that_present_path))
- return false;
- if (!this.path.equals(that.path))
- return false;
- }
- boolean this_present_mode = true;
- boolean that_present_mode = true;
- if (this_present_mode || that_present_mode) {
- if (!(this_present_mode && that_present_mode))
- return false;
- if (this.mode != that.mode)
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 1:
- if (field.type == TType.STRUCT) {
- this.path = new Pathname();
- this.path.read(iprot);
- this.__isset.path = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 2:
- if (field.type == TType.I16) {
- this.mode = iprot.readI16();
- this.__isset.mode = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("chmod_args");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.path != null) {
- field.name = "path";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.path.write(oprot);
- oprot.writeFieldEnd();
- }
- field.name = "mode";
- field.type = TType.I16;
- field.id = 2;
- oprot.writeFieldBegin(field);
- oprot.writeI16(this.mode);
- oprot.writeFieldEnd();
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("chmod_args(");
- sb.append("path:");
- sb.append(this.path);
- sb.append(",mode:");
- sb.append(this.mode);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class chmod_result implements TBase, java.io.Serializable {
- public ThriftIOException ouch;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean ouch = false;
- }
- public chmod_result() {
- }
- public chmod_result(
- ThriftIOException ouch)
- {
- this();
- this.ouch = ouch;
- this.__isset.ouch = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof chmod_result)
- return this.equals((chmod_result)that);
- return false;
- }
- public boolean equals(chmod_result that) {
- if (that == null)
- return false;
- boolean this_present_ouch = true && (this.ouch != null);
- boolean that_present_ouch = true && (that.ouch != null);
- if (this_present_ouch || that_present_ouch) {
- if (!(this_present_ouch && that_present_ouch))
- return false;
- if (!this.ouch.equals(that.ouch))
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 1:
- if (field.type == TType.STRUCT) {
- this.ouch = new ThriftIOException();
- this.ouch.read(iprot);
- this.__isset.ouch = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("chmod_result");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.__isset.ouch) {
- if (this.ouch != null) {
- field.name = "ouch";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.ouch.write(oprot);
- oprot.writeFieldEnd();
- }
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("chmod_result(");
- sb.append("ouch:");
- sb.append(this.ouch);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class chown_args implements TBase, java.io.Serializable {
- public Pathname path;
- public String owner;
- public String group;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean path = false;
- public boolean owner = false;
- public boolean group = false;
- }
- public chown_args() {
- }
- public chown_args(
- Pathname path,
- String owner,
- String group)
- {
- this();
- this.path = path;
- this.__isset.path = true;
- this.owner = owner;
- this.__isset.owner = true;
- this.group = group;
- this.__isset.group = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof chown_args)
- return this.equals((chown_args)that);
- return false;
- }
- public boolean equals(chown_args that) {
- if (that == null)
- return false;
- boolean this_present_path = true && (this.path != null);
- boolean that_present_path = true && (that.path != null);
- if (this_present_path || that_present_path) {
- if (!(this_present_path && that_present_path))
- return false;
- if (!this.path.equals(that.path))
- return false;
- }
- boolean this_present_owner = true && (this.owner != null);
- boolean that_present_owner = true && (that.owner != null);
- if (this_present_owner || that_present_owner) {
- if (!(this_present_owner && that_present_owner))
- return false;
- if (!this.owner.equals(that.owner))
- return false;
- }
- boolean this_present_group = true && (this.group != null);
- boolean that_present_group = true && (that.group != null);
- if (this_present_group || that_present_group) {
- if (!(this_present_group && that_present_group))
- return false;
- if (!this.group.equals(that.group))
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 1:
- if (field.type == TType.STRUCT) {
- this.path = new Pathname();
- this.path.read(iprot);
- this.__isset.path = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 2:
- if (field.type == TType.STRING) {
- this.owner = iprot.readString();
- this.__isset.owner = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 3:
- if (field.type == TType.STRING) {
- this.group = iprot.readString();
- this.__isset.group = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("chown_args");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.path != null) {
- field.name = "path";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.path.write(oprot);
- oprot.writeFieldEnd();
- }
- if (this.owner != null) {
- field.name = "owner";
- field.type = TType.STRING;
- field.id = 2;
- oprot.writeFieldBegin(field);
- oprot.writeString(this.owner);
- oprot.writeFieldEnd();
- }
- if (this.group != null) {
- field.name = "group";
- field.type = TType.STRING;
- field.id = 3;
- oprot.writeFieldBegin(field);
- oprot.writeString(this.group);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("chown_args(");
- sb.append("path:");
- sb.append(this.path);
- sb.append(",owner:");
- sb.append(this.owner);
- sb.append(",group:");
- sb.append(this.group);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class chown_result implements TBase, java.io.Serializable {
- public ThriftIOException ouch;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean ouch = false;
- }
- public chown_result() {
- }
- public chown_result(
- ThriftIOException ouch)
- {
- this();
- this.ouch = ouch;
- this.__isset.ouch = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof chown_result)
- return this.equals((chown_result)that);
- return false;
- }
- public boolean equals(chown_result that) {
- if (that == null)
- return false;
- boolean this_present_ouch = true && (this.ouch != null);
- boolean that_present_ouch = true && (that.ouch != null);
- if (this_present_ouch || that_present_ouch) {
- if (!(this_present_ouch && that_present_ouch))
- return false;
- if (!this.ouch.equals(that.ouch))
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 1:
- if (field.type == TType.STRUCT) {
- this.ouch = new ThriftIOException();
- this.ouch.read(iprot);
- this.__isset.ouch = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("chown_result");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.__isset.ouch) {
- if (this.ouch != null) {
- field.name = "ouch";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.ouch.write(oprot);
- oprot.writeFieldEnd();
- }
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("chown_result(");
- sb.append("ouch:");
- sb.append(this.ouch);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class setReplication_args implements TBase, java.io.Serializable {
- public Pathname path;
- public short replication;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean path = false;
- public boolean replication = false;
- }
- public setReplication_args() {
- }
- public setReplication_args(
- Pathname path,
- short replication)
- {
- this();
- this.path = path;
- this.__isset.path = true;
- this.replication = replication;
- this.__isset.replication = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof setReplication_args)
- return this.equals((setReplication_args)that);
- return false;
- }
- public boolean equals(setReplication_args that) {
- if (that == null)
- return false;
- boolean this_present_path = true && (this.path != null);
- boolean that_present_path = true && (that.path != null);
- if (this_present_path || that_present_path) {
- if (!(this_present_path && that_present_path))
- return false;
- if (!this.path.equals(that.path))
- return false;
- }
- boolean this_present_replication = true;
- boolean that_present_replication = true;
- if (this_present_replication || that_present_replication) {
- if (!(this_present_replication && that_present_replication))
- return false;
- if (this.replication != that.replication)
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 1:
- if (field.type == TType.STRUCT) {
- this.path = new Pathname();
- this.path.read(iprot);
- this.__isset.path = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 2:
- if (field.type == TType.I16) {
- this.replication = iprot.readI16();
- this.__isset.replication = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("setReplication_args");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.path != null) {
- field.name = "path";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.path.write(oprot);
- oprot.writeFieldEnd();
- }
- field.name = "replication";
- field.type = TType.I16;
- field.id = 2;
- oprot.writeFieldBegin(field);
- oprot.writeI16(this.replication);
- oprot.writeFieldEnd();
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("setReplication_args(");
- sb.append("path:");
- sb.append(this.path);
- sb.append(",replication:");
- sb.append(this.replication);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class setReplication_result implements TBase, java.io.Serializable {
- public ThriftIOException ouch;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean ouch = false;
- }
- public setReplication_result() {
- }
- public setReplication_result(
- ThriftIOException ouch)
- {
- this();
- this.ouch = ouch;
- this.__isset.ouch = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof setReplication_result)
- return this.equals((setReplication_result)that);
- return false;
- }
- public boolean equals(setReplication_result that) {
- if (that == null)
- return false;
- boolean this_present_ouch = true && (this.ouch != null);
- boolean that_present_ouch = true && (that.ouch != null);
- if (this_present_ouch || that_present_ouch) {
- if (!(this_present_ouch && that_present_ouch))
- return false;
- if (!this.ouch.equals(that.ouch))
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 1:
- if (field.type == TType.STRUCT) {
- this.ouch = new ThriftIOException();
- this.ouch.read(iprot);
- this.__isset.ouch = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("setReplication_result");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.__isset.ouch) {
- if (this.ouch != null) {
- field.name = "ouch";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.ouch.write(oprot);
- oprot.writeFieldEnd();
- }
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("setReplication_result(");
- sb.append("ouch:");
- sb.append(this.ouch);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class getFileBlockLocations_args implements TBase, java.io.Serializable {
- public Pathname path;
- public long start;
- public long length;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean path = false;
- public boolean start = false;
- public boolean length = false;
- }
- public getFileBlockLocations_args() {
- }
- public getFileBlockLocations_args(
- Pathname path,
- long start,
- long length)
- {
- this();
- this.path = path;
- this.__isset.path = true;
- this.start = start;
- this.__isset.start = true;
- this.length = length;
- this.__isset.length = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof getFileBlockLocations_args)
- return this.equals((getFileBlockLocations_args)that);
- return false;
- }
- public boolean equals(getFileBlockLocations_args that) {
- if (that == null)
- return false;
- boolean this_present_path = true && (this.path != null);
- boolean that_present_path = true && (that.path != null);
- if (this_present_path || that_present_path) {
- if (!(this_present_path && that_present_path))
- return false;
- if (!this.path.equals(that.path))
- return false;
- }
- boolean this_present_start = true;
- boolean that_present_start = true;
- if (this_present_start || that_present_start) {
- if (!(this_present_start && that_present_start))
- return false;
- if (this.start != that.start)
- return false;
- }
- boolean this_present_length = true;
- boolean that_present_length = true;
- if (this_present_length || that_present_length) {
- if (!(this_present_length && that_present_length))
- return false;
- if (this.length != that.length)
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 1:
- if (field.type == TType.STRUCT) {
- this.path = new Pathname();
- this.path.read(iprot);
- this.__isset.path = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 2:
- if (field.type == TType.I64) {
- this.start = iprot.readI64();
- this.__isset.start = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 3:
- if (field.type == TType.I64) {
- this.length = iprot.readI64();
- this.__isset.length = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("getFileBlockLocations_args");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.path != null) {
- field.name = "path";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.path.write(oprot);
- oprot.writeFieldEnd();
- }
- field.name = "start";
- field.type = TType.I64;
- field.id = 2;
- oprot.writeFieldBegin(field);
- oprot.writeI64(this.start);
- oprot.writeFieldEnd();
- field.name = "length";
- field.type = TType.I64;
- field.id = 3;
- oprot.writeFieldBegin(field);
- oprot.writeI64(this.length);
- oprot.writeFieldEnd();
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("getFileBlockLocations_args(");
- sb.append("path:");
- sb.append(this.path);
- sb.append(",start:");
- sb.append(this.start);
- sb.append(",length:");
- sb.append(this.length);
- sb.append(")");
- return sb.toString();
- }
- }
- public static class getFileBlockLocations_result implements TBase, java.io.Serializable {
- public List<BlockLocation> success;
- public ThriftIOException ouch;
- public final Isset __isset = new Isset();
- public static final class Isset implements java.io.Serializable {
- public boolean success = false;
- public boolean ouch = false;
- }
- public getFileBlockLocations_result() {
- }
- public getFileBlockLocations_result(
- List<BlockLocation> success,
- ThriftIOException ouch)
- {
- this();
- this.success = success;
- this.__isset.success = true;
- this.ouch = ouch;
- this.__isset.ouch = true;
- }
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof getFileBlockLocations_result)
- return this.equals((getFileBlockLocations_result)that);
- return false;
- }
- public boolean equals(getFileBlockLocations_result that) {
- if (that == null)
- return false;
- boolean this_present_success = true && (this.success != null);
- boolean that_present_success = true && (that.success != null);
- if (this_present_success || that_present_success) {
- if (!(this_present_success && that_present_success))
- return false;
- if (!this.success.equals(that.success))
- return false;
- }
- boolean this_present_ouch = true && (this.ouch != null);
- boolean that_present_ouch = true && (that.ouch != null);
- if (this_present_ouch || that_present_ouch) {
- if (!(this_present_ouch && that_present_ouch))
- return false;
- if (!this.ouch.equals(that.ouch))
- return false;
- }
- return true;
- }
- public int hashCode() {
- return 0;
- }
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 0:
- if (field.type == TType.LIST) {
- {
- TList _list12 = iprot.readListBegin();
- this.success = new ArrayList<BlockLocation>(_list12.size);
- for (int _i13 = 0; _i13 < _list12.size; ++_i13)
- {
- BlockLocation _elem14 = new BlockLocation();
- _elem14 = new BlockLocation();
- _elem14.read(iprot);
- this.success.add(_elem14);
- }
- iprot.readListEnd();
- }
- this.__isset.success = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 1:
- if (field.type == TType.STRUCT) {
- this.ouch = new ThriftIOException();
- this.ouch.read(iprot);
- this.__isset.ouch = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("getFileBlockLocations_result");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.__isset.success) {
- if (this.success != null) {
- field.name = "success";
- field.type = TType.LIST;
- field.id = 0;
- oprot.writeFieldBegin(field);
- {
- oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
- for (BlockLocation _iter15 : this.success) {
- _iter15.write(oprot);
- }
- oprot.writeListEnd();
- }
- oprot.writeFieldEnd();
- }
- } else if (this.__isset.ouch) {
- if (this.ouch != null) {
- field.name = "ouch";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.ouch.write(oprot);
- oprot.writeFieldEnd();
- }
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
- public String toString() {
- StringBuilder sb = new StringBuilder("getFileBlockLocations_result(");
- sb.append("success:");
- sb.append(this.success);
- sb.append(",ouch:");
- sb.append(this.ouch);
- sb.append(")");
- return sb.toString();
- }
- }
- }