@Override public int compareTo(FSError other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(other.isSetErrorCode()); if (lastComparison != 0) { return lastComparison; } if (isSetErrorCode()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, other.errorCode); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetErrorMsg()).compareTo(other.isSetErrorMsg()); if (lastComparison != 0) { return lastComparison; } if (isSetErrorMsg()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorMsg, other.errorMsg); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public int compareTo(FileHandle other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); if (lastComparison != 0) { return lastComparison; } if (isSetId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetFlags()).compareTo(other.isSetFlags()); if (lastComparison != 0) { return lastComparison; } if (isSetFlags()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.flags, other.flags); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPartition()).compareTo(other.isSetPartition()); if (lastComparison != 0) { return lastComparison; } if (isSetPartition()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partition, other.partition); if (lastComparison != 0) { return lastComparison; } } return 0; }
public int compareTo(AuthenticationException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; AuthenticationException typedOther = (AuthenticationException) other; lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } } return 0; }
public int compareTo(ThriftDifferentStreamDefinitionAlreadyDefinedException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; ThriftDifferentStreamDefinitionAlreadyDefinedException typedOther = (ThriftDifferentStreamDefinitionAlreadyDefinedException) other; lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public int compareTo(Attr other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetInode()).compareTo(other.isSetInode()); if (lastComparison != 0) { return lastComparison; } if (isSetInode()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inode, other.inode); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetMode()).compareTo(other.isSetMode()); if (lastComparison != 0) { return lastComparison; } if (isSetMode()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mode, other.mode); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetNlink()).compareTo(other.isSetNlink()); if (lastComparison != 0) { return lastComparison; } if (isSetNlink()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nlink, other.nlink); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetUid()).compareTo(other.isSetUid()); if (lastComparison != 0) { return lastComparison; } if (isSetUid()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uid, other.uid); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetGid()).compareTo(other.isSetGid()); if (lastComparison != 0) { return lastComparison; } if (isSetGid()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gid, other.gid); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRdev()).compareTo(other.isSetRdev()); if (lastComparison != 0) { return lastComparison; } if (isSetRdev()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rdev, other.rdev); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetAtime()).compareTo(other.isSetAtime()); if (lastComparison != 0) { return lastComparison; } if (isSetAtime()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.atime, other.atime); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetMtime()).compareTo(other.isSetMtime()); if (lastComparison != 0) { return lastComparison; } if (isSetMtime()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mtime, other.mtime); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCtime()).compareTo(other.isSetCtime()); if (lastComparison != 0) { return lastComparison; } if (isSetCtime()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ctime, other.ctime); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetSize()).compareTo(other.isSetSize()); if (lastComparison != 0) { return lastComparison; } if (isSetSize()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.size, other.size); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetBlocks()).compareTo(other.isSetBlocks()); if (lastComparison != 0) { return lastComparison; } if (isSetBlocks()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.blocks, other.blocks); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public int compareTo(MkdirCmd other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetPath()).compareTo(other.isSetPath()); if (lastComparison != 0) { return lastComparison; } if (isSetPath()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, other.path); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetMode()).compareTo(other.isSetMode()); if (lastComparison != 0) { return lastComparison; } if (isSetMode()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mode, other.mode); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetUid()).compareTo(other.isSetUid()); if (lastComparison != 0) { return lastComparison; } if (isSetUid()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uid, other.uid); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetGid()).compareTo(other.isSetGid()); if (lastComparison != 0) { return lastComparison; } if (isSetGid()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gid, other.gid); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetParentPartition()).compareTo(other.isSetParentPartition()); if (lastComparison != 0) { return lastComparison; } if (isSetParentPartition()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parentPartition, other.parentPartition); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPartition()).compareTo(other.isSetPartition()); if (lastComparison != 0) { return lastComparison; } if (isSetPartition()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partition, other.partition); if (lastComparison != 0) { return lastComparison; } } return 0; }