/**
* Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package tachyon.thrift;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
import org.apache.thrift.scheme.TupleScheme;
import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.EnumMap;
import java.util.Set;
import java.util.HashSet;
import java.util.EnumSet;
import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class MasterService {
public interface Iface {
public boolean addCheckpoint(long workerId, int fileId, long length, String checkpointPath) throws FileDoesNotExistException, SuspectedFileSizeException, BlockInfoException, org.apache.thrift.TException;
public List<ClientWorkerInfo> getWorkersInfo() throws org.apache.thrift.TException;
public List<ClientFileInfo> liststatus(String path) throws InvalidPathException, FileDoesNotExistException, org.apache.thrift.TException;
/**
* Worker register.
* @return value rv % 100,000 is really workerId, rv / 1000,000 is master started time.
*
* @param workerNetAddress
* @param totalBytes
* @param usedBytes
* @param currentBlocks
*/
public long worker_register(NetAddress workerNetAddress, long totalBytes, long usedBytes, List<Long> currentBlocks) throws BlockInfoException, org.apache.thrift.TException;
public Command worker_heartbeat(long workerId, long usedBytes, List<Long> removedBlocks) throws BlockInfoException, org.apache.thrift.TException;
public void worker_cacheBlock(long workerId, long workerUsedBytes, long blockId, long length) throws FileDoesNotExistException, SuspectedFileSizeException, BlockInfoException, org.apache.thrift.TException;
public Set<Integer> worker_getPinIdList() throws org.apache.thrift.TException;
public List<Integer> worker_getPriorityDependencyList() throws org.apache.thrift.TException;
public int user_createDependency(List<String> parents, List<String> children, String commandPrefix, List<ByteBuffer> data, String comment, String framework, String frameworkVersion, int dependencyType, long childrenBlockSizeByte) throws InvalidPathException, FileDoesNotExistException, FileAlreadyExistException, BlockInfoException, TachyonException, org.apache.thrift.TException;
public ClientDependencyInfo user_getClientDependencyInfo(int dependencyId) throws DependencyDoesNotExistException, org.apache.thrift.TException;
public void user_reportLostFile(int fileId) throws FileDoesNotExistException, org.apache.thrift.TException;
public void user_requestFilesInDependency(int depId) throws DependencyDoesNotExistException, org.apache.thrift.TException;
public int user_createFile(String path, long blockSizeByte) throws FileAlreadyExistException, InvalidPathException, BlockInfoException, TachyonException, org.apache.thrift.TException;
public int user_createFileOnCheckpoint(String path, String checkpointPath) throws FileAlreadyExistException, InvalidPathException, SuspectedFileSizeException, BlockInfoException, TachyonException, org.apache.thrift.TException;
public long user_createNewBlock(int fileId) throws FileDoesNotExistException, org.apache.thrift.TException;
public void user_completeFile(int fileId) throws FileDoesNotExistException, org.apache.thrift.TException;
/**
* Return -1 if does not contain the file, return fileId if it exists.
*
* @param path
*/
public int user_getFileId(String path) throws InvalidPathException, org.apache.thrift.TException;
public long user_getUserId() throws org.apache.thrift.TException;
public long user_getBlockId(int fileId, int index) throws FileDoesNotExistException, org.apache.thrift.TException;
/**
* Get local worker NetAddress
*
* @param random
* @param host
*/
public NetAddress user_getWorker(boolean random, String host) throws NoWorkerException, org.apache.thrift.TException;
public ClientFileInfo getClientFileInfoById(int fileId) throws FileDoesNotExistException, org.apache.thrift.TException;
public ClientFileInfo user_getClientFileInfoByPath(String path) throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException;
/**
* Get block's ClientBlockInfo.
*
* @param blockId
*/
public ClientBlockInfo user_getClientBlockInfo(long blockId) throws FileDoesNotExistException, BlockInfoException, org.apache.thrift.TException;
/**
* Get file locations by file Id.
*
* @param fileId
*/
public List<ClientBlockInfo> user_getFileBlocksById(int fileId) throws FileDoesNotExistException, org.apache.thrift.TException;
/**
* Get file locations by path
*
* @param path
*/
public List<ClientBlockInfo> user_getFileBlocksByPath(String path) throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException;
public List<Integer> user_listFiles(String path, boolean recursive) throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException;
public List<String> user_ls(String path, boolean recursive) throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException;
public boolean user_deleteById(int fileId, boolean recursive) throws TachyonException, org.apache.thrift.TException;
public boolean user_deleteByPath(String path, boolean recursive) throws TachyonException, org.apache.thrift.TException;
public void user_outOfMemoryForPinFile(int fileId) throws org.apache.thrift.TException;
public boolean user_rename(String srcPath, String dstPath) throws FileAlreadyExistException, FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException;
public void user_renameTo(int fileId, String dstPath) throws FileAlreadyExistException, FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException;
public void user_setPinned(int fileId, boolean pinned) throws FileDoesNotExistException, org.apache.thrift.TException;
public boolean user_mkdir(String path) throws FileAlreadyExistException, InvalidPathException, TachyonException, org.apache.thrift.TException;
public int user_createRawTable(String path, int columns, ByteBuffer metadata) throws FileAlreadyExistException, InvalidPathException, TableColumnException, TachyonException, org.apache.thrift.TException;
/**
* Return 0 if does not contain the Table, return fileId if it exists.
*
* @param path
*/
public int user_getRawTableId(String path) throws InvalidPathException, org.apache.thrift.TException;
/**
* Get Table info by Table Id.
*
* @param tableId
*/
public ClientRawTableInfo user_getClientRawTableInfoById(int tableId) throws TableDoesNotExistException, org.apache.thrift.TException;
/**
* Get Table info by path
*
* @param tablePath
*/
public ClientRawTableInfo user_getClientRawTableInfoByPath(String tablePath) throws TableDoesNotExistException, InvalidPathException, org.apache.thrift.TException;
public void user_updateRawTableMetadata(int tableId, ByteBuffer metadata) throws TableDoesNotExistException, TachyonException, org.apache.thrift.TException;
public int user_getNumberOfFiles(String path) throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException;
public String user_getUnderfsAddress() throws org.apache.thrift.TException;
}
public interface AsyncIface {
public void addCheckpoint(long workerId, int fileId, long length, String checkpointPath, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addCheckpoint_call> resultHandler) throws org.apache.thrift.TException;
public void getWorkersInfo(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWorkersInfo_call> resultHandler) throws org.apache.thrift.TException;
public void liststatus(String path, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.liststatus_call> resultHandler) throws org.apache.thrift.TException;
public void worker_register(NetAddress workerNetAddress, long totalBytes, long usedBytes, List<Long> currentBlocks, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.worker_register_call> resultHandler) throws org.apache.thrift.TException;
public void worker_heartbeat(long workerId, long usedBytes, List<Long> removedBlocks, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.worker_heartbeat_call> resultHandler) throws org.apache.thrift.TException;
public void worker_cacheBlock(long workerId, long workerUsedBytes, long blockId, long length, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.worker_cacheBlock_call> resultHandler) throws org.apache.thrift.TException;
public void worker_getPinIdList(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.worker_getPinIdList_call> resultHandler) throws org.apache.thrift.TException;
public void worker_getPriorityDependencyList(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.worker_getPriorityDependencyList_call> resultHandler) throws org.apache.thrift.TException;
public void user_createDependency(List<String> parents, List<String> children, String commandPrefix, List<ByteBuffer> data, String comment, String framework, String frameworkVersion, int dependencyType, long childrenBlockSizeByte, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_createDependency_call> resultHandler) throws org.apache.thrift.TException;
public void user_getClientDependencyInfo(int dependencyId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_getClientDependencyInfo_call> resultHandler) throws org.apache.thrift.TException;
public void user_reportLostFile(int fileId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_reportLostFile_call> resultHandler) throws org.apache.thrift.TException;
public void user_requestFilesInDependency(int depId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_requestFilesInDependency_call> resultHandler) throws org.apache.thrift.TException;
public void user_createFile(String path, long blockSizeByte, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_createFile_call> resultHandler) throws org.apache.thrift.TException;
public void user_createFileOnCheckpoint(String path, String checkpointPath, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_createFileOnCheckpoint_call> resultHandler) throws org.apache.thrift.TException;
public void user_createNewBlock(int fileId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_createNewBlock_call> resultHandler) throws org.apache.thrift.TException;
public void user_completeFile(int fileId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_completeFile_call> resultHandler) throws org.apache.thrift.TException;
public void user_getFileId(String path, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_getFileId_call> resultHandler) throws org.apache.thrift.TException;
public void user_getUserId(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_getUserId_call> resultHandler) throws org.apache.thrift.TException;
public void user_getBlockId(int fileId, int index, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_getBlockId_call> resultHandler) throws org.apache.thrift.TException;
public void user_getWorker(boolean random, String host, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_getWorker_call> resultHandler) throws org.apache.thrift.TException;
public void getClientFileInfoById(int fileId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getClientFileInfoById_call> resultHandler) throws org.apache.thrift.TException;
public void user_getClientFileInfoByPath(String path, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_getClientFileInfoByPath_call> resultHandler) throws org.apache.thrift.TException;
public void user_getClientBlockInfo(long blockId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_getClientBlockInfo_call> resultHandler) throws org.apache.thrift.TException;
public void user_getFileBlocksById(int fileId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_getFileBlocksById_call> resultHandler) throws org.apache.thrift.TException;
public void user_getFileBlocksByPath(String path, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_getFileBlocksByPath_call> resultHandler) throws org.apache.thrift.TException;
public void user_listFiles(String path, boolean recursive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_listFiles_call> resultHandler) throws org.apache.thrift.TException;
public void user_ls(String path, boolean recursive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_ls_call> resultHandler) throws org.apache.thrift.TException;
public void user_deleteById(int fileId, boolean recursive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_deleteById_call> resultHandler) throws org.apache.thrift.TException;
public void user_deleteByPath(String path, boolean recursive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_deleteByPath_call> resultHandler) throws org.apache.thrift.TException;
public void user_outOfMemoryForPinFile(int fileId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_outOfMemoryForPinFile_call> resultHandler) throws org.apache.thrift.TException;
public void user_rename(String srcPath, String dstPath, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_rename_call> resultHandler) throws org.apache.thrift.TException;
public void user_renameTo(int fileId, String dstPath, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_renameTo_call> resultHandler) throws org.apache.thrift.TException;
public void user_setPinned(int fileId, boolean pinned, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_setPinned_call> resultHandler) throws org.apache.thrift.TException;
public void user_mkdir(String path, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_mkdir_call> resultHandler) throws org.apache.thrift.TException;
public void user_createRawTable(String path, int columns, ByteBuffer metadata, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_createRawTable_call> resultHandler) throws org.apache.thrift.TException;
public void user_getRawTableId(String path, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_getRawTableId_call> resultHandler) throws org.apache.thrift.TException;
public void user_getClientRawTableInfoById(int tableId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_getClientRawTableInfoById_call> resultHandler) throws org.apache.thrift.TException;
public void user_getClientRawTableInfoByPath(String tablePath, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_getClientRawTableInfoByPath_call> resultHandler) throws org.apache.thrift.TException;
public void user_updateRawTableMetadata(int tableId, ByteBuffer metadata, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_updateRawTableMetadata_call> resultHandler) throws org.apache.thrift.TException;
public void user_getNumberOfFiles(String path, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_getNumberOfFiles_call> resultHandler) throws org.apache.thrift.TException;
public void user_getUnderfsAddress(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.user_getUnderfsAddress_call> resultHandler) throws org.apache.thrift.TException;
}
public static class Client extends org.apache.thrift.TServiceClient implements Iface {
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
public Factory() {}
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
return new Client(prot);
}
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
return new Client(iprot, oprot);
}
}
public Client(org.apache.thrift.protocol.TProtocol prot)
{
super(prot, prot);
}
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
super(iprot, oprot);
}
public boolean addCheckpoint(long workerId, int fileId, long length, String checkpointPath) throws FileDoesNotExistException, SuspectedFileSizeException, BlockInfoException, org.apache.thrift.TException
{
send_addCheckpoint(workerId, fileId, length, checkpointPath);
return recv_addCheckpoint();
}
public void send_addCheckpoint(long workerId, int fileId, long length, String checkpointPath) throws org.apache.thrift.TException
{
addCheckpoint_args args = new addCheckpoint_args();
args.setWorkerId(workerId);
args.setFileId(fileId);
args.setLength(length);
args.setCheckpointPath(checkpointPath);
sendBase("addCheckpoint", args);
}
public boolean recv_addCheckpoint() throws FileDoesNotExistException, SuspectedFileSizeException, BlockInfoException, org.apache.thrift.TException
{
addCheckpoint_result result = new addCheckpoint_result();
receiveBase(result, "addCheckpoint");
if (result.isSetSuccess()) {
return result.success;
}
if (result.eP != null) {
throw result.eP;
}
if (result.eS != null) {
throw result.eS;
}
if (result.eB != null) {
throw result.eB;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addCheckpoint failed: unknown result");
}
public List<ClientWorkerInfo> getWorkersInfo() throws org.apache.thrift.TException
{
send_getWorkersInfo();
return recv_getWorkersInfo();
}
public void send_getWorkersInfo() throws org.apache.thrift.TException
{
getWorkersInfo_args args = new getWorkersInfo_args();
sendBase("getWorkersInfo", args);
}
public List<ClientWorkerInfo> recv_getWorkersInfo() throws org.apache.thrift.TException
{
getWorkersInfo_result result = new getWorkersInfo_result();
receiveBase(result, "getWorkersInfo");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWorkersInfo failed: unknown result");
}
public List<ClientFileInfo> liststatus(String path) throws InvalidPathException, FileDoesNotExistException, org.apache.thrift.TException
{
send_liststatus(path);
return recv_liststatus();
}
public void send_liststatus(String path) throws org.apache.thrift.TException
{
liststatus_args args = new liststatus_args();
args.setPath(path);
sendBase("liststatus", args);
}
public List<ClientFileInfo> recv_liststatus() throws InvalidPathException, FileDoesNotExistException, org.apache.thrift.TException
{
liststatus_result result = new liststatus_result();
receiveBase(result, "liststatus");
if (result.isSetSuccess()) {
return result.success;
}
if (result.eI != null) {
throw result.eI;
}
if (result.eF != null) {
throw result.eF;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "liststatus failed: unknown result");
}
public long worker_register(NetAddress workerNetAddress, long totalBytes, long usedBytes, List<Long> currentBlocks) throws BlockInfoException, org.apache.thrift.TException
{
send_worker_register(workerNetAddress, totalBytes, usedBytes, currentBlocks);
return recv_worker_register();
}
public void send_worker_register(NetAddress workerNetAddress, long totalBytes, long usedBytes, List<Long> currentBlocks) throws org.apache.thrift.TException
{
worker_register_args args = new worker_register_args();
args.setWorkerNetAddress(workerNetAddress);
args.setTotalBytes(totalBytes);
args.setUsedBytes(usedBytes);
args.setCurrentBlocks(currentBlocks);
sendBase("worker_register", args);
}
public long recv_worker_register() throws BlockInfoException, org.apache.thrift.TException
{
worker_register_result result = new worker_register_result();
receiveBase(result, "worker_register");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "worker_register failed: unknown result");
}
public Command worker_heartbeat(long workerId, long usedBytes, List<Long> removedBlocks) throws BlockInfoException, org.apache.thrift.TException
{
send_worker_heartbeat(workerId, usedBytes, removedBlocks);
return recv_worker_heartbeat();
}
public void send_worker_heartbeat(long workerId, long usedBytes, List<Long> removedBlocks) throws org.apache.thrift.TException
{
worker_heartbeat_args args = new worker_heartbeat_args();
args.setWorkerId(workerId);
args.setUsedBytes(usedBytes);
args.setRemovedBlocks(removedBlocks);
sendBase("worker_heartbeat", args);
}
public Command recv_worker_heartbeat() throws BlockInfoException, org.apache.thrift.TException
{
worker_heartbeat_result result = new worker_heartbeat_result();
receiveBase(result, "worker_heartbeat");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "worker_heartbeat failed: unknown result");
}
public void worker_cacheBlock(long workerId, long workerUsedBytes, long blockId, long length) throws FileDoesNotExistException, SuspectedFileSizeException, BlockInfoException, org.apache.thrift.TException
{
send_worker_cacheBlock(workerId, workerUsedBytes, blockId, length);
recv_worker_cacheBlock();
}
public void send_worker_cacheBlock(long workerId, long workerUsedBytes, long blockId, long length) throws org.apache.thrift.TException
{
worker_cacheBlock_args args = new worker_cacheBlock_args();
args.setWorkerId(workerId);
args.setWorkerUsedBytes(workerUsedBytes);
args.setBlockId(blockId);
args.setLength(length);
sendBase("worker_cacheBlock", args);
}
public void recv_worker_cacheBlock() throws FileDoesNotExistException, SuspectedFileSizeException, BlockInfoException, org.apache.thrift.TException
{
worker_cacheBlock_result result = new worker_cacheBlock_result();
receiveBase(result, "worker_cacheBlock");
if (result.eP != null) {
throw result.eP;
}
if (result.eS != null) {
throw result.eS;
}
if (result.eB != null) {
throw result.eB;
}
return;
}
public Set<Integer> worker_getPinIdList() throws org.apache.thrift.TException
{
send_worker_getPinIdList();
return recv_worker_getPinIdList();
}
public void send_worker_getPinIdList() throws org.apache.thrift.TException
{
worker_getPinIdList_args args = new worker_getPinIdList_args();
sendBase("worker_getPinIdList", args);
}
public Set<Integer> recv_worker_getPinIdList() throws org.apache.thrift.TException
{
worker_getPinIdList_result result = new worker_getPinIdList_result();
receiveBase(result, "worker_getPinIdList");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "worker_getPinIdList failed: unknown result");
}
public List<Integer> worker_getPriorityDependencyList() throws org.apache.thrift.TException
{
send_worker_getPriorityDependencyList();
return recv_worker_getPriorityDependencyList();
}
public void send_worker_getPriorityDependencyList() throws org.apache.thrift.TException
{
worker_getPriorityDependencyList_args args = new worker_getPriorityDependencyList_args();
sendBase("worker_getPriorityDependencyList", args);
}
public List<Integer> recv_worker_getPriorityDependencyList() throws org.apache.thrift.TException
{
worker_getPriorityDependencyList_result result = new worker_getPriorityDependencyList_result();
receiveBase(result, "worker_getPriorityDependencyList");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "worker_getPriorityDependencyList failed: unknown result");
}
public int user_createDependency(List<String> parents, List<String> children, String commandPrefix, List<ByteBuffer> data, String comment, String framework, String frameworkVersion, int dependencyType, long childrenBlockSizeByte) throws InvalidPathException, FileDoesNotExistException, FileAlreadyExistException, BlockInfoException, TachyonException, org.apache.thrift.TException
{
send_user_createDependency(parents, children, commandPrefix, data, comment, framework, frameworkVersion, dependencyType, childrenBlockSizeByte);
return recv_user_createDependency();
}
public void send_user_createDependency(List<String> parents, List<String> children, String commandPrefix, List<ByteBuffer> data, String comment, String framework, String frameworkVersion, int dependencyType, long childrenBlockSizeByte) throws org.apache.thrift.TException
{
user_createDependency_args args = new user_createDependency_args();
args.setParents(parents);
args.setChildren(children);
args.setCommandPrefix(commandPrefix);
args.setData(data);
args.setComment(comment);
args.setFramework(framework);
args.setFrameworkVersion(frameworkVersion);
args.setDependencyType(dependencyType);
args.setChildrenBlockSizeByte(childrenBlockSizeByte);
sendBase("user_createDependency", args);
}
public int recv_user_createDependency() throws InvalidPathException, FileDoesNotExistException, FileAlreadyExistException, BlockInfoException, TachyonException, org.apache.thrift.TException
{
user_createDependency_result result = new user_createDependency_result();
receiveBase(result, "user_createDependency");
if (result.isSetSuccess()) {
return result.success;
}
if (result.eI != null) {
throw result.eI;
}
if (result.eF != null) {
throw result.eF;
}
if (result.eA != null) {
throw result.eA;
}
if (result.eB != null) {
throw result.eB;
}
if (result.eT != null) {
throw result.eT;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_createDependency failed: unknown result");
}
public ClientDependencyInfo user_getClientDependencyInfo(int dependencyId) throws DependencyDoesNotExistException, org.apache.thrift.TException
{
send_user_getClientDependencyInfo(dependencyId);
return recv_user_getClientDependencyInfo();
}
public void send_user_getClientDependencyInfo(int dependencyId) throws org.apache.thrift.TException
{
user_getClientDependencyInfo_args args = new user_getClientDependencyInfo_args();
args.setDependencyId(dependencyId);
sendBase("user_getClientDependencyInfo", args);
}
public ClientDependencyInfo recv_user_getClientDependencyInfo() throws DependencyDoesNotExistException, org.apache.thrift.TException
{
user_getClientDependencyInfo_result result = new user_getClientDependencyInfo_result();
receiveBase(result, "user_getClientDependencyInfo");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_getClientDependencyInfo failed: unknown result");
}
public void user_reportLostFile(int fileId) throws FileDoesNotExistException, org.apache.thrift.TException
{
send_user_reportLostFile(fileId);
recv_user_reportLostFile();
}
public void send_user_reportLostFile(int fileId) throws org.apache.thrift.TException
{
user_reportLostFile_args args = new user_reportLostFile_args();
args.setFileId(fileId);
sendBase("user_reportLostFile", args);
}
public void recv_user_reportLostFile() throws FileDoesNotExistException, org.apache.thrift.TException
{
user_reportLostFile_result result = new user_reportLostFile_result();
receiveBase(result, "user_reportLostFile");
if (result.e != null) {
throw result.e;
}
return;
}
public void user_requestFilesInDependency(int depId) throws DependencyDoesNotExistException, org.apache.thrift.TException
{
send_user_requestFilesInDependency(depId);
recv_user_requestFilesInDependency();
}
public void send_user_requestFilesInDependency(int depId) throws org.apache.thrift.TException
{
user_requestFilesInDependency_args args = new user_requestFilesInDependency_args();
args.setDepId(depId);
sendBase("user_requestFilesInDependency", args);
}
public void recv_user_requestFilesInDependency() throws DependencyDoesNotExistException, org.apache.thrift.TException
{
user_requestFilesInDependency_result result = new user_requestFilesInDependency_result();
receiveBase(result, "user_requestFilesInDependency");
if (result.e != null) {
throw result.e;
}
return;
}
public int user_createFile(String path, long blockSizeByte) throws FileAlreadyExistException, InvalidPathException, BlockInfoException, TachyonException, org.apache.thrift.TException
{
send_user_createFile(path, blockSizeByte);
return recv_user_createFile();
}
public void send_user_createFile(String path, long blockSizeByte) throws org.apache.thrift.TException
{
user_createFile_args args = new user_createFile_args();
args.setPath(path);
args.setBlockSizeByte(blockSizeByte);
sendBase("user_createFile", args);
}
public int recv_user_createFile() throws FileAlreadyExistException, InvalidPathException, BlockInfoException, TachyonException, org.apache.thrift.TException
{
user_createFile_result result = new user_createFile_result();
receiveBase(result, "user_createFile");
if (result.isSetSuccess()) {
return result.success;
}
if (result.eR != null) {
throw result.eR;
}
if (result.eI != null) {
throw result.eI;
}
if (result.eB != null) {
throw result.eB;
}
if (result.eT != null) {
throw result.eT;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_createFile failed: unknown result");
}
public int user_createFileOnCheckpoint(String path, String checkpointPath) throws FileAlreadyExistException, InvalidPathException, SuspectedFileSizeException, BlockInfoException, TachyonException, org.apache.thrift.TException
{
send_user_createFileOnCheckpoint(path, checkpointPath);
return recv_user_createFileOnCheckpoint();
}
public void send_user_createFileOnCheckpoint(String path, String checkpointPath) throws org.apache.thrift.TException
{
user_createFileOnCheckpoint_args args = new user_createFileOnCheckpoint_args();
args.setPath(path);
args.setCheckpointPath(checkpointPath);
sendBase("user_createFileOnCheckpoint", args);
}
public int recv_user_createFileOnCheckpoint() throws FileAlreadyExistException, InvalidPathException, SuspectedFileSizeException, BlockInfoException, TachyonException, org.apache.thrift.TException
{
user_createFileOnCheckpoint_result result = new user_createFileOnCheckpoint_result();
receiveBase(result, "user_createFileOnCheckpoint");
if (result.isSetSuccess()) {
return result.success;
}
if (result.eR != null) {
throw result.eR;
}
if (result.eI != null) {
throw result.eI;
}
if (result.eS != null) {
throw result.eS;
}
if (result.eB != null) {
throw result.eB;
}
if (result.eT != null) {
throw result.eT;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_createFileOnCheckpoint failed: unknown result");
}
public long user_createNewBlock(int fileId) throws FileDoesNotExistException, org.apache.thrift.TException
{
send_user_createNewBlock(fileId);
return recv_user_createNewBlock();
}
public void send_user_createNewBlock(int fileId) throws org.apache.thrift.TException
{
user_createNewBlock_args args = new user_createNewBlock_args();
args.setFileId(fileId);
sendBase("user_createNewBlock", args);
}
public long recv_user_createNewBlock() throws FileDoesNotExistException, org.apache.thrift.TException
{
user_createNewBlock_result result = new user_createNewBlock_result();
receiveBase(result, "user_createNewBlock");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_createNewBlock failed: unknown result");
}
public void user_completeFile(int fileId) throws FileDoesNotExistException, org.apache.thrift.TException
{
send_user_completeFile(fileId);
recv_user_completeFile();
}
public void send_user_completeFile(int fileId) throws org.apache.thrift.TException
{
user_completeFile_args args = new user_completeFile_args();
args.setFileId(fileId);
sendBase("user_completeFile", args);
}
public void recv_user_completeFile() throws FileDoesNotExistException, org.apache.thrift.TException
{
user_completeFile_result result = new user_completeFile_result();
receiveBase(result, "user_completeFile");
if (result.e != null) {
throw result.e;
}
return;
}
public int user_getFileId(String path) throws InvalidPathException, org.apache.thrift.TException
{
send_user_getFileId(path);
return recv_user_getFileId();
}
public void send_user_getFileId(String path) throws org.apache.thrift.TException
{
user_getFileId_args args = new user_getFileId_args();
args.setPath(path);
sendBase("user_getFileId", args);
}
public int recv_user_getFileId() throws InvalidPathException, org.apache.thrift.TException
{
user_getFileId_result result = new user_getFileId_result();
receiveBase(result, "user_getFileId");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_getFileId failed: unknown result");
}
public long user_getUserId() throws org.apache.thrift.TException
{
send_user_getUserId();
return recv_user_getUserId();
}
public void send_user_getUserId() throws org.apache.thrift.TException
{
user_getUserId_args args = new user_getUserId_args();
sendBase("user_getUserId", args);
}
public long recv_user_getUserId() throws org.apache.thrift.TException
{
user_getUserId_result result = new user_getUserId_result();
receiveBase(result, "user_getUserId");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_getUserId failed: unknown result");
}
public long user_getBlockId(int fileId, int index) throws FileDoesNotExistException, org.apache.thrift.TException
{
send_user_getBlockId(fileId, index);
return recv_user_getBlockId();
}
public void send_user_getBlockId(int fileId, int index) throws org.apache.thrift.TException
{
user_getBlockId_args args = new user_getBlockId_args();
args.setFileId(fileId);
args.setIndex(index);
sendBase("user_getBlockId", args);
}
public long recv_user_getBlockId() throws FileDoesNotExistException, org.apache.thrift.TException
{
user_getBlockId_result result = new user_getBlockId_result();
receiveBase(result, "user_getBlockId");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_getBlockId failed: unknown result");
}
public NetAddress user_getWorker(boolean random, String host) throws NoWorkerException, org.apache.thrift.TException
{
send_user_getWorker(random, host);
return recv_user_getWorker();
}
public void send_user_getWorker(boolean random, String host) throws org.apache.thrift.TException
{
user_getWorker_args args = new user_getWorker_args();
args.setRandom(random);
args.setHost(host);
sendBase("user_getWorker", args);
}
public NetAddress recv_user_getWorker() throws NoWorkerException, org.apache.thrift.TException
{
user_getWorker_result result = new user_getWorker_result();
receiveBase(result, "user_getWorker");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_getWorker failed: unknown result");
}
public ClientFileInfo getClientFileInfoById(int fileId) throws FileDoesNotExistException, org.apache.thrift.TException
{
send_getClientFileInfoById(fileId);
return recv_getClientFileInfoById();
}
public void send_getClientFileInfoById(int fileId) throws org.apache.thrift.TException
{
getClientFileInfoById_args args = new getClientFileInfoById_args();
args.setFileId(fileId);
sendBase("getClientFileInfoById", args);
}
public ClientFileInfo recv_getClientFileInfoById() throws FileDoesNotExistException, org.apache.thrift.TException
{
getClientFileInfoById_result result = new getClientFileInfoById_result();
receiveBase(result, "getClientFileInfoById");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getClientFileInfoById failed: unknown result");
}
public ClientFileInfo user_getClientFileInfoByPath(String path) throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
{
send_user_getClientFileInfoByPath(path);
return recv_user_getClientFileInfoByPath();
}
public void send_user_getClientFileInfoByPath(String path) throws org.apache.thrift.TException
{
user_getClientFileInfoByPath_args args = new user_getClientFileInfoByPath_args();
args.setPath(path);
sendBase("user_getClientFileInfoByPath", args);
}
public ClientFileInfo recv_user_getClientFileInfoByPath() throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
{
user_getClientFileInfoByPath_result result = new user_getClientFileInfoByPath_result();
receiveBase(result, "user_getClientFileInfoByPath");
if (result.isSetSuccess()) {
return result.success;
}
if (result.eF != null) {
throw result.eF;
}
if (result.eI != null) {
throw result.eI;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_getClientFileInfoByPath failed: unknown result");
}
public ClientBlockInfo user_getClientBlockInfo(long blockId) throws FileDoesNotExistException, BlockInfoException, org.apache.thrift.TException
{
send_user_getClientBlockInfo(blockId);
return recv_user_getClientBlockInfo();
}
public void send_user_getClientBlockInfo(long blockId) throws org.apache.thrift.TException
{
user_getClientBlockInfo_args args = new user_getClientBlockInfo_args();
args.setBlockId(blockId);
sendBase("user_getClientBlockInfo", args);
}
public ClientBlockInfo recv_user_getClientBlockInfo() throws FileDoesNotExistException, BlockInfoException, org.apache.thrift.TException
{
user_getClientBlockInfo_result result = new user_getClientBlockInfo_result();
receiveBase(result, "user_getClientBlockInfo");
if (result.isSetSuccess()) {
return result.success;
}
if (result.eF != null) {
throw result.eF;
}
if (result.eB != null) {
throw result.eB;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_getClientBlockInfo failed: unknown result");
}
public List<ClientBlockInfo> user_getFileBlocksById(int fileId) throws FileDoesNotExistException, org.apache.thrift.TException
{
send_user_getFileBlocksById(fileId);
return recv_user_getFileBlocksById();
}
public void send_user_getFileBlocksById(int fileId) throws org.apache.thrift.TException
{
user_getFileBlocksById_args args = new user_getFileBlocksById_args();
args.setFileId(fileId);
sendBase("user_getFileBlocksById", args);
}
public List<ClientBlockInfo> recv_user_getFileBlocksById() throws FileDoesNotExistException, org.apache.thrift.TException
{
user_getFileBlocksById_result result = new user_getFileBlocksById_result();
receiveBase(result, "user_getFileBlocksById");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_getFileBlocksById failed: unknown result");
}
public List<ClientBlockInfo> user_getFileBlocksByPath(String path) throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
{
send_user_getFileBlocksByPath(path);
return recv_user_getFileBlocksByPath();
}
public void send_user_getFileBlocksByPath(String path) throws org.apache.thrift.TException
{
user_getFileBlocksByPath_args args = new user_getFileBlocksByPath_args();
args.setPath(path);
sendBase("user_getFileBlocksByPath", args);
}
public List<ClientBlockInfo> recv_user_getFileBlocksByPath() throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
{
user_getFileBlocksByPath_result result = new user_getFileBlocksByPath_result();
receiveBase(result, "user_getFileBlocksByPath");
if (result.isSetSuccess()) {
return result.success;
}
if (result.eF != null) {
throw result.eF;
}
if (result.eI != null) {
throw result.eI;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_getFileBlocksByPath failed: unknown result");
}
public List<Integer> user_listFiles(String path, boolean recursive) throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
{
send_user_listFiles(path, recursive);
return recv_user_listFiles();
}
public void send_user_listFiles(String path, boolean recursive) throws org.apache.thrift.TException
{
user_listFiles_args args = new user_listFiles_args();
args.setPath(path);
args.setRecursive(recursive);
sendBase("user_listFiles", args);
}
public List<Integer> recv_user_listFiles() throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
{
user_listFiles_result result = new user_listFiles_result();
receiveBase(result, "user_listFiles");
if (result.isSetSuccess()) {
return result.success;
}
if (result.eF != null) {
throw result.eF;
}
if (result.eI != null) {
throw result.eI;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_listFiles failed: unknown result");
}
public List<String> user_ls(String path, boolean recursive) throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
{
send_user_ls(path, recursive);
return recv_user_ls();
}
public void send_user_ls(String path, boolean recursive) throws org.apache.thrift.TException
{
user_ls_args args = new user_ls_args();
args.setPath(path);
args.setRecursive(recursive);
sendBase("user_ls", args);
}
public List<String> recv_user_ls() throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
{
user_ls_result result = new user_ls_result();
receiveBase(result, "user_ls");
if (result.isSetSuccess()) {
return result.success;
}
if (result.eF != null) {
throw result.eF;
}
if (result.eI != null) {
throw result.eI;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_ls failed: unknown result");
}
public boolean user_deleteById(int fileId, boolean recursive) throws TachyonException, org.apache.thrift.TException
{
send_user_deleteById(fileId, recursive);
return recv_user_deleteById();
}
public void send_user_deleteById(int fileId, boolean recursive) throws org.apache.thrift.TException
{
user_deleteById_args args = new user_deleteById_args();
args.setFileId(fileId);
args.setRecursive(recursive);
sendBase("user_deleteById", args);
}
public boolean recv_user_deleteById() throws TachyonException, org.apache.thrift.TException
{
user_deleteById_result result = new user_deleteById_result();
receiveBase(result, "user_deleteById");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_deleteById failed: unknown result");
}
public boolean user_deleteByPath(String path, boolean recursive) throws TachyonException, org.apache.thrift.TException
{
send_user_deleteByPath(path, recursive);
return recv_user_deleteByPath();
}
public void send_user_deleteByPath(String path, boolean recursive) throws org.apache.thrift.TException
{
user_deleteByPath_args args = new user_deleteByPath_args();
args.setPath(path);
args.setRecursive(recursive);
sendBase("user_deleteByPath", args);
}
public boolean recv_user_deleteByPath() throws TachyonException, org.apache.thrift.TException
{
user_deleteByPath_result result = new user_deleteByPath_result();
receiveBase(result, "user_deleteByPath");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_deleteByPath failed: unknown result");
}
public void user_outOfMemoryForPinFile(int fileId) throws org.apache.thrift.TException
{
send_user_outOfMemoryForPinFile(fileId);
recv_user_outOfMemoryForPinFile();
}
public void send_user_outOfMemoryForPinFile(int fileId) throws org.apache.thrift.TException
{
user_outOfMemoryForPinFile_args args = new user_outOfMemoryForPinFile_args();
args.setFileId(fileId);
sendBase("user_outOfMemoryForPinFile", args);
}
public void recv_user_outOfMemoryForPinFile() throws org.apache.thrift.TException
{
user_outOfMemoryForPinFile_result result = new user_outOfMemoryForPinFile_result();
receiveBase(result, "user_outOfMemoryForPinFile");
return;
}
public boolean user_rename(String srcPath, String dstPath) throws FileAlreadyExistException, FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
{
send_user_rename(srcPath, dstPath);
return recv_user_rename();
}
public void send_user_rename(String srcPath, String dstPath) throws org.apache.thrift.TException
{
user_rename_args args = new user_rename_args();
args.setSrcPath(srcPath);
args.setDstPath(dstPath);
sendBase("user_rename", args);
}
public boolean recv_user_rename() throws FileAlreadyExistException, FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
{
user_rename_result result = new user_rename_result();
receiveBase(result, "user_rename");
if (result.isSetSuccess()) {
return result.success;
}
if (result.eA != null) {
throw result.eA;
}
if (result.eF != null) {
throw result.eF;
}
if (result.eI != null) {
throw result.eI;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_rename failed: unknown result");
}
public void user_renameTo(int fileId, String dstPath) throws FileAlreadyExistException, FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
{
send_user_renameTo(fileId, dstPath);
recv_user_renameTo();
}
public void send_user_renameTo(int fileId, String dstPath) throws org.apache.thrift.TException
{
user_renameTo_args args = new user_renameTo_args();
args.setFileId(fileId);
args.setDstPath(dstPath);
sendBase("user_renameTo", args);
}
public void recv_user_renameTo() throws FileAlreadyExistException, FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
{
user_renameTo_result result = new user_renameTo_result();
receiveBase(result, "user_renameTo");
if (result.eA != null) {
throw result.eA;
}
if (result.eF != null) {
throw result.eF;
}
if (result.eI != null) {
throw result.eI;
}
return;
}
public void user_setPinned(int fileId, boolean pinned) throws FileDoesNotExistException, org.apache.thrift.TException
{
send_user_setPinned(fileId, pinned);
recv_user_setPinned();
}
public void send_user_setPinned(int fileId, boolean pinned) throws org.apache.thrift.TException
{
user_setPinned_args args = new user_setPinned_args();
args.setFileId(fileId);
args.setPinned(pinned);
sendBase("user_setPinned", args);
}
public void recv_user_setPinned() throws FileDoesNotExistException, org.apache.thrift.TException
{
user_setPinned_result result = new user_setPinned_result();
receiveBase(result, "user_setPinned");
if (result.e != null) {
throw result.e;
}
return;
}
public boolean user_mkdir(String path) throws FileAlreadyExistException, InvalidPathException, TachyonException, org.apache.thrift.TException
{
send_user_mkdir(path);
return recv_user_mkdir();
}
public void send_user_mkdir(String path) throws org.apache.thrift.TException
{
user_mkdir_args args = new user_mkdir_args();
args.setPath(path);
sendBase("user_mkdir", args);
}
public boolean recv_user_mkdir() throws FileAlreadyExistException, InvalidPathException, TachyonException, org.apache.thrift.TException
{
user_mkdir_result result = new user_mkdir_result();
receiveBase(result, "user_mkdir");
if (result.isSetSuccess()) {
return result.success;
}
if (result.eR != null) {
throw result.eR;
}
if (result.eI != null) {
throw result.eI;
}
if (result.eT != null) {
throw result.eT;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_mkdir failed: unknown result");
}
public int user_createRawTable(String path, int columns, ByteBuffer metadata) throws FileAlreadyExistException, InvalidPathException, TableColumnException, TachyonException, org.apache.thrift.TException
{
send_user_createRawTable(path, columns, metadata);
return recv_user_createRawTable();
}
public void send_user_createRawTable(String path, int columns, ByteBuffer metadata) throws org.apache.thrift.TException
{
user_createRawTable_args args = new user_createRawTable_args();
args.setPath(path);
args.setColumns(columns);
args.setMetadata(metadata);
sendBase("user_createRawTable", args);
}
public int recv_user_createRawTable() throws FileAlreadyExistException, InvalidPathException, TableColumnException, TachyonException, org.apache.thrift.TException
{
user_createRawTable_result result = new user_createRawTable_result();
receiveBase(result, "user_createRawTable");
if (result.isSetSuccess()) {
return result.success;
}
if (result.eR != null) {
throw result.eR;
}
if (result.eI != null) {
throw result.eI;
}
if (result.eT != null) {
throw result.eT;
}
if (result.eTa != null) {
throw result.eTa;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_createRawTable failed: unknown result");
}
public int user_getRawTableId(String path) throws InvalidPathException, org.apache.thrift.TException
{
send_user_getRawTableId(path);
return recv_user_getRawTableId();
}
public void send_user_getRawTableId(String path) throws org.apache.thrift.TException
{
user_getRawTableId_args args = new user_getRawTableId_args();
args.setPath(path);
sendBase("user_getRawTableId", args);
}
public int recv_user_getRawTableId() throws InvalidPathException, org.apache.thrift.TException
{
user_getRawTableId_result result = new user_getRawTableId_result();
receiveBase(result, "user_getRawTableId");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_getRawTableId failed: unknown result");
}
public ClientRawTableInfo user_getClientRawTableInfoById(int tableId) throws TableDoesNotExistException, org.apache.thrift.TException
{
send_user_getClientRawTableInfoById(tableId);
return recv_user_getClientRawTableInfoById();
}
public void send_user_getClientRawTableInfoById(int tableId) throws org.apache.thrift.TException
{
user_getClientRawTableInfoById_args args = new user_getClientRawTableInfoById_args();
args.setTableId(tableId);
sendBase("user_getClientRawTableInfoById", args);
}
public ClientRawTableInfo recv_user_getClientRawTableInfoById() throws TableDoesNotExistException, org.apache.thrift.TException
{
user_getClientRawTableInfoById_result result = new user_getClientRawTableInfoById_result();
receiveBase(result, "user_getClientRawTableInfoById");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_getClientRawTableInfoById failed: unknown result");
}
public ClientRawTableInfo user_getClientRawTableInfoByPath(String tablePath) throws TableDoesNotExistException, InvalidPathException, org.apache.thrift.TException
{
send_user_getClientRawTableInfoByPath(tablePath);
return recv_user_getClientRawTableInfoByPath();
}
public void send_user_getClientRawTableInfoByPath(String tablePath) throws org.apache.thrift.TException
{
user_getClientRawTableInfoByPath_args args = new user_getClientRawTableInfoByPath_args();
args.setTablePath(tablePath);
sendBase("user_getClientRawTableInfoByPath", args);
}
public ClientRawTableInfo recv_user_getClientRawTableInfoByPath() throws TableDoesNotExistException, InvalidPathException, org.apache.thrift.TException
{
user_getClientRawTableInfoByPath_result result = new user_getClientRawTableInfoByPath_result();
receiveBase(result, "user_getClientRawTableInfoByPath");
if (result.isSetSuccess()) {
return result.success;
}
if (result.eT != null) {
throw result.eT;
}
if (result.eI != null) {
throw result.eI;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_getClientRawTableInfoByPath failed: unknown result");
}
public void user_updateRawTableMetadata(int tableId, ByteBuffer metadata) throws TableDoesNotExistException, TachyonException, org.apache.thrift.TException
{
send_user_updateRawTableMetadata(tableId, metadata);
recv_user_updateRawTableMetadata();
}
public void send_user_updateRawTableMetadata(int tableId, ByteBuffer metadata) throws org.apache.thrift.TException
{
user_updateRawTableMetadata_args args = new user_updateRawTableMetadata_args();
args.setTableId(tableId);
args.setMetadata(metadata);
sendBase("user_updateRawTableMetadata", args);
}
public void recv_user_updateRawTableMetadata() throws TableDoesNotExistException, TachyonException, org.apache.thrift.TException
{
user_updateRawTableMetadata_result result = new user_updateRawTableMetadata_result();
receiveBase(result, "user_updateRawTableMetadata");
if (result.eT != null) {
throw result.eT;
}
if (result.eTa != null) {
throw result.eTa;
}
return;
}
public int user_getNumberOfFiles(String path) throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
{
send_user_getNumberOfFiles(path);
return recv_user_getNumberOfFiles();
}
public void send_user_getNumberOfFiles(String path) throws org.apache.thrift.TException
{
user_getNumberOfFiles_args args = new user_getNumberOfFiles_args();
args.setPath(path);
sendBase("user_getNumberOfFiles", args);
}
public int recv_user_getNumberOfFiles() throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
{
user_getNumberOfFiles_result result = new user_getNumberOfFiles_result();
receiveBase(result, "user_getNumberOfFiles");
if (result.isSetSuccess()) {
return result.success;
}
if (result.eR != null) {
throw result.eR;
}
if (result.eI != null) {
throw result.eI;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_getNumberOfFiles failed: unknown result");
}
public String user_getUnderfsAddress() throws org.apache.thrift.TException
{
send_user_getUnderfsAddress();
return recv_user_getUnderfsAddress();
}
public void send_user_getUnderfsAddress() throws org.apache.thrift.TException
{
user_getUnderfsAddress_args args = new user_getUnderfsAddress_args();
sendBase("user_getUnderfsAddress", args);
}
public String recv_user_getUnderfsAddress() throws org.apache.thrift.TException
{
user_getUnderfsAddress_result result = new user_getUnderfsAddress_result();
receiveBase(result, "user_getUnderfsAddress");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "user_getUnderfsAddress failed: unknown result");
}
}
public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
private org.apache.thrift.async.TAsyncClientManager clientManager;
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
this.clientManager = clientManager;
this.protocolFactory = protocolFactory;
}
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
return new AsyncClient(protocolFactory, clientManager, transport);
}
}
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
super(protocolFactory, clientManager, transport);
}
public void addCheckpoint(long workerId, int fileId, long length, String checkpointPath, org.apache.thrift.async.AsyncMethodCallback<addCheckpoint_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
addCheckpoint_call method_call = new addCheckpoint_call(workerId, fileId, length, checkpointPath, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class addCheckpoint_call extends org.apache.thrift.async.TAsyncMethodCall {
private long workerId;
private int fileId;
private long length;
private String checkpointPath;
public addCheckpoint_call(long workerId, int fileId, long length, String checkpointPath, org.apache.thrift.async.AsyncMethodCallback<addCheckpoint_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.workerId = workerId;
this.fileId = fileId;
this.length = length;
this.checkpointPath = checkpointPath;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addCheckpoint", org.apache.thrift.protocol.TMessageType.CALL, 0));
addCheckpoint_args args = new addCheckpoint_args();
args.setWorkerId(workerId);
args.setFileId(fileId);
args.setLength(length);
args.setCheckpointPath(checkpointPath);
args.write(prot);
prot.writeMessageEnd();
}
public boolean getResult() throws FileDoesNotExistException, SuspectedFileSizeException, BlockInfoException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_addCheckpoint();
}
}
public void getWorkersInfo(org.apache.thrift.async.AsyncMethodCallback<getWorkersInfo_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
getWorkersInfo_call method_call = new getWorkersInfo_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getWorkersInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
public getWorkersInfo_call(org.apache.thrift.async.AsyncMethodCallback<getWorkersInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWorkersInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
getWorkersInfo_args args = new getWorkersInfo_args();
args.write(prot);
prot.writeMessageEnd();
}
public List<ClientWorkerInfo> getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_getWorkersInfo();
}
}
public void liststatus(String path, org.apache.thrift.async.AsyncMethodCallback<liststatus_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
liststatus_call method_call = new liststatus_call(path, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class liststatus_call extends org.apache.thrift.async.TAsyncMethodCall {
private String path;
public liststatus_call(String path, org.apache.thrift.async.AsyncMethodCallback<liststatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.path = path;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("liststatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
liststatus_args args = new liststatus_args();
args.setPath(path);
args.write(prot);
prot.writeMessageEnd();
}
public List<ClientFileInfo> getResult() throws InvalidPathException, FileDoesNotExistException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_liststatus();
}
}
public void worker_register(NetAddress workerNetAddress, long totalBytes, long usedBytes, List<Long> currentBlocks, org.apache.thrift.async.AsyncMethodCallback<worker_register_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
worker_register_call method_call = new worker_register_call(workerNetAddress, totalBytes, usedBytes, currentBlocks, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class worker_register_call extends org.apache.thrift.async.TAsyncMethodCall {
private NetAddress workerNetAddress;
private long totalBytes;
private long usedBytes;
private List<Long> currentBlocks;
public worker_register_call(NetAddress workerNetAddress, long totalBytes, long usedBytes, List<Long> currentBlocks, org.apache.thrift.async.AsyncMethodCallback<worker_register_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.workerNetAddress = workerNetAddress;
this.totalBytes = totalBytes;
this.usedBytes = usedBytes;
this.currentBlocks = currentBlocks;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("worker_register", org.apache.thrift.protocol.TMessageType.CALL, 0));
worker_register_args args = new worker_register_args();
args.setWorkerNetAddress(workerNetAddress);
args.setTotalBytes(totalBytes);
args.setUsedBytes(usedBytes);
args.setCurrentBlocks(currentBlocks);
args.write(prot);
prot.writeMessageEnd();
}
public long getResult() throws BlockInfoException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_worker_register();
}
}
public void worker_heartbeat(long workerId, long usedBytes, List<Long> removedBlocks, org.apache.thrift.async.AsyncMethodCallback<worker_heartbeat_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
worker_heartbeat_call method_call = new worker_heartbeat_call(workerId, usedBytes, removedBlocks, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class worker_heartbeat_call extends org.apache.thrift.async.TAsyncMethodCall {
private long workerId;
private long usedBytes;
private List<Long> removedBlocks;
public worker_heartbeat_call(long workerId, long usedBytes, List<Long> removedBlocks, org.apache.thrift.async.AsyncMethodCallback<worker_heartbeat_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.workerId = workerId;
this.usedBytes = usedBytes;
this.removedBlocks = removedBlocks;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("worker_heartbeat", org.apache.thrift.protocol.TMessageType.CALL, 0));
worker_heartbeat_args args = new worker_heartbeat_args();
args.setWorkerId(workerId);
args.setUsedBytes(usedBytes);
args.setRemovedBlocks(removedBlocks);
args.write(prot);
prot.writeMessageEnd();
}
public Command getResult() throws BlockInfoException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_worker_heartbeat();
}
}
public void worker_cacheBlock(long workerId, long workerUsedBytes, long blockId, long length, org.apache.thrift.async.AsyncMethodCallback<worker_cacheBlock_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
worker_cacheBlock_call method_call = new worker_cacheBlock_call(workerId, workerUsedBytes, blockId, length, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class worker_cacheBlock_call extends org.apache.thrift.async.TAsyncMethodCall {
private long workerId;
private long workerUsedBytes;
private long blockId;
private long length;
public worker_cacheBlock_call(long workerId, long workerUsedBytes, long blockId, long length, org.apache.thrift.async.AsyncMethodCallback<worker_cacheBlock_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.workerId = workerId;
this.workerUsedBytes = workerUsedBytes;
this.blockId = blockId;
this.length = length;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("worker_cacheBlock", org.apache.thrift.protocol.TMessageType.CALL, 0));
worker_cacheBlock_args args = new worker_cacheBlock_args();
args.setWorkerId(workerId);
args.setWorkerUsedBytes(workerUsedBytes);
args.setBlockId(blockId);
args.setLength(length);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws FileDoesNotExistException, SuspectedFileSizeException, BlockInfoException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_worker_cacheBlock();
}
}
public void worker_getPinIdList(org.apache.thrift.async.AsyncMethodCallback<worker_getPinIdList_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
worker_getPinIdList_call method_call = new worker_getPinIdList_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class worker_getPinIdList_call extends org.apache.thrift.async.TAsyncMethodCall {
public worker_getPinIdList_call(org.apache.thrift.async.AsyncMethodCallback<worker_getPinIdList_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("worker_getPinIdList", org.apache.thrift.protocol.TMessageType.CALL, 0));
worker_getPinIdList_args args = new worker_getPinIdList_args();
args.write(prot);
prot.writeMessageEnd();
}
public Set<Integer> getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_worker_getPinIdList();
}
}
public void worker_getPriorityDependencyList(org.apache.thrift.async.AsyncMethodCallback<worker_getPriorityDependencyList_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
worker_getPriorityDependencyList_call method_call = new worker_getPriorityDependencyList_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class worker_getPriorityDependencyList_call extends org.apache.thrift.async.TAsyncMethodCall {
public worker_getPriorityDependencyList_call(org.apache.thrift.async.AsyncMethodCallback<worker_getPriorityDependencyList_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("worker_getPriorityDependencyList", org.apache.thrift.protocol.TMessageType.CALL, 0));
worker_getPriorityDependencyList_args args = new worker_getPriorityDependencyList_args();
args.write(prot);
prot.writeMessageEnd();
}
public List<Integer> getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_worker_getPriorityDependencyList();
}
}
public void user_createDependency(List<String> parents, List<String> children, String commandPrefix, List<ByteBuffer> data, String comment, String framework, String frameworkVersion, int dependencyType, long childrenBlockSizeByte, org.apache.thrift.async.AsyncMethodCallback<user_createDependency_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_createDependency_call method_call = new user_createDependency_call(parents, children, commandPrefix, data, comment, framework, frameworkVersion, dependencyType, childrenBlockSizeByte, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_createDependency_call extends org.apache.thrift.async.TAsyncMethodCall {
private List<String> parents;
private List<String> children;
private String commandPrefix;
private List<ByteBuffer> data;
private String comment;
private String framework;
private String frameworkVersion;
private int dependencyType;
private long childrenBlockSizeByte;
public user_createDependency_call(List<String> parents, List<String> children, String commandPrefix, List<ByteBuffer> data, String comment, String framework, String frameworkVersion, int dependencyType, long childrenBlockSizeByte, org.apache.thrift.async.AsyncMethodCallback<user_createDependency_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.parents = parents;
this.children = children;
this.commandPrefix = commandPrefix;
this.data = data;
this.comment = comment;
this.framework = framework;
this.frameworkVersion = frameworkVersion;
this.dependencyType = dependencyType;
this.childrenBlockSizeByte = childrenBlockSizeByte;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_createDependency", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_createDependency_args args = new user_createDependency_args();
args.setParents(parents);
args.setChildren(children);
args.setCommandPrefix(commandPrefix);
args.setData(data);
args.setComment(comment);
args.setFramework(framework);
args.setFrameworkVersion(frameworkVersion);
args.setDependencyType(dependencyType);
args.setChildrenBlockSizeByte(childrenBlockSizeByte);
args.write(prot);
prot.writeMessageEnd();
}
public int getResult() throws InvalidPathException, FileDoesNotExistException, FileAlreadyExistException, BlockInfoException, TachyonException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_createDependency();
}
}
public void user_getClientDependencyInfo(int dependencyId, org.apache.thrift.async.AsyncMethodCallback<user_getClientDependencyInfo_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_getClientDependencyInfo_call method_call = new user_getClientDependencyInfo_call(dependencyId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_getClientDependencyInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
private int dependencyId;
public user_getClientDependencyInfo_call(int dependencyId, org.apache.thrift.async.AsyncMethodCallback<user_getClientDependencyInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.dependencyId = dependencyId;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_getClientDependencyInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_getClientDependencyInfo_args args = new user_getClientDependencyInfo_args();
args.setDependencyId(dependencyId);
args.write(prot);
prot.writeMessageEnd();
}
public ClientDependencyInfo getResult() throws DependencyDoesNotExistException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_getClientDependencyInfo();
}
}
public void user_reportLostFile(int fileId, org.apache.thrift.async.AsyncMethodCallback<user_reportLostFile_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_reportLostFile_call method_call = new user_reportLostFile_call(fileId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_reportLostFile_call extends org.apache.thrift.async.TAsyncMethodCall {
private int fileId;
public user_reportLostFile_call(int fileId, org.apache.thrift.async.AsyncMethodCallback<user_reportLostFile_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.fileId = fileId;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_reportLostFile", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_reportLostFile_args args = new user_reportLostFile_args();
args.setFileId(fileId);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws FileDoesNotExistException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_user_reportLostFile();
}
}
public void user_requestFilesInDependency(int depId, org.apache.thrift.async.AsyncMethodCallback<user_requestFilesInDependency_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_requestFilesInDependency_call method_call = new user_requestFilesInDependency_call(depId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_requestFilesInDependency_call extends org.apache.thrift.async.TAsyncMethodCall {
private int depId;
public user_requestFilesInDependency_call(int depId, org.apache.thrift.async.AsyncMethodCallback<user_requestFilesInDependency_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.depId = depId;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_requestFilesInDependency", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_requestFilesInDependency_args args = new user_requestFilesInDependency_args();
args.setDepId(depId);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws DependencyDoesNotExistException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_user_requestFilesInDependency();
}
}
public void user_createFile(String path, long blockSizeByte, org.apache.thrift.async.AsyncMethodCallback<user_createFile_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_createFile_call method_call = new user_createFile_call(path, blockSizeByte, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_createFile_call extends org.apache.thrift.async.TAsyncMethodCall {
private String path;
private long blockSizeByte;
public user_createFile_call(String path, long blockSizeByte, org.apache.thrift.async.AsyncMethodCallback<user_createFile_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.path = path;
this.blockSizeByte = blockSizeByte;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_createFile", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_createFile_args args = new user_createFile_args();
args.setPath(path);
args.setBlockSizeByte(blockSizeByte);
args.write(prot);
prot.writeMessageEnd();
}
public int getResult() throws FileAlreadyExistException, InvalidPathException, BlockInfoException, TachyonException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_createFile();
}
}
public void user_createFileOnCheckpoint(String path, String checkpointPath, org.apache.thrift.async.AsyncMethodCallback<user_createFileOnCheckpoint_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_createFileOnCheckpoint_call method_call = new user_createFileOnCheckpoint_call(path, checkpointPath, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_createFileOnCheckpoint_call extends org.apache.thrift.async.TAsyncMethodCall {
private String path;
private String checkpointPath;
public user_createFileOnCheckpoint_call(String path, String checkpointPath, org.apache.thrift.async.AsyncMethodCallback<user_createFileOnCheckpoint_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.path = path;
this.checkpointPath = checkpointPath;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_createFileOnCheckpoint", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_createFileOnCheckpoint_args args = new user_createFileOnCheckpoint_args();
args.setPath(path);
args.setCheckpointPath(checkpointPath);
args.write(prot);
prot.writeMessageEnd();
}
public int getResult() throws FileAlreadyExistException, InvalidPathException, SuspectedFileSizeException, BlockInfoException, TachyonException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_createFileOnCheckpoint();
}
}
public void user_createNewBlock(int fileId, org.apache.thrift.async.AsyncMethodCallback<user_createNewBlock_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_createNewBlock_call method_call = new user_createNewBlock_call(fileId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_createNewBlock_call extends org.apache.thrift.async.TAsyncMethodCall {
private int fileId;
public user_createNewBlock_call(int fileId, org.apache.thrift.async.AsyncMethodCallback<user_createNewBlock_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.fileId = fileId;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_createNewBlock", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_createNewBlock_args args = new user_createNewBlock_args();
args.setFileId(fileId);
args.write(prot);
prot.writeMessageEnd();
}
public long getResult() throws FileDoesNotExistException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_createNewBlock();
}
}
public void user_completeFile(int fileId, org.apache.thrift.async.AsyncMethodCallback<user_completeFile_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_completeFile_call method_call = new user_completeFile_call(fileId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_completeFile_call extends org.apache.thrift.async.TAsyncMethodCall {
private int fileId;
public user_completeFile_call(int fileId, org.apache.thrift.async.AsyncMethodCallback<user_completeFile_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.fileId = fileId;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_completeFile", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_completeFile_args args = new user_completeFile_args();
args.setFileId(fileId);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws FileDoesNotExistException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_user_completeFile();
}
}
public void user_getFileId(String path, org.apache.thrift.async.AsyncMethodCallback<user_getFileId_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_getFileId_call method_call = new user_getFileId_call(path, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_getFileId_call extends org.apache.thrift.async.TAsyncMethodCall {
private String path;
public user_getFileId_call(String path, org.apache.thrift.async.AsyncMethodCallback<user_getFileId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.path = path;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_getFileId", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_getFileId_args args = new user_getFileId_args();
args.setPath(path);
args.write(prot);
prot.writeMessageEnd();
}
public int getResult() throws InvalidPathException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_getFileId();
}
}
public void user_getUserId(org.apache.thrift.async.AsyncMethodCallback<user_getUserId_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_getUserId_call method_call = new user_getUserId_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_getUserId_call extends org.apache.thrift.async.TAsyncMethodCall {
public user_getUserId_call(org.apache.thrift.async.AsyncMethodCallback<user_getUserId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_getUserId", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_getUserId_args args = new user_getUserId_args();
args.write(prot);
prot.writeMessageEnd();
}
public long getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_getUserId();
}
}
public void user_getBlockId(int fileId, int index, org.apache.thrift.async.AsyncMethodCallback<user_getBlockId_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_getBlockId_call method_call = new user_getBlockId_call(fileId, index, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_getBlockId_call extends org.apache.thrift.async.TAsyncMethodCall {
private int fileId;
private int index;
public user_getBlockId_call(int fileId, int index, org.apache.thrift.async.AsyncMethodCallback<user_getBlockId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.fileId = fileId;
this.index = index;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_getBlockId", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_getBlockId_args args = new user_getBlockId_args();
args.setFileId(fileId);
args.setIndex(index);
args.write(prot);
prot.writeMessageEnd();
}
public long getResult() throws FileDoesNotExistException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_getBlockId();
}
}
public void user_getWorker(boolean random, String host, org.apache.thrift.async.AsyncMethodCallback<user_getWorker_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_getWorker_call method_call = new user_getWorker_call(random, host, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_getWorker_call extends org.apache.thrift.async.TAsyncMethodCall {
private boolean random;
private String host;
public user_getWorker_call(boolean random, String host, org.apache.thrift.async.AsyncMethodCallback<user_getWorker_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.random = random;
this.host = host;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_getWorker", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_getWorker_args args = new user_getWorker_args();
args.setRandom(random);
args.setHost(host);
args.write(prot);
prot.writeMessageEnd();
}
public NetAddress getResult() throws NoWorkerException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_getWorker();
}
}
public void getClientFileInfoById(int fileId, org.apache.thrift.async.AsyncMethodCallback<getClientFileInfoById_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
getClientFileInfoById_call method_call = new getClientFileInfoById_call(fileId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getClientFileInfoById_call extends org.apache.thrift.async.TAsyncMethodCall {
private int fileId;
public getClientFileInfoById_call(int fileId, org.apache.thrift.async.AsyncMethodCallback<getClientFileInfoById_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.fileId = fileId;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getClientFileInfoById", org.apache.thrift.protocol.TMessageType.CALL, 0));
getClientFileInfoById_args args = new getClientFileInfoById_args();
args.setFileId(fileId);
args.write(prot);
prot.writeMessageEnd();
}
public ClientFileInfo getResult() throws FileDoesNotExistException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_getClientFileInfoById();
}
}
public void user_getClientFileInfoByPath(String path, org.apache.thrift.async.AsyncMethodCallback<user_getClientFileInfoByPath_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_getClientFileInfoByPath_call method_call = new user_getClientFileInfoByPath_call(path, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_getClientFileInfoByPath_call extends org.apache.thrift.async.TAsyncMethodCall {
private String path;
public user_getClientFileInfoByPath_call(String path, org.apache.thrift.async.AsyncMethodCallback<user_getClientFileInfoByPath_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.path = path;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_getClientFileInfoByPath", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_getClientFileInfoByPath_args args = new user_getClientFileInfoByPath_args();
args.setPath(path);
args.write(prot);
prot.writeMessageEnd();
}
public ClientFileInfo getResult() throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_getClientFileInfoByPath();
}
}
public void user_getClientBlockInfo(long blockId, org.apache.thrift.async.AsyncMethodCallback<user_getClientBlockInfo_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_getClientBlockInfo_call method_call = new user_getClientBlockInfo_call(blockId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_getClientBlockInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
private long blockId;
public user_getClientBlockInfo_call(long blockId, org.apache.thrift.async.AsyncMethodCallback<user_getClientBlockInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.blockId = blockId;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_getClientBlockInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_getClientBlockInfo_args args = new user_getClientBlockInfo_args();
args.setBlockId(blockId);
args.write(prot);
prot.writeMessageEnd();
}
public ClientBlockInfo getResult() throws FileDoesNotExistException, BlockInfoException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_getClientBlockInfo();
}
}
public void user_getFileBlocksById(int fileId, org.apache.thrift.async.AsyncMethodCallback<user_getFileBlocksById_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_getFileBlocksById_call method_call = new user_getFileBlocksById_call(fileId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_getFileBlocksById_call extends org.apache.thrift.async.TAsyncMethodCall {
private int fileId;
public user_getFileBlocksById_call(int fileId, org.apache.thrift.async.AsyncMethodCallback<user_getFileBlocksById_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.fileId = fileId;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_getFileBlocksById", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_getFileBlocksById_args args = new user_getFileBlocksById_args();
args.setFileId(fileId);
args.write(prot);
prot.writeMessageEnd();
}
public List<ClientBlockInfo> getResult() throws FileDoesNotExistException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_getFileBlocksById();
}
}
public void user_getFileBlocksByPath(String path, org.apache.thrift.async.AsyncMethodCallback<user_getFileBlocksByPath_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_getFileBlocksByPath_call method_call = new user_getFileBlocksByPath_call(path, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_getFileBlocksByPath_call extends org.apache.thrift.async.TAsyncMethodCall {
private String path;
public user_getFileBlocksByPath_call(String path, org.apache.thrift.async.AsyncMethodCallback<user_getFileBlocksByPath_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.path = path;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_getFileBlocksByPath", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_getFileBlocksByPath_args args = new user_getFileBlocksByPath_args();
args.setPath(path);
args.write(prot);
prot.writeMessageEnd();
}
public List<ClientBlockInfo> getResult() throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_getFileBlocksByPath();
}
}
public void user_listFiles(String path, boolean recursive, org.apache.thrift.async.AsyncMethodCallback<user_listFiles_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_listFiles_call method_call = new user_listFiles_call(path, recursive, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_listFiles_call extends org.apache.thrift.async.TAsyncMethodCall {
private String path;
private boolean recursive;
public user_listFiles_call(String path, boolean recursive, org.apache.thrift.async.AsyncMethodCallback<user_listFiles_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.path = path;
this.recursive = recursive;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_listFiles", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_listFiles_args args = new user_listFiles_args();
args.setPath(path);
args.setRecursive(recursive);
args.write(prot);
prot.writeMessageEnd();
}
public List<Integer> getResult() throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_listFiles();
}
}
public void user_ls(String path, boolean recursive, org.apache.thrift.async.AsyncMethodCallback<user_ls_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_ls_call method_call = new user_ls_call(path, recursive, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_ls_call extends org.apache.thrift.async.TAsyncMethodCall {
private String path;
private boolean recursive;
public user_ls_call(String path, boolean recursive, org.apache.thrift.async.AsyncMethodCallback<user_ls_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.path = path;
this.recursive = recursive;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_ls", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_ls_args args = new user_ls_args();
args.setPath(path);
args.setRecursive(recursive);
args.write(prot);
prot.writeMessageEnd();
}
public List<String> getResult() throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_ls();
}
}
public void user_deleteById(int fileId, boolean recursive, org.apache.thrift.async.AsyncMethodCallback<user_deleteById_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_deleteById_call method_call = new user_deleteById_call(fileId, recursive, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_deleteById_call extends org.apache.thrift.async.TAsyncMethodCall {
private int fileId;
private boolean recursive;
public user_deleteById_call(int fileId, boolean recursive, org.apache.thrift.async.AsyncMethodCallback<user_deleteById_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.fileId = fileId;
this.recursive = recursive;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_deleteById", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_deleteById_args args = new user_deleteById_args();
args.setFileId(fileId);
args.setRecursive(recursive);
args.write(prot);
prot.writeMessageEnd();
}
public boolean getResult() throws TachyonException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_deleteById();
}
}
public void user_deleteByPath(String path, boolean recursive, org.apache.thrift.async.AsyncMethodCallback<user_deleteByPath_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_deleteByPath_call method_call = new user_deleteByPath_call(path, recursive, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_deleteByPath_call extends org.apache.thrift.async.TAsyncMethodCall {
private String path;
private boolean recursive;
public user_deleteByPath_call(String path, boolean recursive, org.apache.thrift.async.AsyncMethodCallback<user_deleteByPath_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.path = path;
this.recursive = recursive;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_deleteByPath", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_deleteByPath_args args = new user_deleteByPath_args();
args.setPath(path);
args.setRecursive(recursive);
args.write(prot);
prot.writeMessageEnd();
}
public boolean getResult() throws TachyonException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_deleteByPath();
}
}
public void user_outOfMemoryForPinFile(int fileId, org.apache.thrift.async.AsyncMethodCallback<user_outOfMemoryForPinFile_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_outOfMemoryForPinFile_call method_call = new user_outOfMemoryForPinFile_call(fileId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_outOfMemoryForPinFile_call extends org.apache.thrift.async.TAsyncMethodCall {
private int fileId;
public user_outOfMemoryForPinFile_call(int fileId, org.apache.thrift.async.AsyncMethodCallback<user_outOfMemoryForPinFile_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.fileId = fileId;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_outOfMemoryForPinFile", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_outOfMemoryForPinFile_args args = new user_outOfMemoryForPinFile_args();
args.setFileId(fileId);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_user_outOfMemoryForPinFile();
}
}
public void user_rename(String srcPath, String dstPath, org.apache.thrift.async.AsyncMethodCallback<user_rename_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_rename_call method_call = new user_rename_call(srcPath, dstPath, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_rename_call extends org.apache.thrift.async.TAsyncMethodCall {
private String srcPath;
private String dstPath;
public user_rename_call(String srcPath, String dstPath, org.apache.thrift.async.AsyncMethodCallback<user_rename_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.srcPath = srcPath;
this.dstPath = dstPath;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_rename", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_rename_args args = new user_rename_args();
args.setSrcPath(srcPath);
args.setDstPath(dstPath);
args.write(prot);
prot.writeMessageEnd();
}
public boolean getResult() throws FileAlreadyExistException, FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_rename();
}
}
public void user_renameTo(int fileId, String dstPath, org.apache.thrift.async.AsyncMethodCallback<user_renameTo_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_renameTo_call method_call = new user_renameTo_call(fileId, dstPath, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_renameTo_call extends org.apache.thrift.async.TAsyncMethodCall {
private int fileId;
private String dstPath;
public user_renameTo_call(int fileId, String dstPath, org.apache.thrift.async.AsyncMethodCallback<user_renameTo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.fileId = fileId;
this.dstPath = dstPath;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_renameTo", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_renameTo_args args = new user_renameTo_args();
args.setFileId(fileId);
args.setDstPath(dstPath);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws FileAlreadyExistException, FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_user_renameTo();
}
}
public void user_setPinned(int fileId, boolean pinned, org.apache.thrift.async.AsyncMethodCallback<user_setPinned_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_setPinned_call method_call = new user_setPinned_call(fileId, pinned, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_setPinned_call extends org.apache.thrift.async.TAsyncMethodCall {
private int fileId;
private boolean pinned;
public user_setPinned_call(int fileId, boolean pinned, org.apache.thrift.async.AsyncMethodCallback<user_setPinned_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.fileId = fileId;
this.pinned = pinned;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_setPinned", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_setPinned_args args = new user_setPinned_args();
args.setFileId(fileId);
args.setPinned(pinned);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws FileDoesNotExistException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_user_setPinned();
}
}
public void user_mkdir(String path, org.apache.thrift.async.AsyncMethodCallback<user_mkdir_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_mkdir_call method_call = new user_mkdir_call(path, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_mkdir_call extends org.apache.thrift.async.TAsyncMethodCall {
private String path;
public user_mkdir_call(String path, org.apache.thrift.async.AsyncMethodCallback<user_mkdir_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.path = path;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_mkdir", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_mkdir_args args = new user_mkdir_args();
args.setPath(path);
args.write(prot);
prot.writeMessageEnd();
}
public boolean getResult() throws FileAlreadyExistException, InvalidPathException, TachyonException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_mkdir();
}
}
public void user_createRawTable(String path, int columns, ByteBuffer metadata, org.apache.thrift.async.AsyncMethodCallback<user_createRawTable_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_createRawTable_call method_call = new user_createRawTable_call(path, columns, metadata, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_createRawTable_call extends org.apache.thrift.async.TAsyncMethodCall {
private String path;
private int columns;
private ByteBuffer metadata;
public user_createRawTable_call(String path, int columns, ByteBuffer metadata, org.apache.thrift.async.AsyncMethodCallback<user_createRawTable_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.path = path;
this.columns = columns;
this.metadata = metadata;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_createRawTable", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_createRawTable_args args = new user_createRawTable_args();
args.setPath(path);
args.setColumns(columns);
args.setMetadata(metadata);
args.write(prot);
prot.writeMessageEnd();
}
public int getResult() throws FileAlreadyExistException, InvalidPathException, TableColumnException, TachyonException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_createRawTable();
}
}
public void user_getRawTableId(String path, org.apache.thrift.async.AsyncMethodCallback<user_getRawTableId_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_getRawTableId_call method_call = new user_getRawTableId_call(path, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_getRawTableId_call extends org.apache.thrift.async.TAsyncMethodCall {
private String path;
public user_getRawTableId_call(String path, org.apache.thrift.async.AsyncMethodCallback<user_getRawTableId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.path = path;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_getRawTableId", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_getRawTableId_args args = new user_getRawTableId_args();
args.setPath(path);
args.write(prot);
prot.writeMessageEnd();
}
public int getResult() throws InvalidPathException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_getRawTableId();
}
}
public void user_getClientRawTableInfoById(int tableId, org.apache.thrift.async.AsyncMethodCallback<user_getClientRawTableInfoById_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_getClientRawTableInfoById_call method_call = new user_getClientRawTableInfoById_call(tableId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_getClientRawTableInfoById_call extends org.apache.thrift.async.TAsyncMethodCall {
private int tableId;
public user_getClientRawTableInfoById_call(int tableId, org.apache.thrift.async.AsyncMethodCallback<user_getClientRawTableInfoById_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.tableId = tableId;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_getClientRawTableInfoById", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_getClientRawTableInfoById_args args = new user_getClientRawTableInfoById_args();
args.setTableId(tableId);
args.write(prot);
prot.writeMessageEnd();
}
public ClientRawTableInfo getResult() throws TableDoesNotExistException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_getClientRawTableInfoById();
}
}
public void user_getClientRawTableInfoByPath(String tablePath, org.apache.thrift.async.AsyncMethodCallback<user_getClientRawTableInfoByPath_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_getClientRawTableInfoByPath_call method_call = new user_getClientRawTableInfoByPath_call(tablePath, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_getClientRawTableInfoByPath_call extends org.apache.thrift.async.TAsyncMethodCall {
private String tablePath;
public user_getClientRawTableInfoByPath_call(String tablePath, org.apache.thrift.async.AsyncMethodCallback<user_getClientRawTableInfoByPath_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.tablePath = tablePath;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_getClientRawTableInfoByPath", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_getClientRawTableInfoByPath_args args = new user_getClientRawTableInfoByPath_args();
args.setTablePath(tablePath);
args.write(prot);
prot.writeMessageEnd();
}
public ClientRawTableInfo getResult() throws TableDoesNotExistException, InvalidPathException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_getClientRawTableInfoByPath();
}
}
public void user_updateRawTableMetadata(int tableId, ByteBuffer metadata, org.apache.thrift.async.AsyncMethodCallback<user_updateRawTableMetadata_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_updateRawTableMetadata_call method_call = new user_updateRawTableMetadata_call(tableId, metadata, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_updateRawTableMetadata_call extends org.apache.thrift.async.TAsyncMethodCall {
private int tableId;
private ByteBuffer metadata;
public user_updateRawTableMetadata_call(int tableId, ByteBuffer metadata, org.apache.thrift.async.AsyncMethodCallback<user_updateRawTableMetadata_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.tableId = tableId;
this.metadata = metadata;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_updateRawTableMetadata", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_updateRawTableMetadata_args args = new user_updateRawTableMetadata_args();
args.setTableId(tableId);
args.setMetadata(metadata);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws TableDoesNotExistException, TachyonException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_user_updateRawTableMetadata();
}
}
public void user_getNumberOfFiles(String path, org.apache.thrift.async.AsyncMethodCallback<user_getNumberOfFiles_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_getNumberOfFiles_call method_call = new user_getNumberOfFiles_call(path, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_getNumberOfFiles_call extends org.apache.thrift.async.TAsyncMethodCall {
private String path;
public user_getNumberOfFiles_call(String path, org.apache.thrift.async.AsyncMethodCallback<user_getNumberOfFiles_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.path = path;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_getNumberOfFiles", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_getNumberOfFiles_args args = new user_getNumberOfFiles_args();
args.setPath(path);
args.write(prot);
prot.writeMessageEnd();
}
public int getResult() throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_getNumberOfFiles();
}
}
public void user_getUnderfsAddress(org.apache.thrift.async.AsyncMethodCallback<user_getUnderfsAddress_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
user_getUnderfsAddress_call method_call = new user_getUnderfsAddress_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class user_getUnderfsAddress_call extends org.apache.thrift.async.TAsyncMethodCall {
public user_getUnderfsAddress_call(org.apache.thrift.async.AsyncMethodCallback<user_getUnderfsAddress_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("user_getUnderfsAddress", org.apache.thrift.protocol.TMessageType.CALL, 0));
user_getUnderfsAddress_args args = new user_getUnderfsAddress_args();
args.write(prot);
prot.writeMessageEnd();
}
public String getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_user_getUnderfsAddress();
}
}
}
public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
public Processor(I iface) {
super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
}
protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
super(iface, getProcessMap(processMap));
}
private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
processMap.put("addCheckpoint", new addCheckpoint());
processMap.put("getWorkersInfo", new getWorkersInfo());
processMap.put("liststatus", new liststatus());
processMap.put("worker_register", new worker_register());
processMap.put("worker_heartbeat", new worker_heartbeat());
processMap.put("worker_cacheBlock", new worker_cacheBlock());
processMap.put("worker_getPinIdList", new worker_getPinIdList());
processMap.put("worker_getPriorityDependencyList", new worker_getPriorityDependencyList());
processMap.put("user_createDependency", new user_createDependency());
processMap.put("user_getClientDependencyInfo", new user_getClientDependencyInfo());
processMap.put("user_reportLostFile", new user_reportLostFile());
processMap.put("user_requestFilesInDependency", new user_requestFilesInDependency());
processMap.put("user_createFile", new user_createFile());
processMap.put("user_createFileOnCheckpoint", new user_createFileOnCheckpoint());
processMap.put("user_createNewBlock", new user_createNewBlock());
processMap.put("user_completeFile", new user_completeFile());
processMap.put("user_getFileId", new user_getFileId());
processMap.put("user_getUserId", new user_getUserId());
processMap.put("user_getBlockId", new user_getBlockId());
processMap.put("user_getWorker", new user_getWorker());
processMap.put("getClientFileInfoById", new getClientFileInfoById());
processMap.put("user_getClientFileInfoByPath", new user_getClientFileInfoByPath());
processMap.put("user_getClientBlockInfo", new user_getClientBlockInfo());
processMap.put("user_getFileBlocksById", new user_getFileBlocksById());
processMap.put("user_getFileBlocksByPath", new user_getFileBlocksByPath());
processMap.put("user_listFiles", new user_listFiles());
processMap.put("user_ls", new user_ls());
processMap.put("user_deleteById", new user_deleteById());
processMap.put("user_deleteByPath", new user_deleteByPath());
processMap.put("user_outOfMemoryForPinFile", new user_outOfMemoryForPinFile());
processMap.put("user_rename", new user_rename());
processMap.put("user_renameTo", new user_renameTo());
processMap.put("user_setPinned", new user_setPinned());
processMap.put("user_mkdir", new user_mkdir());
processMap.put("user_createRawTable", new user_createRawTable());
processMap.put("user_getRawTableId", new user_getRawTableId());
processMap.put("user_getClientRawTableInfoById", new user_getClientRawTableInfoById());
processMap.put("user_getClientRawTableInfoByPath", new user_getClientRawTableInfoByPath());
processMap.put("user_updateRawTableMetadata", new user_updateRawTableMetadata());
processMap.put("user_getNumberOfFiles", new user_getNumberOfFiles());
processMap.put("user_getUnderfsAddress", new user_getUnderfsAddress());
return processMap;
}
public static class addCheckpoint<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addCheckpoint_args> {
public addCheckpoint() {
super("addCheckpoint");
}
public addCheckpoint_args getEmptyArgsInstance() {
return new addCheckpoint_args();
}
protected boolean isOneway() {
return false;
}
public addCheckpoint_result getResult(I iface, addCheckpoint_args args) throws org.apache.thrift.TException {
addCheckpoint_result result = new addCheckpoint_result();
try {
result.success = iface.addCheckpoint(args.workerId, args.fileId, args.length, args.checkpointPath);
result.setSuccessIsSet(true);
} catch (FileDoesNotExistException eP) {
result.eP = eP;
} catch (SuspectedFileSizeException eS) {
result.eS = eS;
} catch (BlockInfoException eB) {
result.eB = eB;
}
return result;
}
}
public static class getWorkersInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWorkersInfo_args> {
public getWorkersInfo() {
super("getWorkersInfo");
}
public getWorkersInfo_args getEmptyArgsInstance() {
return new getWorkersInfo_args();
}
protected boolean isOneway() {
return false;
}
public getWorkersInfo_result getResult(I iface, getWorkersInfo_args args) throws org.apache.thrift.TException {
getWorkersInfo_result result = new getWorkersInfo_result();
result.success = iface.getWorkersInfo();
return result;
}
}
public static class liststatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, liststatus_args> {
public liststatus() {
super("liststatus");
}
public liststatus_args getEmptyArgsInstance() {
return new liststatus_args();
}
protected boolean isOneway() {
return false;
}
public liststatus_result getResult(I iface, liststatus_args args) throws org.apache.thrift.TException {
liststatus_result result = new liststatus_result();
try {
result.success = iface.liststatus(args.path);
} catch (InvalidPathException eI) {
result.eI = eI;
} catch (FileDoesNotExistException eF) {
result.eF = eF;
}
return result;
}
}
public static class worker_register<I extends Iface> extends org.apache.thrift.ProcessFunction<I, worker_register_args> {
public worker_register() {
super("worker_register");
}
public worker_register_args getEmptyArgsInstance() {
return new worker_register_args();
}
protected boolean isOneway() {
return false;
}
public worker_register_result getResult(I iface, worker_register_args args) throws org.apache.thrift.TException {
worker_register_result result = new worker_register_result();
try {
result.success = iface.worker_register(args.workerNetAddress, args.totalBytes, args.usedBytes, args.currentBlocks);
result.setSuccessIsSet(true);
} catch (BlockInfoException e) {
result.e = e;
}
return result;
}
}
public static class worker_heartbeat<I extends Iface> extends org.apache.thrift.ProcessFunction<I, worker_heartbeat_args> {
public worker_heartbeat() {
super("worker_heartbeat");
}
public worker_heartbeat_args getEmptyArgsInstance() {
return new worker_heartbeat_args();
}
protected boolean isOneway() {
return false;
}
public worker_heartbeat_result getResult(I iface, worker_heartbeat_args args) throws org.apache.thrift.TException {
worker_heartbeat_result result = new worker_heartbeat_result();
try {
result.success = iface.worker_heartbeat(args.workerId, args.usedBytes, args.removedBlocks);
} catch (BlockInfoException e) {
result.e = e;
}
return result;
}
}
public static class worker_cacheBlock<I extends Iface> extends org.apache.thrift.ProcessFunction<I, worker_cacheBlock_args> {
public worker_cacheBlock() {
super("worker_cacheBlock");
}
public worker_cacheBlock_args getEmptyArgsInstance() {
return new worker_cacheBlock_args();
}
protected boolean isOneway() {
return false;
}
public worker_cacheBlock_result getResult(I iface, worker_cacheBlock_args args) throws org.apache.thrift.TException {
worker_cacheBlock_result result = new worker_cacheBlock_result();
try {
iface.worker_cacheBlock(args.workerId, args.workerUsedBytes, args.blockId, args.length);
} catch (FileDoesNotExistException eP) {
result.eP = eP;
} catch (SuspectedFileSizeException eS) {
result.eS = eS;
} catch (BlockInfoException eB) {
result.eB = eB;
}
return result;
}
}
public static class worker_getPinIdList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, worker_getPinIdList_args> {
public worker_getPinIdList() {
super("worker_getPinIdList");
}
public worker_getPinIdList_args getEmptyArgsInstance() {
return new worker_getPinIdList_args();
}
protected boolean isOneway() {
return false;
}
public worker_getPinIdList_result getResult(I iface, worker_getPinIdList_args args) throws org.apache.thrift.TException {
worker_getPinIdList_result result = new worker_getPinIdList_result();
result.success = iface.worker_getPinIdList();
return result;
}
}
public static class worker_getPriorityDependencyList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, worker_getPriorityDependencyList_args> {
public worker_getPriorityDependencyList() {
super("worker_getPriorityDependencyList");
}
public worker_getPriorityDependencyList_args getEmptyArgsInstance() {
return new worker_getPriorityDependencyList_args();
}
protected boolean isOneway() {
return false;
}
public worker_getPriorityDependencyList_result getResult(I iface, worker_getPriorityDependencyList_args args) throws org.apache.thrift.TException {
worker_getPriorityDependencyList_result result = new worker_getPriorityDependencyList_result();
result.success = iface.worker_getPriorityDependencyList();
return result;
}
}
public static class user_createDependency<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_createDependency_args> {
public user_createDependency() {
super("user_createDependency");
}
public user_createDependency_args getEmptyArgsInstance() {
return new user_createDependency_args();
}
protected boolean isOneway() {
return false;
}
public user_createDependency_result getResult(I iface, user_createDependency_args args) throws org.apache.thrift.TException {
user_createDependency_result result = new user_createDependency_result();
try {
result.success = iface.user_createDependency(args.parents, args.children, args.commandPrefix, args.data, args.comment, args.framework, args.frameworkVersion, args.dependencyType, args.childrenBlockSizeByte);
result.setSuccessIsSet(true);
} catch (InvalidPathException eI) {
result.eI = eI;
} catch (FileDoesNotExistException eF) {
result.eF = eF;
} catch (FileAlreadyExistException eA) {
result.eA = eA;
} catch (BlockInfoException eB) {
result.eB = eB;
} catch (TachyonException eT) {
result.eT = eT;
}
return result;
}
}
public static class user_getClientDependencyInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_getClientDependencyInfo_args> {
public user_getClientDependencyInfo() {
super("user_getClientDependencyInfo");
}
public user_getClientDependencyInfo_args getEmptyArgsInstance() {
return new user_getClientDependencyInfo_args();
}
protected boolean isOneway() {
return false;
}
public user_getClientDependencyInfo_result getResult(I iface, user_getClientDependencyInfo_args args) throws org.apache.thrift.TException {
user_getClientDependencyInfo_result result = new user_getClientDependencyInfo_result();
try {
result.success = iface.user_getClientDependencyInfo(args.dependencyId);
} catch (DependencyDoesNotExistException e) {
result.e = e;
}
return result;
}
}
public static class user_reportLostFile<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_reportLostFile_args> {
public user_reportLostFile() {
super("user_reportLostFile");
}
public user_reportLostFile_args getEmptyArgsInstance() {
return new user_reportLostFile_args();
}
protected boolean isOneway() {
return false;
}
public user_reportLostFile_result getResult(I iface, user_reportLostFile_args args) throws org.apache.thrift.TException {
user_reportLostFile_result result = new user_reportLostFile_result();
try {
iface.user_reportLostFile(args.fileId);
} catch (FileDoesNotExistException e) {
result.e = e;
}
return result;
}
}
public static class user_requestFilesInDependency<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_requestFilesInDependency_args> {
public user_requestFilesInDependency() {
super("user_requestFilesInDependency");
}
public user_requestFilesInDependency_args getEmptyArgsInstance() {
return new user_requestFilesInDependency_args();
}
protected boolean isOneway() {
return false;
}
public user_requestFilesInDependency_result getResult(I iface, user_requestFilesInDependency_args args) throws org.apache.thrift.TException {
user_requestFilesInDependency_result result = new user_requestFilesInDependency_result();
try {
iface.user_requestFilesInDependency(args.depId);
} catch (DependencyDoesNotExistException e) {
result.e = e;
}
return result;
}
}
public static class user_createFile<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_createFile_args> {
public user_createFile() {
super("user_createFile");
}
public user_createFile_args getEmptyArgsInstance() {
return new user_createFile_args();
}
protected boolean isOneway() {
return false;
}
public user_createFile_result getResult(I iface, user_createFile_args args) throws org.apache.thrift.TException {
user_createFile_result result = new user_createFile_result();
try {
result.success = iface.user_createFile(args.path, args.blockSizeByte);
result.setSuccessIsSet(true);
} catch (FileAlreadyExistException eR) {
result.eR = eR;
} catch (InvalidPathException eI) {
result.eI = eI;
} catch (BlockInfoException eB) {
result.eB = eB;
} catch (TachyonException eT) {
result.eT = eT;
}
return result;
}
}
public static class user_createFileOnCheckpoint<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_createFileOnCheckpoint_args> {
public user_createFileOnCheckpoint() {
super("user_createFileOnCheckpoint");
}
public user_createFileOnCheckpoint_args getEmptyArgsInstance() {
return new user_createFileOnCheckpoint_args();
}
protected boolean isOneway() {
return false;
}
public user_createFileOnCheckpoint_result getResult(I iface, user_createFileOnCheckpoint_args args) throws org.apache.thrift.TException {
user_createFileOnCheckpoint_result result = new user_createFileOnCheckpoint_result();
try {
result.success = iface.user_createFileOnCheckpoint(args.path, args.checkpointPath);
result.setSuccessIsSet(true);
} catch (FileAlreadyExistException eR) {
result.eR = eR;
} catch (InvalidPathException eI) {
result.eI = eI;
} catch (SuspectedFileSizeException eS) {
result.eS = eS;
} catch (BlockInfoException eB) {
result.eB = eB;
} catch (TachyonException eT) {
result.eT = eT;
}
return result;
}
}
public static class user_createNewBlock<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_createNewBlock_args> {
public user_createNewBlock() {
super("user_createNewBlock");
}
public user_createNewBlock_args getEmptyArgsInstance() {
return new user_createNewBlock_args();
}
protected boolean isOneway() {
return false;
}
public user_createNewBlock_result getResult(I iface, user_createNewBlock_args args) throws org.apache.thrift.TException {
user_createNewBlock_result result = new user_createNewBlock_result();
try {
result.success = iface.user_createNewBlock(args.fileId);
result.setSuccessIsSet(true);
} catch (FileDoesNotExistException e) {
result.e = e;
}
return result;
}
}
public static class user_completeFile<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_completeFile_args> {
public user_completeFile() {
super("user_completeFile");
}
public user_completeFile_args getEmptyArgsInstance() {
return new user_completeFile_args();
}
protected boolean isOneway() {
return false;
}
public user_completeFile_result getResult(I iface, user_completeFile_args args) throws org.apache.thrift.TException {
user_completeFile_result result = new user_completeFile_result();
try {
iface.user_completeFile(args.fileId);
} catch (FileDoesNotExistException e) {
result.e = e;
}
return result;
}
}
public static class user_getFileId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_getFileId_args> {
public user_getFileId() {
super("user_getFileId");
}
public user_getFileId_args getEmptyArgsInstance() {
return new user_getFileId_args();
}
protected boolean isOneway() {
return false;
}
public user_getFileId_result getResult(I iface, user_getFileId_args args) throws org.apache.thrift.TException {
user_getFileId_result result = new user_getFileId_result();
try {
result.success = iface.user_getFileId(args.path);
result.setSuccessIsSet(true);
} catch (InvalidPathException e) {
result.e = e;
}
return result;
}
}
public static class user_getUserId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_getUserId_args> {
public user_getUserId() {
super("user_getUserId");
}
public user_getUserId_args getEmptyArgsInstance() {
return new user_getUserId_args();
}
protected boolean isOneway() {
return false;
}
public user_getUserId_result getResult(I iface, user_getUserId_args args) throws org.apache.thrift.TException {
user_getUserId_result result = new user_getUserId_result();
result.success = iface.user_getUserId();
result.setSuccessIsSet(true);
return result;
}
}
public static class user_getBlockId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_getBlockId_args> {
public user_getBlockId() {
super("user_getBlockId");
}
public user_getBlockId_args getEmptyArgsInstance() {
return new user_getBlockId_args();
}
protected boolean isOneway() {
return false;
}
public user_getBlockId_result getResult(I iface, user_getBlockId_args args) throws org.apache.thrift.TException {
user_getBlockId_result result = new user_getBlockId_result();
try {
result.success = iface.user_getBlockId(args.fileId, args.index);
result.setSuccessIsSet(true);
} catch (FileDoesNotExistException e) {
result.e = e;
}
return result;
}
}
public static class user_getWorker<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_getWorker_args> {
public user_getWorker() {
super("user_getWorker");
}
public user_getWorker_args getEmptyArgsInstance() {
return new user_getWorker_args();
}
protected boolean isOneway() {
return false;
}
public user_getWorker_result getResult(I iface, user_getWorker_args args) throws org.apache.thrift.TException {
user_getWorker_result result = new user_getWorker_result();
try {
result.success = iface.user_getWorker(args.random, args.host);
} catch (NoWorkerException e) {
result.e = e;
}
return result;
}
}
public static class getClientFileInfoById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getClientFileInfoById_args> {
public getClientFileInfoById() {
super("getClientFileInfoById");
}
public getClientFileInfoById_args getEmptyArgsInstance() {
return new getClientFileInfoById_args();
}
protected boolean isOneway() {
return false;
}
public getClientFileInfoById_result getResult(I iface, getClientFileInfoById_args args) throws org.apache.thrift.TException {
getClientFileInfoById_result result = new getClientFileInfoById_result();
try {
result.success = iface.getClientFileInfoById(args.fileId);
} catch (FileDoesNotExistException e) {
result.e = e;
}
return result;
}
}
public static class user_getClientFileInfoByPath<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_getClientFileInfoByPath_args> {
public user_getClientFileInfoByPath() {
super("user_getClientFileInfoByPath");
}
public user_getClientFileInfoByPath_args getEmptyArgsInstance() {
return new user_getClientFileInfoByPath_args();
}
protected boolean isOneway() {
return false;
}
public user_getClientFileInfoByPath_result getResult(I iface, user_getClientFileInfoByPath_args args) throws org.apache.thrift.TException {
user_getClientFileInfoByPath_result result = new user_getClientFileInfoByPath_result();
try {
result.success = iface.user_getClientFileInfoByPath(args.path);
} catch (FileDoesNotExistException eF) {
result.eF = eF;
} catch (InvalidPathException eI) {
result.eI = eI;
}
return result;
}
}
public static class user_getClientBlockInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_getClientBlockInfo_args> {
public user_getClientBlockInfo() {
super("user_getClientBlockInfo");
}
public user_getClientBlockInfo_args getEmptyArgsInstance() {
return new user_getClientBlockInfo_args();
}
protected boolean isOneway() {
return false;
}
public user_getClientBlockInfo_result getResult(I iface, user_getClientBlockInfo_args args) throws org.apache.thrift.TException {
user_getClientBlockInfo_result result = new user_getClientBlockInfo_result();
try {
result.success = iface.user_getClientBlockInfo(args.blockId);
} catch (FileDoesNotExistException eF) {
result.eF = eF;
} catch (BlockInfoException eB) {
result.eB = eB;
}
return result;
}
}
public static class user_getFileBlocksById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_getFileBlocksById_args> {
public user_getFileBlocksById() {
super("user_getFileBlocksById");
}
public user_getFileBlocksById_args getEmptyArgsInstance() {
return new user_getFileBlocksById_args();
}
protected boolean isOneway() {
return false;
}
public user_getFileBlocksById_result getResult(I iface, user_getFileBlocksById_args args) throws org.apache.thrift.TException {
user_getFileBlocksById_result result = new user_getFileBlocksById_result();
try {
result.success = iface.user_getFileBlocksById(args.fileId);
} catch (FileDoesNotExistException e) {
result.e = e;
}
return result;
}
}
public static class user_getFileBlocksByPath<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_getFileBlocksByPath_args> {
public user_getFileBlocksByPath() {
super("user_getFileBlocksByPath");
}
public user_getFileBlocksByPath_args getEmptyArgsInstance() {
return new user_getFileBlocksByPath_args();
}
protected boolean isOneway() {
return false;
}
public user_getFileBlocksByPath_result getResult(I iface, user_getFileBlocksByPath_args args) throws org.apache.thrift.TException {
user_getFileBlocksByPath_result result = new user_getFileBlocksByPath_result();
try {
result.success = iface.user_getFileBlocksByPath(args.path);
} catch (FileDoesNotExistException eF) {
result.eF = eF;
} catch (InvalidPathException eI) {
result.eI = eI;
}
return result;
}
}
public static class user_listFiles<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_listFiles_args> {
public user_listFiles() {
super("user_listFiles");
}
public user_listFiles_args getEmptyArgsInstance() {
return new user_listFiles_args();
}
protected boolean isOneway() {
return false;
}
public user_listFiles_result getResult(I iface, user_listFiles_args args) throws org.apache.thrift.TException {
user_listFiles_result result = new user_listFiles_result();
try {
result.success = iface.user_listFiles(args.path, args.recursive);
} catch (FileDoesNotExistException eF) {
result.eF = eF;
} catch (InvalidPathException eI) {
result.eI = eI;
}
return result;
}
}
public static class user_ls<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_ls_args> {
public user_ls() {
super("user_ls");
}
public user_ls_args getEmptyArgsInstance() {
return new user_ls_args();
}
protected boolean isOneway() {
return false;
}
public user_ls_result getResult(I iface, user_ls_args args) throws org.apache.thrift.TException {
user_ls_result result = new user_ls_result();
try {
result.success = iface.user_ls(args.path, args.recursive);
} catch (FileDoesNotExistException eF) {
result.eF = eF;
} catch (InvalidPathException eI) {
result.eI = eI;
}
return result;
}
}
public static class user_deleteById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_deleteById_args> {
public user_deleteById() {
super("user_deleteById");
}
public user_deleteById_args getEmptyArgsInstance() {
return new user_deleteById_args();
}
protected boolean isOneway() {
return false;
}
public user_deleteById_result getResult(I iface, user_deleteById_args args) throws org.apache.thrift.TException {
user_deleteById_result result = new user_deleteById_result();
try {
result.success = iface.user_deleteById(args.fileId, args.recursive);
result.setSuccessIsSet(true);
} catch (TachyonException e) {
result.e = e;
}
return result;
}
}
public static class user_deleteByPath<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_deleteByPath_args> {
public user_deleteByPath() {
super("user_deleteByPath");
}
public user_deleteByPath_args getEmptyArgsInstance() {
return new user_deleteByPath_args();
}
protected boolean isOneway() {
return false;
}
public user_deleteByPath_result getResult(I iface, user_deleteByPath_args args) throws org.apache.thrift.TException {
user_deleteByPath_result result = new user_deleteByPath_result();
try {
result.success = iface.user_deleteByPath(args.path, args.recursive);
result.setSuccessIsSet(true);
} catch (TachyonException e) {
result.e = e;
}
return result;
}
}
public static class user_outOfMemoryForPinFile<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_outOfMemoryForPinFile_args> {
public user_outOfMemoryForPinFile() {
super("user_outOfMemoryForPinFile");
}
public user_outOfMemoryForPinFile_args getEmptyArgsInstance() {
return new user_outOfMemoryForPinFile_args();
}
protected boolean isOneway() {
return false;
}
public user_outOfMemoryForPinFile_result getResult(I iface, user_outOfMemoryForPinFile_args args) throws org.apache.thrift.TException {
user_outOfMemoryForPinFile_result result = new user_outOfMemoryForPinFile_result();
iface.user_outOfMemoryForPinFile(args.fileId);
return result;
}
}
public static class user_rename<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_rename_args> {
public user_rename() {
super("user_rename");
}
public user_rename_args getEmptyArgsInstance() {
return new user_rename_args();
}
protected boolean isOneway() {
return false;
}
public user_rename_result getResult(I iface, user_rename_args args) throws org.apache.thrift.TException {
user_rename_result result = new user_rename_result();
try {
result.success = iface.user_rename(args.srcPath, args.dstPath);
result.setSuccessIsSet(true);
} catch (FileAlreadyExistException eA) {
result.eA = eA;
} catch (FileDoesNotExistException eF) {
result.eF = eF;
} catch (InvalidPathException eI) {
result.eI = eI;
}
return result;
}
}
public static class user_renameTo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_renameTo_args> {
public user_renameTo() {
super("user_renameTo");
}
public user_renameTo_args getEmptyArgsInstance() {
return new user_renameTo_args();
}
protected boolean isOneway() {
return false;
}
public user_renameTo_result getResult(I iface, user_renameTo_args args) throws org.apache.thrift.TException {
user_renameTo_result result = new user_renameTo_result();
try {
iface.user_renameTo(args.fileId, args.dstPath);
} catch (FileAlreadyExistException eA) {
result.eA = eA;
} catch (FileDoesNotExistException eF) {
result.eF = eF;
} catch (InvalidPathException eI) {
result.eI = eI;
}
return result;
}
}
public static class user_setPinned<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_setPinned_args> {
public user_setPinned() {
super("user_setPinned");
}
public user_setPinned_args getEmptyArgsInstance() {
return new user_setPinned_args();
}
protected boolean isOneway() {
return false;
}
public user_setPinned_result getResult(I iface, user_setPinned_args args) throws org.apache.thrift.TException {
user_setPinned_result result = new user_setPinned_result();
try {
iface.user_setPinned(args.fileId, args.pinned);
} catch (FileDoesNotExistException e) {
result.e = e;
}
return result;
}
}
public static class user_mkdir<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_mkdir_args> {
public user_mkdir() {
super("user_mkdir");
}
public user_mkdir_args getEmptyArgsInstance() {
return new user_mkdir_args();
}
protected boolean isOneway() {
return false;
}
public user_mkdir_result getResult(I iface, user_mkdir_args args) throws org.apache.thrift.TException {
user_mkdir_result result = new user_mkdir_result();
try {
result.success = iface.user_mkdir(args.path);
result.setSuccessIsSet(true);
} catch (FileAlreadyExistException eR) {
result.eR = eR;
} catch (InvalidPathException eI) {
result.eI = eI;
} catch (TachyonException eT) {
result.eT = eT;
}
return result;
}
}
public static class user_createRawTable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_createRawTable_args> {
public user_createRawTable() {
super("user_createRawTable");
}
public user_createRawTable_args getEmptyArgsInstance() {
return new user_createRawTable_args();
}
protected boolean isOneway() {
return false;
}
public user_createRawTable_result getResult(I iface, user_createRawTable_args args) throws org.apache.thrift.TException {
user_createRawTable_result result = new user_createRawTable_result();
try {
result.success = iface.user_createRawTable(args.path, args.columns, args.metadata);
result.setSuccessIsSet(true);
} catch (FileAlreadyExistException eR) {
result.eR = eR;
} catch (InvalidPathException eI) {
result.eI = eI;
} catch (TableColumnException eT) {
result.eT = eT;
} catch (TachyonException eTa) {
result.eTa = eTa;
}
return result;
}
}
public static class user_getRawTableId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_getRawTableId_args> {
public user_getRawTableId() {
super("user_getRawTableId");
}
public user_getRawTableId_args getEmptyArgsInstance() {
return new user_getRawTableId_args();
}
protected boolean isOneway() {
return false;
}
public user_getRawTableId_result getResult(I iface, user_getRawTableId_args args) throws org.apache.thrift.TException {
user_getRawTableId_result result = new user_getRawTableId_result();
try {
result.success = iface.user_getRawTableId(args.path);
result.setSuccessIsSet(true);
} catch (InvalidPathException e) {
result.e = e;
}
return result;
}
}
public static class user_getClientRawTableInfoById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_getClientRawTableInfoById_args> {
public user_getClientRawTableInfoById() {
super("user_getClientRawTableInfoById");
}
public user_getClientRawTableInfoById_args getEmptyArgsInstance() {
return new user_getClientRawTableInfoById_args();
}
protected boolean isOneway() {
return false;
}
public user_getClientRawTableInfoById_result getResult(I iface, user_getClientRawTableInfoById_args args) throws org.apache.thrift.TException {
user_getClientRawTableInfoById_result result = new user_getClientRawTableInfoById_result();
try {
result.success = iface.user_getClientRawTableInfoById(args.tableId);
} catch (TableDoesNotExistException e) {
result.e = e;
}
return result;
}
}
public static class user_getClientRawTableInfoByPath<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_getClientRawTableInfoByPath_args> {
public user_getClientRawTableInfoByPath() {
super("user_getClientRawTableInfoByPath");
}
public user_getClientRawTableInfoByPath_args getEmptyArgsInstance() {
return new user_getClientRawTableInfoByPath_args();
}
protected boolean isOneway() {
return false;
}
public user_getClientRawTableInfoByPath_result getResult(I iface, user_getClientRawTableInfoByPath_args args) throws org.apache.thrift.TException {
user_getClientRawTableInfoByPath_result result = new user_getClientRawTableInfoByPath_result();
try {
result.success = iface.user_getClientRawTableInfoByPath(args.tablePath);
} catch (TableDoesNotExistException eT) {
result.eT = eT;
} catch (InvalidPathException eI) {
result.eI = eI;
}
return result;
}
}
public static class user_updateRawTableMetadata<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_updateRawTableMetadata_args> {
public user_updateRawTableMetadata() {
super("user_updateRawTableMetadata");
}
public user_updateRawTableMetadata_args getEmptyArgsInstance() {
return new user_updateRawTableMetadata_args();
}
protected boolean isOneway() {
return false;
}
public user_updateRawTableMetadata_result getResult(I iface, user_updateRawTableMetadata_args args) throws org.apache.thrift.TException {
user_updateRawTableMetadata_result result = new user_updateRawTableMetadata_result();
try {
iface.user_updateRawTableMetadata(args.tableId, args.metadata);
} catch (TableDoesNotExistException eT) {
result.eT = eT;
} catch (TachyonException eTa) {
result.eTa = eTa;
}
return result;
}
}
public static class user_getNumberOfFiles<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_getNumberOfFiles_args> {
public user_getNumberOfFiles() {
super("user_getNumberOfFiles");
}
public user_getNumberOfFiles_args getEmptyArgsInstance() {
return new user_getNumberOfFiles_args();
}
protected boolean isOneway() {
return false;
}
public user_getNumberOfFiles_result getResult(I iface, user_getNumberOfFiles_args args) throws org.apache.thrift.TException {
user_getNumberOfFiles_result result = new user_getNumberOfFiles_result();
try {
result.success = iface.user_getNumberOfFiles(args.path);
result.setSuccessIsSet(true);
} catch (FileDoesNotExistException eR) {
result.eR = eR;
} catch (InvalidPathException eI) {
result.eI = eI;
}
return result;
}
}
public static class user_getUnderfsAddress<I extends Iface> extends org.apache.thrift.ProcessFunction<I, user_getUnderfsAddress_args> {
public user_getUnderfsAddress() {
super("user_getUnderfsAddress");
}
public user_getUnderfsAddress_args getEmptyArgsInstance() {
return new user_getUnderfsAddress_args();
}
protected boolean isOneway() {
return false;
}
public user_getUnderfsAddress_result getResult(I iface, user_getUnderfsAddress_args args) throws org.apache.thrift.TException {
user_getUnderfsAddress_result result = new user_getUnderfsAddress_result();
result.success = iface.user_getUnderfsAddress();
return result;
}
}
}
public static class addCheckpoint_args implements org.apache.thrift.TBase<addCheckpoint_args, addCheckpoint_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCheckpoint_args");
private static final org.apache.thrift.protocol.TField WORKER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("workerId", org.apache.thrift.protocol.TType.I64, (short)1);
private static final org.apache.thrift.protocol.TField FILE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fileId", org.apache.thrift.protocol.TType.I32, (short)2);
private static final org.apache.thrift.protocol.TField LENGTH_FIELD_DESC = new org.apache.thrift.protocol.TField("length", org.apache.thrift.protocol.TType.I64, (short)3);
private static final org.apache.thrift.protocol.TField CHECKPOINT_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("checkpointPath", org.apache.thrift.protocol.TType.STRING, (short)4);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new addCheckpoint_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new addCheckpoint_argsTupleSchemeFactory());
}
public long workerId; // required
public int fileId; // required
public long length; // required
public String checkpointPath; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
WORKER_ID((short)1, "workerId"),
FILE_ID((short)2, "fileId"),
LENGTH((short)3, "length"),
CHECKPOINT_PATH((short)4, "checkpointPath");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // WORKER_ID
return WORKER_ID;
case 2: // FILE_ID
return FILE_ID;
case 3: // LENGTH
return LENGTH;
case 4: // CHECKPOINT_PATH
return CHECKPOINT_PATH;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __WORKERID_ISSET_ID = 0;
private static final int __FILEID_ISSET_ID = 1;
private static final int __LENGTH_ISSET_ID = 2;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.WORKER_ID, new org.apache.thrift.meta_data.FieldMetaData("workerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.FILE_ID, new org.apache.thrift.meta_data.FieldMetaData("fileId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.LENGTH, new org.apache.thrift.meta_data.FieldMetaData("length", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.CHECKPOINT_PATH, new org.apache.thrift.meta_data.FieldMetaData("checkpointPath", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCheckpoint_args.class, metaDataMap);
}
public addCheckpoint_args() {
}
public addCheckpoint_args(
long workerId,
int fileId,
long length,
String checkpointPath)
{
this();
this.workerId = workerId;
setWorkerIdIsSet(true);
this.fileId = fileId;
setFileIdIsSet(true);
this.length = length;
setLengthIsSet(true);
this.checkpointPath = checkpointPath;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public addCheckpoint_args(addCheckpoint_args other) {
__isset_bitfield = other.__isset_bitfield;
this.workerId = other.workerId;
this.fileId = other.fileId;
this.length = other.length;
if (other.isSetCheckpointPath()) {
this.checkpointPath = other.checkpointPath;
}
}
public addCheckpoint_args deepCopy() {
return new addCheckpoint_args(this);
}
@Override
public void clear() {
setWorkerIdIsSet(false);
this.workerId = 0;
setFileIdIsSet(false);
this.fileId = 0;
setLengthIsSet(false);
this.length = 0;
this.checkpointPath = null;
}
public long getWorkerId() {
return this.workerId;
}
public addCheckpoint_args setWorkerId(long workerId) {
this.workerId = workerId;
setWorkerIdIsSet(true);
return this;
}
public void unsetWorkerId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WORKERID_ISSET_ID);
}
/** Returns true if field workerId is set (has been assigned a value) and false otherwise */
public boolean isSetWorkerId() {
return EncodingUtils.testBit(__isset_bitfield, __WORKERID_ISSET_ID);
}
public void setWorkerIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WORKERID_ISSET_ID, value);
}
public int getFileId() {
return this.fileId;
}
public addCheckpoint_args setFileId(int fileId) {
this.fileId = fileId;
setFileIdIsSet(true);
return this;
}
public void unsetFileId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILEID_ISSET_ID);
}
/** Returns true if field fileId is set (has been assigned a value) and false otherwise */
public boolean isSetFileId() {
return EncodingUtils.testBit(__isset_bitfield, __FILEID_ISSET_ID);
}
public void setFileIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILEID_ISSET_ID, value);
}
public long getLength() {
return this.length;
}
public addCheckpoint_args setLength(long length) {
this.length = length;
setLengthIsSet(true);
return this;
}
public void unsetLength() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LENGTH_ISSET_ID);
}
/** Returns true if field length is set (has been assigned a value) and false otherwise */
public boolean isSetLength() {
return EncodingUtils.testBit(__isset_bitfield, __LENGTH_ISSET_ID);
}
public void setLengthIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LENGTH_ISSET_ID, value);
}
public String getCheckpointPath() {
return this.checkpointPath;
}
public addCheckpoint_args setCheckpointPath(String checkpointPath) {
this.checkpointPath = checkpointPath;
return this;
}
public void unsetCheckpointPath() {
this.checkpointPath = null;
}
/** Returns true if field checkpointPath is set (has been assigned a value) and false otherwise */
public boolean isSetCheckpointPath() {
return this.checkpointPath != null;
}
public void setCheckpointPathIsSet(boolean value) {
if (!value) {
this.checkpointPath = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case WORKER_ID:
if (value == null) {
unsetWorkerId();
} else {
setWorkerId((Long)value);
}
break;
case FILE_ID:
if (value == null) {
unsetFileId();
} else {
setFileId((Integer)value);
}
break;
case LENGTH:
if (value == null) {
unsetLength();
} else {
setLength((Long)value);
}
break;
case CHECKPOINT_PATH:
if (value == null) {
unsetCheckpointPath();
} else {
setCheckpointPath((String)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case WORKER_ID:
return Long.valueOf(getWorkerId());
case FILE_ID:
return Integer.valueOf(getFileId());
case LENGTH:
return Long.valueOf(getLength());
case CHECKPOINT_PATH:
return getCheckpointPath();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case WORKER_ID:
return isSetWorkerId();
case FILE_ID:
return isSetFileId();
case LENGTH:
return isSetLength();
case CHECKPOINT_PATH:
return isSetCheckpointPath();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof addCheckpoint_args)
return this.equals((addCheckpoint_args)that);
return false;
}
public boolean equals(addCheckpoint_args that) {
if (that == null)
return false;
boolean this_present_workerId = true;
boolean that_present_workerId = true;
if (this_present_workerId || that_present_workerId) {
if (!(this_present_workerId && that_present_workerId))
return false;
if (this.workerId != that.workerId)
return false;
}
boolean this_present_fileId = true;
boolean that_present_fileId = true;
if (this_present_fileId || that_present_fileId) {
if (!(this_present_fileId && that_present_fileId))
return false;
if (this.fileId != that.fileId)
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;
}
boolean this_present_checkpointPath = true && this.isSetCheckpointPath();
boolean that_present_checkpointPath = true && that.isSetCheckpointPath();
if (this_present_checkpointPath || that_present_checkpointPath) {
if (!(this_present_checkpointPath && that_present_checkpointPath))
return false;
if (!this.checkpointPath.equals(that.checkpointPath))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(addCheckpoint_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
addCheckpoint_args typedOther = (addCheckpoint_args)other;
lastComparison = Boolean.valueOf(isSetWorkerId()).compareTo(typedOther.isSetWorkerId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetWorkerId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.workerId, typedOther.workerId);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetFileId()).compareTo(typedOther.isSetFileId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFileId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileId, typedOther.fileId);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetLength()).compareTo(typedOther.isSetLength());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetLength()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.length, typedOther.length);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetCheckpointPath()).compareTo(typedOther.isSetCheckpointPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCheckpointPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.checkpointPath, typedOther.checkpointPath);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("addCheckpoint_args(");
boolean first = true;
sb.append("workerId:");
sb.append(this.workerId);
first = false;
if (!first) sb.append(", ");
sb.append("fileId:");
sb.append(this.fileId);
first = false;
if (!first) sb.append(", ");
sb.append("length:");
sb.append(this.length);
first = false;
if (!first) sb.append(", ");
sb.append("checkpointPath:");
if (this.checkpointPath == null) {
sb.append("null");
} else {
sb.append(this.checkpointPath);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class addCheckpoint_argsStandardSchemeFactory implements SchemeFactory {
public addCheckpoint_argsStandardScheme getScheme() {
return new addCheckpoint_argsStandardScheme();
}
}
private static class addCheckpoint_argsStandardScheme extends StandardScheme<addCheckpoint_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, addCheckpoint_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // WORKER_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.workerId = iprot.readI64();
struct.setWorkerIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // FILE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // LENGTH
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.length = iprot.readI64();
struct.setLengthIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // CHECKPOINT_PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.checkpointPath = iprot.readString();
struct.setCheckpointPathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, addCheckpoint_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(WORKER_ID_FIELD_DESC);
oprot.writeI64(struct.workerId);
oprot.writeFieldEnd();
oprot.writeFieldBegin(FILE_ID_FIELD_DESC);
oprot.writeI32(struct.fileId);
oprot.writeFieldEnd();
oprot.writeFieldBegin(LENGTH_FIELD_DESC);
oprot.writeI64(struct.length);
oprot.writeFieldEnd();
if (struct.checkpointPath != null) {
oprot.writeFieldBegin(CHECKPOINT_PATH_FIELD_DESC);
oprot.writeString(struct.checkpointPath);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class addCheckpoint_argsTupleSchemeFactory implements SchemeFactory {
public addCheckpoint_argsTupleScheme getScheme() {
return new addCheckpoint_argsTupleScheme();
}
}
private static class addCheckpoint_argsTupleScheme extends TupleScheme<addCheckpoint_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, addCheckpoint_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetWorkerId()) {
optionals.set(0);
}
if (struct.isSetFileId()) {
optionals.set(1);
}
if (struct.isSetLength()) {
optionals.set(2);
}
if (struct.isSetCheckpointPath()) {
optionals.set(3);
}
oprot.writeBitSet(optionals, 4);
if (struct.isSetWorkerId()) {
oprot.writeI64(struct.workerId);
}
if (struct.isSetFileId()) {
oprot.writeI32(struct.fileId);
}
if (struct.isSetLength()) {
oprot.writeI64(struct.length);
}
if (struct.isSetCheckpointPath()) {
oprot.writeString(struct.checkpointPath);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, addCheckpoint_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
struct.workerId = iprot.readI64();
struct.setWorkerIdIsSet(true);
}
if (incoming.get(1)) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
}
if (incoming.get(2)) {
struct.length = iprot.readI64();
struct.setLengthIsSet(true);
}
if (incoming.get(3)) {
struct.checkpointPath = iprot.readString();
struct.setCheckpointPathIsSet(true);
}
}
}
}
public static class addCheckpoint_result implements org.apache.thrift.TBase<addCheckpoint_result, addCheckpoint_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCheckpoint_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
private static final org.apache.thrift.protocol.TField E_P_FIELD_DESC = new org.apache.thrift.protocol.TField("eP", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField E_S_FIELD_DESC = new org.apache.thrift.protocol.TField("eS", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final org.apache.thrift.protocol.TField E_B_FIELD_DESC = new org.apache.thrift.protocol.TField("eB", org.apache.thrift.protocol.TType.STRUCT, (short)3);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new addCheckpoint_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new addCheckpoint_resultTupleSchemeFactory());
}
public boolean success; // required
public FileDoesNotExistException eP; // required
public SuspectedFileSizeException eS; // required
public BlockInfoException eB; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E_P((short)1, "eP"),
E_S((short)2, "eS"),
E_B((short)3, "eB");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E_P
return E_P;
case 2: // E_S
return E_S;
case 3: // E_B
return E_B;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
tmpMap.put(_Fields.E_P, new org.apache.thrift.meta_data.FieldMetaData("eP", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_S, new org.apache.thrift.meta_data.FieldMetaData("eS", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_B, new org.apache.thrift.meta_data.FieldMetaData("eB", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCheckpoint_result.class, metaDataMap);
}
public addCheckpoint_result() {
}
public addCheckpoint_result(
boolean success,
FileDoesNotExistException eP,
SuspectedFileSizeException eS,
BlockInfoException eB)
{
this();
this.success = success;
setSuccessIsSet(true);
this.eP = eP;
this.eS = eS;
this.eB = eB;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public addCheckpoint_result(addCheckpoint_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
if (other.isSetEP()) {
this.eP = new FileDoesNotExistException(other.eP);
}
if (other.isSetES()) {
this.eS = new SuspectedFileSizeException(other.eS);
}
if (other.isSetEB()) {
this.eB = new BlockInfoException(other.eB);
}
}
public addCheckpoint_result deepCopy() {
return new addCheckpoint_result(this);
}
@Override
public void clear() {
setSuccessIsSet(false);
this.success = false;
this.eP = null;
this.eS = null;
this.eB = null;
}
public boolean isSuccess() {
return this.success;
}
public addCheckpoint_result setSuccess(boolean success) {
this.success = success;
setSuccessIsSet(true);
return this;
}
public void unsetSuccess() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public FileDoesNotExistException getEP() {
return this.eP;
}
public addCheckpoint_result setEP(FileDoesNotExistException eP) {
this.eP = eP;
return this;
}
public void unsetEP() {
this.eP = null;
}
/** Returns true if field eP is set (has been assigned a value) and false otherwise */
public boolean isSetEP() {
return this.eP != null;
}
public void setEPIsSet(boolean value) {
if (!value) {
this.eP = null;
}
}
public SuspectedFileSizeException getES() {
return this.eS;
}
public addCheckpoint_result setES(SuspectedFileSizeException eS) {
this.eS = eS;
return this;
}
public void unsetES() {
this.eS = null;
}
/** Returns true if field eS is set (has been assigned a value) and false otherwise */
public boolean isSetES() {
return this.eS != null;
}
public void setESIsSet(boolean value) {
if (!value) {
this.eS = null;
}
}
public BlockInfoException getEB() {
return this.eB;
}
public addCheckpoint_result setEB(BlockInfoException eB) {
this.eB = eB;
return this;
}
public void unsetEB() {
this.eB = null;
}
/** Returns true if field eB is set (has been assigned a value) and false otherwise */
public boolean isSetEB() {
return this.eB != null;
}
public void setEBIsSet(boolean value) {
if (!value) {
this.eB = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Boolean)value);
}
break;
case E_P:
if (value == null) {
unsetEP();
} else {
setEP((FileDoesNotExistException)value);
}
break;
case E_S:
if (value == null) {
unsetES();
} else {
setES((SuspectedFileSizeException)value);
}
break;
case E_B:
if (value == null) {
unsetEB();
} else {
setEB((BlockInfoException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return Boolean.valueOf(isSuccess());
case E_P:
return getEP();
case E_S:
return getES();
case E_B:
return getEB();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E_P:
return isSetEP();
case E_S:
return isSetES();
case E_B:
return isSetEB();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof addCheckpoint_result)
return this.equals((addCheckpoint_result)that);
return false;
}
public boolean equals(addCheckpoint_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_eP = true && this.isSetEP();
boolean that_present_eP = true && that.isSetEP();
if (this_present_eP || that_present_eP) {
if (!(this_present_eP && that_present_eP))
return false;
if (!this.eP.equals(that.eP))
return false;
}
boolean this_present_eS = true && this.isSetES();
boolean that_present_eS = true && that.isSetES();
if (this_present_eS || that_present_eS) {
if (!(this_present_eS && that_present_eS))
return false;
if (!this.eS.equals(that.eS))
return false;
}
boolean this_present_eB = true && this.isSetEB();
boolean that_present_eB = true && that.isSetEB();
if (this_present_eB || that_present_eB) {
if (!(this_present_eB && that_present_eB))
return false;
if (!this.eB.equals(that.eB))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(addCheckpoint_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
addCheckpoint_result typedOther = (addCheckpoint_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEP()).compareTo(typedOther.isSetEP());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEP()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eP, typedOther.eP);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetES()).compareTo(typedOther.isSetES());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetES()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eS, typedOther.eS);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEB()).compareTo(typedOther.isSetEB());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEB()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eB, typedOther.eB);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("addCheckpoint_result(");
boolean first = true;
sb.append("success:");
sb.append(this.success);
first = false;
if (!first) sb.append(", ");
sb.append("eP:");
if (this.eP == null) {
sb.append("null");
} else {
sb.append(this.eP);
}
first = false;
if (!first) sb.append(", ");
sb.append("eS:");
if (this.eS == null) {
sb.append("null");
} else {
sb.append(this.eS);
}
first = false;
if (!first) sb.append(", ");
sb.append("eB:");
if (this.eB == null) {
sb.append("null");
} else {
sb.append(this.eB);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class addCheckpoint_resultStandardSchemeFactory implements SchemeFactory {
public addCheckpoint_resultStandardScheme getScheme() {
return new addCheckpoint_resultStandardScheme();
}
}
private static class addCheckpoint_resultStandardScheme extends StandardScheme<addCheckpoint_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, addCheckpoint_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.success = iprot.readBool();
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E_P
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eP = new FileDoesNotExistException();
struct.eP.read(iprot);
struct.setEPIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // E_S
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eS = new SuspectedFileSizeException();
struct.eS.read(iprot);
struct.setESIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // E_B
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eB = new BlockInfoException();
struct.eB.read(iprot);
struct.setEBIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, addCheckpoint_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.isSetSuccess()) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeBool(struct.success);
oprot.writeFieldEnd();
}
if (struct.eP != null) {
oprot.writeFieldBegin(E_P_FIELD_DESC);
struct.eP.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eS != null) {
oprot.writeFieldBegin(E_S_FIELD_DESC);
struct.eS.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eB != null) {
oprot.writeFieldBegin(E_B_FIELD_DESC);
struct.eB.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class addCheckpoint_resultTupleSchemeFactory implements SchemeFactory {
public addCheckpoint_resultTupleScheme getScheme() {
return new addCheckpoint_resultTupleScheme();
}
}
private static class addCheckpoint_resultTupleScheme extends TupleScheme<addCheckpoint_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, addCheckpoint_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetEP()) {
optionals.set(1);
}
if (struct.isSetES()) {
optionals.set(2);
}
if (struct.isSetEB()) {
optionals.set(3);
}
oprot.writeBitSet(optionals, 4);
if (struct.isSetSuccess()) {
oprot.writeBool(struct.success);
}
if (struct.isSetEP()) {
struct.eP.write(oprot);
}
if (struct.isSetES()) {
struct.eS.write(oprot);
}
if (struct.isSetEB()) {
struct.eB.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, addCheckpoint_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
struct.success = iprot.readBool();
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.eP = new FileDoesNotExistException();
struct.eP.read(iprot);
struct.setEPIsSet(true);
}
if (incoming.get(2)) {
struct.eS = new SuspectedFileSizeException();
struct.eS.read(iprot);
struct.setESIsSet(true);
}
if (incoming.get(3)) {
struct.eB = new BlockInfoException();
struct.eB.read(iprot);
struct.setEBIsSet(true);
}
}
}
}
public static class getWorkersInfo_args implements org.apache.thrift.TBase<getWorkersInfo_args, getWorkersInfo_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWorkersInfo_args");
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getWorkersInfo_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getWorkersInfo_argsTupleSchemeFactory());
}
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
;
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWorkersInfo_args.class, metaDataMap);
}
public getWorkersInfo_args() {
}
/**
* Performs a deep copy on <i>other</i>.
*/
public getWorkersInfo_args(getWorkersInfo_args other) {
}
public getWorkersInfo_args deepCopy() {
return new getWorkersInfo_args(this);
}
@Override
public void clear() {
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof getWorkersInfo_args)
return this.equals((getWorkersInfo_args)that);
return false;
}
public boolean equals(getWorkersInfo_args that) {
if (that == null)
return false;
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(getWorkersInfo_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
getWorkersInfo_args typedOther = (getWorkersInfo_args)other;
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("getWorkersInfo_args(");
boolean first = true;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class getWorkersInfo_argsStandardSchemeFactory implements SchemeFactory {
public getWorkersInfo_argsStandardScheme getScheme() {
return new getWorkersInfo_argsStandardScheme();
}
}
private static class getWorkersInfo_argsStandardScheme extends StandardScheme<getWorkersInfo_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, getWorkersInfo_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, getWorkersInfo_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class getWorkersInfo_argsTupleSchemeFactory implements SchemeFactory {
public getWorkersInfo_argsTupleScheme getScheme() {
return new getWorkersInfo_argsTupleScheme();
}
}
private static class getWorkersInfo_argsTupleScheme extends TupleScheme<getWorkersInfo_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getWorkersInfo_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getWorkersInfo_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
}
}
}
public static class getWorkersInfo_result implements org.apache.thrift.TBase<getWorkersInfo_result, getWorkersInfo_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWorkersInfo_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getWorkersInfo_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getWorkersInfo_resultTupleSchemeFactory());
}
public List<ClientWorkerInfo> success; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ClientWorkerInfo.class))));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWorkersInfo_result.class, metaDataMap);
}
public getWorkersInfo_result() {
}
public getWorkersInfo_result(
List<ClientWorkerInfo> success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public getWorkersInfo_result(getWorkersInfo_result other) {
if (other.isSetSuccess()) {
List<ClientWorkerInfo> __this__success = new ArrayList<ClientWorkerInfo>();
for (ClientWorkerInfo other_element : other.success) {
__this__success.add(new ClientWorkerInfo(other_element));
}
this.success = __this__success;
}
}
public getWorkersInfo_result deepCopy() {
return new getWorkersInfo_result(this);
}
@Override
public void clear() {
this.success = null;
}
public int getSuccessSize() {
return (this.success == null) ? 0 : this.success.size();
}
public java.util.Iterator<ClientWorkerInfo> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(ClientWorkerInfo elem) {
if (this.success == null) {
this.success = new ArrayList<ClientWorkerInfo>();
}
this.success.add(elem);
}
public List<ClientWorkerInfo> getSuccess() {
return this.success;
}
public getWorkersInfo_result setSuccess(List<ClientWorkerInfo> success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((List<ClientWorkerInfo>)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof getWorkersInfo_result)
return this.equals((getWorkersInfo_result)that);
return false;
}
public boolean equals(getWorkersInfo_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
if (this_present_success || that_present_success) {
if (!(this_present_success && that_present_success))
return false;
if (!this.success.equals(that.success))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(getWorkersInfo_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
getWorkersInfo_result typedOther = (getWorkersInfo_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("getWorkersInfo_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class getWorkersInfo_resultStandardSchemeFactory implements SchemeFactory {
public getWorkersInfo_resultStandardScheme getScheme() {
return new getWorkersInfo_resultStandardScheme();
}
}
private static class getWorkersInfo_resultStandardScheme extends StandardScheme<getWorkersInfo_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, getWorkersInfo_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
struct.success = new ArrayList<ClientWorkerInfo>(_list48.size);
for (int _i49 = 0; _i49 < _list48.size; ++_i49)
{
ClientWorkerInfo _elem50; // required
_elem50 = new ClientWorkerInfo();
_elem50.read(iprot);
struct.success.add(_elem50);
}
iprot.readListEnd();
}
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, getWorkersInfo_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
for (ClientWorkerInfo _iter51 : struct.success)
{
_iter51.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class getWorkersInfo_resultTupleSchemeFactory implements SchemeFactory {
public getWorkersInfo_resultTupleScheme getScheme() {
return new getWorkersInfo_resultTupleScheme();
}
}
private static class getWorkersInfo_resultTupleScheme extends TupleScheme<getWorkersInfo_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getWorkersInfo_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
for (ClientWorkerInfo _iter52 : struct.success)
{
_iter52.write(oprot);
}
}
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getWorkersInfo_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list53 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.success = new ArrayList<ClientWorkerInfo>(_list53.size);
for (int _i54 = 0; _i54 < _list53.size; ++_i54)
{
ClientWorkerInfo _elem55; // required
_elem55 = new ClientWorkerInfo();
_elem55.read(iprot);
struct.success.add(_elem55);
}
}
struct.setSuccessIsSet(true);
}
}
}
}
public static class liststatus_args implements org.apache.thrift.TBase<liststatus_args, liststatus_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("liststatus_args");
private static final org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new liststatus_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new liststatus_argsTupleSchemeFactory());
}
public String path; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
PATH((short)1, "path");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // PATH
return PATH;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(liststatus_args.class, metaDataMap);
}
public liststatus_args() {
}
public liststatus_args(
String path)
{
this();
this.path = path;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public liststatus_args(liststatus_args other) {
if (other.isSetPath()) {
this.path = other.path;
}
}
public liststatus_args deepCopy() {
return new liststatus_args(this);
}
@Override
public void clear() {
this.path = null;
}
public String getPath() {
return this.path;
}
public liststatus_args setPath(String path) {
this.path = path;
return this;
}
public void unsetPath() {
this.path = null;
}
/** Returns true if field path is set (has been assigned a value) and false otherwise */
public boolean isSetPath() {
return this.path != null;
}
public void setPathIsSet(boolean value) {
if (!value) {
this.path = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case PATH:
if (value == null) {
unsetPath();
} else {
setPath((String)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case PATH:
return getPath();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case PATH:
return isSetPath();
}
throw new IllegalStateException();
}
@Override
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.isSetPath();
boolean that_present_path = true && that.isSetPath();
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;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(liststatus_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
liststatus_args typedOther = (liststatus_args)other;
lastComparison = Boolean.valueOf(isSetPath()).compareTo(typedOther.isSetPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, typedOther.path);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("liststatus_args(");
boolean first = true;
sb.append("path:");
if (this.path == null) {
sb.append("null");
} else {
sb.append(this.path);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class liststatus_argsStandardSchemeFactory implements SchemeFactory {
public liststatus_argsStandardScheme getScheme() {
return new liststatus_argsStandardScheme();
}
}
private static class liststatus_argsStandardScheme extends StandardScheme<liststatus_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, liststatus_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, liststatus_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.path != null) {
oprot.writeFieldBegin(PATH_FIELD_DESC);
oprot.writeString(struct.path);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class liststatus_argsTupleSchemeFactory implements SchemeFactory {
public liststatus_argsTupleScheme getScheme() {
return new liststatus_argsTupleScheme();
}
}
private static class liststatus_argsTupleScheme extends TupleScheme<liststatus_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, liststatus_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetPath()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetPath()) {
oprot.writeString(struct.path);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, liststatus_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
}
}
}
}
public static class liststatus_result implements org.apache.thrift.TBase<liststatus_result, liststatus_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("liststatus_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
private static final org.apache.thrift.protocol.TField E_I_FIELD_DESC = new org.apache.thrift.protocol.TField("eI", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField E_F_FIELD_DESC = new org.apache.thrift.protocol.TField("eF", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new liststatus_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new liststatus_resultTupleSchemeFactory());
}
public List<ClientFileInfo> success; // required
public InvalidPathException eI; // required
public FileDoesNotExistException eF; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E_I((short)1, "eI"),
E_F((short)2, "eF");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E_I
return E_I;
case 2: // E_F
return E_F;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ClientFileInfo.class))));
tmpMap.put(_Fields.E_I, new org.apache.thrift.meta_data.FieldMetaData("eI", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_F, new org.apache.thrift.meta_data.FieldMetaData("eF", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(liststatus_result.class, metaDataMap);
}
public liststatus_result() {
}
public liststatus_result(
List<ClientFileInfo> success,
InvalidPathException eI,
FileDoesNotExistException eF)
{
this();
this.success = success;
this.eI = eI;
this.eF = eF;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public liststatus_result(liststatus_result other) {
if (other.isSetSuccess()) {
List<ClientFileInfo> __this__success = new ArrayList<ClientFileInfo>();
for (ClientFileInfo other_element : other.success) {
__this__success.add(new ClientFileInfo(other_element));
}
this.success = __this__success;
}
if (other.isSetEI()) {
this.eI = new InvalidPathException(other.eI);
}
if (other.isSetEF()) {
this.eF = new FileDoesNotExistException(other.eF);
}
}
public liststatus_result deepCopy() {
return new liststatus_result(this);
}
@Override
public void clear() {
this.success = null;
this.eI = null;
this.eF = null;
}
public int getSuccessSize() {
return (this.success == null) ? 0 : this.success.size();
}
public java.util.Iterator<ClientFileInfo> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(ClientFileInfo elem) {
if (this.success == null) {
this.success = new ArrayList<ClientFileInfo>();
}
this.success.add(elem);
}
public List<ClientFileInfo> getSuccess() {
return this.success;
}
public liststatus_result setSuccess(List<ClientFileInfo> success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public InvalidPathException getEI() {
return this.eI;
}
public liststatus_result setEI(InvalidPathException eI) {
this.eI = eI;
return this;
}
public void unsetEI() {
this.eI = null;
}
/** Returns true if field eI is set (has been assigned a value) and false otherwise */
public boolean isSetEI() {
return this.eI != null;
}
public void setEIIsSet(boolean value) {
if (!value) {
this.eI = null;
}
}
public FileDoesNotExistException getEF() {
return this.eF;
}
public liststatus_result setEF(FileDoesNotExistException eF) {
this.eF = eF;
return this;
}
public void unsetEF() {
this.eF = null;
}
/** Returns true if field eF is set (has been assigned a value) and false otherwise */
public boolean isSetEF() {
return this.eF != null;
}
public void setEFIsSet(boolean value) {
if (!value) {
this.eF = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((List<ClientFileInfo>)value);
}
break;
case E_I:
if (value == null) {
unsetEI();
} else {
setEI((InvalidPathException)value);
}
break;
case E_F:
if (value == null) {
unsetEF();
} else {
setEF((FileDoesNotExistException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
case E_I:
return getEI();
case E_F:
return getEF();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E_I:
return isSetEI();
case E_F:
return isSetEF();
}
throw new IllegalStateException();
}
@Override
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.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
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_eI = true && this.isSetEI();
boolean that_present_eI = true && that.isSetEI();
if (this_present_eI || that_present_eI) {
if (!(this_present_eI && that_present_eI))
return false;
if (!this.eI.equals(that.eI))
return false;
}
boolean this_present_eF = true && this.isSetEF();
boolean that_present_eF = true && that.isSetEF();
if (this_present_eF || that_present_eF) {
if (!(this_present_eF && that_present_eF))
return false;
if (!this.eF.equals(that.eF))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(liststatus_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
liststatus_result typedOther = (liststatus_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEI()).compareTo(typedOther.isSetEI());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEI()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eI, typedOther.eI);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEF()).compareTo(typedOther.isSetEF());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEF()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eF, typedOther.eF);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("liststatus_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
if (!first) sb.append(", ");
sb.append("eI:");
if (this.eI == null) {
sb.append("null");
} else {
sb.append(this.eI);
}
first = false;
if (!first) sb.append(", ");
sb.append("eF:");
if (this.eF == null) {
sb.append("null");
} else {
sb.append(this.eF);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class liststatus_resultStandardSchemeFactory implements SchemeFactory {
public liststatus_resultStandardScheme getScheme() {
return new liststatus_resultStandardScheme();
}
}
private static class liststatus_resultStandardScheme extends StandardScheme<liststatus_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, liststatus_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
struct.success = new ArrayList<ClientFileInfo>(_list56.size);
for (int _i57 = 0; _i57 < _list56.size; ++_i57)
{
ClientFileInfo _elem58; // required
_elem58 = new ClientFileInfo();
_elem58.read(iprot);
struct.success.add(_elem58);
}
iprot.readListEnd();
}
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E_I
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // E_F
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eF = new FileDoesNotExistException();
struct.eF.read(iprot);
struct.setEFIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, liststatus_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
for (ClientFileInfo _iter59 : struct.success)
{
_iter59.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.eI != null) {
oprot.writeFieldBegin(E_I_FIELD_DESC);
struct.eI.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eF != null) {
oprot.writeFieldBegin(E_F_FIELD_DESC);
struct.eF.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class liststatus_resultTupleSchemeFactory implements SchemeFactory {
public liststatus_resultTupleScheme getScheme() {
return new liststatus_resultTupleScheme();
}
}
private static class liststatus_resultTupleScheme extends TupleScheme<liststatus_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, liststatus_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetEI()) {
optionals.set(1);
}
if (struct.isSetEF()) {
optionals.set(2);
}
oprot.writeBitSet(optionals, 3);
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
for (ClientFileInfo _iter60 : struct.success)
{
_iter60.write(oprot);
}
}
}
if (struct.isSetEI()) {
struct.eI.write(oprot);
}
if (struct.isSetEF()) {
struct.eF.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, liststatus_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list61 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.success = new ArrayList<ClientFileInfo>(_list61.size);
for (int _i62 = 0; _i62 < _list61.size; ++_i62)
{
ClientFileInfo _elem63; // required
_elem63 = new ClientFileInfo();
_elem63.read(iprot);
struct.success.add(_elem63);
}
}
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
}
if (incoming.get(2)) {
struct.eF = new FileDoesNotExistException();
struct.eF.read(iprot);
struct.setEFIsSet(true);
}
}
}
}
public static class worker_register_args implements org.apache.thrift.TBase<worker_register_args, worker_register_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("worker_register_args");
private static final org.apache.thrift.protocol.TField WORKER_NET_ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("workerNetAddress", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField TOTAL_BYTES_FIELD_DESC = new org.apache.thrift.protocol.TField("totalBytes", org.apache.thrift.protocol.TType.I64, (short)2);
private static final org.apache.thrift.protocol.TField USED_BYTES_FIELD_DESC = new org.apache.thrift.protocol.TField("usedBytes", org.apache.thrift.protocol.TType.I64, (short)3);
private static final org.apache.thrift.protocol.TField CURRENT_BLOCKS_FIELD_DESC = new org.apache.thrift.protocol.TField("currentBlocks", org.apache.thrift.protocol.TType.LIST, (short)4);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new worker_register_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new worker_register_argsTupleSchemeFactory());
}
public NetAddress workerNetAddress; // required
public long totalBytes; // required
public long usedBytes; // required
public List<Long> currentBlocks; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
WORKER_NET_ADDRESS((short)1, "workerNetAddress"),
TOTAL_BYTES((short)2, "totalBytes"),
USED_BYTES((short)3, "usedBytes"),
CURRENT_BLOCKS((short)4, "currentBlocks");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // WORKER_NET_ADDRESS
return WORKER_NET_ADDRESS;
case 2: // TOTAL_BYTES
return TOTAL_BYTES;
case 3: // USED_BYTES
return USED_BYTES;
case 4: // CURRENT_BLOCKS
return CURRENT_BLOCKS;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __TOTALBYTES_ISSET_ID = 0;
private static final int __USEDBYTES_ISSET_ID = 1;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.WORKER_NET_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("workerNetAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, NetAddress.class)));
tmpMap.put(_Fields.TOTAL_BYTES, new org.apache.thrift.meta_data.FieldMetaData("totalBytes", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.USED_BYTES, new org.apache.thrift.meta_data.FieldMetaData("usedBytes", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.CURRENT_BLOCKS, new org.apache.thrift.meta_data.FieldMetaData("currentBlocks", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(worker_register_args.class, metaDataMap);
}
public worker_register_args() {
}
public worker_register_args(
NetAddress workerNetAddress,
long totalBytes,
long usedBytes,
List<Long> currentBlocks)
{
this();
this.workerNetAddress = workerNetAddress;
this.totalBytes = totalBytes;
setTotalBytesIsSet(true);
this.usedBytes = usedBytes;
setUsedBytesIsSet(true);
this.currentBlocks = currentBlocks;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public worker_register_args(worker_register_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetWorkerNetAddress()) {
this.workerNetAddress = new NetAddress(other.workerNetAddress);
}
this.totalBytes = other.totalBytes;
this.usedBytes = other.usedBytes;
if (other.isSetCurrentBlocks()) {
List<Long> __this__currentBlocks = new ArrayList<Long>();
for (Long other_element : other.currentBlocks) {
__this__currentBlocks.add(other_element);
}
this.currentBlocks = __this__currentBlocks;
}
}
public worker_register_args deepCopy() {
return new worker_register_args(this);
}
@Override
public void clear() {
this.workerNetAddress = null;
setTotalBytesIsSet(false);
this.totalBytes = 0;
setUsedBytesIsSet(false);
this.usedBytes = 0;
this.currentBlocks = null;
}
public NetAddress getWorkerNetAddress() {
return this.workerNetAddress;
}
public worker_register_args setWorkerNetAddress(NetAddress workerNetAddress) {
this.workerNetAddress = workerNetAddress;
return this;
}
public void unsetWorkerNetAddress() {
this.workerNetAddress = null;
}
/** Returns true if field workerNetAddress is set (has been assigned a value) and false otherwise */
public boolean isSetWorkerNetAddress() {
return this.workerNetAddress != null;
}
public void setWorkerNetAddressIsSet(boolean value) {
if (!value) {
this.workerNetAddress = null;
}
}
public long getTotalBytes() {
return this.totalBytes;
}
public worker_register_args setTotalBytes(long totalBytes) {
this.totalBytes = totalBytes;
setTotalBytesIsSet(true);
return this;
}
public void unsetTotalBytes() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TOTALBYTES_ISSET_ID);
}
/** Returns true if field totalBytes is set (has been assigned a value) and false otherwise */
public boolean isSetTotalBytes() {
return EncodingUtils.testBit(__isset_bitfield, __TOTALBYTES_ISSET_ID);
}
public void setTotalBytesIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TOTALBYTES_ISSET_ID, value);
}
public long getUsedBytes() {
return this.usedBytes;
}
public worker_register_args setUsedBytes(long usedBytes) {
this.usedBytes = usedBytes;
setUsedBytesIsSet(true);
return this;
}
public void unsetUsedBytes() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __USEDBYTES_ISSET_ID);
}
/** Returns true if field usedBytes is set (has been assigned a value) and false otherwise */
public boolean isSetUsedBytes() {
return EncodingUtils.testBit(__isset_bitfield, __USEDBYTES_ISSET_ID);
}
public void setUsedBytesIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __USEDBYTES_ISSET_ID, value);
}
public int getCurrentBlocksSize() {
return (this.currentBlocks == null) ? 0 : this.currentBlocks.size();
}
public java.util.Iterator<Long> getCurrentBlocksIterator() {
return (this.currentBlocks == null) ? null : this.currentBlocks.iterator();
}
public void addToCurrentBlocks(long elem) {
if (this.currentBlocks == null) {
this.currentBlocks = new ArrayList<Long>();
}
this.currentBlocks.add(elem);
}
public List<Long> getCurrentBlocks() {
return this.currentBlocks;
}
public worker_register_args setCurrentBlocks(List<Long> currentBlocks) {
this.currentBlocks = currentBlocks;
return this;
}
public void unsetCurrentBlocks() {
this.currentBlocks = null;
}
/** Returns true if field currentBlocks is set (has been assigned a value) and false otherwise */
public boolean isSetCurrentBlocks() {
return this.currentBlocks != null;
}
public void setCurrentBlocksIsSet(boolean value) {
if (!value) {
this.currentBlocks = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case WORKER_NET_ADDRESS:
if (value == null) {
unsetWorkerNetAddress();
} else {
setWorkerNetAddress((NetAddress)value);
}
break;
case TOTAL_BYTES:
if (value == null) {
unsetTotalBytes();
} else {
setTotalBytes((Long)value);
}
break;
case USED_BYTES:
if (value == null) {
unsetUsedBytes();
} else {
setUsedBytes((Long)value);
}
break;
case CURRENT_BLOCKS:
if (value == null) {
unsetCurrentBlocks();
} else {
setCurrentBlocks((List<Long>)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case WORKER_NET_ADDRESS:
return getWorkerNetAddress();
case TOTAL_BYTES:
return Long.valueOf(getTotalBytes());
case USED_BYTES:
return Long.valueOf(getUsedBytes());
case CURRENT_BLOCKS:
return getCurrentBlocks();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case WORKER_NET_ADDRESS:
return isSetWorkerNetAddress();
case TOTAL_BYTES:
return isSetTotalBytes();
case USED_BYTES:
return isSetUsedBytes();
case CURRENT_BLOCKS:
return isSetCurrentBlocks();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof worker_register_args)
return this.equals((worker_register_args)that);
return false;
}
public boolean equals(worker_register_args that) {
if (that == null)
return false;
boolean this_present_workerNetAddress = true && this.isSetWorkerNetAddress();
boolean that_present_workerNetAddress = true && that.isSetWorkerNetAddress();
if (this_present_workerNetAddress || that_present_workerNetAddress) {
if (!(this_present_workerNetAddress && that_present_workerNetAddress))
return false;
if (!this.workerNetAddress.equals(that.workerNetAddress))
return false;
}
boolean this_present_totalBytes = true;
boolean that_present_totalBytes = true;
if (this_present_totalBytes || that_present_totalBytes) {
if (!(this_present_totalBytes && that_present_totalBytes))
return false;
if (this.totalBytes != that.totalBytes)
return false;
}
boolean this_present_usedBytes = true;
boolean that_present_usedBytes = true;
if (this_present_usedBytes || that_present_usedBytes) {
if (!(this_present_usedBytes && that_present_usedBytes))
return false;
if (this.usedBytes != that.usedBytes)
return false;
}
boolean this_present_currentBlocks = true && this.isSetCurrentBlocks();
boolean that_present_currentBlocks = true && that.isSetCurrentBlocks();
if (this_present_currentBlocks || that_present_currentBlocks) {
if (!(this_present_currentBlocks && that_present_currentBlocks))
return false;
if (!this.currentBlocks.equals(that.currentBlocks))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(worker_register_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
worker_register_args typedOther = (worker_register_args)other;
lastComparison = Boolean.valueOf(isSetWorkerNetAddress()).compareTo(typedOther.isSetWorkerNetAddress());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetWorkerNetAddress()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.workerNetAddress, typedOther.workerNetAddress);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetTotalBytes()).compareTo(typedOther.isSetTotalBytes());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTotalBytes()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalBytes, typedOther.totalBytes);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetUsedBytes()).compareTo(typedOther.isSetUsedBytes());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetUsedBytes()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.usedBytes, typedOther.usedBytes);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetCurrentBlocks()).compareTo(typedOther.isSetCurrentBlocks());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCurrentBlocks()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.currentBlocks, typedOther.currentBlocks);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("worker_register_args(");
boolean first = true;
sb.append("workerNetAddress:");
if (this.workerNetAddress == null) {
sb.append("null");
} else {
sb.append(this.workerNetAddress);
}
first = false;
if (!first) sb.append(", ");
sb.append("totalBytes:");
sb.append(this.totalBytes);
first = false;
if (!first) sb.append(", ");
sb.append("usedBytes:");
sb.append(this.usedBytes);
first = false;
if (!first) sb.append(", ");
sb.append("currentBlocks:");
if (this.currentBlocks == null) {
sb.append("null");
} else {
sb.append(this.currentBlocks);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (workerNetAddress != null) {
workerNetAddress.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class worker_register_argsStandardSchemeFactory implements SchemeFactory {
public worker_register_argsStandardScheme getScheme() {
return new worker_register_argsStandardScheme();
}
}
private static class worker_register_argsStandardScheme extends StandardScheme<worker_register_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, worker_register_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // WORKER_NET_ADDRESS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.workerNetAddress = new NetAddress();
struct.workerNetAddress.read(iprot);
struct.setWorkerNetAddressIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // TOTAL_BYTES
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.totalBytes = iprot.readI64();
struct.setTotalBytesIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // USED_BYTES
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.usedBytes = iprot.readI64();
struct.setUsedBytesIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // CURRENT_BLOCKS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list64 = iprot.readListBegin();
struct.currentBlocks = new ArrayList<Long>(_list64.size);
for (int _i65 = 0; _i65 < _list64.size; ++_i65)
{
long _elem66; // required
_elem66 = iprot.readI64();
struct.currentBlocks.add(_elem66);
}
iprot.readListEnd();
}
struct.setCurrentBlocksIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, worker_register_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.workerNetAddress != null) {
oprot.writeFieldBegin(WORKER_NET_ADDRESS_FIELD_DESC);
struct.workerNetAddress.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(TOTAL_BYTES_FIELD_DESC);
oprot.writeI64(struct.totalBytes);
oprot.writeFieldEnd();
oprot.writeFieldBegin(USED_BYTES_FIELD_DESC);
oprot.writeI64(struct.usedBytes);
oprot.writeFieldEnd();
if (struct.currentBlocks != null) {
oprot.writeFieldBegin(CURRENT_BLOCKS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.currentBlocks.size()));
for (long _iter67 : struct.currentBlocks)
{
oprot.writeI64(_iter67);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class worker_register_argsTupleSchemeFactory implements SchemeFactory {
public worker_register_argsTupleScheme getScheme() {
return new worker_register_argsTupleScheme();
}
}
private static class worker_register_argsTupleScheme extends TupleScheme<worker_register_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, worker_register_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetWorkerNetAddress()) {
optionals.set(0);
}
if (struct.isSetTotalBytes()) {
optionals.set(1);
}
if (struct.isSetUsedBytes()) {
optionals.set(2);
}
if (struct.isSetCurrentBlocks()) {
optionals.set(3);
}
oprot.writeBitSet(optionals, 4);
if (struct.isSetWorkerNetAddress()) {
struct.workerNetAddress.write(oprot);
}
if (struct.isSetTotalBytes()) {
oprot.writeI64(struct.totalBytes);
}
if (struct.isSetUsedBytes()) {
oprot.writeI64(struct.usedBytes);
}
if (struct.isSetCurrentBlocks()) {
{
oprot.writeI32(struct.currentBlocks.size());
for (long _iter68 : struct.currentBlocks)
{
oprot.writeI64(_iter68);
}
}
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, worker_register_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
struct.workerNetAddress = new NetAddress();
struct.workerNetAddress.read(iprot);
struct.setWorkerNetAddressIsSet(true);
}
if (incoming.get(1)) {
struct.totalBytes = iprot.readI64();
struct.setTotalBytesIsSet(true);
}
if (incoming.get(2)) {
struct.usedBytes = iprot.readI64();
struct.setUsedBytesIsSet(true);
}
if (incoming.get(3)) {
{
org.apache.thrift.protocol.TList _list69 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.currentBlocks = new ArrayList<Long>(_list69.size);
for (int _i70 = 0; _i70 < _list69.size; ++_i70)
{
long _elem71; // required
_elem71 = iprot.readI64();
struct.currentBlocks.add(_elem71);
}
}
struct.setCurrentBlocksIsSet(true);
}
}
}
}
public static class worker_register_result implements org.apache.thrift.TBase<worker_register_result, worker_register_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("worker_register_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new worker_register_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new worker_register_resultTupleSchemeFactory());
}
public long success; // required
public BlockInfoException e; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E((short)1, "e");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E
return E;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(worker_register_result.class, metaDataMap);
}
public worker_register_result() {
}
public worker_register_result(
long success,
BlockInfoException e)
{
this();
this.success = success;
setSuccessIsSet(true);
this.e = e;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public worker_register_result(worker_register_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
if (other.isSetE()) {
this.e = new BlockInfoException(other.e);
}
}
public worker_register_result deepCopy() {
return new worker_register_result(this);
}
@Override
public void clear() {
setSuccessIsSet(false);
this.success = 0;
this.e = null;
}
public long getSuccess() {
return this.success;
}
public worker_register_result setSuccess(long success) {
this.success = success;
setSuccessIsSet(true);
return this;
}
public void unsetSuccess() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public BlockInfoException getE() {
return this.e;
}
public worker_register_result setE(BlockInfoException e) {
this.e = e;
return this;
}
public void unsetE() {
this.e = null;
}
/** Returns true if field e is set (has been assigned a value) and false otherwise */
public boolean isSetE() {
return this.e != null;
}
public void setEIsSet(boolean value) {
if (!value) {
this.e = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Long)value);
}
break;
case E:
if (value == null) {
unsetE();
} else {
setE((BlockInfoException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return Long.valueOf(getSuccess());
case E:
return getE();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E:
return isSetE();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof worker_register_result)
return this.equals((worker_register_result)that);
return false;
}
public boolean equals(worker_register_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_e = true && this.isSetE();
boolean that_present_e = true && that.isSetE();
if (this_present_e || that_present_e) {
if (!(this_present_e && that_present_e))
return false;
if (!this.e.equals(that.e))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(worker_register_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
worker_register_result typedOther = (worker_register_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetE()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("worker_register_result(");
boolean first = true;
sb.append("success:");
sb.append(this.success);
first = false;
if (!first) sb.append(", ");
sb.append("e:");
if (this.e == null) {
sb.append("null");
} else {
sb.append(this.e);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class worker_register_resultStandardSchemeFactory implements SchemeFactory {
public worker_register_resultStandardScheme getScheme() {
return new worker_register_resultStandardScheme();
}
}
private static class worker_register_resultStandardScheme extends StandardScheme<worker_register_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, worker_register_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.success = iprot.readI64();
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.e = new BlockInfoException();
struct.e.read(iprot);
struct.setEIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, worker_register_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.isSetSuccess()) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeI64(struct.success);
oprot.writeFieldEnd();
}
if (struct.e != null) {
oprot.writeFieldBegin(E_FIELD_DESC);
struct.e.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class worker_register_resultTupleSchemeFactory implements SchemeFactory {
public worker_register_resultTupleScheme getScheme() {
return new worker_register_resultTupleScheme();
}
}
private static class worker_register_resultTupleScheme extends TupleScheme<worker_register_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, worker_register_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetE()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetSuccess()) {
oprot.writeI64(struct.success);
}
if (struct.isSetE()) {
struct.e.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, worker_register_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.success = iprot.readI64();
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.e = new BlockInfoException();
struct.e.read(iprot);
struct.setEIsSet(true);
}
}
}
}
public static class worker_heartbeat_args implements org.apache.thrift.TBase<worker_heartbeat_args, worker_heartbeat_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("worker_heartbeat_args");
private static final org.apache.thrift.protocol.TField WORKER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("workerId", org.apache.thrift.protocol.TType.I64, (short)1);
private static final org.apache.thrift.protocol.TField USED_BYTES_FIELD_DESC = new org.apache.thrift.protocol.TField("usedBytes", org.apache.thrift.protocol.TType.I64, (short)2);
private static final org.apache.thrift.protocol.TField REMOVED_BLOCKS_FIELD_DESC = new org.apache.thrift.protocol.TField("removedBlocks", org.apache.thrift.protocol.TType.LIST, (short)3);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new worker_heartbeat_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new worker_heartbeat_argsTupleSchemeFactory());
}
public long workerId; // required
public long usedBytes; // required
public List<Long> removedBlocks; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
WORKER_ID((short)1, "workerId"),
USED_BYTES((short)2, "usedBytes"),
REMOVED_BLOCKS((short)3, "removedBlocks");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // WORKER_ID
return WORKER_ID;
case 2: // USED_BYTES
return USED_BYTES;
case 3: // REMOVED_BLOCKS
return REMOVED_BLOCKS;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __WORKERID_ISSET_ID = 0;
private static final int __USEDBYTES_ISSET_ID = 1;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.WORKER_ID, new org.apache.thrift.meta_data.FieldMetaData("workerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.USED_BYTES, new org.apache.thrift.meta_data.FieldMetaData("usedBytes", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.REMOVED_BLOCKS, new org.apache.thrift.meta_data.FieldMetaData("removedBlocks", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(worker_heartbeat_args.class, metaDataMap);
}
public worker_heartbeat_args() {
}
public worker_heartbeat_args(
long workerId,
long usedBytes,
List<Long> removedBlocks)
{
this();
this.workerId = workerId;
setWorkerIdIsSet(true);
this.usedBytes = usedBytes;
setUsedBytesIsSet(true);
this.removedBlocks = removedBlocks;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public worker_heartbeat_args(worker_heartbeat_args other) {
__isset_bitfield = other.__isset_bitfield;
this.workerId = other.workerId;
this.usedBytes = other.usedBytes;
if (other.isSetRemovedBlocks()) {
List<Long> __this__removedBlocks = new ArrayList<Long>();
for (Long other_element : other.removedBlocks) {
__this__removedBlocks.add(other_element);
}
this.removedBlocks = __this__removedBlocks;
}
}
public worker_heartbeat_args deepCopy() {
return new worker_heartbeat_args(this);
}
@Override
public void clear() {
setWorkerIdIsSet(false);
this.workerId = 0;
setUsedBytesIsSet(false);
this.usedBytes = 0;
this.removedBlocks = null;
}
public long getWorkerId() {
return this.workerId;
}
public worker_heartbeat_args setWorkerId(long workerId) {
this.workerId = workerId;
setWorkerIdIsSet(true);
return this;
}
public void unsetWorkerId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WORKERID_ISSET_ID);
}
/** Returns true if field workerId is set (has been assigned a value) and false otherwise */
public boolean isSetWorkerId() {
return EncodingUtils.testBit(__isset_bitfield, __WORKERID_ISSET_ID);
}
public void setWorkerIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WORKERID_ISSET_ID, value);
}
public long getUsedBytes() {
return this.usedBytes;
}
public worker_heartbeat_args setUsedBytes(long usedBytes) {
this.usedBytes = usedBytes;
setUsedBytesIsSet(true);
return this;
}
public void unsetUsedBytes() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __USEDBYTES_ISSET_ID);
}
/** Returns true if field usedBytes is set (has been assigned a value) and false otherwise */
public boolean isSetUsedBytes() {
return EncodingUtils.testBit(__isset_bitfield, __USEDBYTES_ISSET_ID);
}
public void setUsedBytesIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __USEDBYTES_ISSET_ID, value);
}
public int getRemovedBlocksSize() {
return (this.removedBlocks == null) ? 0 : this.removedBlocks.size();
}
public java.util.Iterator<Long> getRemovedBlocksIterator() {
return (this.removedBlocks == null) ? null : this.removedBlocks.iterator();
}
public void addToRemovedBlocks(long elem) {
if (this.removedBlocks == null) {
this.removedBlocks = new ArrayList<Long>();
}
this.removedBlocks.add(elem);
}
public List<Long> getRemovedBlocks() {
return this.removedBlocks;
}
public worker_heartbeat_args setRemovedBlocks(List<Long> removedBlocks) {
this.removedBlocks = removedBlocks;
return this;
}
public void unsetRemovedBlocks() {
this.removedBlocks = null;
}
/** Returns true if field removedBlocks is set (has been assigned a value) and false otherwise */
public boolean isSetRemovedBlocks() {
return this.removedBlocks != null;
}
public void setRemovedBlocksIsSet(boolean value) {
if (!value) {
this.removedBlocks = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case WORKER_ID:
if (value == null) {
unsetWorkerId();
} else {
setWorkerId((Long)value);
}
break;
case USED_BYTES:
if (value == null) {
unsetUsedBytes();
} else {
setUsedBytes((Long)value);
}
break;
case REMOVED_BLOCKS:
if (value == null) {
unsetRemovedBlocks();
} else {
setRemovedBlocks((List<Long>)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case WORKER_ID:
return Long.valueOf(getWorkerId());
case USED_BYTES:
return Long.valueOf(getUsedBytes());
case REMOVED_BLOCKS:
return getRemovedBlocks();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case WORKER_ID:
return isSetWorkerId();
case USED_BYTES:
return isSetUsedBytes();
case REMOVED_BLOCKS:
return isSetRemovedBlocks();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof worker_heartbeat_args)
return this.equals((worker_heartbeat_args)that);
return false;
}
public boolean equals(worker_heartbeat_args that) {
if (that == null)
return false;
boolean this_present_workerId = true;
boolean that_present_workerId = true;
if (this_present_workerId || that_present_workerId) {
if (!(this_present_workerId && that_present_workerId))
return false;
if (this.workerId != that.workerId)
return false;
}
boolean this_present_usedBytes = true;
boolean that_present_usedBytes = true;
if (this_present_usedBytes || that_present_usedBytes) {
if (!(this_present_usedBytes && that_present_usedBytes))
return false;
if (this.usedBytes != that.usedBytes)
return false;
}
boolean this_present_removedBlocks = true && this.isSetRemovedBlocks();
boolean that_present_removedBlocks = true && that.isSetRemovedBlocks();
if (this_present_removedBlocks || that_present_removedBlocks) {
if (!(this_present_removedBlocks && that_present_removedBlocks))
return false;
if (!this.removedBlocks.equals(that.removedBlocks))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(worker_heartbeat_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
worker_heartbeat_args typedOther = (worker_heartbeat_args)other;
lastComparison = Boolean.valueOf(isSetWorkerId()).compareTo(typedOther.isSetWorkerId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetWorkerId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.workerId, typedOther.workerId);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetUsedBytes()).compareTo(typedOther.isSetUsedBytes());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetUsedBytes()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.usedBytes, typedOther.usedBytes);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetRemovedBlocks()).compareTo(typedOther.isSetRemovedBlocks());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRemovedBlocks()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.removedBlocks, typedOther.removedBlocks);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("worker_heartbeat_args(");
boolean first = true;
sb.append("workerId:");
sb.append(this.workerId);
first = false;
if (!first) sb.append(", ");
sb.append("usedBytes:");
sb.append(this.usedBytes);
first = false;
if (!first) sb.append(", ");
sb.append("removedBlocks:");
if (this.removedBlocks == null) {
sb.append("null");
} else {
sb.append(this.removedBlocks);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class worker_heartbeat_argsStandardSchemeFactory implements SchemeFactory {
public worker_heartbeat_argsStandardScheme getScheme() {
return new worker_heartbeat_argsStandardScheme();
}
}
private static class worker_heartbeat_argsStandardScheme extends StandardScheme<worker_heartbeat_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, worker_heartbeat_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // WORKER_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.workerId = iprot.readI64();
struct.setWorkerIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // USED_BYTES
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.usedBytes = iprot.readI64();
struct.setUsedBytesIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // REMOVED_BLOCKS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list72 = iprot.readListBegin();
struct.removedBlocks = new ArrayList<Long>(_list72.size);
for (int _i73 = 0; _i73 < _list72.size; ++_i73)
{
long _elem74; // required
_elem74 = iprot.readI64();
struct.removedBlocks.add(_elem74);
}
iprot.readListEnd();
}
struct.setRemovedBlocksIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, worker_heartbeat_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(WORKER_ID_FIELD_DESC);
oprot.writeI64(struct.workerId);
oprot.writeFieldEnd();
oprot.writeFieldBegin(USED_BYTES_FIELD_DESC);
oprot.writeI64(struct.usedBytes);
oprot.writeFieldEnd();
if (struct.removedBlocks != null) {
oprot.writeFieldBegin(REMOVED_BLOCKS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.removedBlocks.size()));
for (long _iter75 : struct.removedBlocks)
{
oprot.writeI64(_iter75);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class worker_heartbeat_argsTupleSchemeFactory implements SchemeFactory {
public worker_heartbeat_argsTupleScheme getScheme() {
return new worker_heartbeat_argsTupleScheme();
}
}
private static class worker_heartbeat_argsTupleScheme extends TupleScheme<worker_heartbeat_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, worker_heartbeat_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetWorkerId()) {
optionals.set(0);
}
if (struct.isSetUsedBytes()) {
optionals.set(1);
}
if (struct.isSetRemovedBlocks()) {
optionals.set(2);
}
oprot.writeBitSet(optionals, 3);
if (struct.isSetWorkerId()) {
oprot.writeI64(struct.workerId);
}
if (struct.isSetUsedBytes()) {
oprot.writeI64(struct.usedBytes);
}
if (struct.isSetRemovedBlocks()) {
{
oprot.writeI32(struct.removedBlocks.size());
for (long _iter76 : struct.removedBlocks)
{
oprot.writeI64(_iter76);
}
}
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, worker_heartbeat_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
struct.workerId = iprot.readI64();
struct.setWorkerIdIsSet(true);
}
if (incoming.get(1)) {
struct.usedBytes = iprot.readI64();
struct.setUsedBytesIsSet(true);
}
if (incoming.get(2)) {
{
org.apache.thrift.protocol.TList _list77 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.removedBlocks = new ArrayList<Long>(_list77.size);
for (int _i78 = 0; _i78 < _list77.size; ++_i78)
{
long _elem79; // required
_elem79 = iprot.readI64();
struct.removedBlocks.add(_elem79);
}
}
struct.setRemovedBlocksIsSet(true);
}
}
}
}
public static class worker_heartbeat_result implements org.apache.thrift.TBase<worker_heartbeat_result, worker_heartbeat_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("worker_heartbeat_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new worker_heartbeat_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new worker_heartbeat_resultTupleSchemeFactory());
}
public Command success; // required
public BlockInfoException e; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E((short)1, "e");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E
return E;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Command.class)));
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(worker_heartbeat_result.class, metaDataMap);
}
public worker_heartbeat_result() {
}
public worker_heartbeat_result(
Command success,
BlockInfoException e)
{
this();
this.success = success;
this.e = e;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public worker_heartbeat_result(worker_heartbeat_result other) {
if (other.isSetSuccess()) {
this.success = new Command(other.success);
}
if (other.isSetE()) {
this.e = new BlockInfoException(other.e);
}
}
public worker_heartbeat_result deepCopy() {
return new worker_heartbeat_result(this);
}
@Override
public void clear() {
this.success = null;
this.e = null;
}
public Command getSuccess() {
return this.success;
}
public worker_heartbeat_result setSuccess(Command success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public BlockInfoException getE() {
return this.e;
}
public worker_heartbeat_result setE(BlockInfoException e) {
this.e = e;
return this;
}
public void unsetE() {
this.e = null;
}
/** Returns true if field e is set (has been assigned a value) and false otherwise */
public boolean isSetE() {
return this.e != null;
}
public void setEIsSet(boolean value) {
if (!value) {
this.e = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Command)value);
}
break;
case E:
if (value == null) {
unsetE();
} else {
setE((BlockInfoException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
case E:
return getE();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E:
return isSetE();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof worker_heartbeat_result)
return this.equals((worker_heartbeat_result)that);
return false;
}
public boolean equals(worker_heartbeat_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
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_e = true && this.isSetE();
boolean that_present_e = true && that.isSetE();
if (this_present_e || that_present_e) {
if (!(this_present_e && that_present_e))
return false;
if (!this.e.equals(that.e))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(worker_heartbeat_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
worker_heartbeat_result typedOther = (worker_heartbeat_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetE()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("worker_heartbeat_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
if (!first) sb.append(", ");
sb.append("e:");
if (this.e == null) {
sb.append("null");
} else {
sb.append(this.e);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (success != null) {
success.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class worker_heartbeat_resultStandardSchemeFactory implements SchemeFactory {
public worker_heartbeat_resultStandardScheme getScheme() {
return new worker_heartbeat_resultStandardScheme();
}
}
private static class worker_heartbeat_resultStandardScheme extends StandardScheme<worker_heartbeat_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, worker_heartbeat_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.success = new Command();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.e = new BlockInfoException();
struct.e.read(iprot);
struct.setEIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, worker_heartbeat_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
struct.success.write(oprot);
oprot.writeFieldEnd();
}
if (struct.e != null) {
oprot.writeFieldBegin(E_FIELD_DESC);
struct.e.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class worker_heartbeat_resultTupleSchemeFactory implements SchemeFactory {
public worker_heartbeat_resultTupleScheme getScheme() {
return new worker_heartbeat_resultTupleScheme();
}
}
private static class worker_heartbeat_resultTupleScheme extends TupleScheme<worker_heartbeat_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, worker_heartbeat_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetE()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
if (struct.isSetE()) {
struct.e.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, worker_heartbeat_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.success = new Command();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.e = new BlockInfoException();
struct.e.read(iprot);
struct.setEIsSet(true);
}
}
}
}
public static class worker_cacheBlock_args implements org.apache.thrift.TBase<worker_cacheBlock_args, worker_cacheBlock_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("worker_cacheBlock_args");
private static final org.apache.thrift.protocol.TField WORKER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("workerId", org.apache.thrift.protocol.TType.I64, (short)1);
private static final org.apache.thrift.protocol.TField WORKER_USED_BYTES_FIELD_DESC = new org.apache.thrift.protocol.TField("workerUsedBytes", org.apache.thrift.protocol.TType.I64, (short)2);
private static final org.apache.thrift.protocol.TField BLOCK_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("blockId", org.apache.thrift.protocol.TType.I64, (short)3);
private static final org.apache.thrift.protocol.TField LENGTH_FIELD_DESC = new org.apache.thrift.protocol.TField("length", org.apache.thrift.protocol.TType.I64, (short)4);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new worker_cacheBlock_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new worker_cacheBlock_argsTupleSchemeFactory());
}
public long workerId; // required
public long workerUsedBytes; // required
public long blockId; // required
public long length; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
WORKER_ID((short)1, "workerId"),
WORKER_USED_BYTES((short)2, "workerUsedBytes"),
BLOCK_ID((short)3, "blockId"),
LENGTH((short)4, "length");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // WORKER_ID
return WORKER_ID;
case 2: // WORKER_USED_BYTES
return WORKER_USED_BYTES;
case 3: // BLOCK_ID
return BLOCK_ID;
case 4: // LENGTH
return LENGTH;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __WORKERID_ISSET_ID = 0;
private static final int __WORKERUSEDBYTES_ISSET_ID = 1;
private static final int __BLOCKID_ISSET_ID = 2;
private static final int __LENGTH_ISSET_ID = 3;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.WORKER_ID, new org.apache.thrift.meta_data.FieldMetaData("workerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.WORKER_USED_BYTES, new org.apache.thrift.meta_data.FieldMetaData("workerUsedBytes", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.BLOCK_ID, new org.apache.thrift.meta_data.FieldMetaData("blockId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.LENGTH, new org.apache.thrift.meta_data.FieldMetaData("length", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(worker_cacheBlock_args.class, metaDataMap);
}
public worker_cacheBlock_args() {
}
public worker_cacheBlock_args(
long workerId,
long workerUsedBytes,
long blockId,
long length)
{
this();
this.workerId = workerId;
setWorkerIdIsSet(true);
this.workerUsedBytes = workerUsedBytes;
setWorkerUsedBytesIsSet(true);
this.blockId = blockId;
setBlockIdIsSet(true);
this.length = length;
setLengthIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public worker_cacheBlock_args(worker_cacheBlock_args other) {
__isset_bitfield = other.__isset_bitfield;
this.workerId = other.workerId;
this.workerUsedBytes = other.workerUsedBytes;
this.blockId = other.blockId;
this.length = other.length;
}
public worker_cacheBlock_args deepCopy() {
return new worker_cacheBlock_args(this);
}
@Override
public void clear() {
setWorkerIdIsSet(false);
this.workerId = 0;
setWorkerUsedBytesIsSet(false);
this.workerUsedBytes = 0;
setBlockIdIsSet(false);
this.blockId = 0;
setLengthIsSet(false);
this.length = 0;
}
public long getWorkerId() {
return this.workerId;
}
public worker_cacheBlock_args setWorkerId(long workerId) {
this.workerId = workerId;
setWorkerIdIsSet(true);
return this;
}
public void unsetWorkerId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WORKERID_ISSET_ID);
}
/** Returns true if field workerId is set (has been assigned a value) and false otherwise */
public boolean isSetWorkerId() {
return EncodingUtils.testBit(__isset_bitfield, __WORKERID_ISSET_ID);
}
public void setWorkerIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WORKERID_ISSET_ID, value);
}
public long getWorkerUsedBytes() {
return this.workerUsedBytes;
}
public worker_cacheBlock_args setWorkerUsedBytes(long workerUsedBytes) {
this.workerUsedBytes = workerUsedBytes;
setWorkerUsedBytesIsSet(true);
return this;
}
public void unsetWorkerUsedBytes() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WORKERUSEDBYTES_ISSET_ID);
}
/** Returns true if field workerUsedBytes is set (has been assigned a value) and false otherwise */
public boolean isSetWorkerUsedBytes() {
return EncodingUtils.testBit(__isset_bitfield, __WORKERUSEDBYTES_ISSET_ID);
}
public void setWorkerUsedBytesIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WORKERUSEDBYTES_ISSET_ID, value);
}
public long getBlockId() {
return this.blockId;
}
public worker_cacheBlock_args setBlockId(long blockId) {
this.blockId = blockId;
setBlockIdIsSet(true);
return this;
}
public void unsetBlockId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __BLOCKID_ISSET_ID);
}
/** Returns true if field blockId is set (has been assigned a value) and false otherwise */
public boolean isSetBlockId() {
return EncodingUtils.testBit(__isset_bitfield, __BLOCKID_ISSET_ID);
}
public void setBlockIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __BLOCKID_ISSET_ID, value);
}
public long getLength() {
return this.length;
}
public worker_cacheBlock_args setLength(long length) {
this.length = length;
setLengthIsSet(true);
return this;
}
public void unsetLength() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LENGTH_ISSET_ID);
}
/** Returns true if field length is set (has been assigned a value) and false otherwise */
public boolean isSetLength() {
return EncodingUtils.testBit(__isset_bitfield, __LENGTH_ISSET_ID);
}
public void setLengthIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LENGTH_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case WORKER_ID:
if (value == null) {
unsetWorkerId();
} else {
setWorkerId((Long)value);
}
break;
case WORKER_USED_BYTES:
if (value == null) {
unsetWorkerUsedBytes();
} else {
setWorkerUsedBytes((Long)value);
}
break;
case BLOCK_ID:
if (value == null) {
unsetBlockId();
} else {
setBlockId((Long)value);
}
break;
case LENGTH:
if (value == null) {
unsetLength();
} else {
setLength((Long)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case WORKER_ID:
return Long.valueOf(getWorkerId());
case WORKER_USED_BYTES:
return Long.valueOf(getWorkerUsedBytes());
case BLOCK_ID:
return Long.valueOf(getBlockId());
case LENGTH:
return Long.valueOf(getLength());
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case WORKER_ID:
return isSetWorkerId();
case WORKER_USED_BYTES:
return isSetWorkerUsedBytes();
case BLOCK_ID:
return isSetBlockId();
case LENGTH:
return isSetLength();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof worker_cacheBlock_args)
return this.equals((worker_cacheBlock_args)that);
return false;
}
public boolean equals(worker_cacheBlock_args that) {
if (that == null)
return false;
boolean this_present_workerId = true;
boolean that_present_workerId = true;
if (this_present_workerId || that_present_workerId) {
if (!(this_present_workerId && that_present_workerId))
return false;
if (this.workerId != that.workerId)
return false;
}
boolean this_present_workerUsedBytes = true;
boolean that_present_workerUsedBytes = true;
if (this_present_workerUsedBytes || that_present_workerUsedBytes) {
if (!(this_present_workerUsedBytes && that_present_workerUsedBytes))
return false;
if (this.workerUsedBytes != that.workerUsedBytes)
return false;
}
boolean this_present_blockId = true;
boolean that_present_blockId = true;
if (this_present_blockId || that_present_blockId) {
if (!(this_present_blockId && that_present_blockId))
return false;
if (this.blockId != that.blockId)
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;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(worker_cacheBlock_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
worker_cacheBlock_args typedOther = (worker_cacheBlock_args)other;
lastComparison = Boolean.valueOf(isSetWorkerId()).compareTo(typedOther.isSetWorkerId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetWorkerId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.workerId, typedOther.workerId);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetWorkerUsedBytes()).compareTo(typedOther.isSetWorkerUsedBytes());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetWorkerUsedBytes()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.workerUsedBytes, typedOther.workerUsedBytes);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetBlockId()).compareTo(typedOther.isSetBlockId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetBlockId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.blockId, typedOther.blockId);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetLength()).compareTo(typedOther.isSetLength());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetLength()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.length, typedOther.length);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("worker_cacheBlock_args(");
boolean first = true;
sb.append("workerId:");
sb.append(this.workerId);
first = false;
if (!first) sb.append(", ");
sb.append("workerUsedBytes:");
sb.append(this.workerUsedBytes);
first = false;
if (!first) sb.append(", ");
sb.append("blockId:");
sb.append(this.blockId);
first = false;
if (!first) sb.append(", ");
sb.append("length:");
sb.append(this.length);
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class worker_cacheBlock_argsStandardSchemeFactory implements SchemeFactory {
public worker_cacheBlock_argsStandardScheme getScheme() {
return new worker_cacheBlock_argsStandardScheme();
}
}
private static class worker_cacheBlock_argsStandardScheme extends StandardScheme<worker_cacheBlock_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, worker_cacheBlock_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // WORKER_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.workerId = iprot.readI64();
struct.setWorkerIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // WORKER_USED_BYTES
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.workerUsedBytes = iprot.readI64();
struct.setWorkerUsedBytesIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // BLOCK_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.blockId = iprot.readI64();
struct.setBlockIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // LENGTH
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.length = iprot.readI64();
struct.setLengthIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, worker_cacheBlock_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(WORKER_ID_FIELD_DESC);
oprot.writeI64(struct.workerId);
oprot.writeFieldEnd();
oprot.writeFieldBegin(WORKER_USED_BYTES_FIELD_DESC);
oprot.writeI64(struct.workerUsedBytes);
oprot.writeFieldEnd();
oprot.writeFieldBegin(BLOCK_ID_FIELD_DESC);
oprot.writeI64(struct.blockId);
oprot.writeFieldEnd();
oprot.writeFieldBegin(LENGTH_FIELD_DESC);
oprot.writeI64(struct.length);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class worker_cacheBlock_argsTupleSchemeFactory implements SchemeFactory {
public worker_cacheBlock_argsTupleScheme getScheme() {
return new worker_cacheBlock_argsTupleScheme();
}
}
private static class worker_cacheBlock_argsTupleScheme extends TupleScheme<worker_cacheBlock_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, worker_cacheBlock_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetWorkerId()) {
optionals.set(0);
}
if (struct.isSetWorkerUsedBytes()) {
optionals.set(1);
}
if (struct.isSetBlockId()) {
optionals.set(2);
}
if (struct.isSetLength()) {
optionals.set(3);
}
oprot.writeBitSet(optionals, 4);
if (struct.isSetWorkerId()) {
oprot.writeI64(struct.workerId);
}
if (struct.isSetWorkerUsedBytes()) {
oprot.writeI64(struct.workerUsedBytes);
}
if (struct.isSetBlockId()) {
oprot.writeI64(struct.blockId);
}
if (struct.isSetLength()) {
oprot.writeI64(struct.length);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, worker_cacheBlock_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
struct.workerId = iprot.readI64();
struct.setWorkerIdIsSet(true);
}
if (incoming.get(1)) {
struct.workerUsedBytes = iprot.readI64();
struct.setWorkerUsedBytesIsSet(true);
}
if (incoming.get(2)) {
struct.blockId = iprot.readI64();
struct.setBlockIdIsSet(true);
}
if (incoming.get(3)) {
struct.length = iprot.readI64();
struct.setLengthIsSet(true);
}
}
}
}
public static class worker_cacheBlock_result implements org.apache.thrift.TBase<worker_cacheBlock_result, worker_cacheBlock_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("worker_cacheBlock_result");
private static final org.apache.thrift.protocol.TField E_P_FIELD_DESC = new org.apache.thrift.protocol.TField("eP", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField E_S_FIELD_DESC = new org.apache.thrift.protocol.TField("eS", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final org.apache.thrift.protocol.TField E_B_FIELD_DESC = new org.apache.thrift.protocol.TField("eB", org.apache.thrift.protocol.TType.STRUCT, (short)3);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new worker_cacheBlock_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new worker_cacheBlock_resultTupleSchemeFactory());
}
public FileDoesNotExistException eP; // required
public SuspectedFileSizeException eS; // required
public BlockInfoException eB; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
E_P((short)1, "eP"),
E_S((short)2, "eS"),
E_B((short)3, "eB");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // E_P
return E_P;
case 2: // E_S
return E_S;
case 3: // E_B
return E_B;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.E_P, new org.apache.thrift.meta_data.FieldMetaData("eP", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_S, new org.apache.thrift.meta_data.FieldMetaData("eS", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_B, new org.apache.thrift.meta_data.FieldMetaData("eB", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(worker_cacheBlock_result.class, metaDataMap);
}
public worker_cacheBlock_result() {
}
public worker_cacheBlock_result(
FileDoesNotExistException eP,
SuspectedFileSizeException eS,
BlockInfoException eB)
{
this();
this.eP = eP;
this.eS = eS;
this.eB = eB;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public worker_cacheBlock_result(worker_cacheBlock_result other) {
if (other.isSetEP()) {
this.eP = new FileDoesNotExistException(other.eP);
}
if (other.isSetES()) {
this.eS = new SuspectedFileSizeException(other.eS);
}
if (other.isSetEB()) {
this.eB = new BlockInfoException(other.eB);
}
}
public worker_cacheBlock_result deepCopy() {
return new worker_cacheBlock_result(this);
}
@Override
public void clear() {
this.eP = null;
this.eS = null;
this.eB = null;
}
public FileDoesNotExistException getEP() {
return this.eP;
}
public worker_cacheBlock_result setEP(FileDoesNotExistException eP) {
this.eP = eP;
return this;
}
public void unsetEP() {
this.eP = null;
}
/** Returns true if field eP is set (has been assigned a value) and false otherwise */
public boolean isSetEP() {
return this.eP != null;
}
public void setEPIsSet(boolean value) {
if (!value) {
this.eP = null;
}
}
public SuspectedFileSizeException getES() {
return this.eS;
}
public worker_cacheBlock_result setES(SuspectedFileSizeException eS) {
this.eS = eS;
return this;
}
public void unsetES() {
this.eS = null;
}
/** Returns true if field eS is set (has been assigned a value) and false otherwise */
public boolean isSetES() {
return this.eS != null;
}
public void setESIsSet(boolean value) {
if (!value) {
this.eS = null;
}
}
public BlockInfoException getEB() {
return this.eB;
}
public worker_cacheBlock_result setEB(BlockInfoException eB) {
this.eB = eB;
return this;
}
public void unsetEB() {
this.eB = null;
}
/** Returns true if field eB is set (has been assigned a value) and false otherwise */
public boolean isSetEB() {
return this.eB != null;
}
public void setEBIsSet(boolean value) {
if (!value) {
this.eB = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case E_P:
if (value == null) {
unsetEP();
} else {
setEP((FileDoesNotExistException)value);
}
break;
case E_S:
if (value == null) {
unsetES();
} else {
setES((SuspectedFileSizeException)value);
}
break;
case E_B:
if (value == null) {
unsetEB();
} else {
setEB((BlockInfoException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case E_P:
return getEP();
case E_S:
return getES();
case E_B:
return getEB();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case E_P:
return isSetEP();
case E_S:
return isSetES();
case E_B:
return isSetEB();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof worker_cacheBlock_result)
return this.equals((worker_cacheBlock_result)that);
return false;
}
public boolean equals(worker_cacheBlock_result that) {
if (that == null)
return false;
boolean this_present_eP = true && this.isSetEP();
boolean that_present_eP = true && that.isSetEP();
if (this_present_eP || that_present_eP) {
if (!(this_present_eP && that_present_eP))
return false;
if (!this.eP.equals(that.eP))
return false;
}
boolean this_present_eS = true && this.isSetES();
boolean that_present_eS = true && that.isSetES();
if (this_present_eS || that_present_eS) {
if (!(this_present_eS && that_present_eS))
return false;
if (!this.eS.equals(that.eS))
return false;
}
boolean this_present_eB = true && this.isSetEB();
boolean that_present_eB = true && that.isSetEB();
if (this_present_eB || that_present_eB) {
if (!(this_present_eB && that_present_eB))
return false;
if (!this.eB.equals(that.eB))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(worker_cacheBlock_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
worker_cacheBlock_result typedOther = (worker_cacheBlock_result)other;
lastComparison = Boolean.valueOf(isSetEP()).compareTo(typedOther.isSetEP());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEP()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eP, typedOther.eP);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetES()).compareTo(typedOther.isSetES());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetES()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eS, typedOther.eS);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEB()).compareTo(typedOther.isSetEB());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEB()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eB, typedOther.eB);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("worker_cacheBlock_result(");
boolean first = true;
sb.append("eP:");
if (this.eP == null) {
sb.append("null");
} else {
sb.append(this.eP);
}
first = false;
if (!first) sb.append(", ");
sb.append("eS:");
if (this.eS == null) {
sb.append("null");
} else {
sb.append(this.eS);
}
first = false;
if (!first) sb.append(", ");
sb.append("eB:");
if (this.eB == null) {
sb.append("null");
} else {
sb.append(this.eB);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class worker_cacheBlock_resultStandardSchemeFactory implements SchemeFactory {
public worker_cacheBlock_resultStandardScheme getScheme() {
return new worker_cacheBlock_resultStandardScheme();
}
}
private static class worker_cacheBlock_resultStandardScheme extends StandardScheme<worker_cacheBlock_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, worker_cacheBlock_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // E_P
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eP = new FileDoesNotExistException();
struct.eP.read(iprot);
struct.setEPIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // E_S
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eS = new SuspectedFileSizeException();
struct.eS.read(iprot);
struct.setESIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // E_B
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eB = new BlockInfoException();
struct.eB.read(iprot);
struct.setEBIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, worker_cacheBlock_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.eP != null) {
oprot.writeFieldBegin(E_P_FIELD_DESC);
struct.eP.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eS != null) {
oprot.writeFieldBegin(E_S_FIELD_DESC);
struct.eS.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eB != null) {
oprot.writeFieldBegin(E_B_FIELD_DESC);
struct.eB.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class worker_cacheBlock_resultTupleSchemeFactory implements SchemeFactory {
public worker_cacheBlock_resultTupleScheme getScheme() {
return new worker_cacheBlock_resultTupleScheme();
}
}
private static class worker_cacheBlock_resultTupleScheme extends TupleScheme<worker_cacheBlock_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, worker_cacheBlock_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetEP()) {
optionals.set(0);
}
if (struct.isSetES()) {
optionals.set(1);
}
if (struct.isSetEB()) {
optionals.set(2);
}
oprot.writeBitSet(optionals, 3);
if (struct.isSetEP()) {
struct.eP.write(oprot);
}
if (struct.isSetES()) {
struct.eS.write(oprot);
}
if (struct.isSetEB()) {
struct.eB.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, worker_cacheBlock_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
struct.eP = new FileDoesNotExistException();
struct.eP.read(iprot);
struct.setEPIsSet(true);
}
if (incoming.get(1)) {
struct.eS = new SuspectedFileSizeException();
struct.eS.read(iprot);
struct.setESIsSet(true);
}
if (incoming.get(2)) {
struct.eB = new BlockInfoException();
struct.eB.read(iprot);
struct.setEBIsSet(true);
}
}
}
}
public static class worker_getPinIdList_args implements org.apache.thrift.TBase<worker_getPinIdList_args, worker_getPinIdList_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("worker_getPinIdList_args");
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new worker_getPinIdList_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new worker_getPinIdList_argsTupleSchemeFactory());
}
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
;
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(worker_getPinIdList_args.class, metaDataMap);
}
public worker_getPinIdList_args() {
}
/**
* Performs a deep copy on <i>other</i>.
*/
public worker_getPinIdList_args(worker_getPinIdList_args other) {
}
public worker_getPinIdList_args deepCopy() {
return new worker_getPinIdList_args(this);
}
@Override
public void clear() {
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof worker_getPinIdList_args)
return this.equals((worker_getPinIdList_args)that);
return false;
}
public boolean equals(worker_getPinIdList_args that) {
if (that == null)
return false;
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(worker_getPinIdList_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
worker_getPinIdList_args typedOther = (worker_getPinIdList_args)other;
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("worker_getPinIdList_args(");
boolean first = true;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class worker_getPinIdList_argsStandardSchemeFactory implements SchemeFactory {
public worker_getPinIdList_argsStandardScheme getScheme() {
return new worker_getPinIdList_argsStandardScheme();
}
}
private static class worker_getPinIdList_argsStandardScheme extends StandardScheme<worker_getPinIdList_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, worker_getPinIdList_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, worker_getPinIdList_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class worker_getPinIdList_argsTupleSchemeFactory implements SchemeFactory {
public worker_getPinIdList_argsTupleScheme getScheme() {
return new worker_getPinIdList_argsTupleScheme();
}
}
private static class worker_getPinIdList_argsTupleScheme extends TupleScheme<worker_getPinIdList_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, worker_getPinIdList_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, worker_getPinIdList_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
}
}
}
public static class worker_getPinIdList_result implements org.apache.thrift.TBase<worker_getPinIdList_result, worker_getPinIdList_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("worker_getPinIdList_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.SET, (short)0);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new worker_getPinIdList_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new worker_getPinIdList_resultTupleSchemeFactory());
}
public Set<Integer> success; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(worker_getPinIdList_result.class, metaDataMap);
}
public worker_getPinIdList_result() {
}
public worker_getPinIdList_result(
Set<Integer> success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public worker_getPinIdList_result(worker_getPinIdList_result other) {
if (other.isSetSuccess()) {
Set<Integer> __this__success = new HashSet<Integer>();
for (Integer other_element : other.success) {
__this__success.add(other_element);
}
this.success = __this__success;
}
}
public worker_getPinIdList_result deepCopy() {
return new worker_getPinIdList_result(this);
}
@Override
public void clear() {
this.success = null;
}
public int getSuccessSize() {
return (this.success == null) ? 0 : this.success.size();
}
public java.util.Iterator<Integer> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(int elem) {
if (this.success == null) {
this.success = new HashSet<Integer>();
}
this.success.add(elem);
}
public Set<Integer> getSuccess() {
return this.success;
}
public worker_getPinIdList_result setSuccess(Set<Integer> success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Set<Integer>)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof worker_getPinIdList_result)
return this.equals((worker_getPinIdList_result)that);
return false;
}
public boolean equals(worker_getPinIdList_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
if (this_present_success || that_present_success) {
if (!(this_present_success && that_present_success))
return false;
if (!this.success.equals(that.success))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(worker_getPinIdList_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
worker_getPinIdList_result typedOther = (worker_getPinIdList_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("worker_getPinIdList_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class worker_getPinIdList_resultStandardSchemeFactory implements SchemeFactory {
public worker_getPinIdList_resultStandardScheme getScheme() {
return new worker_getPinIdList_resultStandardScheme();
}
}
private static class worker_getPinIdList_resultStandardScheme extends StandardScheme<worker_getPinIdList_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, worker_getPinIdList_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
{
org.apache.thrift.protocol.TSet _set80 = iprot.readSetBegin();
struct.success = new HashSet<Integer>(2*_set80.size);
for (int _i81 = 0; _i81 < _set80.size; ++_i81)
{
int _elem82; // required
_elem82 = iprot.readI32();
struct.success.add(_elem82);
}
iprot.readSetEnd();
}
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, worker_getPinIdList_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I32, struct.success.size()));
for (int _iter83 : struct.success)
{
oprot.writeI32(_iter83);
}
oprot.writeSetEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class worker_getPinIdList_resultTupleSchemeFactory implements SchemeFactory {
public worker_getPinIdList_resultTupleScheme getScheme() {
return new worker_getPinIdList_resultTupleScheme();
}
}
private static class worker_getPinIdList_resultTupleScheme extends TupleScheme<worker_getPinIdList_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, worker_getPinIdList_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
for (int _iter84 : struct.success)
{
oprot.writeI32(_iter84);
}
}
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, worker_getPinIdList_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TSet _set85 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I32, iprot.readI32());
struct.success = new HashSet<Integer>(2*_set85.size);
for (int _i86 = 0; _i86 < _set85.size; ++_i86)
{
int _elem87; // required
_elem87 = iprot.readI32();
struct.success.add(_elem87);
}
}
struct.setSuccessIsSet(true);
}
}
}
}
public static class worker_getPriorityDependencyList_args implements org.apache.thrift.TBase<worker_getPriorityDependencyList_args, worker_getPriorityDependencyList_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("worker_getPriorityDependencyList_args");
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new worker_getPriorityDependencyList_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new worker_getPriorityDependencyList_argsTupleSchemeFactory());
}
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
;
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(worker_getPriorityDependencyList_args.class, metaDataMap);
}
public worker_getPriorityDependencyList_args() {
}
/**
* Performs a deep copy on <i>other</i>.
*/
public worker_getPriorityDependencyList_args(worker_getPriorityDependencyList_args other) {
}
public worker_getPriorityDependencyList_args deepCopy() {
return new worker_getPriorityDependencyList_args(this);
}
@Override
public void clear() {
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof worker_getPriorityDependencyList_args)
return this.equals((worker_getPriorityDependencyList_args)that);
return false;
}
public boolean equals(worker_getPriorityDependencyList_args that) {
if (that == null)
return false;
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(worker_getPriorityDependencyList_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
worker_getPriorityDependencyList_args typedOther = (worker_getPriorityDependencyList_args)other;
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("worker_getPriorityDependencyList_args(");
boolean first = true;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class worker_getPriorityDependencyList_argsStandardSchemeFactory implements SchemeFactory {
public worker_getPriorityDependencyList_argsStandardScheme getScheme() {
return new worker_getPriorityDependencyList_argsStandardScheme();
}
}
private static class worker_getPriorityDependencyList_argsStandardScheme extends StandardScheme<worker_getPriorityDependencyList_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, worker_getPriorityDependencyList_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, worker_getPriorityDependencyList_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class worker_getPriorityDependencyList_argsTupleSchemeFactory implements SchemeFactory {
public worker_getPriorityDependencyList_argsTupleScheme getScheme() {
return new worker_getPriorityDependencyList_argsTupleScheme();
}
}
private static class worker_getPriorityDependencyList_argsTupleScheme extends TupleScheme<worker_getPriorityDependencyList_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, worker_getPriorityDependencyList_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, worker_getPriorityDependencyList_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
}
}
}
public static class worker_getPriorityDependencyList_result implements org.apache.thrift.TBase<worker_getPriorityDependencyList_result, worker_getPriorityDependencyList_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("worker_getPriorityDependencyList_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new worker_getPriorityDependencyList_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new worker_getPriorityDependencyList_resultTupleSchemeFactory());
}
public List<Integer> success; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(worker_getPriorityDependencyList_result.class, metaDataMap);
}
public worker_getPriorityDependencyList_result() {
}
public worker_getPriorityDependencyList_result(
List<Integer> success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public worker_getPriorityDependencyList_result(worker_getPriorityDependencyList_result other) {
if (other.isSetSuccess()) {
List<Integer> __this__success = new ArrayList<Integer>();
for (Integer other_element : other.success) {
__this__success.add(other_element);
}
this.success = __this__success;
}
}
public worker_getPriorityDependencyList_result deepCopy() {
return new worker_getPriorityDependencyList_result(this);
}
@Override
public void clear() {
this.success = null;
}
public int getSuccessSize() {
return (this.success == null) ? 0 : this.success.size();
}
public java.util.Iterator<Integer> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(int elem) {
if (this.success == null) {
this.success = new ArrayList<Integer>();
}
this.success.add(elem);
}
public List<Integer> getSuccess() {
return this.success;
}
public worker_getPriorityDependencyList_result setSuccess(List<Integer> success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((List<Integer>)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof worker_getPriorityDependencyList_result)
return this.equals((worker_getPriorityDependencyList_result)that);
return false;
}
public boolean equals(worker_getPriorityDependencyList_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
if (this_present_success || that_present_success) {
if (!(this_present_success && that_present_success))
return false;
if (!this.success.equals(that.success))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(worker_getPriorityDependencyList_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
worker_getPriorityDependencyList_result typedOther = (worker_getPriorityDependencyList_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("worker_getPriorityDependencyList_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class worker_getPriorityDependencyList_resultStandardSchemeFactory implements SchemeFactory {
public worker_getPriorityDependencyList_resultStandardScheme getScheme() {
return new worker_getPriorityDependencyList_resultStandardScheme();
}
}
private static class worker_getPriorityDependencyList_resultStandardScheme extends StandardScheme<worker_getPriorityDependencyList_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, worker_getPriorityDependencyList_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list88 = iprot.readListBegin();
struct.success = new ArrayList<Integer>(_list88.size);
for (int _i89 = 0; _i89 < _list88.size; ++_i89)
{
int _elem90; // required
_elem90 = iprot.readI32();
struct.success.add(_elem90);
}
iprot.readListEnd();
}
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, worker_getPriorityDependencyList_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.success.size()));
for (int _iter91 : struct.success)
{
oprot.writeI32(_iter91);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class worker_getPriorityDependencyList_resultTupleSchemeFactory implements SchemeFactory {
public worker_getPriorityDependencyList_resultTupleScheme getScheme() {
return new worker_getPriorityDependencyList_resultTupleScheme();
}
}
private static class worker_getPriorityDependencyList_resultTupleScheme extends TupleScheme<worker_getPriorityDependencyList_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, worker_getPriorityDependencyList_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
for (int _iter92 : struct.success)
{
oprot.writeI32(_iter92);
}
}
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, worker_getPriorityDependencyList_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list93 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32());
struct.success = new ArrayList<Integer>(_list93.size);
for (int _i94 = 0; _i94 < _list93.size; ++_i94)
{
int _elem95; // required
_elem95 = iprot.readI32();
struct.success.add(_elem95);
}
}
struct.setSuccessIsSet(true);
}
}
}
}
public static class user_createDependency_args implements org.apache.thrift.TBase<user_createDependency_args, user_createDependency_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_createDependency_args");
private static final org.apache.thrift.protocol.TField PARENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("parents", org.apache.thrift.protocol.TType.LIST, (short)1);
private static final org.apache.thrift.protocol.TField CHILDREN_FIELD_DESC = new org.apache.thrift.protocol.TField("children", org.apache.thrift.protocol.TType.LIST, (short)2);
private static final org.apache.thrift.protocol.TField COMMAND_PREFIX_FIELD_DESC = new org.apache.thrift.protocol.TField("commandPrefix", org.apache.thrift.protocol.TType.STRING, (short)3);
private static final org.apache.thrift.protocol.TField DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("data", org.apache.thrift.protocol.TType.LIST, (short)4);
private static final org.apache.thrift.protocol.TField COMMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("comment", org.apache.thrift.protocol.TType.STRING, (short)5);
private static final org.apache.thrift.protocol.TField FRAMEWORK_FIELD_DESC = new org.apache.thrift.protocol.TField("framework", org.apache.thrift.protocol.TType.STRING, (short)6);
private static final org.apache.thrift.protocol.TField FRAMEWORK_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("frameworkVersion", org.apache.thrift.protocol.TType.STRING, (short)7);
private static final org.apache.thrift.protocol.TField DEPENDENCY_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("dependencyType", org.apache.thrift.protocol.TType.I32, (short)8);
private static final org.apache.thrift.protocol.TField CHILDREN_BLOCK_SIZE_BYTE_FIELD_DESC = new org.apache.thrift.protocol.TField("childrenBlockSizeByte", org.apache.thrift.protocol.TType.I64, (short)9);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_createDependency_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_createDependency_argsTupleSchemeFactory());
}
public List<String> parents; // required
public List<String> children; // required
public String commandPrefix; // required
public List<ByteBuffer> data; // required
public String comment; // required
public String framework; // required
public String frameworkVersion; // required
public int dependencyType; // required
public long childrenBlockSizeByte; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
PARENTS((short)1, "parents"),
CHILDREN((short)2, "children"),
COMMAND_PREFIX((short)3, "commandPrefix"),
DATA((short)4, "data"),
COMMENT((short)5, "comment"),
FRAMEWORK((short)6, "framework"),
FRAMEWORK_VERSION((short)7, "frameworkVersion"),
DEPENDENCY_TYPE((short)8, "dependencyType"),
CHILDREN_BLOCK_SIZE_BYTE((short)9, "childrenBlockSizeByte");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // PARENTS
return PARENTS;
case 2: // CHILDREN
return CHILDREN;
case 3: // COMMAND_PREFIX
return COMMAND_PREFIX;
case 4: // DATA
return DATA;
case 5: // COMMENT
return COMMENT;
case 6: // FRAMEWORK
return FRAMEWORK;
case 7: // FRAMEWORK_VERSION
return FRAMEWORK_VERSION;
case 8: // DEPENDENCY_TYPE
return DEPENDENCY_TYPE;
case 9: // CHILDREN_BLOCK_SIZE_BYTE
return CHILDREN_BLOCK_SIZE_BYTE;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __DEPENDENCYTYPE_ISSET_ID = 0;
private static final int __CHILDRENBLOCKSIZEBYTE_ISSET_ID = 1;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.PARENTS, new org.apache.thrift.meta_data.FieldMetaData("parents", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.CHILDREN, new org.apache.thrift.meta_data.FieldMetaData("children", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.COMMAND_PREFIX, new org.apache.thrift.meta_data.FieldMetaData("commandPrefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.DATA, new org.apache.thrift.meta_data.FieldMetaData("data", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))));
tmpMap.put(_Fields.COMMENT, new org.apache.thrift.meta_data.FieldMetaData("comment", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.FRAMEWORK, new org.apache.thrift.meta_data.FieldMetaData("framework", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.FRAMEWORK_VERSION, new org.apache.thrift.meta_data.FieldMetaData("frameworkVersion", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.DEPENDENCY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("dependencyType", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.CHILDREN_BLOCK_SIZE_BYTE, new org.apache.thrift.meta_data.FieldMetaData("childrenBlockSizeByte", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_createDependency_args.class, metaDataMap);
}
public user_createDependency_args() {
}
public user_createDependency_args(
List<String> parents,
List<String> children,
String commandPrefix,
List<ByteBuffer> data,
String comment,
String framework,
String frameworkVersion,
int dependencyType,
long childrenBlockSizeByte)
{
this();
this.parents = parents;
this.children = children;
this.commandPrefix = commandPrefix;
this.data = data;
this.comment = comment;
this.framework = framework;
this.frameworkVersion = frameworkVersion;
this.dependencyType = dependencyType;
setDependencyTypeIsSet(true);
this.childrenBlockSizeByte = childrenBlockSizeByte;
setChildrenBlockSizeByteIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_createDependency_args(user_createDependency_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetParents()) {
List<String> __this__parents = new ArrayList<String>();
for (String other_element : other.parents) {
__this__parents.add(other_element);
}
this.parents = __this__parents;
}
if (other.isSetChildren()) {
List<String> __this__children = new ArrayList<String>();
for (String other_element : other.children) {
__this__children.add(other_element);
}
this.children = __this__children;
}
if (other.isSetCommandPrefix()) {
this.commandPrefix = other.commandPrefix;
}
if (other.isSetData()) {
List<ByteBuffer> __this__data = new ArrayList<ByteBuffer>();
for (ByteBuffer other_element : other.data) {
ByteBuffer temp_binary_element = org.apache.thrift.TBaseHelper.copyBinary(other_element);
;
__this__data.add(temp_binary_element);
}
this.data = __this__data;
}
if (other.isSetComment()) {
this.comment = other.comment;
}
if (other.isSetFramework()) {
this.framework = other.framework;
}
if (other.isSetFrameworkVersion()) {
this.frameworkVersion = other.frameworkVersion;
}
this.dependencyType = other.dependencyType;
this.childrenBlockSizeByte = other.childrenBlockSizeByte;
}
public user_createDependency_args deepCopy() {
return new user_createDependency_args(this);
}
@Override
public void clear() {
this.parents = null;
this.children = null;
this.commandPrefix = null;
this.data = null;
this.comment = null;
this.framework = null;
this.frameworkVersion = null;
setDependencyTypeIsSet(false);
this.dependencyType = 0;
setChildrenBlockSizeByteIsSet(false);
this.childrenBlockSizeByte = 0;
}
public int getParentsSize() {
return (this.parents == null) ? 0 : this.parents.size();
}
public java.util.Iterator<String> getParentsIterator() {
return (this.parents == null) ? null : this.parents.iterator();
}
public void addToParents(String elem) {
if (this.parents == null) {
this.parents = new ArrayList<String>();
}
this.parents.add(elem);
}
public List<String> getParents() {
return this.parents;
}
public user_createDependency_args setParents(List<String> parents) {
this.parents = parents;
return this;
}
public void unsetParents() {
this.parents = null;
}
/** Returns true if field parents is set (has been assigned a value) and false otherwise */
public boolean isSetParents() {
return this.parents != null;
}
public void setParentsIsSet(boolean value) {
if (!value) {
this.parents = null;
}
}
public int getChildrenSize() {
return (this.children == null) ? 0 : this.children.size();
}
public java.util.Iterator<String> getChildrenIterator() {
return (this.children == null) ? null : this.children.iterator();
}
public void addToChildren(String elem) {
if (this.children == null) {
this.children = new ArrayList<String>();
}
this.children.add(elem);
}
public List<String> getChildren() {
return this.children;
}
public user_createDependency_args setChildren(List<String> children) {
this.children = children;
return this;
}
public void unsetChildren() {
this.children = null;
}
/** Returns true if field children is set (has been assigned a value) and false otherwise */
public boolean isSetChildren() {
return this.children != null;
}
public void setChildrenIsSet(boolean value) {
if (!value) {
this.children = null;
}
}
public String getCommandPrefix() {
return this.commandPrefix;
}
public user_createDependency_args setCommandPrefix(String commandPrefix) {
this.commandPrefix = commandPrefix;
return this;
}
public void unsetCommandPrefix() {
this.commandPrefix = null;
}
/** Returns true if field commandPrefix is set (has been assigned a value) and false otherwise */
public boolean isSetCommandPrefix() {
return this.commandPrefix != null;
}
public void setCommandPrefixIsSet(boolean value) {
if (!value) {
this.commandPrefix = null;
}
}
public int getDataSize() {
return (this.data == null) ? 0 : this.data.size();
}
public java.util.Iterator<ByteBuffer> getDataIterator() {
return (this.data == null) ? null : this.data.iterator();
}
public void addToData(ByteBuffer elem) {
if (this.data == null) {
this.data = new ArrayList<ByteBuffer>();
}
this.data.add(elem);
}
public List<ByteBuffer> getData() {
return this.data;
}
public user_createDependency_args setData(List<ByteBuffer> data) {
this.data = data;
return this;
}
public void unsetData() {
this.data = null;
}
/** Returns true if field data is set (has been assigned a value) and false otherwise */
public boolean isSetData() {
return this.data != null;
}
public void setDataIsSet(boolean value) {
if (!value) {
this.data = null;
}
}
public String getComment() {
return this.comment;
}
public user_createDependency_args setComment(String comment) {
this.comment = comment;
return this;
}
public void unsetComment() {
this.comment = null;
}
/** Returns true if field comment is set (has been assigned a value) and false otherwise */
public boolean isSetComment() {
return this.comment != null;
}
public void setCommentIsSet(boolean value) {
if (!value) {
this.comment = null;
}
}
public String getFramework() {
return this.framework;
}
public user_createDependency_args setFramework(String framework) {
this.framework = framework;
return this;
}
public void unsetFramework() {
this.framework = null;
}
/** Returns true if field framework is set (has been assigned a value) and false otherwise */
public boolean isSetFramework() {
return this.framework != null;
}
public void setFrameworkIsSet(boolean value) {
if (!value) {
this.framework = null;
}
}
public String getFrameworkVersion() {
return this.frameworkVersion;
}
public user_createDependency_args setFrameworkVersion(String frameworkVersion) {
this.frameworkVersion = frameworkVersion;
return this;
}
public void unsetFrameworkVersion() {
this.frameworkVersion = null;
}
/** Returns true if field frameworkVersion is set (has been assigned a value) and false otherwise */
public boolean isSetFrameworkVersion() {
return this.frameworkVersion != null;
}
public void setFrameworkVersionIsSet(boolean value) {
if (!value) {
this.frameworkVersion = null;
}
}
public int getDependencyType() {
return this.dependencyType;
}
public user_createDependency_args setDependencyType(int dependencyType) {
this.dependencyType = dependencyType;
setDependencyTypeIsSet(true);
return this;
}
public void unsetDependencyType() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DEPENDENCYTYPE_ISSET_ID);
}
/** Returns true if field dependencyType is set (has been assigned a value) and false otherwise */
public boolean isSetDependencyType() {
return EncodingUtils.testBit(__isset_bitfield, __DEPENDENCYTYPE_ISSET_ID);
}
public void setDependencyTypeIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DEPENDENCYTYPE_ISSET_ID, value);
}
public long getChildrenBlockSizeByte() {
return this.childrenBlockSizeByte;
}
public user_createDependency_args setChildrenBlockSizeByte(long childrenBlockSizeByte) {
this.childrenBlockSizeByte = childrenBlockSizeByte;
setChildrenBlockSizeByteIsSet(true);
return this;
}
public void unsetChildrenBlockSizeByte() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CHILDRENBLOCKSIZEBYTE_ISSET_ID);
}
/** Returns true if field childrenBlockSizeByte is set (has been assigned a value) and false otherwise */
public boolean isSetChildrenBlockSizeByte() {
return EncodingUtils.testBit(__isset_bitfield, __CHILDRENBLOCKSIZEBYTE_ISSET_ID);
}
public void setChildrenBlockSizeByteIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CHILDRENBLOCKSIZEBYTE_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case PARENTS:
if (value == null) {
unsetParents();
} else {
setParents((List<String>)value);
}
break;
case CHILDREN:
if (value == null) {
unsetChildren();
} else {
setChildren((List<String>)value);
}
break;
case COMMAND_PREFIX:
if (value == null) {
unsetCommandPrefix();
} else {
setCommandPrefix((String)value);
}
break;
case DATA:
if (value == null) {
unsetData();
} else {
setData((List<ByteBuffer>)value);
}
break;
case COMMENT:
if (value == null) {
unsetComment();
} else {
setComment((String)value);
}
break;
case FRAMEWORK:
if (value == null) {
unsetFramework();
} else {
setFramework((String)value);
}
break;
case FRAMEWORK_VERSION:
if (value == null) {
unsetFrameworkVersion();
} else {
setFrameworkVersion((String)value);
}
break;
case DEPENDENCY_TYPE:
if (value == null) {
unsetDependencyType();
} else {
setDependencyType((Integer)value);
}
break;
case CHILDREN_BLOCK_SIZE_BYTE:
if (value == null) {
unsetChildrenBlockSizeByte();
} else {
setChildrenBlockSizeByte((Long)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case PARENTS:
return getParents();
case CHILDREN:
return getChildren();
case COMMAND_PREFIX:
return getCommandPrefix();
case DATA:
return getData();
case COMMENT:
return getComment();
case FRAMEWORK:
return getFramework();
case FRAMEWORK_VERSION:
return getFrameworkVersion();
case DEPENDENCY_TYPE:
return Integer.valueOf(getDependencyType());
case CHILDREN_BLOCK_SIZE_BYTE:
return Long.valueOf(getChildrenBlockSizeByte());
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case PARENTS:
return isSetParents();
case CHILDREN:
return isSetChildren();
case COMMAND_PREFIX:
return isSetCommandPrefix();
case DATA:
return isSetData();
case COMMENT:
return isSetComment();
case FRAMEWORK:
return isSetFramework();
case FRAMEWORK_VERSION:
return isSetFrameworkVersion();
case DEPENDENCY_TYPE:
return isSetDependencyType();
case CHILDREN_BLOCK_SIZE_BYTE:
return isSetChildrenBlockSizeByte();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_createDependency_args)
return this.equals((user_createDependency_args)that);
return false;
}
public boolean equals(user_createDependency_args that) {
if (that == null)
return false;
boolean this_present_parents = true && this.isSetParents();
boolean that_present_parents = true && that.isSetParents();
if (this_present_parents || that_present_parents) {
if (!(this_present_parents && that_present_parents))
return false;
if (!this.parents.equals(that.parents))
return false;
}
boolean this_present_children = true && this.isSetChildren();
boolean that_present_children = true && that.isSetChildren();
if (this_present_children || that_present_children) {
if (!(this_present_children && that_present_children))
return false;
if (!this.children.equals(that.children))
return false;
}
boolean this_present_commandPrefix = true && this.isSetCommandPrefix();
boolean that_present_commandPrefix = true && that.isSetCommandPrefix();
if (this_present_commandPrefix || that_present_commandPrefix) {
if (!(this_present_commandPrefix && that_present_commandPrefix))
return false;
if (!this.commandPrefix.equals(that.commandPrefix))
return false;
}
boolean this_present_data = true && this.isSetData();
boolean that_present_data = true && that.isSetData();
if (this_present_data || that_present_data) {
if (!(this_present_data && that_present_data))
return false;
if (!this.data.equals(that.data))
return false;
}
boolean this_present_comment = true && this.isSetComment();
boolean that_present_comment = true && that.isSetComment();
if (this_present_comment || that_present_comment) {
if (!(this_present_comment && that_present_comment))
return false;
if (!this.comment.equals(that.comment))
return false;
}
boolean this_present_framework = true && this.isSetFramework();
boolean that_present_framework = true && that.isSetFramework();
if (this_present_framework || that_present_framework) {
if (!(this_present_framework && that_present_framework))
return false;
if (!this.framework.equals(that.framework))
return false;
}
boolean this_present_frameworkVersion = true && this.isSetFrameworkVersion();
boolean that_present_frameworkVersion = true && that.isSetFrameworkVersion();
if (this_present_frameworkVersion || that_present_frameworkVersion) {
if (!(this_present_frameworkVersion && that_present_frameworkVersion))
return false;
if (!this.frameworkVersion.equals(that.frameworkVersion))
return false;
}
boolean this_present_dependencyType = true;
boolean that_present_dependencyType = true;
if (this_present_dependencyType || that_present_dependencyType) {
if (!(this_present_dependencyType && that_present_dependencyType))
return false;
if (this.dependencyType != that.dependencyType)
return false;
}
boolean this_present_childrenBlockSizeByte = true;
boolean that_present_childrenBlockSizeByte = true;
if (this_present_childrenBlockSizeByte || that_present_childrenBlockSizeByte) {
if (!(this_present_childrenBlockSizeByte && that_present_childrenBlockSizeByte))
return false;
if (this.childrenBlockSizeByte != that.childrenBlockSizeByte)
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_createDependency_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_createDependency_args typedOther = (user_createDependency_args)other;
lastComparison = Boolean.valueOf(isSetParents()).compareTo(typedOther.isSetParents());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetParents()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parents, typedOther.parents);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetChildren()).compareTo(typedOther.isSetChildren());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetChildren()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.children, typedOther.children);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetCommandPrefix()).compareTo(typedOther.isSetCommandPrefix());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCommandPrefix()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commandPrefix, typedOther.commandPrefix);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetData()).compareTo(typedOther.isSetData());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetData()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.data, typedOther.data);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetComment()).compareTo(typedOther.isSetComment());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetComment()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, typedOther.comment);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetFramework()).compareTo(typedOther.isSetFramework());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFramework()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.framework, typedOther.framework);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetFrameworkVersion()).compareTo(typedOther.isSetFrameworkVersion());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFrameworkVersion()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.frameworkVersion, typedOther.frameworkVersion);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetDependencyType()).compareTo(typedOther.isSetDependencyType());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetDependencyType()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dependencyType, typedOther.dependencyType);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetChildrenBlockSizeByte()).compareTo(typedOther.isSetChildrenBlockSizeByte());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetChildrenBlockSizeByte()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.childrenBlockSizeByte, typedOther.childrenBlockSizeByte);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_createDependency_args(");
boolean first = true;
sb.append("parents:");
if (this.parents == null) {
sb.append("null");
} else {
sb.append(this.parents);
}
first = false;
if (!first) sb.append(", ");
sb.append("children:");
if (this.children == null) {
sb.append("null");
} else {
sb.append(this.children);
}
first = false;
if (!first) sb.append(", ");
sb.append("commandPrefix:");
if (this.commandPrefix == null) {
sb.append("null");
} else {
sb.append(this.commandPrefix);
}
first = false;
if (!first) sb.append(", ");
sb.append("data:");
if (this.data == null) {
sb.append("null");
} else {
sb.append(this.data);
}
first = false;
if (!first) sb.append(", ");
sb.append("comment:");
if (this.comment == null) {
sb.append("null");
} else {
sb.append(this.comment);
}
first = false;
if (!first) sb.append(", ");
sb.append("framework:");
if (this.framework == null) {
sb.append("null");
} else {
sb.append(this.framework);
}
first = false;
if (!first) sb.append(", ");
sb.append("frameworkVersion:");
if (this.frameworkVersion == null) {
sb.append("null");
} else {
sb.append(this.frameworkVersion);
}
first = false;
if (!first) sb.append(", ");
sb.append("dependencyType:");
sb.append(this.dependencyType);
first = false;
if (!first) sb.append(", ");
sb.append("childrenBlockSizeByte:");
sb.append(this.childrenBlockSizeByte);
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_createDependency_argsStandardSchemeFactory implements SchemeFactory {
public user_createDependency_argsStandardScheme getScheme() {
return new user_createDependency_argsStandardScheme();
}
}
private static class user_createDependency_argsStandardScheme extends StandardScheme<user_createDependency_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_createDependency_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // PARENTS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list96 = iprot.readListBegin();
struct.parents = new ArrayList<String>(_list96.size);
for (int _i97 = 0; _i97 < _list96.size; ++_i97)
{
String _elem98; // required
_elem98 = iprot.readString();
struct.parents.add(_elem98);
}
iprot.readListEnd();
}
struct.setParentsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // CHILDREN
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list99 = iprot.readListBegin();
struct.children = new ArrayList<String>(_list99.size);
for (int _i100 = 0; _i100 < _list99.size; ++_i100)
{
String _elem101; // required
_elem101 = iprot.readString();
struct.children.add(_elem101);
}
iprot.readListEnd();
}
struct.setChildrenIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // COMMAND_PREFIX
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.commandPrefix = iprot.readString();
struct.setCommandPrefixIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // DATA
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list102 = iprot.readListBegin();
struct.data = new ArrayList<ByteBuffer>(_list102.size);
for (int _i103 = 0; _i103 < _list102.size; ++_i103)
{
ByteBuffer _elem104; // required
_elem104 = iprot.readBinary();
struct.data.add(_elem104);
}
iprot.readListEnd();
}
struct.setDataIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // COMMENT
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.comment = iprot.readString();
struct.setCommentIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 6: // FRAMEWORK
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.framework = iprot.readString();
struct.setFrameworkIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 7: // FRAMEWORK_VERSION
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.frameworkVersion = iprot.readString();
struct.setFrameworkVersionIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 8: // DEPENDENCY_TYPE
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.dependencyType = iprot.readI32();
struct.setDependencyTypeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 9: // CHILDREN_BLOCK_SIZE_BYTE
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.childrenBlockSizeByte = iprot.readI64();
struct.setChildrenBlockSizeByteIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_createDependency_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.parents != null) {
oprot.writeFieldBegin(PARENTS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.parents.size()));
for (String _iter105 : struct.parents)
{
oprot.writeString(_iter105);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.children != null) {
oprot.writeFieldBegin(CHILDREN_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.children.size()));
for (String _iter106 : struct.children)
{
oprot.writeString(_iter106);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.commandPrefix != null) {
oprot.writeFieldBegin(COMMAND_PREFIX_FIELD_DESC);
oprot.writeString(struct.commandPrefix);
oprot.writeFieldEnd();
}
if (struct.data != null) {
oprot.writeFieldBegin(DATA_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.data.size()));
for (ByteBuffer _iter107 : struct.data)
{
oprot.writeBinary(_iter107);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.comment != null) {
oprot.writeFieldBegin(COMMENT_FIELD_DESC);
oprot.writeString(struct.comment);
oprot.writeFieldEnd();
}
if (struct.framework != null) {
oprot.writeFieldBegin(FRAMEWORK_FIELD_DESC);
oprot.writeString(struct.framework);
oprot.writeFieldEnd();
}
if (struct.frameworkVersion != null) {
oprot.writeFieldBegin(FRAMEWORK_VERSION_FIELD_DESC);
oprot.writeString(struct.frameworkVersion);
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(DEPENDENCY_TYPE_FIELD_DESC);
oprot.writeI32(struct.dependencyType);
oprot.writeFieldEnd();
oprot.writeFieldBegin(CHILDREN_BLOCK_SIZE_BYTE_FIELD_DESC);
oprot.writeI64(struct.childrenBlockSizeByte);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_createDependency_argsTupleSchemeFactory implements SchemeFactory {
public user_createDependency_argsTupleScheme getScheme() {
return new user_createDependency_argsTupleScheme();
}
}
private static class user_createDependency_argsTupleScheme extends TupleScheme<user_createDependency_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_createDependency_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetParents()) {
optionals.set(0);
}
if (struct.isSetChildren()) {
optionals.set(1);
}
if (struct.isSetCommandPrefix()) {
optionals.set(2);
}
if (struct.isSetData()) {
optionals.set(3);
}
if (struct.isSetComment()) {
optionals.set(4);
}
if (struct.isSetFramework()) {
optionals.set(5);
}
if (struct.isSetFrameworkVersion()) {
optionals.set(6);
}
if (struct.isSetDependencyType()) {
optionals.set(7);
}
if (struct.isSetChildrenBlockSizeByte()) {
optionals.set(8);
}
oprot.writeBitSet(optionals, 9);
if (struct.isSetParents()) {
{
oprot.writeI32(struct.parents.size());
for (String _iter108 : struct.parents)
{
oprot.writeString(_iter108);
}
}
}
if (struct.isSetChildren()) {
{
oprot.writeI32(struct.children.size());
for (String _iter109 : struct.children)
{
oprot.writeString(_iter109);
}
}
}
if (struct.isSetCommandPrefix()) {
oprot.writeString(struct.commandPrefix);
}
if (struct.isSetData()) {
{
oprot.writeI32(struct.data.size());
for (ByteBuffer _iter110 : struct.data)
{
oprot.writeBinary(_iter110);
}
}
}
if (struct.isSetComment()) {
oprot.writeString(struct.comment);
}
if (struct.isSetFramework()) {
oprot.writeString(struct.framework);
}
if (struct.isSetFrameworkVersion()) {
oprot.writeString(struct.frameworkVersion);
}
if (struct.isSetDependencyType()) {
oprot.writeI32(struct.dependencyType);
}
if (struct.isSetChildrenBlockSizeByte()) {
oprot.writeI64(struct.childrenBlockSizeByte);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_createDependency_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(9);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list111 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.parents = new ArrayList<String>(_list111.size);
for (int _i112 = 0; _i112 < _list111.size; ++_i112)
{
String _elem113; // required
_elem113 = iprot.readString();
struct.parents.add(_elem113);
}
}
struct.setParentsIsSet(true);
}
if (incoming.get(1)) {
{
org.apache.thrift.protocol.TList _list114 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.children = new ArrayList<String>(_list114.size);
for (int _i115 = 0; _i115 < _list114.size; ++_i115)
{
String _elem116; // required
_elem116 = iprot.readString();
struct.children.add(_elem116);
}
}
struct.setChildrenIsSet(true);
}
if (incoming.get(2)) {
struct.commandPrefix = iprot.readString();
struct.setCommandPrefixIsSet(true);
}
if (incoming.get(3)) {
{
org.apache.thrift.protocol.TList _list117 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.data = new ArrayList<ByteBuffer>(_list117.size);
for (int _i118 = 0; _i118 < _list117.size; ++_i118)
{
ByteBuffer _elem119; // required
_elem119 = iprot.readBinary();
struct.data.add(_elem119);
}
}
struct.setDataIsSet(true);
}
if (incoming.get(4)) {
struct.comment = iprot.readString();
struct.setCommentIsSet(true);
}
if (incoming.get(5)) {
struct.framework = iprot.readString();
struct.setFrameworkIsSet(true);
}
if (incoming.get(6)) {
struct.frameworkVersion = iprot.readString();
struct.setFrameworkVersionIsSet(true);
}
if (incoming.get(7)) {
struct.dependencyType = iprot.readI32();
struct.setDependencyTypeIsSet(true);
}
if (incoming.get(8)) {
struct.childrenBlockSizeByte = iprot.readI64();
struct.setChildrenBlockSizeByteIsSet(true);
}
}
}
}
public static class user_createDependency_result implements org.apache.thrift.TBase<user_createDependency_result, user_createDependency_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_createDependency_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
private static final org.apache.thrift.protocol.TField E_I_FIELD_DESC = new org.apache.thrift.protocol.TField("eI", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField E_F_FIELD_DESC = new org.apache.thrift.protocol.TField("eF", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final org.apache.thrift.protocol.TField E_A_FIELD_DESC = new org.apache.thrift.protocol.TField("eA", org.apache.thrift.protocol.TType.STRUCT, (short)3);
private static final org.apache.thrift.protocol.TField E_B_FIELD_DESC = new org.apache.thrift.protocol.TField("eB", org.apache.thrift.protocol.TType.STRUCT, (short)4);
private static final org.apache.thrift.protocol.TField E_T_FIELD_DESC = new org.apache.thrift.protocol.TField("eT", org.apache.thrift.protocol.TType.STRUCT, (short)5);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_createDependency_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_createDependency_resultTupleSchemeFactory());
}
public int success; // required
public InvalidPathException eI; // required
public FileDoesNotExistException eF; // required
public FileAlreadyExistException eA; // required
public BlockInfoException eB; // required
public TachyonException eT; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E_I((short)1, "eI"),
E_F((short)2, "eF"),
E_A((short)3, "eA"),
E_B((short)4, "eB"),
E_T((short)5, "eT");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E_I
return E_I;
case 2: // E_F
return E_F;
case 3: // E_A
return E_A;
case 4: // E_B
return E_B;
case 5: // E_T
return E_T;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.E_I, new org.apache.thrift.meta_data.FieldMetaData("eI", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_F, new org.apache.thrift.meta_data.FieldMetaData("eF", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_A, new org.apache.thrift.meta_data.FieldMetaData("eA", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_B, new org.apache.thrift.meta_data.FieldMetaData("eB", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_T, new org.apache.thrift.meta_data.FieldMetaData("eT", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_createDependency_result.class, metaDataMap);
}
public user_createDependency_result() {
}
public user_createDependency_result(
int success,
InvalidPathException eI,
FileDoesNotExistException eF,
FileAlreadyExistException eA,
BlockInfoException eB,
TachyonException eT)
{
this();
this.success = success;
setSuccessIsSet(true);
this.eI = eI;
this.eF = eF;
this.eA = eA;
this.eB = eB;
this.eT = eT;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_createDependency_result(user_createDependency_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
if (other.isSetEI()) {
this.eI = new InvalidPathException(other.eI);
}
if (other.isSetEF()) {
this.eF = new FileDoesNotExistException(other.eF);
}
if (other.isSetEA()) {
this.eA = new FileAlreadyExistException(other.eA);
}
if (other.isSetEB()) {
this.eB = new BlockInfoException(other.eB);
}
if (other.isSetET()) {
this.eT = new TachyonException(other.eT);
}
}
public user_createDependency_result deepCopy() {
return new user_createDependency_result(this);
}
@Override
public void clear() {
setSuccessIsSet(false);
this.success = 0;
this.eI = null;
this.eF = null;
this.eA = null;
this.eB = null;
this.eT = null;
}
public int getSuccess() {
return this.success;
}
public user_createDependency_result setSuccess(int success) {
this.success = success;
setSuccessIsSet(true);
return this;
}
public void unsetSuccess() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public InvalidPathException getEI() {
return this.eI;
}
public user_createDependency_result setEI(InvalidPathException eI) {
this.eI = eI;
return this;
}
public void unsetEI() {
this.eI = null;
}
/** Returns true if field eI is set (has been assigned a value) and false otherwise */
public boolean isSetEI() {
return this.eI != null;
}
public void setEIIsSet(boolean value) {
if (!value) {
this.eI = null;
}
}
public FileDoesNotExistException getEF() {
return this.eF;
}
public user_createDependency_result setEF(FileDoesNotExistException eF) {
this.eF = eF;
return this;
}
public void unsetEF() {
this.eF = null;
}
/** Returns true if field eF is set (has been assigned a value) and false otherwise */
public boolean isSetEF() {
return this.eF != null;
}
public void setEFIsSet(boolean value) {
if (!value) {
this.eF = null;
}
}
public FileAlreadyExistException getEA() {
return this.eA;
}
public user_createDependency_result setEA(FileAlreadyExistException eA) {
this.eA = eA;
return this;
}
public void unsetEA() {
this.eA = null;
}
/** Returns true if field eA is set (has been assigned a value) and false otherwise */
public boolean isSetEA() {
return this.eA != null;
}
public void setEAIsSet(boolean value) {
if (!value) {
this.eA = null;
}
}
public BlockInfoException getEB() {
return this.eB;
}
public user_createDependency_result setEB(BlockInfoException eB) {
this.eB = eB;
return this;
}
public void unsetEB() {
this.eB = null;
}
/** Returns true if field eB is set (has been assigned a value) and false otherwise */
public boolean isSetEB() {
return this.eB != null;
}
public void setEBIsSet(boolean value) {
if (!value) {
this.eB = null;
}
}
public TachyonException getET() {
return this.eT;
}
public user_createDependency_result setET(TachyonException eT) {
this.eT = eT;
return this;
}
public void unsetET() {
this.eT = null;
}
/** Returns true if field eT is set (has been assigned a value) and false otherwise */
public boolean isSetET() {
return this.eT != null;
}
public void setETIsSet(boolean value) {
if (!value) {
this.eT = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Integer)value);
}
break;
case E_I:
if (value == null) {
unsetEI();
} else {
setEI((InvalidPathException)value);
}
break;
case E_F:
if (value == null) {
unsetEF();
} else {
setEF((FileDoesNotExistException)value);
}
break;
case E_A:
if (value == null) {
unsetEA();
} else {
setEA((FileAlreadyExistException)value);
}
break;
case E_B:
if (value == null) {
unsetEB();
} else {
setEB((BlockInfoException)value);
}
break;
case E_T:
if (value == null) {
unsetET();
} else {
setET((TachyonException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return Integer.valueOf(getSuccess());
case E_I:
return getEI();
case E_F:
return getEF();
case E_A:
return getEA();
case E_B:
return getEB();
case E_T:
return getET();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E_I:
return isSetEI();
case E_F:
return isSetEF();
case E_A:
return isSetEA();
case E_B:
return isSetEB();
case E_T:
return isSetET();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_createDependency_result)
return this.equals((user_createDependency_result)that);
return false;
}
public boolean equals(user_createDependency_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_eI = true && this.isSetEI();
boolean that_present_eI = true && that.isSetEI();
if (this_present_eI || that_present_eI) {
if (!(this_present_eI && that_present_eI))
return false;
if (!this.eI.equals(that.eI))
return false;
}
boolean this_present_eF = true && this.isSetEF();
boolean that_present_eF = true && that.isSetEF();
if (this_present_eF || that_present_eF) {
if (!(this_present_eF && that_present_eF))
return false;
if (!this.eF.equals(that.eF))
return false;
}
boolean this_present_eA = true && this.isSetEA();
boolean that_present_eA = true && that.isSetEA();
if (this_present_eA || that_present_eA) {
if (!(this_present_eA && that_present_eA))
return false;
if (!this.eA.equals(that.eA))
return false;
}
boolean this_present_eB = true && this.isSetEB();
boolean that_present_eB = true && that.isSetEB();
if (this_present_eB || that_present_eB) {
if (!(this_present_eB && that_present_eB))
return false;
if (!this.eB.equals(that.eB))
return false;
}
boolean this_present_eT = true && this.isSetET();
boolean that_present_eT = true && that.isSetET();
if (this_present_eT || that_present_eT) {
if (!(this_present_eT && that_present_eT))
return false;
if (!this.eT.equals(that.eT))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_createDependency_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_createDependency_result typedOther = (user_createDependency_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEI()).compareTo(typedOther.isSetEI());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEI()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eI, typedOther.eI);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEF()).compareTo(typedOther.isSetEF());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEF()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eF, typedOther.eF);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEA()).compareTo(typedOther.isSetEA());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEA()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eA, typedOther.eA);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEB()).compareTo(typedOther.isSetEB());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEB()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eB, typedOther.eB);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetET()).compareTo(typedOther.isSetET());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetET()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eT, typedOther.eT);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_createDependency_result(");
boolean first = true;
sb.append("success:");
sb.append(this.success);
first = false;
if (!first) sb.append(", ");
sb.append("eI:");
if (this.eI == null) {
sb.append("null");
} else {
sb.append(this.eI);
}
first = false;
if (!first) sb.append(", ");
sb.append("eF:");
if (this.eF == null) {
sb.append("null");
} else {
sb.append(this.eF);
}
first = false;
if (!first) sb.append(", ");
sb.append("eA:");
if (this.eA == null) {
sb.append("null");
} else {
sb.append(this.eA);
}
first = false;
if (!first) sb.append(", ");
sb.append("eB:");
if (this.eB == null) {
sb.append("null");
} else {
sb.append(this.eB);
}
first = false;
if (!first) sb.append(", ");
sb.append("eT:");
if (this.eT == null) {
sb.append("null");
} else {
sb.append(this.eT);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_createDependency_resultStandardSchemeFactory implements SchemeFactory {
public user_createDependency_resultStandardScheme getScheme() {
return new user_createDependency_resultStandardScheme();
}
}
private static class user_createDependency_resultStandardScheme extends StandardScheme<user_createDependency_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_createDependency_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.success = iprot.readI32();
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E_I
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // E_F
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eF = new FileDoesNotExistException();
struct.eF.read(iprot);
struct.setEFIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // E_A
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eA = new FileAlreadyExistException();
struct.eA.read(iprot);
struct.setEAIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // E_B
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eB = new BlockInfoException();
struct.eB.read(iprot);
struct.setEBIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // E_T
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eT = new TachyonException();
struct.eT.read(iprot);
struct.setETIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_createDependency_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.isSetSuccess()) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeI32(struct.success);
oprot.writeFieldEnd();
}
if (struct.eI != null) {
oprot.writeFieldBegin(E_I_FIELD_DESC);
struct.eI.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eF != null) {
oprot.writeFieldBegin(E_F_FIELD_DESC);
struct.eF.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eA != null) {
oprot.writeFieldBegin(E_A_FIELD_DESC);
struct.eA.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eB != null) {
oprot.writeFieldBegin(E_B_FIELD_DESC);
struct.eB.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eT != null) {
oprot.writeFieldBegin(E_T_FIELD_DESC);
struct.eT.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_createDependency_resultTupleSchemeFactory implements SchemeFactory {
public user_createDependency_resultTupleScheme getScheme() {
return new user_createDependency_resultTupleScheme();
}
}
private static class user_createDependency_resultTupleScheme extends TupleScheme<user_createDependency_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_createDependency_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetEI()) {
optionals.set(1);
}
if (struct.isSetEF()) {
optionals.set(2);
}
if (struct.isSetEA()) {
optionals.set(3);
}
if (struct.isSetEB()) {
optionals.set(4);
}
if (struct.isSetET()) {
optionals.set(5);
}
oprot.writeBitSet(optionals, 6);
if (struct.isSetSuccess()) {
oprot.writeI32(struct.success);
}
if (struct.isSetEI()) {
struct.eI.write(oprot);
}
if (struct.isSetEF()) {
struct.eF.write(oprot);
}
if (struct.isSetEA()) {
struct.eA.write(oprot);
}
if (struct.isSetEB()) {
struct.eB.write(oprot);
}
if (struct.isSetET()) {
struct.eT.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_createDependency_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(6);
if (incoming.get(0)) {
struct.success = iprot.readI32();
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
}
if (incoming.get(2)) {
struct.eF = new FileDoesNotExistException();
struct.eF.read(iprot);
struct.setEFIsSet(true);
}
if (incoming.get(3)) {
struct.eA = new FileAlreadyExistException();
struct.eA.read(iprot);
struct.setEAIsSet(true);
}
if (incoming.get(4)) {
struct.eB = new BlockInfoException();
struct.eB.read(iprot);
struct.setEBIsSet(true);
}
if (incoming.get(5)) {
struct.eT = new TachyonException();
struct.eT.read(iprot);
struct.setETIsSet(true);
}
}
}
}
public static class user_getClientDependencyInfo_args implements org.apache.thrift.TBase<user_getClientDependencyInfo_args, user_getClientDependencyInfo_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getClientDependencyInfo_args");
private static final org.apache.thrift.protocol.TField DEPENDENCY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("dependencyId", org.apache.thrift.protocol.TType.I32, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getClientDependencyInfo_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getClientDependencyInfo_argsTupleSchemeFactory());
}
public int dependencyId; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
DEPENDENCY_ID((short)1, "dependencyId");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // DEPENDENCY_ID
return DEPENDENCY_ID;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __DEPENDENCYID_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.DEPENDENCY_ID, new org.apache.thrift.meta_data.FieldMetaData("dependencyId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getClientDependencyInfo_args.class, metaDataMap);
}
public user_getClientDependencyInfo_args() {
}
public user_getClientDependencyInfo_args(
int dependencyId)
{
this();
this.dependencyId = dependencyId;
setDependencyIdIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getClientDependencyInfo_args(user_getClientDependencyInfo_args other) {
__isset_bitfield = other.__isset_bitfield;
this.dependencyId = other.dependencyId;
}
public user_getClientDependencyInfo_args deepCopy() {
return new user_getClientDependencyInfo_args(this);
}
@Override
public void clear() {
setDependencyIdIsSet(false);
this.dependencyId = 0;
}
public int getDependencyId() {
return this.dependencyId;
}
public user_getClientDependencyInfo_args setDependencyId(int dependencyId) {
this.dependencyId = dependencyId;
setDependencyIdIsSet(true);
return this;
}
public void unsetDependencyId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DEPENDENCYID_ISSET_ID);
}
/** Returns true if field dependencyId is set (has been assigned a value) and false otherwise */
public boolean isSetDependencyId() {
return EncodingUtils.testBit(__isset_bitfield, __DEPENDENCYID_ISSET_ID);
}
public void setDependencyIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DEPENDENCYID_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case DEPENDENCY_ID:
if (value == null) {
unsetDependencyId();
} else {
setDependencyId((Integer)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case DEPENDENCY_ID:
return Integer.valueOf(getDependencyId());
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case DEPENDENCY_ID:
return isSetDependencyId();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getClientDependencyInfo_args)
return this.equals((user_getClientDependencyInfo_args)that);
return false;
}
public boolean equals(user_getClientDependencyInfo_args that) {
if (that == null)
return false;
boolean this_present_dependencyId = true;
boolean that_present_dependencyId = true;
if (this_present_dependencyId || that_present_dependencyId) {
if (!(this_present_dependencyId && that_present_dependencyId))
return false;
if (this.dependencyId != that.dependencyId)
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getClientDependencyInfo_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getClientDependencyInfo_args typedOther = (user_getClientDependencyInfo_args)other;
lastComparison = Boolean.valueOf(isSetDependencyId()).compareTo(typedOther.isSetDependencyId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetDependencyId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dependencyId, typedOther.dependencyId);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getClientDependencyInfo_args(");
boolean first = true;
sb.append("dependencyId:");
sb.append(this.dependencyId);
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getClientDependencyInfo_argsStandardSchemeFactory implements SchemeFactory {
public user_getClientDependencyInfo_argsStandardScheme getScheme() {
return new user_getClientDependencyInfo_argsStandardScheme();
}
}
private static class user_getClientDependencyInfo_argsStandardScheme extends StandardScheme<user_getClientDependencyInfo_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getClientDependencyInfo_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // DEPENDENCY_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.dependencyId = iprot.readI32();
struct.setDependencyIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getClientDependencyInfo_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(DEPENDENCY_ID_FIELD_DESC);
oprot.writeI32(struct.dependencyId);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getClientDependencyInfo_argsTupleSchemeFactory implements SchemeFactory {
public user_getClientDependencyInfo_argsTupleScheme getScheme() {
return new user_getClientDependencyInfo_argsTupleScheme();
}
}
private static class user_getClientDependencyInfo_argsTupleScheme extends TupleScheme<user_getClientDependencyInfo_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getClientDependencyInfo_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetDependencyId()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetDependencyId()) {
oprot.writeI32(struct.dependencyId);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getClientDependencyInfo_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.dependencyId = iprot.readI32();
struct.setDependencyIdIsSet(true);
}
}
}
}
public static class user_getClientDependencyInfo_result implements org.apache.thrift.TBase<user_getClientDependencyInfo_result, user_getClientDependencyInfo_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getClientDependencyInfo_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getClientDependencyInfo_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getClientDependencyInfo_resultTupleSchemeFactory());
}
public ClientDependencyInfo success; // required
public DependencyDoesNotExistException e; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E((short)1, "e");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E
return E;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ClientDependencyInfo.class)));
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getClientDependencyInfo_result.class, metaDataMap);
}
public user_getClientDependencyInfo_result() {
}
public user_getClientDependencyInfo_result(
ClientDependencyInfo success,
DependencyDoesNotExistException e)
{
this();
this.success = success;
this.e = e;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getClientDependencyInfo_result(user_getClientDependencyInfo_result other) {
if (other.isSetSuccess()) {
this.success = new ClientDependencyInfo(other.success);
}
if (other.isSetE()) {
this.e = new DependencyDoesNotExistException(other.e);
}
}
public user_getClientDependencyInfo_result deepCopy() {
return new user_getClientDependencyInfo_result(this);
}
@Override
public void clear() {
this.success = null;
this.e = null;
}
public ClientDependencyInfo getSuccess() {
return this.success;
}
public user_getClientDependencyInfo_result setSuccess(ClientDependencyInfo success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public DependencyDoesNotExistException getE() {
return this.e;
}
public user_getClientDependencyInfo_result setE(DependencyDoesNotExistException e) {
this.e = e;
return this;
}
public void unsetE() {
this.e = null;
}
/** Returns true if field e is set (has been assigned a value) and false otherwise */
public boolean isSetE() {
return this.e != null;
}
public void setEIsSet(boolean value) {
if (!value) {
this.e = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((ClientDependencyInfo)value);
}
break;
case E:
if (value == null) {
unsetE();
} else {
setE((DependencyDoesNotExistException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
case E:
return getE();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E:
return isSetE();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getClientDependencyInfo_result)
return this.equals((user_getClientDependencyInfo_result)that);
return false;
}
public boolean equals(user_getClientDependencyInfo_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
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_e = true && this.isSetE();
boolean that_present_e = true && that.isSetE();
if (this_present_e || that_present_e) {
if (!(this_present_e && that_present_e))
return false;
if (!this.e.equals(that.e))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getClientDependencyInfo_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getClientDependencyInfo_result typedOther = (user_getClientDependencyInfo_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetE()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getClientDependencyInfo_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
if (!first) sb.append(", ");
sb.append("e:");
if (this.e == null) {
sb.append("null");
} else {
sb.append(this.e);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (success != null) {
success.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getClientDependencyInfo_resultStandardSchemeFactory implements SchemeFactory {
public user_getClientDependencyInfo_resultStandardScheme getScheme() {
return new user_getClientDependencyInfo_resultStandardScheme();
}
}
private static class user_getClientDependencyInfo_resultStandardScheme extends StandardScheme<user_getClientDependencyInfo_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getClientDependencyInfo_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.success = new ClientDependencyInfo();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.e = new DependencyDoesNotExistException();
struct.e.read(iprot);
struct.setEIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getClientDependencyInfo_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
struct.success.write(oprot);
oprot.writeFieldEnd();
}
if (struct.e != null) {
oprot.writeFieldBegin(E_FIELD_DESC);
struct.e.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getClientDependencyInfo_resultTupleSchemeFactory implements SchemeFactory {
public user_getClientDependencyInfo_resultTupleScheme getScheme() {
return new user_getClientDependencyInfo_resultTupleScheme();
}
}
private static class user_getClientDependencyInfo_resultTupleScheme extends TupleScheme<user_getClientDependencyInfo_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getClientDependencyInfo_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetE()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
if (struct.isSetE()) {
struct.e.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getClientDependencyInfo_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.success = new ClientDependencyInfo();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.e = new DependencyDoesNotExistException();
struct.e.read(iprot);
struct.setEIsSet(true);
}
}
}
}
public static class user_reportLostFile_args implements org.apache.thrift.TBase<user_reportLostFile_args, user_reportLostFile_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_reportLostFile_args");
private static final org.apache.thrift.protocol.TField FILE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fileId", org.apache.thrift.protocol.TType.I32, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_reportLostFile_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_reportLostFile_argsTupleSchemeFactory());
}
public int fileId; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
FILE_ID((short)1, "fileId");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // FILE_ID
return FILE_ID;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __FILEID_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.FILE_ID, new org.apache.thrift.meta_data.FieldMetaData("fileId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_reportLostFile_args.class, metaDataMap);
}
public user_reportLostFile_args() {
}
public user_reportLostFile_args(
int fileId)
{
this();
this.fileId = fileId;
setFileIdIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_reportLostFile_args(user_reportLostFile_args other) {
__isset_bitfield = other.__isset_bitfield;
this.fileId = other.fileId;
}
public user_reportLostFile_args deepCopy() {
return new user_reportLostFile_args(this);
}
@Override
public void clear() {
setFileIdIsSet(false);
this.fileId = 0;
}
public int getFileId() {
return this.fileId;
}
public user_reportLostFile_args setFileId(int fileId) {
this.fileId = fileId;
setFileIdIsSet(true);
return this;
}
public void unsetFileId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILEID_ISSET_ID);
}
/** Returns true if field fileId is set (has been assigned a value) and false otherwise */
public boolean isSetFileId() {
return EncodingUtils.testBit(__isset_bitfield, __FILEID_ISSET_ID);
}
public void setFileIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILEID_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case FILE_ID:
if (value == null) {
unsetFileId();
} else {
setFileId((Integer)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case FILE_ID:
return Integer.valueOf(getFileId());
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case FILE_ID:
return isSetFileId();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_reportLostFile_args)
return this.equals((user_reportLostFile_args)that);
return false;
}
public boolean equals(user_reportLostFile_args that) {
if (that == null)
return false;
boolean this_present_fileId = true;
boolean that_present_fileId = true;
if (this_present_fileId || that_present_fileId) {
if (!(this_present_fileId && that_present_fileId))
return false;
if (this.fileId != that.fileId)
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_reportLostFile_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_reportLostFile_args typedOther = (user_reportLostFile_args)other;
lastComparison = Boolean.valueOf(isSetFileId()).compareTo(typedOther.isSetFileId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFileId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileId, typedOther.fileId);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_reportLostFile_args(");
boolean first = true;
sb.append("fileId:");
sb.append(this.fileId);
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_reportLostFile_argsStandardSchemeFactory implements SchemeFactory {
public user_reportLostFile_argsStandardScheme getScheme() {
return new user_reportLostFile_argsStandardScheme();
}
}
private static class user_reportLostFile_argsStandardScheme extends StandardScheme<user_reportLostFile_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_reportLostFile_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // FILE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_reportLostFile_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(FILE_ID_FIELD_DESC);
oprot.writeI32(struct.fileId);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_reportLostFile_argsTupleSchemeFactory implements SchemeFactory {
public user_reportLostFile_argsTupleScheme getScheme() {
return new user_reportLostFile_argsTupleScheme();
}
}
private static class user_reportLostFile_argsTupleScheme extends TupleScheme<user_reportLostFile_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_reportLostFile_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetFileId()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetFileId()) {
oprot.writeI32(struct.fileId);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_reportLostFile_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
}
}
}
}
public static class user_reportLostFile_result implements org.apache.thrift.TBase<user_reportLostFile_result, user_reportLostFile_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_reportLostFile_result");
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_reportLostFile_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_reportLostFile_resultTupleSchemeFactory());
}
public FileDoesNotExistException e; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
E((short)1, "e");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // E
return E;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_reportLostFile_result.class, metaDataMap);
}
public user_reportLostFile_result() {
}
public user_reportLostFile_result(
FileDoesNotExistException e)
{
this();
this.e = e;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_reportLostFile_result(user_reportLostFile_result other) {
if (other.isSetE()) {
this.e = new FileDoesNotExistException(other.e);
}
}
public user_reportLostFile_result deepCopy() {
return new user_reportLostFile_result(this);
}
@Override
public void clear() {
this.e = null;
}
public FileDoesNotExistException getE() {
return this.e;
}
public user_reportLostFile_result setE(FileDoesNotExistException e) {
this.e = e;
return this;
}
public void unsetE() {
this.e = null;
}
/** Returns true if field e is set (has been assigned a value) and false otherwise */
public boolean isSetE() {
return this.e != null;
}
public void setEIsSet(boolean value) {
if (!value) {
this.e = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case E:
if (value == null) {
unsetE();
} else {
setE((FileDoesNotExistException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case E:
return getE();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case E:
return isSetE();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_reportLostFile_result)
return this.equals((user_reportLostFile_result)that);
return false;
}
public boolean equals(user_reportLostFile_result that) {
if (that == null)
return false;
boolean this_present_e = true && this.isSetE();
boolean that_present_e = true && that.isSetE();
if (this_present_e || that_present_e) {
if (!(this_present_e && that_present_e))
return false;
if (!this.e.equals(that.e))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_reportLostFile_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_reportLostFile_result typedOther = (user_reportLostFile_result)other;
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetE()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_reportLostFile_result(");
boolean first = true;
sb.append("e:");
if (this.e == null) {
sb.append("null");
} else {
sb.append(this.e);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_reportLostFile_resultStandardSchemeFactory implements SchemeFactory {
public user_reportLostFile_resultStandardScheme getScheme() {
return new user_reportLostFile_resultStandardScheme();
}
}
private static class user_reportLostFile_resultStandardScheme extends StandardScheme<user_reportLostFile_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_reportLostFile_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // E
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.e = new FileDoesNotExistException();
struct.e.read(iprot);
struct.setEIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_reportLostFile_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.e != null) {
oprot.writeFieldBegin(E_FIELD_DESC);
struct.e.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_reportLostFile_resultTupleSchemeFactory implements SchemeFactory {
public user_reportLostFile_resultTupleScheme getScheme() {
return new user_reportLostFile_resultTupleScheme();
}
}
private static class user_reportLostFile_resultTupleScheme extends TupleScheme<user_reportLostFile_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_reportLostFile_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetE()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetE()) {
struct.e.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_reportLostFile_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.e = new FileDoesNotExistException();
struct.e.read(iprot);
struct.setEIsSet(true);
}
}
}
}
public static class user_requestFilesInDependency_args implements org.apache.thrift.TBase<user_requestFilesInDependency_args, user_requestFilesInDependency_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_requestFilesInDependency_args");
private static final org.apache.thrift.protocol.TField DEP_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("depId", org.apache.thrift.protocol.TType.I32, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_requestFilesInDependency_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_requestFilesInDependency_argsTupleSchemeFactory());
}
public int depId; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
DEP_ID((short)1, "depId");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // DEP_ID
return DEP_ID;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __DEPID_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.DEP_ID, new org.apache.thrift.meta_data.FieldMetaData("depId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_requestFilesInDependency_args.class, metaDataMap);
}
public user_requestFilesInDependency_args() {
}
public user_requestFilesInDependency_args(
int depId)
{
this();
this.depId = depId;
setDepIdIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_requestFilesInDependency_args(user_requestFilesInDependency_args other) {
__isset_bitfield = other.__isset_bitfield;
this.depId = other.depId;
}
public user_requestFilesInDependency_args deepCopy() {
return new user_requestFilesInDependency_args(this);
}
@Override
public void clear() {
setDepIdIsSet(false);
this.depId = 0;
}
public int getDepId() {
return this.depId;
}
public user_requestFilesInDependency_args setDepId(int depId) {
this.depId = depId;
setDepIdIsSet(true);
return this;
}
public void unsetDepId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DEPID_ISSET_ID);
}
/** Returns true if field depId is set (has been assigned a value) and false otherwise */
public boolean isSetDepId() {
return EncodingUtils.testBit(__isset_bitfield, __DEPID_ISSET_ID);
}
public void setDepIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DEPID_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case DEP_ID:
if (value == null) {
unsetDepId();
} else {
setDepId((Integer)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case DEP_ID:
return Integer.valueOf(getDepId());
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case DEP_ID:
return isSetDepId();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_requestFilesInDependency_args)
return this.equals((user_requestFilesInDependency_args)that);
return false;
}
public boolean equals(user_requestFilesInDependency_args that) {
if (that == null)
return false;
boolean this_present_depId = true;
boolean that_present_depId = true;
if (this_present_depId || that_present_depId) {
if (!(this_present_depId && that_present_depId))
return false;
if (this.depId != that.depId)
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_requestFilesInDependency_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_requestFilesInDependency_args typedOther = (user_requestFilesInDependency_args)other;
lastComparison = Boolean.valueOf(isSetDepId()).compareTo(typedOther.isSetDepId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetDepId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.depId, typedOther.depId);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_requestFilesInDependency_args(");
boolean first = true;
sb.append("depId:");
sb.append(this.depId);
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_requestFilesInDependency_argsStandardSchemeFactory implements SchemeFactory {
public user_requestFilesInDependency_argsStandardScheme getScheme() {
return new user_requestFilesInDependency_argsStandardScheme();
}
}
private static class user_requestFilesInDependency_argsStandardScheme extends StandardScheme<user_requestFilesInDependency_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_requestFilesInDependency_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // DEP_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.depId = iprot.readI32();
struct.setDepIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_requestFilesInDependency_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(DEP_ID_FIELD_DESC);
oprot.writeI32(struct.depId);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_requestFilesInDependency_argsTupleSchemeFactory implements SchemeFactory {
public user_requestFilesInDependency_argsTupleScheme getScheme() {
return new user_requestFilesInDependency_argsTupleScheme();
}
}
private static class user_requestFilesInDependency_argsTupleScheme extends TupleScheme<user_requestFilesInDependency_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_requestFilesInDependency_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetDepId()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetDepId()) {
oprot.writeI32(struct.depId);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_requestFilesInDependency_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.depId = iprot.readI32();
struct.setDepIdIsSet(true);
}
}
}
}
public static class user_requestFilesInDependency_result implements org.apache.thrift.TBase<user_requestFilesInDependency_result, user_requestFilesInDependency_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_requestFilesInDependency_result");
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_requestFilesInDependency_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_requestFilesInDependency_resultTupleSchemeFactory());
}
public DependencyDoesNotExistException e; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
E((short)1, "e");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // E
return E;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_requestFilesInDependency_result.class, metaDataMap);
}
public user_requestFilesInDependency_result() {
}
public user_requestFilesInDependency_result(
DependencyDoesNotExistException e)
{
this();
this.e = e;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_requestFilesInDependency_result(user_requestFilesInDependency_result other) {
if (other.isSetE()) {
this.e = new DependencyDoesNotExistException(other.e);
}
}
public user_requestFilesInDependency_result deepCopy() {
return new user_requestFilesInDependency_result(this);
}
@Override
public void clear() {
this.e = null;
}
public DependencyDoesNotExistException getE() {
return this.e;
}
public user_requestFilesInDependency_result setE(DependencyDoesNotExistException e) {
this.e = e;
return this;
}
public void unsetE() {
this.e = null;
}
/** Returns true if field e is set (has been assigned a value) and false otherwise */
public boolean isSetE() {
return this.e != null;
}
public void setEIsSet(boolean value) {
if (!value) {
this.e = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case E:
if (value == null) {
unsetE();
} else {
setE((DependencyDoesNotExistException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case E:
return getE();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case E:
return isSetE();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_requestFilesInDependency_result)
return this.equals((user_requestFilesInDependency_result)that);
return false;
}
public boolean equals(user_requestFilesInDependency_result that) {
if (that == null)
return false;
boolean this_present_e = true && this.isSetE();
boolean that_present_e = true && that.isSetE();
if (this_present_e || that_present_e) {
if (!(this_present_e && that_present_e))
return false;
if (!this.e.equals(that.e))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_requestFilesInDependency_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_requestFilesInDependency_result typedOther = (user_requestFilesInDependency_result)other;
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetE()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_requestFilesInDependency_result(");
boolean first = true;
sb.append("e:");
if (this.e == null) {
sb.append("null");
} else {
sb.append(this.e);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_requestFilesInDependency_resultStandardSchemeFactory implements SchemeFactory {
public user_requestFilesInDependency_resultStandardScheme getScheme() {
return new user_requestFilesInDependency_resultStandardScheme();
}
}
private static class user_requestFilesInDependency_resultStandardScheme extends StandardScheme<user_requestFilesInDependency_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_requestFilesInDependency_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // E
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.e = new DependencyDoesNotExistException();
struct.e.read(iprot);
struct.setEIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_requestFilesInDependency_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.e != null) {
oprot.writeFieldBegin(E_FIELD_DESC);
struct.e.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_requestFilesInDependency_resultTupleSchemeFactory implements SchemeFactory {
public user_requestFilesInDependency_resultTupleScheme getScheme() {
return new user_requestFilesInDependency_resultTupleScheme();
}
}
private static class user_requestFilesInDependency_resultTupleScheme extends TupleScheme<user_requestFilesInDependency_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_requestFilesInDependency_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetE()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetE()) {
struct.e.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_requestFilesInDependency_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.e = new DependencyDoesNotExistException();
struct.e.read(iprot);
struct.setEIsSet(true);
}
}
}
}
public static class user_createFile_args implements org.apache.thrift.TBase<user_createFile_args, user_createFile_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_createFile_args");
private static final org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField BLOCK_SIZE_BYTE_FIELD_DESC = new org.apache.thrift.protocol.TField("blockSizeByte", org.apache.thrift.protocol.TType.I64, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_createFile_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_createFile_argsTupleSchemeFactory());
}
public String path; // required
public long blockSizeByte; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
PATH((short)1, "path"),
BLOCK_SIZE_BYTE((short)2, "blockSizeByte");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // PATH
return PATH;
case 2: // BLOCK_SIZE_BYTE
return BLOCK_SIZE_BYTE;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __BLOCKSIZEBYTE_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.BLOCK_SIZE_BYTE, new org.apache.thrift.meta_data.FieldMetaData("blockSizeByte", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_createFile_args.class, metaDataMap);
}
public user_createFile_args() {
}
public user_createFile_args(
String path,
long blockSizeByte)
{
this();
this.path = path;
this.blockSizeByte = blockSizeByte;
setBlockSizeByteIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_createFile_args(user_createFile_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetPath()) {
this.path = other.path;
}
this.blockSizeByte = other.blockSizeByte;
}
public user_createFile_args deepCopy() {
return new user_createFile_args(this);
}
@Override
public void clear() {
this.path = null;
setBlockSizeByteIsSet(false);
this.blockSizeByte = 0;
}
public String getPath() {
return this.path;
}
public user_createFile_args setPath(String path) {
this.path = path;
return this;
}
public void unsetPath() {
this.path = null;
}
/** Returns true if field path is set (has been assigned a value) and false otherwise */
public boolean isSetPath() {
return this.path != null;
}
public void setPathIsSet(boolean value) {
if (!value) {
this.path = null;
}
}
public long getBlockSizeByte() {
return this.blockSizeByte;
}
public user_createFile_args setBlockSizeByte(long blockSizeByte) {
this.blockSizeByte = blockSizeByte;
setBlockSizeByteIsSet(true);
return this;
}
public void unsetBlockSizeByte() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __BLOCKSIZEBYTE_ISSET_ID);
}
/** Returns true if field blockSizeByte is set (has been assigned a value) and false otherwise */
public boolean isSetBlockSizeByte() {
return EncodingUtils.testBit(__isset_bitfield, __BLOCKSIZEBYTE_ISSET_ID);
}
public void setBlockSizeByteIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __BLOCKSIZEBYTE_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case PATH:
if (value == null) {
unsetPath();
} else {
setPath((String)value);
}
break;
case BLOCK_SIZE_BYTE:
if (value == null) {
unsetBlockSizeByte();
} else {
setBlockSizeByte((Long)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case PATH:
return getPath();
case BLOCK_SIZE_BYTE:
return Long.valueOf(getBlockSizeByte());
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case PATH:
return isSetPath();
case BLOCK_SIZE_BYTE:
return isSetBlockSizeByte();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_createFile_args)
return this.equals((user_createFile_args)that);
return false;
}
public boolean equals(user_createFile_args that) {
if (that == null)
return false;
boolean this_present_path = true && this.isSetPath();
boolean that_present_path = true && that.isSetPath();
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_blockSizeByte = true;
boolean that_present_blockSizeByte = true;
if (this_present_blockSizeByte || that_present_blockSizeByte) {
if (!(this_present_blockSizeByte && that_present_blockSizeByte))
return false;
if (this.blockSizeByte != that.blockSizeByte)
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_createFile_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_createFile_args typedOther = (user_createFile_args)other;
lastComparison = Boolean.valueOf(isSetPath()).compareTo(typedOther.isSetPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, typedOther.path);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetBlockSizeByte()).compareTo(typedOther.isSetBlockSizeByte());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetBlockSizeByte()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.blockSizeByte, typedOther.blockSizeByte);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_createFile_args(");
boolean first = true;
sb.append("path:");
if (this.path == null) {
sb.append("null");
} else {
sb.append(this.path);
}
first = false;
if (!first) sb.append(", ");
sb.append("blockSizeByte:");
sb.append(this.blockSizeByte);
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_createFile_argsStandardSchemeFactory implements SchemeFactory {
public user_createFile_argsStandardScheme getScheme() {
return new user_createFile_argsStandardScheme();
}
}
private static class user_createFile_argsStandardScheme extends StandardScheme<user_createFile_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_createFile_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // BLOCK_SIZE_BYTE
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.blockSizeByte = iprot.readI64();
struct.setBlockSizeByteIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_createFile_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.path != null) {
oprot.writeFieldBegin(PATH_FIELD_DESC);
oprot.writeString(struct.path);
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(BLOCK_SIZE_BYTE_FIELD_DESC);
oprot.writeI64(struct.blockSizeByte);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_createFile_argsTupleSchemeFactory implements SchemeFactory {
public user_createFile_argsTupleScheme getScheme() {
return new user_createFile_argsTupleScheme();
}
}
private static class user_createFile_argsTupleScheme extends TupleScheme<user_createFile_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_createFile_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetPath()) {
optionals.set(0);
}
if (struct.isSetBlockSizeByte()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetPath()) {
oprot.writeString(struct.path);
}
if (struct.isSetBlockSizeByte()) {
oprot.writeI64(struct.blockSizeByte);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_createFile_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
}
if (incoming.get(1)) {
struct.blockSizeByte = iprot.readI64();
struct.setBlockSizeByteIsSet(true);
}
}
}
}
public static class user_createFile_result implements org.apache.thrift.TBase<user_createFile_result, user_createFile_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_createFile_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
private static final org.apache.thrift.protocol.TField E_R_FIELD_DESC = new org.apache.thrift.protocol.TField("eR", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField E_I_FIELD_DESC = new org.apache.thrift.protocol.TField("eI", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final org.apache.thrift.protocol.TField E_B_FIELD_DESC = new org.apache.thrift.protocol.TField("eB", org.apache.thrift.protocol.TType.STRUCT, (short)3);
private static final org.apache.thrift.protocol.TField E_T_FIELD_DESC = new org.apache.thrift.protocol.TField("eT", org.apache.thrift.protocol.TType.STRUCT, (short)4);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_createFile_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_createFile_resultTupleSchemeFactory());
}
public int success; // required
public FileAlreadyExistException eR; // required
public InvalidPathException eI; // required
public BlockInfoException eB; // required
public TachyonException eT; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E_R((short)1, "eR"),
E_I((short)2, "eI"),
E_B((short)3, "eB"),
E_T((short)4, "eT");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E_R
return E_R;
case 2: // E_I
return E_I;
case 3: // E_B
return E_B;
case 4: // E_T
return E_T;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.E_R, new org.apache.thrift.meta_data.FieldMetaData("eR", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_I, new org.apache.thrift.meta_data.FieldMetaData("eI", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_B, new org.apache.thrift.meta_data.FieldMetaData("eB", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_T, new org.apache.thrift.meta_data.FieldMetaData("eT", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_createFile_result.class, metaDataMap);
}
public user_createFile_result() {
}
public user_createFile_result(
int success,
FileAlreadyExistException eR,
InvalidPathException eI,
BlockInfoException eB,
TachyonException eT)
{
this();
this.success = success;
setSuccessIsSet(true);
this.eR = eR;
this.eI = eI;
this.eB = eB;
this.eT = eT;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_createFile_result(user_createFile_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
if (other.isSetER()) {
this.eR = new FileAlreadyExistException(other.eR);
}
if (other.isSetEI()) {
this.eI = new InvalidPathException(other.eI);
}
if (other.isSetEB()) {
this.eB = new BlockInfoException(other.eB);
}
if (other.isSetET()) {
this.eT = new TachyonException(other.eT);
}
}
public user_createFile_result deepCopy() {
return new user_createFile_result(this);
}
@Override
public void clear() {
setSuccessIsSet(false);
this.success = 0;
this.eR = null;
this.eI = null;
this.eB = null;
this.eT = null;
}
public int getSuccess() {
return this.success;
}
public user_createFile_result setSuccess(int success) {
this.success = success;
setSuccessIsSet(true);
return this;
}
public void unsetSuccess() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public FileAlreadyExistException getER() {
return this.eR;
}
public user_createFile_result setER(FileAlreadyExistException eR) {
this.eR = eR;
return this;
}
public void unsetER() {
this.eR = null;
}
/** Returns true if field eR is set (has been assigned a value) and false otherwise */
public boolean isSetER() {
return this.eR != null;
}
public void setERIsSet(boolean value) {
if (!value) {
this.eR = null;
}
}
public InvalidPathException getEI() {
return this.eI;
}
public user_createFile_result setEI(InvalidPathException eI) {
this.eI = eI;
return this;
}
public void unsetEI() {
this.eI = null;
}
/** Returns true if field eI is set (has been assigned a value) and false otherwise */
public boolean isSetEI() {
return this.eI != null;
}
public void setEIIsSet(boolean value) {
if (!value) {
this.eI = null;
}
}
public BlockInfoException getEB() {
return this.eB;
}
public user_createFile_result setEB(BlockInfoException eB) {
this.eB = eB;
return this;
}
public void unsetEB() {
this.eB = null;
}
/** Returns true if field eB is set (has been assigned a value) and false otherwise */
public boolean isSetEB() {
return this.eB != null;
}
public void setEBIsSet(boolean value) {
if (!value) {
this.eB = null;
}
}
public TachyonException getET() {
return this.eT;
}
public user_createFile_result setET(TachyonException eT) {
this.eT = eT;
return this;
}
public void unsetET() {
this.eT = null;
}
/** Returns true if field eT is set (has been assigned a value) and false otherwise */
public boolean isSetET() {
return this.eT != null;
}
public void setETIsSet(boolean value) {
if (!value) {
this.eT = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Integer)value);
}
break;
case E_R:
if (value == null) {
unsetER();
} else {
setER((FileAlreadyExistException)value);
}
break;
case E_I:
if (value == null) {
unsetEI();
} else {
setEI((InvalidPathException)value);
}
break;
case E_B:
if (value == null) {
unsetEB();
} else {
setEB((BlockInfoException)value);
}
break;
case E_T:
if (value == null) {
unsetET();
} else {
setET((TachyonException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return Integer.valueOf(getSuccess());
case E_R:
return getER();
case E_I:
return getEI();
case E_B:
return getEB();
case E_T:
return getET();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E_R:
return isSetER();
case E_I:
return isSetEI();
case E_B:
return isSetEB();
case E_T:
return isSetET();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_createFile_result)
return this.equals((user_createFile_result)that);
return false;
}
public boolean equals(user_createFile_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_eR = true && this.isSetER();
boolean that_present_eR = true && that.isSetER();
if (this_present_eR || that_present_eR) {
if (!(this_present_eR && that_present_eR))
return false;
if (!this.eR.equals(that.eR))
return false;
}
boolean this_present_eI = true && this.isSetEI();
boolean that_present_eI = true && that.isSetEI();
if (this_present_eI || that_present_eI) {
if (!(this_present_eI && that_present_eI))
return false;
if (!this.eI.equals(that.eI))
return false;
}
boolean this_present_eB = true && this.isSetEB();
boolean that_present_eB = true && that.isSetEB();
if (this_present_eB || that_present_eB) {
if (!(this_present_eB && that_present_eB))
return false;
if (!this.eB.equals(that.eB))
return false;
}
boolean this_present_eT = true && this.isSetET();
boolean that_present_eT = true && that.isSetET();
if (this_present_eT || that_present_eT) {
if (!(this_present_eT && that_present_eT))
return false;
if (!this.eT.equals(that.eT))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_createFile_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_createFile_result typedOther = (user_createFile_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetER()).compareTo(typedOther.isSetER());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetER()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eR, typedOther.eR);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEI()).compareTo(typedOther.isSetEI());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEI()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eI, typedOther.eI);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEB()).compareTo(typedOther.isSetEB());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEB()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eB, typedOther.eB);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetET()).compareTo(typedOther.isSetET());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetET()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eT, typedOther.eT);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_createFile_result(");
boolean first = true;
sb.append("success:");
sb.append(this.success);
first = false;
if (!first) sb.append(", ");
sb.append("eR:");
if (this.eR == null) {
sb.append("null");
} else {
sb.append(this.eR);
}
first = false;
if (!first) sb.append(", ");
sb.append("eI:");
if (this.eI == null) {
sb.append("null");
} else {
sb.append(this.eI);
}
first = false;
if (!first) sb.append(", ");
sb.append("eB:");
if (this.eB == null) {
sb.append("null");
} else {
sb.append(this.eB);
}
first = false;
if (!first) sb.append(", ");
sb.append("eT:");
if (this.eT == null) {
sb.append("null");
} else {
sb.append(this.eT);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_createFile_resultStandardSchemeFactory implements SchemeFactory {
public user_createFile_resultStandardScheme getScheme() {
return new user_createFile_resultStandardScheme();
}
}
private static class user_createFile_resultStandardScheme extends StandardScheme<user_createFile_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_createFile_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.success = iprot.readI32();
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E_R
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eR = new FileAlreadyExistException();
struct.eR.read(iprot);
struct.setERIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // E_I
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // E_B
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eB = new BlockInfoException();
struct.eB.read(iprot);
struct.setEBIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // E_T
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eT = new TachyonException();
struct.eT.read(iprot);
struct.setETIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_createFile_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.isSetSuccess()) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeI32(struct.success);
oprot.writeFieldEnd();
}
if (struct.eR != null) {
oprot.writeFieldBegin(E_R_FIELD_DESC);
struct.eR.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eI != null) {
oprot.writeFieldBegin(E_I_FIELD_DESC);
struct.eI.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eB != null) {
oprot.writeFieldBegin(E_B_FIELD_DESC);
struct.eB.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eT != null) {
oprot.writeFieldBegin(E_T_FIELD_DESC);
struct.eT.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_createFile_resultTupleSchemeFactory implements SchemeFactory {
public user_createFile_resultTupleScheme getScheme() {
return new user_createFile_resultTupleScheme();
}
}
private static class user_createFile_resultTupleScheme extends TupleScheme<user_createFile_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_createFile_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetER()) {
optionals.set(1);
}
if (struct.isSetEI()) {
optionals.set(2);
}
if (struct.isSetEB()) {
optionals.set(3);
}
if (struct.isSetET()) {
optionals.set(4);
}
oprot.writeBitSet(optionals, 5);
if (struct.isSetSuccess()) {
oprot.writeI32(struct.success);
}
if (struct.isSetER()) {
struct.eR.write(oprot);
}
if (struct.isSetEI()) {
struct.eI.write(oprot);
}
if (struct.isSetEB()) {
struct.eB.write(oprot);
}
if (struct.isSetET()) {
struct.eT.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_createFile_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(5);
if (incoming.get(0)) {
struct.success = iprot.readI32();
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.eR = new FileAlreadyExistException();
struct.eR.read(iprot);
struct.setERIsSet(true);
}
if (incoming.get(2)) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
}
if (incoming.get(3)) {
struct.eB = new BlockInfoException();
struct.eB.read(iprot);
struct.setEBIsSet(true);
}
if (incoming.get(4)) {
struct.eT = new TachyonException();
struct.eT.read(iprot);
struct.setETIsSet(true);
}
}
}
}
public static class user_createFileOnCheckpoint_args implements org.apache.thrift.TBase<user_createFileOnCheckpoint_args, user_createFileOnCheckpoint_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_createFileOnCheckpoint_args");
private static final org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField CHECKPOINT_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("checkpointPath", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_createFileOnCheckpoint_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_createFileOnCheckpoint_argsTupleSchemeFactory());
}
public String path; // required
public String checkpointPath; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
PATH((short)1, "path"),
CHECKPOINT_PATH((short)2, "checkpointPath");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // PATH
return PATH;
case 2: // CHECKPOINT_PATH
return CHECKPOINT_PATH;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.CHECKPOINT_PATH, new org.apache.thrift.meta_data.FieldMetaData("checkpointPath", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_createFileOnCheckpoint_args.class, metaDataMap);
}
public user_createFileOnCheckpoint_args() {
}
public user_createFileOnCheckpoint_args(
String path,
String checkpointPath)
{
this();
this.path = path;
this.checkpointPath = checkpointPath;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_createFileOnCheckpoint_args(user_createFileOnCheckpoint_args other) {
if (other.isSetPath()) {
this.path = other.path;
}
if (other.isSetCheckpointPath()) {
this.checkpointPath = other.checkpointPath;
}
}
public user_createFileOnCheckpoint_args deepCopy() {
return new user_createFileOnCheckpoint_args(this);
}
@Override
public void clear() {
this.path = null;
this.checkpointPath = null;
}
public String getPath() {
return this.path;
}
public user_createFileOnCheckpoint_args setPath(String path) {
this.path = path;
return this;
}
public void unsetPath() {
this.path = null;
}
/** Returns true if field path is set (has been assigned a value) and false otherwise */
public boolean isSetPath() {
return this.path != null;
}
public void setPathIsSet(boolean value) {
if (!value) {
this.path = null;
}
}
public String getCheckpointPath() {
return this.checkpointPath;
}
public user_createFileOnCheckpoint_args setCheckpointPath(String checkpointPath) {
this.checkpointPath = checkpointPath;
return this;
}
public void unsetCheckpointPath() {
this.checkpointPath = null;
}
/** Returns true if field checkpointPath is set (has been assigned a value) and false otherwise */
public boolean isSetCheckpointPath() {
return this.checkpointPath != null;
}
public void setCheckpointPathIsSet(boolean value) {
if (!value) {
this.checkpointPath = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case PATH:
if (value == null) {
unsetPath();
} else {
setPath((String)value);
}
break;
case CHECKPOINT_PATH:
if (value == null) {
unsetCheckpointPath();
} else {
setCheckpointPath((String)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case PATH:
return getPath();
case CHECKPOINT_PATH:
return getCheckpointPath();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case PATH:
return isSetPath();
case CHECKPOINT_PATH:
return isSetCheckpointPath();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_createFileOnCheckpoint_args)
return this.equals((user_createFileOnCheckpoint_args)that);
return false;
}
public boolean equals(user_createFileOnCheckpoint_args that) {
if (that == null)
return false;
boolean this_present_path = true && this.isSetPath();
boolean that_present_path = true && that.isSetPath();
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_checkpointPath = true && this.isSetCheckpointPath();
boolean that_present_checkpointPath = true && that.isSetCheckpointPath();
if (this_present_checkpointPath || that_present_checkpointPath) {
if (!(this_present_checkpointPath && that_present_checkpointPath))
return false;
if (!this.checkpointPath.equals(that.checkpointPath))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_createFileOnCheckpoint_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_createFileOnCheckpoint_args typedOther = (user_createFileOnCheckpoint_args)other;
lastComparison = Boolean.valueOf(isSetPath()).compareTo(typedOther.isSetPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, typedOther.path);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetCheckpointPath()).compareTo(typedOther.isSetCheckpointPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCheckpointPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.checkpointPath, typedOther.checkpointPath);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_createFileOnCheckpoint_args(");
boolean first = true;
sb.append("path:");
if (this.path == null) {
sb.append("null");
} else {
sb.append(this.path);
}
first = false;
if (!first) sb.append(", ");
sb.append("checkpointPath:");
if (this.checkpointPath == null) {
sb.append("null");
} else {
sb.append(this.checkpointPath);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_createFileOnCheckpoint_argsStandardSchemeFactory implements SchemeFactory {
public user_createFileOnCheckpoint_argsStandardScheme getScheme() {
return new user_createFileOnCheckpoint_argsStandardScheme();
}
}
private static class user_createFileOnCheckpoint_argsStandardScheme extends StandardScheme<user_createFileOnCheckpoint_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_createFileOnCheckpoint_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // CHECKPOINT_PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.checkpointPath = iprot.readString();
struct.setCheckpointPathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_createFileOnCheckpoint_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.path != null) {
oprot.writeFieldBegin(PATH_FIELD_DESC);
oprot.writeString(struct.path);
oprot.writeFieldEnd();
}
if (struct.checkpointPath != null) {
oprot.writeFieldBegin(CHECKPOINT_PATH_FIELD_DESC);
oprot.writeString(struct.checkpointPath);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_createFileOnCheckpoint_argsTupleSchemeFactory implements SchemeFactory {
public user_createFileOnCheckpoint_argsTupleScheme getScheme() {
return new user_createFileOnCheckpoint_argsTupleScheme();
}
}
private static class user_createFileOnCheckpoint_argsTupleScheme extends TupleScheme<user_createFileOnCheckpoint_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_createFileOnCheckpoint_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetPath()) {
optionals.set(0);
}
if (struct.isSetCheckpointPath()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetPath()) {
oprot.writeString(struct.path);
}
if (struct.isSetCheckpointPath()) {
oprot.writeString(struct.checkpointPath);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_createFileOnCheckpoint_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
}
if (incoming.get(1)) {
struct.checkpointPath = iprot.readString();
struct.setCheckpointPathIsSet(true);
}
}
}
}
public static class user_createFileOnCheckpoint_result implements org.apache.thrift.TBase<user_createFileOnCheckpoint_result, user_createFileOnCheckpoint_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_createFileOnCheckpoint_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
private static final org.apache.thrift.protocol.TField E_R_FIELD_DESC = new org.apache.thrift.protocol.TField("eR", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField E_I_FIELD_DESC = new org.apache.thrift.protocol.TField("eI", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final org.apache.thrift.protocol.TField E_S_FIELD_DESC = new org.apache.thrift.protocol.TField("eS", org.apache.thrift.protocol.TType.STRUCT, (short)3);
private static final org.apache.thrift.protocol.TField E_B_FIELD_DESC = new org.apache.thrift.protocol.TField("eB", org.apache.thrift.protocol.TType.STRUCT, (short)4);
private static final org.apache.thrift.protocol.TField E_T_FIELD_DESC = new org.apache.thrift.protocol.TField("eT", org.apache.thrift.protocol.TType.STRUCT, (short)5);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_createFileOnCheckpoint_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_createFileOnCheckpoint_resultTupleSchemeFactory());
}
public int success; // required
public FileAlreadyExistException eR; // required
public InvalidPathException eI; // required
public SuspectedFileSizeException eS; // required
public BlockInfoException eB; // required
public TachyonException eT; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E_R((short)1, "eR"),
E_I((short)2, "eI"),
E_S((short)3, "eS"),
E_B((short)4, "eB"),
E_T((short)5, "eT");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E_R
return E_R;
case 2: // E_I
return E_I;
case 3: // E_S
return E_S;
case 4: // E_B
return E_B;
case 5: // E_T
return E_T;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.E_R, new org.apache.thrift.meta_data.FieldMetaData("eR", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_I, new org.apache.thrift.meta_data.FieldMetaData("eI", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_S, new org.apache.thrift.meta_data.FieldMetaData("eS", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_B, new org.apache.thrift.meta_data.FieldMetaData("eB", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_T, new org.apache.thrift.meta_data.FieldMetaData("eT", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_createFileOnCheckpoint_result.class, metaDataMap);
}
public user_createFileOnCheckpoint_result() {
}
public user_createFileOnCheckpoint_result(
int success,
FileAlreadyExistException eR,
InvalidPathException eI,
SuspectedFileSizeException eS,
BlockInfoException eB,
TachyonException eT)
{
this();
this.success = success;
setSuccessIsSet(true);
this.eR = eR;
this.eI = eI;
this.eS = eS;
this.eB = eB;
this.eT = eT;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_createFileOnCheckpoint_result(user_createFileOnCheckpoint_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
if (other.isSetER()) {
this.eR = new FileAlreadyExistException(other.eR);
}
if (other.isSetEI()) {
this.eI = new InvalidPathException(other.eI);
}
if (other.isSetES()) {
this.eS = new SuspectedFileSizeException(other.eS);
}
if (other.isSetEB()) {
this.eB = new BlockInfoException(other.eB);
}
if (other.isSetET()) {
this.eT = new TachyonException(other.eT);
}
}
public user_createFileOnCheckpoint_result deepCopy() {
return new user_createFileOnCheckpoint_result(this);
}
@Override
public void clear() {
setSuccessIsSet(false);
this.success = 0;
this.eR = null;
this.eI = null;
this.eS = null;
this.eB = null;
this.eT = null;
}
public int getSuccess() {
return this.success;
}
public user_createFileOnCheckpoint_result setSuccess(int success) {
this.success = success;
setSuccessIsSet(true);
return this;
}
public void unsetSuccess() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public FileAlreadyExistException getER() {
return this.eR;
}
public user_createFileOnCheckpoint_result setER(FileAlreadyExistException eR) {
this.eR = eR;
return this;
}
public void unsetER() {
this.eR = null;
}
/** Returns true if field eR is set (has been assigned a value) and false otherwise */
public boolean isSetER() {
return this.eR != null;
}
public void setERIsSet(boolean value) {
if (!value) {
this.eR = null;
}
}
public InvalidPathException getEI() {
return this.eI;
}
public user_createFileOnCheckpoint_result setEI(InvalidPathException eI) {
this.eI = eI;
return this;
}
public void unsetEI() {
this.eI = null;
}
/** Returns true if field eI is set (has been assigned a value) and false otherwise */
public boolean isSetEI() {
return this.eI != null;
}
public void setEIIsSet(boolean value) {
if (!value) {
this.eI = null;
}
}
public SuspectedFileSizeException getES() {
return this.eS;
}
public user_createFileOnCheckpoint_result setES(SuspectedFileSizeException eS) {
this.eS = eS;
return this;
}
public void unsetES() {
this.eS = null;
}
/** Returns true if field eS is set (has been assigned a value) and false otherwise */
public boolean isSetES() {
return this.eS != null;
}
public void setESIsSet(boolean value) {
if (!value) {
this.eS = null;
}
}
public BlockInfoException getEB() {
return this.eB;
}
public user_createFileOnCheckpoint_result setEB(BlockInfoException eB) {
this.eB = eB;
return this;
}
public void unsetEB() {
this.eB = null;
}
/** Returns true if field eB is set (has been assigned a value) and false otherwise */
public boolean isSetEB() {
return this.eB != null;
}
public void setEBIsSet(boolean value) {
if (!value) {
this.eB = null;
}
}
public TachyonException getET() {
return this.eT;
}
public user_createFileOnCheckpoint_result setET(TachyonException eT) {
this.eT = eT;
return this;
}
public void unsetET() {
this.eT = null;
}
/** Returns true if field eT is set (has been assigned a value) and false otherwise */
public boolean isSetET() {
return this.eT != null;
}
public void setETIsSet(boolean value) {
if (!value) {
this.eT = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Integer)value);
}
break;
case E_R:
if (value == null) {
unsetER();
} else {
setER((FileAlreadyExistException)value);
}
break;
case E_I:
if (value == null) {
unsetEI();
} else {
setEI((InvalidPathException)value);
}
break;
case E_S:
if (value == null) {
unsetES();
} else {
setES((SuspectedFileSizeException)value);
}
break;
case E_B:
if (value == null) {
unsetEB();
} else {
setEB((BlockInfoException)value);
}
break;
case E_T:
if (value == null) {
unsetET();
} else {
setET((TachyonException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return Integer.valueOf(getSuccess());
case E_R:
return getER();
case E_I:
return getEI();
case E_S:
return getES();
case E_B:
return getEB();
case E_T:
return getET();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E_R:
return isSetER();
case E_I:
return isSetEI();
case E_S:
return isSetES();
case E_B:
return isSetEB();
case E_T:
return isSetET();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_createFileOnCheckpoint_result)
return this.equals((user_createFileOnCheckpoint_result)that);
return false;
}
public boolean equals(user_createFileOnCheckpoint_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_eR = true && this.isSetER();
boolean that_present_eR = true && that.isSetER();
if (this_present_eR || that_present_eR) {
if (!(this_present_eR && that_present_eR))
return false;
if (!this.eR.equals(that.eR))
return false;
}
boolean this_present_eI = true && this.isSetEI();
boolean that_present_eI = true && that.isSetEI();
if (this_present_eI || that_present_eI) {
if (!(this_present_eI && that_present_eI))
return false;
if (!this.eI.equals(that.eI))
return false;
}
boolean this_present_eS = true && this.isSetES();
boolean that_present_eS = true && that.isSetES();
if (this_present_eS || that_present_eS) {
if (!(this_present_eS && that_present_eS))
return false;
if (!this.eS.equals(that.eS))
return false;
}
boolean this_present_eB = true && this.isSetEB();
boolean that_present_eB = true && that.isSetEB();
if (this_present_eB || that_present_eB) {
if (!(this_present_eB && that_present_eB))
return false;
if (!this.eB.equals(that.eB))
return false;
}
boolean this_present_eT = true && this.isSetET();
boolean that_present_eT = true && that.isSetET();
if (this_present_eT || that_present_eT) {
if (!(this_present_eT && that_present_eT))
return false;
if (!this.eT.equals(that.eT))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_createFileOnCheckpoint_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_createFileOnCheckpoint_result typedOther = (user_createFileOnCheckpoint_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetER()).compareTo(typedOther.isSetER());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetER()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eR, typedOther.eR);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEI()).compareTo(typedOther.isSetEI());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEI()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eI, typedOther.eI);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetES()).compareTo(typedOther.isSetES());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetES()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eS, typedOther.eS);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEB()).compareTo(typedOther.isSetEB());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEB()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eB, typedOther.eB);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetET()).compareTo(typedOther.isSetET());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetET()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eT, typedOther.eT);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_createFileOnCheckpoint_result(");
boolean first = true;
sb.append("success:");
sb.append(this.success);
first = false;
if (!first) sb.append(", ");
sb.append("eR:");
if (this.eR == null) {
sb.append("null");
} else {
sb.append(this.eR);
}
first = false;
if (!first) sb.append(", ");
sb.append("eI:");
if (this.eI == null) {
sb.append("null");
} else {
sb.append(this.eI);
}
first = false;
if (!first) sb.append(", ");
sb.append("eS:");
if (this.eS == null) {
sb.append("null");
} else {
sb.append(this.eS);
}
first = false;
if (!first) sb.append(", ");
sb.append("eB:");
if (this.eB == null) {
sb.append("null");
} else {
sb.append(this.eB);
}
first = false;
if (!first) sb.append(", ");
sb.append("eT:");
if (this.eT == null) {
sb.append("null");
} else {
sb.append(this.eT);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_createFileOnCheckpoint_resultStandardSchemeFactory implements SchemeFactory {
public user_createFileOnCheckpoint_resultStandardScheme getScheme() {
return new user_createFileOnCheckpoint_resultStandardScheme();
}
}
private static class user_createFileOnCheckpoint_resultStandardScheme extends StandardScheme<user_createFileOnCheckpoint_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_createFileOnCheckpoint_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.success = iprot.readI32();
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E_R
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eR = new FileAlreadyExistException();
struct.eR.read(iprot);
struct.setERIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // E_I
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // E_S
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eS = new SuspectedFileSizeException();
struct.eS.read(iprot);
struct.setESIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // E_B
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eB = new BlockInfoException();
struct.eB.read(iprot);
struct.setEBIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // E_T
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eT = new TachyonException();
struct.eT.read(iprot);
struct.setETIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_createFileOnCheckpoint_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.isSetSuccess()) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeI32(struct.success);
oprot.writeFieldEnd();
}
if (struct.eR != null) {
oprot.writeFieldBegin(E_R_FIELD_DESC);
struct.eR.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eI != null) {
oprot.writeFieldBegin(E_I_FIELD_DESC);
struct.eI.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eS != null) {
oprot.writeFieldBegin(E_S_FIELD_DESC);
struct.eS.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eB != null) {
oprot.writeFieldBegin(E_B_FIELD_DESC);
struct.eB.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eT != null) {
oprot.writeFieldBegin(E_T_FIELD_DESC);
struct.eT.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_createFileOnCheckpoint_resultTupleSchemeFactory implements SchemeFactory {
public user_createFileOnCheckpoint_resultTupleScheme getScheme() {
return new user_createFileOnCheckpoint_resultTupleScheme();
}
}
private static class user_createFileOnCheckpoint_resultTupleScheme extends TupleScheme<user_createFileOnCheckpoint_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_createFileOnCheckpoint_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetER()) {
optionals.set(1);
}
if (struct.isSetEI()) {
optionals.set(2);
}
if (struct.isSetES()) {
optionals.set(3);
}
if (struct.isSetEB()) {
optionals.set(4);
}
if (struct.isSetET()) {
optionals.set(5);
}
oprot.writeBitSet(optionals, 6);
if (struct.isSetSuccess()) {
oprot.writeI32(struct.success);
}
if (struct.isSetER()) {
struct.eR.write(oprot);
}
if (struct.isSetEI()) {
struct.eI.write(oprot);
}
if (struct.isSetES()) {
struct.eS.write(oprot);
}
if (struct.isSetEB()) {
struct.eB.write(oprot);
}
if (struct.isSetET()) {
struct.eT.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_createFileOnCheckpoint_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(6);
if (incoming.get(0)) {
struct.success = iprot.readI32();
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.eR = new FileAlreadyExistException();
struct.eR.read(iprot);
struct.setERIsSet(true);
}
if (incoming.get(2)) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
}
if (incoming.get(3)) {
struct.eS = new SuspectedFileSizeException();
struct.eS.read(iprot);
struct.setESIsSet(true);
}
if (incoming.get(4)) {
struct.eB = new BlockInfoException();
struct.eB.read(iprot);
struct.setEBIsSet(true);
}
if (incoming.get(5)) {
struct.eT = new TachyonException();
struct.eT.read(iprot);
struct.setETIsSet(true);
}
}
}
}
public static class user_createNewBlock_args implements org.apache.thrift.TBase<user_createNewBlock_args, user_createNewBlock_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_createNewBlock_args");
private static final org.apache.thrift.protocol.TField FILE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fileId", org.apache.thrift.protocol.TType.I32, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_createNewBlock_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_createNewBlock_argsTupleSchemeFactory());
}
public int fileId; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
FILE_ID((short)1, "fileId");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // FILE_ID
return FILE_ID;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __FILEID_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.FILE_ID, new org.apache.thrift.meta_data.FieldMetaData("fileId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_createNewBlock_args.class, metaDataMap);
}
public user_createNewBlock_args() {
}
public user_createNewBlock_args(
int fileId)
{
this();
this.fileId = fileId;
setFileIdIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_createNewBlock_args(user_createNewBlock_args other) {
__isset_bitfield = other.__isset_bitfield;
this.fileId = other.fileId;
}
public user_createNewBlock_args deepCopy() {
return new user_createNewBlock_args(this);
}
@Override
public void clear() {
setFileIdIsSet(false);
this.fileId = 0;
}
public int getFileId() {
return this.fileId;
}
public user_createNewBlock_args setFileId(int fileId) {
this.fileId = fileId;
setFileIdIsSet(true);
return this;
}
public void unsetFileId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILEID_ISSET_ID);
}
/** Returns true if field fileId is set (has been assigned a value) and false otherwise */
public boolean isSetFileId() {
return EncodingUtils.testBit(__isset_bitfield, __FILEID_ISSET_ID);
}
public void setFileIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILEID_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case FILE_ID:
if (value == null) {
unsetFileId();
} else {
setFileId((Integer)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case FILE_ID:
return Integer.valueOf(getFileId());
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case FILE_ID:
return isSetFileId();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_createNewBlock_args)
return this.equals((user_createNewBlock_args)that);
return false;
}
public boolean equals(user_createNewBlock_args that) {
if (that == null)
return false;
boolean this_present_fileId = true;
boolean that_present_fileId = true;
if (this_present_fileId || that_present_fileId) {
if (!(this_present_fileId && that_present_fileId))
return false;
if (this.fileId != that.fileId)
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_createNewBlock_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_createNewBlock_args typedOther = (user_createNewBlock_args)other;
lastComparison = Boolean.valueOf(isSetFileId()).compareTo(typedOther.isSetFileId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFileId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileId, typedOther.fileId);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_createNewBlock_args(");
boolean first = true;
sb.append("fileId:");
sb.append(this.fileId);
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_createNewBlock_argsStandardSchemeFactory implements SchemeFactory {
public user_createNewBlock_argsStandardScheme getScheme() {
return new user_createNewBlock_argsStandardScheme();
}
}
private static class user_createNewBlock_argsStandardScheme extends StandardScheme<user_createNewBlock_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_createNewBlock_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // FILE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_createNewBlock_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(FILE_ID_FIELD_DESC);
oprot.writeI32(struct.fileId);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_createNewBlock_argsTupleSchemeFactory implements SchemeFactory {
public user_createNewBlock_argsTupleScheme getScheme() {
return new user_createNewBlock_argsTupleScheme();
}
}
private static class user_createNewBlock_argsTupleScheme extends TupleScheme<user_createNewBlock_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_createNewBlock_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetFileId()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetFileId()) {
oprot.writeI32(struct.fileId);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_createNewBlock_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
}
}
}
}
public static class user_createNewBlock_result implements org.apache.thrift.TBase<user_createNewBlock_result, user_createNewBlock_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_createNewBlock_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_createNewBlock_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_createNewBlock_resultTupleSchemeFactory());
}
public long success; // required
public FileDoesNotExistException e; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E((short)1, "e");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E
return E;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_createNewBlock_result.class, metaDataMap);
}
public user_createNewBlock_result() {
}
public user_createNewBlock_result(
long success,
FileDoesNotExistException e)
{
this();
this.success = success;
setSuccessIsSet(true);
this.e = e;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_createNewBlock_result(user_createNewBlock_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
if (other.isSetE()) {
this.e = new FileDoesNotExistException(other.e);
}
}
public user_createNewBlock_result deepCopy() {
return new user_createNewBlock_result(this);
}
@Override
public void clear() {
setSuccessIsSet(false);
this.success = 0;
this.e = null;
}
public long getSuccess() {
return this.success;
}
public user_createNewBlock_result setSuccess(long success) {
this.success = success;
setSuccessIsSet(true);
return this;
}
public void unsetSuccess() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public FileDoesNotExistException getE() {
return this.e;
}
public user_createNewBlock_result setE(FileDoesNotExistException e) {
this.e = e;
return this;
}
public void unsetE() {
this.e = null;
}
/** Returns true if field e is set (has been assigned a value) and false otherwise */
public boolean isSetE() {
return this.e != null;
}
public void setEIsSet(boolean value) {
if (!value) {
this.e = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Long)value);
}
break;
case E:
if (value == null) {
unsetE();
} else {
setE((FileDoesNotExistException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return Long.valueOf(getSuccess());
case E:
return getE();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E:
return isSetE();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_createNewBlock_result)
return this.equals((user_createNewBlock_result)that);
return false;
}
public boolean equals(user_createNewBlock_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_e = true && this.isSetE();
boolean that_present_e = true && that.isSetE();
if (this_present_e || that_present_e) {
if (!(this_present_e && that_present_e))
return false;
if (!this.e.equals(that.e))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_createNewBlock_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_createNewBlock_result typedOther = (user_createNewBlock_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetE()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_createNewBlock_result(");
boolean first = true;
sb.append("success:");
sb.append(this.success);
first = false;
if (!first) sb.append(", ");
sb.append("e:");
if (this.e == null) {
sb.append("null");
} else {
sb.append(this.e);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_createNewBlock_resultStandardSchemeFactory implements SchemeFactory {
public user_createNewBlock_resultStandardScheme getScheme() {
return new user_createNewBlock_resultStandardScheme();
}
}
private static class user_createNewBlock_resultStandardScheme extends StandardScheme<user_createNewBlock_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_createNewBlock_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.success = iprot.readI64();
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.e = new FileDoesNotExistException();
struct.e.read(iprot);
struct.setEIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_createNewBlock_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.isSetSuccess()) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeI64(struct.success);
oprot.writeFieldEnd();
}
if (struct.e != null) {
oprot.writeFieldBegin(E_FIELD_DESC);
struct.e.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_createNewBlock_resultTupleSchemeFactory implements SchemeFactory {
public user_createNewBlock_resultTupleScheme getScheme() {
return new user_createNewBlock_resultTupleScheme();
}
}
private static class user_createNewBlock_resultTupleScheme extends TupleScheme<user_createNewBlock_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_createNewBlock_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetE()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetSuccess()) {
oprot.writeI64(struct.success);
}
if (struct.isSetE()) {
struct.e.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_createNewBlock_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.success = iprot.readI64();
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.e = new FileDoesNotExistException();
struct.e.read(iprot);
struct.setEIsSet(true);
}
}
}
}
public static class user_completeFile_args implements org.apache.thrift.TBase<user_completeFile_args, user_completeFile_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_completeFile_args");
private static final org.apache.thrift.protocol.TField FILE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fileId", org.apache.thrift.protocol.TType.I32, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_completeFile_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_completeFile_argsTupleSchemeFactory());
}
public int fileId; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
FILE_ID((short)1, "fileId");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // FILE_ID
return FILE_ID;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __FILEID_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.FILE_ID, new org.apache.thrift.meta_data.FieldMetaData("fileId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_completeFile_args.class, metaDataMap);
}
public user_completeFile_args() {
}
public user_completeFile_args(
int fileId)
{
this();
this.fileId = fileId;
setFileIdIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_completeFile_args(user_completeFile_args other) {
__isset_bitfield = other.__isset_bitfield;
this.fileId = other.fileId;
}
public user_completeFile_args deepCopy() {
return new user_completeFile_args(this);
}
@Override
public void clear() {
setFileIdIsSet(false);
this.fileId = 0;
}
public int getFileId() {
return this.fileId;
}
public user_completeFile_args setFileId(int fileId) {
this.fileId = fileId;
setFileIdIsSet(true);
return this;
}
public void unsetFileId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILEID_ISSET_ID);
}
/** Returns true if field fileId is set (has been assigned a value) and false otherwise */
public boolean isSetFileId() {
return EncodingUtils.testBit(__isset_bitfield, __FILEID_ISSET_ID);
}
public void setFileIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILEID_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case FILE_ID:
if (value == null) {
unsetFileId();
} else {
setFileId((Integer)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case FILE_ID:
return Integer.valueOf(getFileId());
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case FILE_ID:
return isSetFileId();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_completeFile_args)
return this.equals((user_completeFile_args)that);
return false;
}
public boolean equals(user_completeFile_args that) {
if (that == null)
return false;
boolean this_present_fileId = true;
boolean that_present_fileId = true;
if (this_present_fileId || that_present_fileId) {
if (!(this_present_fileId && that_present_fileId))
return false;
if (this.fileId != that.fileId)
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_completeFile_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_completeFile_args typedOther = (user_completeFile_args)other;
lastComparison = Boolean.valueOf(isSetFileId()).compareTo(typedOther.isSetFileId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFileId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileId, typedOther.fileId);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_completeFile_args(");
boolean first = true;
sb.append("fileId:");
sb.append(this.fileId);
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_completeFile_argsStandardSchemeFactory implements SchemeFactory {
public user_completeFile_argsStandardScheme getScheme() {
return new user_completeFile_argsStandardScheme();
}
}
private static class user_completeFile_argsStandardScheme extends StandardScheme<user_completeFile_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_completeFile_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // FILE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_completeFile_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(FILE_ID_FIELD_DESC);
oprot.writeI32(struct.fileId);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_completeFile_argsTupleSchemeFactory implements SchemeFactory {
public user_completeFile_argsTupleScheme getScheme() {
return new user_completeFile_argsTupleScheme();
}
}
private static class user_completeFile_argsTupleScheme extends TupleScheme<user_completeFile_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_completeFile_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetFileId()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetFileId()) {
oprot.writeI32(struct.fileId);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_completeFile_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
}
}
}
}
public static class user_completeFile_result implements org.apache.thrift.TBase<user_completeFile_result, user_completeFile_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_completeFile_result");
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_completeFile_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_completeFile_resultTupleSchemeFactory());
}
public FileDoesNotExistException e; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
E((short)1, "e");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // E
return E;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_completeFile_result.class, metaDataMap);
}
public user_completeFile_result() {
}
public user_completeFile_result(
FileDoesNotExistException e)
{
this();
this.e = e;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_completeFile_result(user_completeFile_result other) {
if (other.isSetE()) {
this.e = new FileDoesNotExistException(other.e);
}
}
public user_completeFile_result deepCopy() {
return new user_completeFile_result(this);
}
@Override
public void clear() {
this.e = null;
}
public FileDoesNotExistException getE() {
return this.e;
}
public user_completeFile_result setE(FileDoesNotExistException e) {
this.e = e;
return this;
}
public void unsetE() {
this.e = null;
}
/** Returns true if field e is set (has been assigned a value) and false otherwise */
public boolean isSetE() {
return this.e != null;
}
public void setEIsSet(boolean value) {
if (!value) {
this.e = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case E:
if (value == null) {
unsetE();
} else {
setE((FileDoesNotExistException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case E:
return getE();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case E:
return isSetE();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_completeFile_result)
return this.equals((user_completeFile_result)that);
return false;
}
public boolean equals(user_completeFile_result that) {
if (that == null)
return false;
boolean this_present_e = true && this.isSetE();
boolean that_present_e = true && that.isSetE();
if (this_present_e || that_present_e) {
if (!(this_present_e && that_present_e))
return false;
if (!this.e.equals(that.e))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_completeFile_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_completeFile_result typedOther = (user_completeFile_result)other;
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetE()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_completeFile_result(");
boolean first = true;
sb.append("e:");
if (this.e == null) {
sb.append("null");
} else {
sb.append(this.e);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_completeFile_resultStandardSchemeFactory implements SchemeFactory {
public user_completeFile_resultStandardScheme getScheme() {
return new user_completeFile_resultStandardScheme();
}
}
private static class user_completeFile_resultStandardScheme extends StandardScheme<user_completeFile_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_completeFile_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // E
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.e = new FileDoesNotExistException();
struct.e.read(iprot);
struct.setEIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_completeFile_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.e != null) {
oprot.writeFieldBegin(E_FIELD_DESC);
struct.e.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_completeFile_resultTupleSchemeFactory implements SchemeFactory {
public user_completeFile_resultTupleScheme getScheme() {
return new user_completeFile_resultTupleScheme();
}
}
private static class user_completeFile_resultTupleScheme extends TupleScheme<user_completeFile_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_completeFile_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetE()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetE()) {
struct.e.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_completeFile_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.e = new FileDoesNotExistException();
struct.e.read(iprot);
struct.setEIsSet(true);
}
}
}
}
public static class user_getFileId_args implements org.apache.thrift.TBase<user_getFileId_args, user_getFileId_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getFileId_args");
private static final org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getFileId_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getFileId_argsTupleSchemeFactory());
}
public String path; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
PATH((short)1, "path");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // PATH
return PATH;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getFileId_args.class, metaDataMap);
}
public user_getFileId_args() {
}
public user_getFileId_args(
String path)
{
this();
this.path = path;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getFileId_args(user_getFileId_args other) {
if (other.isSetPath()) {
this.path = other.path;
}
}
public user_getFileId_args deepCopy() {
return new user_getFileId_args(this);
}
@Override
public void clear() {
this.path = null;
}
public String getPath() {
return this.path;
}
public user_getFileId_args setPath(String path) {
this.path = path;
return this;
}
public void unsetPath() {
this.path = null;
}
/** Returns true if field path is set (has been assigned a value) and false otherwise */
public boolean isSetPath() {
return this.path != null;
}
public void setPathIsSet(boolean value) {
if (!value) {
this.path = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case PATH:
if (value == null) {
unsetPath();
} else {
setPath((String)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case PATH:
return getPath();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case PATH:
return isSetPath();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getFileId_args)
return this.equals((user_getFileId_args)that);
return false;
}
public boolean equals(user_getFileId_args that) {
if (that == null)
return false;
boolean this_present_path = true && this.isSetPath();
boolean that_present_path = true && that.isSetPath();
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;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getFileId_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getFileId_args typedOther = (user_getFileId_args)other;
lastComparison = Boolean.valueOf(isSetPath()).compareTo(typedOther.isSetPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, typedOther.path);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getFileId_args(");
boolean first = true;
sb.append("path:");
if (this.path == null) {
sb.append("null");
} else {
sb.append(this.path);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getFileId_argsStandardSchemeFactory implements SchemeFactory {
public user_getFileId_argsStandardScheme getScheme() {
return new user_getFileId_argsStandardScheme();
}
}
private static class user_getFileId_argsStandardScheme extends StandardScheme<user_getFileId_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getFileId_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getFileId_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.path != null) {
oprot.writeFieldBegin(PATH_FIELD_DESC);
oprot.writeString(struct.path);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getFileId_argsTupleSchemeFactory implements SchemeFactory {
public user_getFileId_argsTupleScheme getScheme() {
return new user_getFileId_argsTupleScheme();
}
}
private static class user_getFileId_argsTupleScheme extends TupleScheme<user_getFileId_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getFileId_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetPath()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetPath()) {
oprot.writeString(struct.path);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getFileId_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
}
}
}
}
public static class user_getFileId_result implements org.apache.thrift.TBase<user_getFileId_result, user_getFileId_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getFileId_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getFileId_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getFileId_resultTupleSchemeFactory());
}
public int success; // required
public InvalidPathException e; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E((short)1, "e");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E
return E;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getFileId_result.class, metaDataMap);
}
public user_getFileId_result() {
}
public user_getFileId_result(
int success,
InvalidPathException e)
{
this();
this.success = success;
setSuccessIsSet(true);
this.e = e;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getFileId_result(user_getFileId_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
if (other.isSetE()) {
this.e = new InvalidPathException(other.e);
}
}
public user_getFileId_result deepCopy() {
return new user_getFileId_result(this);
}
@Override
public void clear() {
setSuccessIsSet(false);
this.success = 0;
this.e = null;
}
public int getSuccess() {
return this.success;
}
public user_getFileId_result setSuccess(int success) {
this.success = success;
setSuccessIsSet(true);
return this;
}
public void unsetSuccess() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public InvalidPathException getE() {
return this.e;
}
public user_getFileId_result setE(InvalidPathException e) {
this.e = e;
return this;
}
public void unsetE() {
this.e = null;
}
/** Returns true if field e is set (has been assigned a value) and false otherwise */
public boolean isSetE() {
return this.e != null;
}
public void setEIsSet(boolean value) {
if (!value) {
this.e = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Integer)value);
}
break;
case E:
if (value == null) {
unsetE();
} else {
setE((InvalidPathException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return Integer.valueOf(getSuccess());
case E:
return getE();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E:
return isSetE();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getFileId_result)
return this.equals((user_getFileId_result)that);
return false;
}
public boolean equals(user_getFileId_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_e = true && this.isSetE();
boolean that_present_e = true && that.isSetE();
if (this_present_e || that_present_e) {
if (!(this_present_e && that_present_e))
return false;
if (!this.e.equals(that.e))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getFileId_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getFileId_result typedOther = (user_getFileId_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetE()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getFileId_result(");
boolean first = true;
sb.append("success:");
sb.append(this.success);
first = false;
if (!first) sb.append(", ");
sb.append("e:");
if (this.e == null) {
sb.append("null");
} else {
sb.append(this.e);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getFileId_resultStandardSchemeFactory implements SchemeFactory {
public user_getFileId_resultStandardScheme getScheme() {
return new user_getFileId_resultStandardScheme();
}
}
private static class user_getFileId_resultStandardScheme extends StandardScheme<user_getFileId_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getFileId_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.success = iprot.readI32();
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.e = new InvalidPathException();
struct.e.read(iprot);
struct.setEIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getFileId_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.isSetSuccess()) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeI32(struct.success);
oprot.writeFieldEnd();
}
if (struct.e != null) {
oprot.writeFieldBegin(E_FIELD_DESC);
struct.e.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getFileId_resultTupleSchemeFactory implements SchemeFactory {
public user_getFileId_resultTupleScheme getScheme() {
return new user_getFileId_resultTupleScheme();
}
}
private static class user_getFileId_resultTupleScheme extends TupleScheme<user_getFileId_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getFileId_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetE()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetSuccess()) {
oprot.writeI32(struct.success);
}
if (struct.isSetE()) {
struct.e.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getFileId_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.success = iprot.readI32();
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.e = new InvalidPathException();
struct.e.read(iprot);
struct.setEIsSet(true);
}
}
}
}
public static class user_getUserId_args implements org.apache.thrift.TBase<user_getUserId_args, user_getUserId_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getUserId_args");
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getUserId_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getUserId_argsTupleSchemeFactory());
}
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
;
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getUserId_args.class, metaDataMap);
}
public user_getUserId_args() {
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getUserId_args(user_getUserId_args other) {
}
public user_getUserId_args deepCopy() {
return new user_getUserId_args(this);
}
@Override
public void clear() {
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getUserId_args)
return this.equals((user_getUserId_args)that);
return false;
}
public boolean equals(user_getUserId_args that) {
if (that == null)
return false;
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getUserId_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getUserId_args typedOther = (user_getUserId_args)other;
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getUserId_args(");
boolean first = true;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getUserId_argsStandardSchemeFactory implements SchemeFactory {
public user_getUserId_argsStandardScheme getScheme() {
return new user_getUserId_argsStandardScheme();
}
}
private static class user_getUserId_argsStandardScheme extends StandardScheme<user_getUserId_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getUserId_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getUserId_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getUserId_argsTupleSchemeFactory implements SchemeFactory {
public user_getUserId_argsTupleScheme getScheme() {
return new user_getUserId_argsTupleScheme();
}
}
private static class user_getUserId_argsTupleScheme extends TupleScheme<user_getUserId_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getUserId_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getUserId_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
}
}
}
public static class user_getUserId_result implements org.apache.thrift.TBase<user_getUserId_result, user_getUserId_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getUserId_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getUserId_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getUserId_resultTupleSchemeFactory());
}
public long success; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getUserId_result.class, metaDataMap);
}
public user_getUserId_result() {
}
public user_getUserId_result(
long success)
{
this();
this.success = success;
setSuccessIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getUserId_result(user_getUserId_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
}
public user_getUserId_result deepCopy() {
return new user_getUserId_result(this);
}
@Override
public void clear() {
setSuccessIsSet(false);
this.success = 0;
}
public long getSuccess() {
return this.success;
}
public user_getUserId_result setSuccess(long success) {
this.success = success;
setSuccessIsSet(true);
return this;
}
public void unsetSuccess() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Long)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return Long.valueOf(getSuccess());
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getUserId_result)
return this.equals((user_getUserId_result)that);
return false;
}
public boolean equals(user_getUserId_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;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getUserId_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getUserId_result typedOther = (user_getUserId_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getUserId_result(");
boolean first = true;
sb.append("success:");
sb.append(this.success);
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getUserId_resultStandardSchemeFactory implements SchemeFactory {
public user_getUserId_resultStandardScheme getScheme() {
return new user_getUserId_resultStandardScheme();
}
}
private static class user_getUserId_resultStandardScheme extends StandardScheme<user_getUserId_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getUserId_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.success = iprot.readI64();
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getUserId_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.isSetSuccess()) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeI64(struct.success);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getUserId_resultTupleSchemeFactory implements SchemeFactory {
public user_getUserId_resultTupleScheme getScheme() {
return new user_getUserId_resultTupleScheme();
}
}
private static class user_getUserId_resultTupleScheme extends TupleScheme<user_getUserId_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getUserId_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
oprot.writeI64(struct.success);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getUserId_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = iprot.readI64();
struct.setSuccessIsSet(true);
}
}
}
}
public static class user_getBlockId_args implements org.apache.thrift.TBase<user_getBlockId_args, user_getBlockId_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getBlockId_args");
private static final org.apache.thrift.protocol.TField FILE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fileId", org.apache.thrift.protocol.TType.I32, (short)1);
private static final org.apache.thrift.protocol.TField INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("index", org.apache.thrift.protocol.TType.I32, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getBlockId_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getBlockId_argsTupleSchemeFactory());
}
public int fileId; // required
public int index; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
FILE_ID((short)1, "fileId"),
INDEX((short)2, "index");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // FILE_ID
return FILE_ID;
case 2: // INDEX
return INDEX;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __FILEID_ISSET_ID = 0;
private static final int __INDEX_ISSET_ID = 1;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.FILE_ID, new org.apache.thrift.meta_data.FieldMetaData("fileId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.INDEX, new org.apache.thrift.meta_data.FieldMetaData("index", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getBlockId_args.class, metaDataMap);
}
public user_getBlockId_args() {
}
public user_getBlockId_args(
int fileId,
int index)
{
this();
this.fileId = fileId;
setFileIdIsSet(true);
this.index = index;
setIndexIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getBlockId_args(user_getBlockId_args other) {
__isset_bitfield = other.__isset_bitfield;
this.fileId = other.fileId;
this.index = other.index;
}
public user_getBlockId_args deepCopy() {
return new user_getBlockId_args(this);
}
@Override
public void clear() {
setFileIdIsSet(false);
this.fileId = 0;
setIndexIsSet(false);
this.index = 0;
}
public int getFileId() {
return this.fileId;
}
public user_getBlockId_args setFileId(int fileId) {
this.fileId = fileId;
setFileIdIsSet(true);
return this;
}
public void unsetFileId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILEID_ISSET_ID);
}
/** Returns true if field fileId is set (has been assigned a value) and false otherwise */
public boolean isSetFileId() {
return EncodingUtils.testBit(__isset_bitfield, __FILEID_ISSET_ID);
}
public void setFileIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILEID_ISSET_ID, value);
}
public int getIndex() {
return this.index;
}
public user_getBlockId_args setIndex(int index) {
this.index = index;
setIndexIsSet(true);
return this;
}
public void unsetIndex() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INDEX_ISSET_ID);
}
/** Returns true if field index is set (has been assigned a value) and false otherwise */
public boolean isSetIndex() {
return EncodingUtils.testBit(__isset_bitfield, __INDEX_ISSET_ID);
}
public void setIndexIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INDEX_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case FILE_ID:
if (value == null) {
unsetFileId();
} else {
setFileId((Integer)value);
}
break;
case INDEX:
if (value == null) {
unsetIndex();
} else {
setIndex((Integer)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case FILE_ID:
return Integer.valueOf(getFileId());
case INDEX:
return Integer.valueOf(getIndex());
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case FILE_ID:
return isSetFileId();
case INDEX:
return isSetIndex();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getBlockId_args)
return this.equals((user_getBlockId_args)that);
return false;
}
public boolean equals(user_getBlockId_args that) {
if (that == null)
return false;
boolean this_present_fileId = true;
boolean that_present_fileId = true;
if (this_present_fileId || that_present_fileId) {
if (!(this_present_fileId && that_present_fileId))
return false;
if (this.fileId != that.fileId)
return false;
}
boolean this_present_index = true;
boolean that_present_index = true;
if (this_present_index || that_present_index) {
if (!(this_present_index && that_present_index))
return false;
if (this.index != that.index)
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getBlockId_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getBlockId_args typedOther = (user_getBlockId_args)other;
lastComparison = Boolean.valueOf(isSetFileId()).compareTo(typedOther.isSetFileId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFileId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileId, typedOther.fileId);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetIndex()).compareTo(typedOther.isSetIndex());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetIndex()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index, typedOther.index);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getBlockId_args(");
boolean first = true;
sb.append("fileId:");
sb.append(this.fileId);
first = false;
if (!first) sb.append(", ");
sb.append("index:");
sb.append(this.index);
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getBlockId_argsStandardSchemeFactory implements SchemeFactory {
public user_getBlockId_argsStandardScheme getScheme() {
return new user_getBlockId_argsStandardScheme();
}
}
private static class user_getBlockId_argsStandardScheme extends StandardScheme<user_getBlockId_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getBlockId_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // FILE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // INDEX
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.index = iprot.readI32();
struct.setIndexIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getBlockId_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(FILE_ID_FIELD_DESC);
oprot.writeI32(struct.fileId);
oprot.writeFieldEnd();
oprot.writeFieldBegin(INDEX_FIELD_DESC);
oprot.writeI32(struct.index);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getBlockId_argsTupleSchemeFactory implements SchemeFactory {
public user_getBlockId_argsTupleScheme getScheme() {
return new user_getBlockId_argsTupleScheme();
}
}
private static class user_getBlockId_argsTupleScheme extends TupleScheme<user_getBlockId_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getBlockId_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetFileId()) {
optionals.set(0);
}
if (struct.isSetIndex()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetFileId()) {
oprot.writeI32(struct.fileId);
}
if (struct.isSetIndex()) {
oprot.writeI32(struct.index);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getBlockId_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
}
if (incoming.get(1)) {
struct.index = iprot.readI32();
struct.setIndexIsSet(true);
}
}
}
}
public static class user_getBlockId_result implements org.apache.thrift.TBase<user_getBlockId_result, user_getBlockId_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getBlockId_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getBlockId_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getBlockId_resultTupleSchemeFactory());
}
public long success; // required
public FileDoesNotExistException e; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E((short)1, "e");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E
return E;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getBlockId_result.class, metaDataMap);
}
public user_getBlockId_result() {
}
public user_getBlockId_result(
long success,
FileDoesNotExistException e)
{
this();
this.success = success;
setSuccessIsSet(true);
this.e = e;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getBlockId_result(user_getBlockId_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
if (other.isSetE()) {
this.e = new FileDoesNotExistException(other.e);
}
}
public user_getBlockId_result deepCopy() {
return new user_getBlockId_result(this);
}
@Override
public void clear() {
setSuccessIsSet(false);
this.success = 0;
this.e = null;
}
public long getSuccess() {
return this.success;
}
public user_getBlockId_result setSuccess(long success) {
this.success = success;
setSuccessIsSet(true);
return this;
}
public void unsetSuccess() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public FileDoesNotExistException getE() {
return this.e;
}
public user_getBlockId_result setE(FileDoesNotExistException e) {
this.e = e;
return this;
}
public void unsetE() {
this.e = null;
}
/** Returns true if field e is set (has been assigned a value) and false otherwise */
public boolean isSetE() {
return this.e != null;
}
public void setEIsSet(boolean value) {
if (!value) {
this.e = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Long)value);
}
break;
case E:
if (value == null) {
unsetE();
} else {
setE((FileDoesNotExistException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return Long.valueOf(getSuccess());
case E:
return getE();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E:
return isSetE();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getBlockId_result)
return this.equals((user_getBlockId_result)that);
return false;
}
public boolean equals(user_getBlockId_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_e = true && this.isSetE();
boolean that_present_e = true && that.isSetE();
if (this_present_e || that_present_e) {
if (!(this_present_e && that_present_e))
return false;
if (!this.e.equals(that.e))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getBlockId_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getBlockId_result typedOther = (user_getBlockId_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetE()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getBlockId_result(");
boolean first = true;
sb.append("success:");
sb.append(this.success);
first = false;
if (!first) sb.append(", ");
sb.append("e:");
if (this.e == null) {
sb.append("null");
} else {
sb.append(this.e);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getBlockId_resultStandardSchemeFactory implements SchemeFactory {
public user_getBlockId_resultStandardScheme getScheme() {
return new user_getBlockId_resultStandardScheme();
}
}
private static class user_getBlockId_resultStandardScheme extends StandardScheme<user_getBlockId_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getBlockId_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.success = iprot.readI64();
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.e = new FileDoesNotExistException();
struct.e.read(iprot);
struct.setEIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getBlockId_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.isSetSuccess()) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeI64(struct.success);
oprot.writeFieldEnd();
}
if (struct.e != null) {
oprot.writeFieldBegin(E_FIELD_DESC);
struct.e.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getBlockId_resultTupleSchemeFactory implements SchemeFactory {
public user_getBlockId_resultTupleScheme getScheme() {
return new user_getBlockId_resultTupleScheme();
}
}
private static class user_getBlockId_resultTupleScheme extends TupleScheme<user_getBlockId_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getBlockId_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetE()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetSuccess()) {
oprot.writeI64(struct.success);
}
if (struct.isSetE()) {
struct.e.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getBlockId_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.success = iprot.readI64();
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.e = new FileDoesNotExistException();
struct.e.read(iprot);
struct.setEIsSet(true);
}
}
}
}
public static class user_getWorker_args implements org.apache.thrift.TBase<user_getWorker_args, user_getWorker_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getWorker_args");
private static final org.apache.thrift.protocol.TField RANDOM_FIELD_DESC = new org.apache.thrift.protocol.TField("random", org.apache.thrift.protocol.TType.BOOL, (short)1);
private static final org.apache.thrift.protocol.TField HOST_FIELD_DESC = new org.apache.thrift.protocol.TField("host", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getWorker_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getWorker_argsTupleSchemeFactory());
}
public boolean random; // required
public String host; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
RANDOM((short)1, "random"),
HOST((short)2, "host");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // RANDOM
return RANDOM;
case 2: // HOST
return HOST;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __RANDOM_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.RANDOM, new org.apache.thrift.meta_data.FieldMetaData("random", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
tmpMap.put(_Fields.HOST, new org.apache.thrift.meta_data.FieldMetaData("host", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getWorker_args.class, metaDataMap);
}
public user_getWorker_args() {
}
public user_getWorker_args(
boolean random,
String host)
{
this();
this.random = random;
setRandomIsSet(true);
this.host = host;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getWorker_args(user_getWorker_args other) {
__isset_bitfield = other.__isset_bitfield;
this.random = other.random;
if (other.isSetHost()) {
this.host = other.host;
}
}
public user_getWorker_args deepCopy() {
return new user_getWorker_args(this);
}
@Override
public void clear() {
setRandomIsSet(false);
this.random = false;
this.host = null;
}
public boolean isRandom() {
return this.random;
}
public user_getWorker_args setRandom(boolean random) {
this.random = random;
setRandomIsSet(true);
return this;
}
public void unsetRandom() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RANDOM_ISSET_ID);
}
/** Returns true if field random is set (has been assigned a value) and false otherwise */
public boolean isSetRandom() {
return EncodingUtils.testBit(__isset_bitfield, __RANDOM_ISSET_ID);
}
public void setRandomIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RANDOM_ISSET_ID, value);
}
public String getHost() {
return this.host;
}
public user_getWorker_args setHost(String host) {
this.host = host;
return this;
}
public void unsetHost() {
this.host = null;
}
/** Returns true if field host is set (has been assigned a value) and false otherwise */
public boolean isSetHost() {
return this.host != null;
}
public void setHostIsSet(boolean value) {
if (!value) {
this.host = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case RANDOM:
if (value == null) {
unsetRandom();
} else {
setRandom((Boolean)value);
}
break;
case HOST:
if (value == null) {
unsetHost();
} else {
setHost((String)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case RANDOM:
return Boolean.valueOf(isRandom());
case HOST:
return getHost();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case RANDOM:
return isSetRandom();
case HOST:
return isSetHost();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getWorker_args)
return this.equals((user_getWorker_args)that);
return false;
}
public boolean equals(user_getWorker_args that) {
if (that == null)
return false;
boolean this_present_random = true;
boolean that_present_random = true;
if (this_present_random || that_present_random) {
if (!(this_present_random && that_present_random))
return false;
if (this.random != that.random)
return false;
}
boolean this_present_host = true && this.isSetHost();
boolean that_present_host = true && that.isSetHost();
if (this_present_host || that_present_host) {
if (!(this_present_host && that_present_host))
return false;
if (!this.host.equals(that.host))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getWorker_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getWorker_args typedOther = (user_getWorker_args)other;
lastComparison = Boolean.valueOf(isSetRandom()).compareTo(typedOther.isSetRandom());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRandom()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.random, typedOther.random);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetHost()).compareTo(typedOther.isSetHost());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetHost()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.host, typedOther.host);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getWorker_args(");
boolean first = true;
sb.append("random:");
sb.append(this.random);
first = false;
if (!first) sb.append(", ");
sb.append("host:");
if (this.host == null) {
sb.append("null");
} else {
sb.append(this.host);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getWorker_argsStandardSchemeFactory implements SchemeFactory {
public user_getWorker_argsStandardScheme getScheme() {
return new user_getWorker_argsStandardScheme();
}
}
private static class user_getWorker_argsStandardScheme extends StandardScheme<user_getWorker_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getWorker_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // RANDOM
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.random = iprot.readBool();
struct.setRandomIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // HOST
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.host = iprot.readString();
struct.setHostIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getWorker_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(RANDOM_FIELD_DESC);
oprot.writeBool(struct.random);
oprot.writeFieldEnd();
if (struct.host != null) {
oprot.writeFieldBegin(HOST_FIELD_DESC);
oprot.writeString(struct.host);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getWorker_argsTupleSchemeFactory implements SchemeFactory {
public user_getWorker_argsTupleScheme getScheme() {
return new user_getWorker_argsTupleScheme();
}
}
private static class user_getWorker_argsTupleScheme extends TupleScheme<user_getWorker_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getWorker_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetRandom()) {
optionals.set(0);
}
if (struct.isSetHost()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetRandom()) {
oprot.writeBool(struct.random);
}
if (struct.isSetHost()) {
oprot.writeString(struct.host);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getWorker_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.random = iprot.readBool();
struct.setRandomIsSet(true);
}
if (incoming.get(1)) {
struct.host = iprot.readString();
struct.setHostIsSet(true);
}
}
}
}
public static class user_getWorker_result implements org.apache.thrift.TBase<user_getWorker_result, user_getWorker_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getWorker_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getWorker_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getWorker_resultTupleSchemeFactory());
}
public NetAddress success; // required
public NoWorkerException e; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E((short)1, "e");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E
return E;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, NetAddress.class)));
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getWorker_result.class, metaDataMap);
}
public user_getWorker_result() {
}
public user_getWorker_result(
NetAddress success,
NoWorkerException e)
{
this();
this.success = success;
this.e = e;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getWorker_result(user_getWorker_result other) {
if (other.isSetSuccess()) {
this.success = new NetAddress(other.success);
}
if (other.isSetE()) {
this.e = new NoWorkerException(other.e);
}
}
public user_getWorker_result deepCopy() {
return new user_getWorker_result(this);
}
@Override
public void clear() {
this.success = null;
this.e = null;
}
public NetAddress getSuccess() {
return this.success;
}
public user_getWorker_result setSuccess(NetAddress success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public NoWorkerException getE() {
return this.e;
}
public user_getWorker_result setE(NoWorkerException e) {
this.e = e;
return this;
}
public void unsetE() {
this.e = null;
}
/** Returns true if field e is set (has been assigned a value) and false otherwise */
public boolean isSetE() {
return this.e != null;
}
public void setEIsSet(boolean value) {
if (!value) {
this.e = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((NetAddress)value);
}
break;
case E:
if (value == null) {
unsetE();
} else {
setE((NoWorkerException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
case E:
return getE();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E:
return isSetE();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getWorker_result)
return this.equals((user_getWorker_result)that);
return false;
}
public boolean equals(user_getWorker_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
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_e = true && this.isSetE();
boolean that_present_e = true && that.isSetE();
if (this_present_e || that_present_e) {
if (!(this_present_e && that_present_e))
return false;
if (!this.e.equals(that.e))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getWorker_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getWorker_result typedOther = (user_getWorker_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetE()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getWorker_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
if (!first) sb.append(", ");
sb.append("e:");
if (this.e == null) {
sb.append("null");
} else {
sb.append(this.e);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (success != null) {
success.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getWorker_resultStandardSchemeFactory implements SchemeFactory {
public user_getWorker_resultStandardScheme getScheme() {
return new user_getWorker_resultStandardScheme();
}
}
private static class user_getWorker_resultStandardScheme extends StandardScheme<user_getWorker_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getWorker_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.success = new NetAddress();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.e = new NoWorkerException();
struct.e.read(iprot);
struct.setEIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getWorker_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
struct.success.write(oprot);
oprot.writeFieldEnd();
}
if (struct.e != null) {
oprot.writeFieldBegin(E_FIELD_DESC);
struct.e.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getWorker_resultTupleSchemeFactory implements SchemeFactory {
public user_getWorker_resultTupleScheme getScheme() {
return new user_getWorker_resultTupleScheme();
}
}
private static class user_getWorker_resultTupleScheme extends TupleScheme<user_getWorker_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getWorker_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetE()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
if (struct.isSetE()) {
struct.e.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getWorker_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.success = new NetAddress();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.e = new NoWorkerException();
struct.e.read(iprot);
struct.setEIsSet(true);
}
}
}
}
public static class getClientFileInfoById_args implements org.apache.thrift.TBase<getClientFileInfoById_args, getClientFileInfoById_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getClientFileInfoById_args");
private static final org.apache.thrift.protocol.TField FILE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fileId", org.apache.thrift.protocol.TType.I32, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getClientFileInfoById_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getClientFileInfoById_argsTupleSchemeFactory());
}
public int fileId; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
FILE_ID((short)1, "fileId");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // FILE_ID
return FILE_ID;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __FILEID_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.FILE_ID, new org.apache.thrift.meta_data.FieldMetaData("fileId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getClientFileInfoById_args.class, metaDataMap);
}
public getClientFileInfoById_args() {
}
public getClientFileInfoById_args(
int fileId)
{
this();
this.fileId = fileId;
setFileIdIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public getClientFileInfoById_args(getClientFileInfoById_args other) {
__isset_bitfield = other.__isset_bitfield;
this.fileId = other.fileId;
}
public getClientFileInfoById_args deepCopy() {
return new getClientFileInfoById_args(this);
}
@Override
public void clear() {
setFileIdIsSet(false);
this.fileId = 0;
}
public int getFileId() {
return this.fileId;
}
public getClientFileInfoById_args setFileId(int fileId) {
this.fileId = fileId;
setFileIdIsSet(true);
return this;
}
public void unsetFileId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILEID_ISSET_ID);
}
/** Returns true if field fileId is set (has been assigned a value) and false otherwise */
public boolean isSetFileId() {
return EncodingUtils.testBit(__isset_bitfield, __FILEID_ISSET_ID);
}
public void setFileIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILEID_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case FILE_ID:
if (value == null) {
unsetFileId();
} else {
setFileId((Integer)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case FILE_ID:
return Integer.valueOf(getFileId());
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case FILE_ID:
return isSetFileId();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof getClientFileInfoById_args)
return this.equals((getClientFileInfoById_args)that);
return false;
}
public boolean equals(getClientFileInfoById_args that) {
if (that == null)
return false;
boolean this_present_fileId = true;
boolean that_present_fileId = true;
if (this_present_fileId || that_present_fileId) {
if (!(this_present_fileId && that_present_fileId))
return false;
if (this.fileId != that.fileId)
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(getClientFileInfoById_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
getClientFileInfoById_args typedOther = (getClientFileInfoById_args)other;
lastComparison = Boolean.valueOf(isSetFileId()).compareTo(typedOther.isSetFileId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFileId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileId, typedOther.fileId);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("getClientFileInfoById_args(");
boolean first = true;
sb.append("fileId:");
sb.append(this.fileId);
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class getClientFileInfoById_argsStandardSchemeFactory implements SchemeFactory {
public getClientFileInfoById_argsStandardScheme getScheme() {
return new getClientFileInfoById_argsStandardScheme();
}
}
private static class getClientFileInfoById_argsStandardScheme extends StandardScheme<getClientFileInfoById_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, getClientFileInfoById_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // FILE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, getClientFileInfoById_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(FILE_ID_FIELD_DESC);
oprot.writeI32(struct.fileId);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class getClientFileInfoById_argsTupleSchemeFactory implements SchemeFactory {
public getClientFileInfoById_argsTupleScheme getScheme() {
return new getClientFileInfoById_argsTupleScheme();
}
}
private static class getClientFileInfoById_argsTupleScheme extends TupleScheme<getClientFileInfoById_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getClientFileInfoById_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetFileId()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetFileId()) {
oprot.writeI32(struct.fileId);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getClientFileInfoById_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
}
}
}
}
public static class getClientFileInfoById_result implements org.apache.thrift.TBase<getClientFileInfoById_result, getClientFileInfoById_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getClientFileInfoById_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getClientFileInfoById_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getClientFileInfoById_resultTupleSchemeFactory());
}
public ClientFileInfo success; // required
public FileDoesNotExistException e; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E((short)1, "e");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E
return E;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ClientFileInfo.class)));
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getClientFileInfoById_result.class, metaDataMap);
}
public getClientFileInfoById_result() {
}
public getClientFileInfoById_result(
ClientFileInfo success,
FileDoesNotExistException e)
{
this();
this.success = success;
this.e = e;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public getClientFileInfoById_result(getClientFileInfoById_result other) {
if (other.isSetSuccess()) {
this.success = new ClientFileInfo(other.success);
}
if (other.isSetE()) {
this.e = new FileDoesNotExistException(other.e);
}
}
public getClientFileInfoById_result deepCopy() {
return new getClientFileInfoById_result(this);
}
@Override
public void clear() {
this.success = null;
this.e = null;
}
public ClientFileInfo getSuccess() {
return this.success;
}
public getClientFileInfoById_result setSuccess(ClientFileInfo success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public FileDoesNotExistException getE() {
return this.e;
}
public getClientFileInfoById_result setE(FileDoesNotExistException e) {
this.e = e;
return this;
}
public void unsetE() {
this.e = null;
}
/** Returns true if field e is set (has been assigned a value) and false otherwise */
public boolean isSetE() {
return this.e != null;
}
public void setEIsSet(boolean value) {
if (!value) {
this.e = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((ClientFileInfo)value);
}
break;
case E:
if (value == null) {
unsetE();
} else {
setE((FileDoesNotExistException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
case E:
return getE();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E:
return isSetE();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof getClientFileInfoById_result)
return this.equals((getClientFileInfoById_result)that);
return false;
}
public boolean equals(getClientFileInfoById_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
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_e = true && this.isSetE();
boolean that_present_e = true && that.isSetE();
if (this_present_e || that_present_e) {
if (!(this_present_e && that_present_e))
return false;
if (!this.e.equals(that.e))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(getClientFileInfoById_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
getClientFileInfoById_result typedOther = (getClientFileInfoById_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetE()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("getClientFileInfoById_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
if (!first) sb.append(", ");
sb.append("e:");
if (this.e == null) {
sb.append("null");
} else {
sb.append(this.e);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (success != null) {
success.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class getClientFileInfoById_resultStandardSchemeFactory implements SchemeFactory {
public getClientFileInfoById_resultStandardScheme getScheme() {
return new getClientFileInfoById_resultStandardScheme();
}
}
private static class getClientFileInfoById_resultStandardScheme extends StandardScheme<getClientFileInfoById_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, getClientFileInfoById_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.success = new ClientFileInfo();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.e = new FileDoesNotExistException();
struct.e.read(iprot);
struct.setEIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, getClientFileInfoById_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
struct.success.write(oprot);
oprot.writeFieldEnd();
}
if (struct.e != null) {
oprot.writeFieldBegin(E_FIELD_DESC);
struct.e.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class getClientFileInfoById_resultTupleSchemeFactory implements SchemeFactory {
public getClientFileInfoById_resultTupleScheme getScheme() {
return new getClientFileInfoById_resultTupleScheme();
}
}
private static class getClientFileInfoById_resultTupleScheme extends TupleScheme<getClientFileInfoById_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getClientFileInfoById_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetE()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
if (struct.isSetE()) {
struct.e.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getClientFileInfoById_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.success = new ClientFileInfo();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.e = new FileDoesNotExistException();
struct.e.read(iprot);
struct.setEIsSet(true);
}
}
}
}
public static class user_getClientFileInfoByPath_args implements org.apache.thrift.TBase<user_getClientFileInfoByPath_args, user_getClientFileInfoByPath_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getClientFileInfoByPath_args");
private static final org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getClientFileInfoByPath_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getClientFileInfoByPath_argsTupleSchemeFactory());
}
public String path; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
PATH((short)1, "path");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // PATH
return PATH;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getClientFileInfoByPath_args.class, metaDataMap);
}
public user_getClientFileInfoByPath_args() {
}
public user_getClientFileInfoByPath_args(
String path)
{
this();
this.path = path;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getClientFileInfoByPath_args(user_getClientFileInfoByPath_args other) {
if (other.isSetPath()) {
this.path = other.path;
}
}
public user_getClientFileInfoByPath_args deepCopy() {
return new user_getClientFileInfoByPath_args(this);
}
@Override
public void clear() {
this.path = null;
}
public String getPath() {
return this.path;
}
public user_getClientFileInfoByPath_args setPath(String path) {
this.path = path;
return this;
}
public void unsetPath() {
this.path = null;
}
/** Returns true if field path is set (has been assigned a value) and false otherwise */
public boolean isSetPath() {
return this.path != null;
}
public void setPathIsSet(boolean value) {
if (!value) {
this.path = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case PATH:
if (value == null) {
unsetPath();
} else {
setPath((String)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case PATH:
return getPath();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case PATH:
return isSetPath();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getClientFileInfoByPath_args)
return this.equals((user_getClientFileInfoByPath_args)that);
return false;
}
public boolean equals(user_getClientFileInfoByPath_args that) {
if (that == null)
return false;
boolean this_present_path = true && this.isSetPath();
boolean that_present_path = true && that.isSetPath();
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;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getClientFileInfoByPath_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getClientFileInfoByPath_args typedOther = (user_getClientFileInfoByPath_args)other;
lastComparison = Boolean.valueOf(isSetPath()).compareTo(typedOther.isSetPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, typedOther.path);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getClientFileInfoByPath_args(");
boolean first = true;
sb.append("path:");
if (this.path == null) {
sb.append("null");
} else {
sb.append(this.path);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getClientFileInfoByPath_argsStandardSchemeFactory implements SchemeFactory {
public user_getClientFileInfoByPath_argsStandardScheme getScheme() {
return new user_getClientFileInfoByPath_argsStandardScheme();
}
}
private static class user_getClientFileInfoByPath_argsStandardScheme extends StandardScheme<user_getClientFileInfoByPath_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getClientFileInfoByPath_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getClientFileInfoByPath_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.path != null) {
oprot.writeFieldBegin(PATH_FIELD_DESC);
oprot.writeString(struct.path);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getClientFileInfoByPath_argsTupleSchemeFactory implements SchemeFactory {
public user_getClientFileInfoByPath_argsTupleScheme getScheme() {
return new user_getClientFileInfoByPath_argsTupleScheme();
}
}
private static class user_getClientFileInfoByPath_argsTupleScheme extends TupleScheme<user_getClientFileInfoByPath_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getClientFileInfoByPath_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetPath()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetPath()) {
oprot.writeString(struct.path);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getClientFileInfoByPath_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
}
}
}
}
public static class user_getClientFileInfoByPath_result implements org.apache.thrift.TBase<user_getClientFileInfoByPath_result, user_getClientFileInfoByPath_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getClientFileInfoByPath_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
private static final org.apache.thrift.protocol.TField E_F_FIELD_DESC = new org.apache.thrift.protocol.TField("eF", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField E_I_FIELD_DESC = new org.apache.thrift.protocol.TField("eI", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getClientFileInfoByPath_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getClientFileInfoByPath_resultTupleSchemeFactory());
}
public ClientFileInfo success; // required
public FileDoesNotExistException eF; // required
public InvalidPathException eI; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E_F((short)1, "eF"),
E_I((short)2, "eI");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E_F
return E_F;
case 2: // E_I
return E_I;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ClientFileInfo.class)));
tmpMap.put(_Fields.E_F, new org.apache.thrift.meta_data.FieldMetaData("eF", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_I, new org.apache.thrift.meta_data.FieldMetaData("eI", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getClientFileInfoByPath_result.class, metaDataMap);
}
public user_getClientFileInfoByPath_result() {
}
public user_getClientFileInfoByPath_result(
ClientFileInfo success,
FileDoesNotExistException eF,
InvalidPathException eI)
{
this();
this.success = success;
this.eF = eF;
this.eI = eI;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getClientFileInfoByPath_result(user_getClientFileInfoByPath_result other) {
if (other.isSetSuccess()) {
this.success = new ClientFileInfo(other.success);
}
if (other.isSetEF()) {
this.eF = new FileDoesNotExistException(other.eF);
}
if (other.isSetEI()) {
this.eI = new InvalidPathException(other.eI);
}
}
public user_getClientFileInfoByPath_result deepCopy() {
return new user_getClientFileInfoByPath_result(this);
}
@Override
public void clear() {
this.success = null;
this.eF = null;
this.eI = null;
}
public ClientFileInfo getSuccess() {
return this.success;
}
public user_getClientFileInfoByPath_result setSuccess(ClientFileInfo success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public FileDoesNotExistException getEF() {
return this.eF;
}
public user_getClientFileInfoByPath_result setEF(FileDoesNotExistException eF) {
this.eF = eF;
return this;
}
public void unsetEF() {
this.eF = null;
}
/** Returns true if field eF is set (has been assigned a value) and false otherwise */
public boolean isSetEF() {
return this.eF != null;
}
public void setEFIsSet(boolean value) {
if (!value) {
this.eF = null;
}
}
public InvalidPathException getEI() {
return this.eI;
}
public user_getClientFileInfoByPath_result setEI(InvalidPathException eI) {
this.eI = eI;
return this;
}
public void unsetEI() {
this.eI = null;
}
/** Returns true if field eI is set (has been assigned a value) and false otherwise */
public boolean isSetEI() {
return this.eI != null;
}
public void setEIIsSet(boolean value) {
if (!value) {
this.eI = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((ClientFileInfo)value);
}
break;
case E_F:
if (value == null) {
unsetEF();
} else {
setEF((FileDoesNotExistException)value);
}
break;
case E_I:
if (value == null) {
unsetEI();
} else {
setEI((InvalidPathException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
case E_F:
return getEF();
case E_I:
return getEI();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E_F:
return isSetEF();
case E_I:
return isSetEI();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getClientFileInfoByPath_result)
return this.equals((user_getClientFileInfoByPath_result)that);
return false;
}
public boolean equals(user_getClientFileInfoByPath_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
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_eF = true && this.isSetEF();
boolean that_present_eF = true && that.isSetEF();
if (this_present_eF || that_present_eF) {
if (!(this_present_eF && that_present_eF))
return false;
if (!this.eF.equals(that.eF))
return false;
}
boolean this_present_eI = true && this.isSetEI();
boolean that_present_eI = true && that.isSetEI();
if (this_present_eI || that_present_eI) {
if (!(this_present_eI && that_present_eI))
return false;
if (!this.eI.equals(that.eI))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getClientFileInfoByPath_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getClientFileInfoByPath_result typedOther = (user_getClientFileInfoByPath_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEF()).compareTo(typedOther.isSetEF());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEF()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eF, typedOther.eF);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEI()).compareTo(typedOther.isSetEI());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEI()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eI, typedOther.eI);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getClientFileInfoByPath_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
if (!first) sb.append(", ");
sb.append("eF:");
if (this.eF == null) {
sb.append("null");
} else {
sb.append(this.eF);
}
first = false;
if (!first) sb.append(", ");
sb.append("eI:");
if (this.eI == null) {
sb.append("null");
} else {
sb.append(this.eI);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (success != null) {
success.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getClientFileInfoByPath_resultStandardSchemeFactory implements SchemeFactory {
public user_getClientFileInfoByPath_resultStandardScheme getScheme() {
return new user_getClientFileInfoByPath_resultStandardScheme();
}
}
private static class user_getClientFileInfoByPath_resultStandardScheme extends StandardScheme<user_getClientFileInfoByPath_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getClientFileInfoByPath_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.success = new ClientFileInfo();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E_F
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eF = new FileDoesNotExistException();
struct.eF.read(iprot);
struct.setEFIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // E_I
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getClientFileInfoByPath_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
struct.success.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eF != null) {
oprot.writeFieldBegin(E_F_FIELD_DESC);
struct.eF.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eI != null) {
oprot.writeFieldBegin(E_I_FIELD_DESC);
struct.eI.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getClientFileInfoByPath_resultTupleSchemeFactory implements SchemeFactory {
public user_getClientFileInfoByPath_resultTupleScheme getScheme() {
return new user_getClientFileInfoByPath_resultTupleScheme();
}
}
private static class user_getClientFileInfoByPath_resultTupleScheme extends TupleScheme<user_getClientFileInfoByPath_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getClientFileInfoByPath_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetEF()) {
optionals.set(1);
}
if (struct.isSetEI()) {
optionals.set(2);
}
oprot.writeBitSet(optionals, 3);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
if (struct.isSetEF()) {
struct.eF.write(oprot);
}
if (struct.isSetEI()) {
struct.eI.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getClientFileInfoByPath_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
struct.success = new ClientFileInfo();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.eF = new FileDoesNotExistException();
struct.eF.read(iprot);
struct.setEFIsSet(true);
}
if (incoming.get(2)) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
}
}
}
}
public static class user_getClientBlockInfo_args implements org.apache.thrift.TBase<user_getClientBlockInfo_args, user_getClientBlockInfo_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getClientBlockInfo_args");
private static final org.apache.thrift.protocol.TField BLOCK_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("blockId", org.apache.thrift.protocol.TType.I64, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getClientBlockInfo_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getClientBlockInfo_argsTupleSchemeFactory());
}
public long blockId; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
BLOCK_ID((short)1, "blockId");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // BLOCK_ID
return BLOCK_ID;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __BLOCKID_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.BLOCK_ID, new org.apache.thrift.meta_data.FieldMetaData("blockId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getClientBlockInfo_args.class, metaDataMap);
}
public user_getClientBlockInfo_args() {
}
public user_getClientBlockInfo_args(
long blockId)
{
this();
this.blockId = blockId;
setBlockIdIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getClientBlockInfo_args(user_getClientBlockInfo_args other) {
__isset_bitfield = other.__isset_bitfield;
this.blockId = other.blockId;
}
public user_getClientBlockInfo_args deepCopy() {
return new user_getClientBlockInfo_args(this);
}
@Override
public void clear() {
setBlockIdIsSet(false);
this.blockId = 0;
}
public long getBlockId() {
return this.blockId;
}
public user_getClientBlockInfo_args setBlockId(long blockId) {
this.blockId = blockId;
setBlockIdIsSet(true);
return this;
}
public void unsetBlockId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __BLOCKID_ISSET_ID);
}
/** Returns true if field blockId is set (has been assigned a value) and false otherwise */
public boolean isSetBlockId() {
return EncodingUtils.testBit(__isset_bitfield, __BLOCKID_ISSET_ID);
}
public void setBlockIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __BLOCKID_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case BLOCK_ID:
if (value == null) {
unsetBlockId();
} else {
setBlockId((Long)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case BLOCK_ID:
return Long.valueOf(getBlockId());
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case BLOCK_ID:
return isSetBlockId();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getClientBlockInfo_args)
return this.equals((user_getClientBlockInfo_args)that);
return false;
}
public boolean equals(user_getClientBlockInfo_args that) {
if (that == null)
return false;
boolean this_present_blockId = true;
boolean that_present_blockId = true;
if (this_present_blockId || that_present_blockId) {
if (!(this_present_blockId && that_present_blockId))
return false;
if (this.blockId != that.blockId)
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getClientBlockInfo_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getClientBlockInfo_args typedOther = (user_getClientBlockInfo_args)other;
lastComparison = Boolean.valueOf(isSetBlockId()).compareTo(typedOther.isSetBlockId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetBlockId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.blockId, typedOther.blockId);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getClientBlockInfo_args(");
boolean first = true;
sb.append("blockId:");
sb.append(this.blockId);
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getClientBlockInfo_argsStandardSchemeFactory implements SchemeFactory {
public user_getClientBlockInfo_argsStandardScheme getScheme() {
return new user_getClientBlockInfo_argsStandardScheme();
}
}
private static class user_getClientBlockInfo_argsStandardScheme extends StandardScheme<user_getClientBlockInfo_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getClientBlockInfo_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // BLOCK_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.blockId = iprot.readI64();
struct.setBlockIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getClientBlockInfo_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(BLOCK_ID_FIELD_DESC);
oprot.writeI64(struct.blockId);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getClientBlockInfo_argsTupleSchemeFactory implements SchemeFactory {
public user_getClientBlockInfo_argsTupleScheme getScheme() {
return new user_getClientBlockInfo_argsTupleScheme();
}
}
private static class user_getClientBlockInfo_argsTupleScheme extends TupleScheme<user_getClientBlockInfo_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getClientBlockInfo_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetBlockId()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetBlockId()) {
oprot.writeI64(struct.blockId);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getClientBlockInfo_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.blockId = iprot.readI64();
struct.setBlockIdIsSet(true);
}
}
}
}
public static class user_getClientBlockInfo_result implements org.apache.thrift.TBase<user_getClientBlockInfo_result, user_getClientBlockInfo_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getClientBlockInfo_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
private static final org.apache.thrift.protocol.TField E_F_FIELD_DESC = new org.apache.thrift.protocol.TField("eF", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField E_B_FIELD_DESC = new org.apache.thrift.protocol.TField("eB", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getClientBlockInfo_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getClientBlockInfo_resultTupleSchemeFactory());
}
public ClientBlockInfo success; // required
public FileDoesNotExistException eF; // required
public BlockInfoException eB; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E_F((short)1, "eF"),
E_B((short)2, "eB");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E_F
return E_F;
case 2: // E_B
return E_B;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ClientBlockInfo.class)));
tmpMap.put(_Fields.E_F, new org.apache.thrift.meta_data.FieldMetaData("eF", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_B, new org.apache.thrift.meta_data.FieldMetaData("eB", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getClientBlockInfo_result.class, metaDataMap);
}
public user_getClientBlockInfo_result() {
}
public user_getClientBlockInfo_result(
ClientBlockInfo success,
FileDoesNotExistException eF,
BlockInfoException eB)
{
this();
this.success = success;
this.eF = eF;
this.eB = eB;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getClientBlockInfo_result(user_getClientBlockInfo_result other) {
if (other.isSetSuccess()) {
this.success = new ClientBlockInfo(other.success);
}
if (other.isSetEF()) {
this.eF = new FileDoesNotExistException(other.eF);
}
if (other.isSetEB()) {
this.eB = new BlockInfoException(other.eB);
}
}
public user_getClientBlockInfo_result deepCopy() {
return new user_getClientBlockInfo_result(this);
}
@Override
public void clear() {
this.success = null;
this.eF = null;
this.eB = null;
}
public ClientBlockInfo getSuccess() {
return this.success;
}
public user_getClientBlockInfo_result setSuccess(ClientBlockInfo success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public FileDoesNotExistException getEF() {
return this.eF;
}
public user_getClientBlockInfo_result setEF(FileDoesNotExistException eF) {
this.eF = eF;
return this;
}
public void unsetEF() {
this.eF = null;
}
/** Returns true if field eF is set (has been assigned a value) and false otherwise */
public boolean isSetEF() {
return this.eF != null;
}
public void setEFIsSet(boolean value) {
if (!value) {
this.eF = null;
}
}
public BlockInfoException getEB() {
return this.eB;
}
public user_getClientBlockInfo_result setEB(BlockInfoException eB) {
this.eB = eB;
return this;
}
public void unsetEB() {
this.eB = null;
}
/** Returns true if field eB is set (has been assigned a value) and false otherwise */
public boolean isSetEB() {
return this.eB != null;
}
public void setEBIsSet(boolean value) {
if (!value) {
this.eB = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((ClientBlockInfo)value);
}
break;
case E_F:
if (value == null) {
unsetEF();
} else {
setEF((FileDoesNotExistException)value);
}
break;
case E_B:
if (value == null) {
unsetEB();
} else {
setEB((BlockInfoException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
case E_F:
return getEF();
case E_B:
return getEB();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E_F:
return isSetEF();
case E_B:
return isSetEB();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getClientBlockInfo_result)
return this.equals((user_getClientBlockInfo_result)that);
return false;
}
public boolean equals(user_getClientBlockInfo_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
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_eF = true && this.isSetEF();
boolean that_present_eF = true && that.isSetEF();
if (this_present_eF || that_present_eF) {
if (!(this_present_eF && that_present_eF))
return false;
if (!this.eF.equals(that.eF))
return false;
}
boolean this_present_eB = true && this.isSetEB();
boolean that_present_eB = true && that.isSetEB();
if (this_present_eB || that_present_eB) {
if (!(this_present_eB && that_present_eB))
return false;
if (!this.eB.equals(that.eB))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getClientBlockInfo_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getClientBlockInfo_result typedOther = (user_getClientBlockInfo_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEF()).compareTo(typedOther.isSetEF());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEF()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eF, typedOther.eF);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEB()).compareTo(typedOther.isSetEB());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEB()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eB, typedOther.eB);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getClientBlockInfo_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
if (!first) sb.append(", ");
sb.append("eF:");
if (this.eF == null) {
sb.append("null");
} else {
sb.append(this.eF);
}
first = false;
if (!first) sb.append(", ");
sb.append("eB:");
if (this.eB == null) {
sb.append("null");
} else {
sb.append(this.eB);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (success != null) {
success.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getClientBlockInfo_resultStandardSchemeFactory implements SchemeFactory {
public user_getClientBlockInfo_resultStandardScheme getScheme() {
return new user_getClientBlockInfo_resultStandardScheme();
}
}
private static class user_getClientBlockInfo_resultStandardScheme extends StandardScheme<user_getClientBlockInfo_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getClientBlockInfo_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.success = new ClientBlockInfo();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E_F
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eF = new FileDoesNotExistException();
struct.eF.read(iprot);
struct.setEFIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // E_B
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eB = new BlockInfoException();
struct.eB.read(iprot);
struct.setEBIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getClientBlockInfo_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
struct.success.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eF != null) {
oprot.writeFieldBegin(E_F_FIELD_DESC);
struct.eF.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eB != null) {
oprot.writeFieldBegin(E_B_FIELD_DESC);
struct.eB.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getClientBlockInfo_resultTupleSchemeFactory implements SchemeFactory {
public user_getClientBlockInfo_resultTupleScheme getScheme() {
return new user_getClientBlockInfo_resultTupleScheme();
}
}
private static class user_getClientBlockInfo_resultTupleScheme extends TupleScheme<user_getClientBlockInfo_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getClientBlockInfo_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetEF()) {
optionals.set(1);
}
if (struct.isSetEB()) {
optionals.set(2);
}
oprot.writeBitSet(optionals, 3);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
if (struct.isSetEF()) {
struct.eF.write(oprot);
}
if (struct.isSetEB()) {
struct.eB.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getClientBlockInfo_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
struct.success = new ClientBlockInfo();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.eF = new FileDoesNotExistException();
struct.eF.read(iprot);
struct.setEFIsSet(true);
}
if (incoming.get(2)) {
struct.eB = new BlockInfoException();
struct.eB.read(iprot);
struct.setEBIsSet(true);
}
}
}
}
public static class user_getFileBlocksById_args implements org.apache.thrift.TBase<user_getFileBlocksById_args, user_getFileBlocksById_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getFileBlocksById_args");
private static final org.apache.thrift.protocol.TField FILE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fileId", org.apache.thrift.protocol.TType.I32, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getFileBlocksById_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getFileBlocksById_argsTupleSchemeFactory());
}
public int fileId; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
FILE_ID((short)1, "fileId");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // FILE_ID
return FILE_ID;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __FILEID_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.FILE_ID, new org.apache.thrift.meta_data.FieldMetaData("fileId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getFileBlocksById_args.class, metaDataMap);
}
public user_getFileBlocksById_args() {
}
public user_getFileBlocksById_args(
int fileId)
{
this();
this.fileId = fileId;
setFileIdIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getFileBlocksById_args(user_getFileBlocksById_args other) {
__isset_bitfield = other.__isset_bitfield;
this.fileId = other.fileId;
}
public user_getFileBlocksById_args deepCopy() {
return new user_getFileBlocksById_args(this);
}
@Override
public void clear() {
setFileIdIsSet(false);
this.fileId = 0;
}
public int getFileId() {
return this.fileId;
}
public user_getFileBlocksById_args setFileId(int fileId) {
this.fileId = fileId;
setFileIdIsSet(true);
return this;
}
public void unsetFileId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILEID_ISSET_ID);
}
/** Returns true if field fileId is set (has been assigned a value) and false otherwise */
public boolean isSetFileId() {
return EncodingUtils.testBit(__isset_bitfield, __FILEID_ISSET_ID);
}
public void setFileIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILEID_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case FILE_ID:
if (value == null) {
unsetFileId();
} else {
setFileId((Integer)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case FILE_ID:
return Integer.valueOf(getFileId());
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case FILE_ID:
return isSetFileId();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getFileBlocksById_args)
return this.equals((user_getFileBlocksById_args)that);
return false;
}
public boolean equals(user_getFileBlocksById_args that) {
if (that == null)
return false;
boolean this_present_fileId = true;
boolean that_present_fileId = true;
if (this_present_fileId || that_present_fileId) {
if (!(this_present_fileId && that_present_fileId))
return false;
if (this.fileId != that.fileId)
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getFileBlocksById_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getFileBlocksById_args typedOther = (user_getFileBlocksById_args)other;
lastComparison = Boolean.valueOf(isSetFileId()).compareTo(typedOther.isSetFileId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFileId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileId, typedOther.fileId);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getFileBlocksById_args(");
boolean first = true;
sb.append("fileId:");
sb.append(this.fileId);
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getFileBlocksById_argsStandardSchemeFactory implements SchemeFactory {
public user_getFileBlocksById_argsStandardScheme getScheme() {
return new user_getFileBlocksById_argsStandardScheme();
}
}
private static class user_getFileBlocksById_argsStandardScheme extends StandardScheme<user_getFileBlocksById_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getFileBlocksById_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // FILE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getFileBlocksById_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(FILE_ID_FIELD_DESC);
oprot.writeI32(struct.fileId);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getFileBlocksById_argsTupleSchemeFactory implements SchemeFactory {
public user_getFileBlocksById_argsTupleScheme getScheme() {
return new user_getFileBlocksById_argsTupleScheme();
}
}
private static class user_getFileBlocksById_argsTupleScheme extends TupleScheme<user_getFileBlocksById_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getFileBlocksById_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetFileId()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetFileId()) {
oprot.writeI32(struct.fileId);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getFileBlocksById_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
}
}
}
}
public static class user_getFileBlocksById_result implements org.apache.thrift.TBase<user_getFileBlocksById_result, user_getFileBlocksById_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getFileBlocksById_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getFileBlocksById_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getFileBlocksById_resultTupleSchemeFactory());
}
public List<ClientBlockInfo> success; // required
public FileDoesNotExistException e; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E((short)1, "e");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E
return E;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ClientBlockInfo.class))));
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getFileBlocksById_result.class, metaDataMap);
}
public user_getFileBlocksById_result() {
}
public user_getFileBlocksById_result(
List<ClientBlockInfo> success,
FileDoesNotExistException e)
{
this();
this.success = success;
this.e = e;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getFileBlocksById_result(user_getFileBlocksById_result other) {
if (other.isSetSuccess()) {
List<ClientBlockInfo> __this__success = new ArrayList<ClientBlockInfo>();
for (ClientBlockInfo other_element : other.success) {
__this__success.add(new ClientBlockInfo(other_element));
}
this.success = __this__success;
}
if (other.isSetE()) {
this.e = new FileDoesNotExistException(other.e);
}
}
public user_getFileBlocksById_result deepCopy() {
return new user_getFileBlocksById_result(this);
}
@Override
public void clear() {
this.success = null;
this.e = null;
}
public int getSuccessSize() {
return (this.success == null) ? 0 : this.success.size();
}
public java.util.Iterator<ClientBlockInfo> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(ClientBlockInfo elem) {
if (this.success == null) {
this.success = new ArrayList<ClientBlockInfo>();
}
this.success.add(elem);
}
public List<ClientBlockInfo> getSuccess() {
return this.success;
}
public user_getFileBlocksById_result setSuccess(List<ClientBlockInfo> success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public FileDoesNotExistException getE() {
return this.e;
}
public user_getFileBlocksById_result setE(FileDoesNotExistException e) {
this.e = e;
return this;
}
public void unsetE() {
this.e = null;
}
/** Returns true if field e is set (has been assigned a value) and false otherwise */
public boolean isSetE() {
return this.e != null;
}
public void setEIsSet(boolean value) {
if (!value) {
this.e = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((List<ClientBlockInfo>)value);
}
break;
case E:
if (value == null) {
unsetE();
} else {
setE((FileDoesNotExistException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
case E:
return getE();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E:
return isSetE();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getFileBlocksById_result)
return this.equals((user_getFileBlocksById_result)that);
return false;
}
public boolean equals(user_getFileBlocksById_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
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_e = true && this.isSetE();
boolean that_present_e = true && that.isSetE();
if (this_present_e || that_present_e) {
if (!(this_present_e && that_present_e))
return false;
if (!this.e.equals(that.e))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getFileBlocksById_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getFileBlocksById_result typedOther = (user_getFileBlocksById_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetE()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getFileBlocksById_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
if (!first) sb.append(", ");
sb.append("e:");
if (this.e == null) {
sb.append("null");
} else {
sb.append(this.e);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getFileBlocksById_resultStandardSchemeFactory implements SchemeFactory {
public user_getFileBlocksById_resultStandardScheme getScheme() {
return new user_getFileBlocksById_resultStandardScheme();
}
}
private static class user_getFileBlocksById_resultStandardScheme extends StandardScheme<user_getFileBlocksById_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getFileBlocksById_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list120 = iprot.readListBegin();
struct.success = new ArrayList<ClientBlockInfo>(_list120.size);
for (int _i121 = 0; _i121 < _list120.size; ++_i121)
{
ClientBlockInfo _elem122; // required
_elem122 = new ClientBlockInfo();
_elem122.read(iprot);
struct.success.add(_elem122);
}
iprot.readListEnd();
}
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.e = new FileDoesNotExistException();
struct.e.read(iprot);
struct.setEIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getFileBlocksById_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
for (ClientBlockInfo _iter123 : struct.success)
{
_iter123.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.e != null) {
oprot.writeFieldBegin(E_FIELD_DESC);
struct.e.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getFileBlocksById_resultTupleSchemeFactory implements SchemeFactory {
public user_getFileBlocksById_resultTupleScheme getScheme() {
return new user_getFileBlocksById_resultTupleScheme();
}
}
private static class user_getFileBlocksById_resultTupleScheme extends TupleScheme<user_getFileBlocksById_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getFileBlocksById_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetE()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
for (ClientBlockInfo _iter124 : struct.success)
{
_iter124.write(oprot);
}
}
}
if (struct.isSetE()) {
struct.e.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getFileBlocksById_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list125 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.success = new ArrayList<ClientBlockInfo>(_list125.size);
for (int _i126 = 0; _i126 < _list125.size; ++_i126)
{
ClientBlockInfo _elem127; // required
_elem127 = new ClientBlockInfo();
_elem127.read(iprot);
struct.success.add(_elem127);
}
}
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.e = new FileDoesNotExistException();
struct.e.read(iprot);
struct.setEIsSet(true);
}
}
}
}
public static class user_getFileBlocksByPath_args implements org.apache.thrift.TBase<user_getFileBlocksByPath_args, user_getFileBlocksByPath_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getFileBlocksByPath_args");
private static final org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getFileBlocksByPath_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getFileBlocksByPath_argsTupleSchemeFactory());
}
public String path; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
PATH((short)1, "path");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // PATH
return PATH;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getFileBlocksByPath_args.class, metaDataMap);
}
public user_getFileBlocksByPath_args() {
}
public user_getFileBlocksByPath_args(
String path)
{
this();
this.path = path;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getFileBlocksByPath_args(user_getFileBlocksByPath_args other) {
if (other.isSetPath()) {
this.path = other.path;
}
}
public user_getFileBlocksByPath_args deepCopy() {
return new user_getFileBlocksByPath_args(this);
}
@Override
public void clear() {
this.path = null;
}
public String getPath() {
return this.path;
}
public user_getFileBlocksByPath_args setPath(String path) {
this.path = path;
return this;
}
public void unsetPath() {
this.path = null;
}
/** Returns true if field path is set (has been assigned a value) and false otherwise */
public boolean isSetPath() {
return this.path != null;
}
public void setPathIsSet(boolean value) {
if (!value) {
this.path = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case PATH:
if (value == null) {
unsetPath();
} else {
setPath((String)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case PATH:
return getPath();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case PATH:
return isSetPath();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getFileBlocksByPath_args)
return this.equals((user_getFileBlocksByPath_args)that);
return false;
}
public boolean equals(user_getFileBlocksByPath_args that) {
if (that == null)
return false;
boolean this_present_path = true && this.isSetPath();
boolean that_present_path = true && that.isSetPath();
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;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getFileBlocksByPath_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getFileBlocksByPath_args typedOther = (user_getFileBlocksByPath_args)other;
lastComparison = Boolean.valueOf(isSetPath()).compareTo(typedOther.isSetPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, typedOther.path);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getFileBlocksByPath_args(");
boolean first = true;
sb.append("path:");
if (this.path == null) {
sb.append("null");
} else {
sb.append(this.path);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getFileBlocksByPath_argsStandardSchemeFactory implements SchemeFactory {
public user_getFileBlocksByPath_argsStandardScheme getScheme() {
return new user_getFileBlocksByPath_argsStandardScheme();
}
}
private static class user_getFileBlocksByPath_argsStandardScheme extends StandardScheme<user_getFileBlocksByPath_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getFileBlocksByPath_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getFileBlocksByPath_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.path != null) {
oprot.writeFieldBegin(PATH_FIELD_DESC);
oprot.writeString(struct.path);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getFileBlocksByPath_argsTupleSchemeFactory implements SchemeFactory {
public user_getFileBlocksByPath_argsTupleScheme getScheme() {
return new user_getFileBlocksByPath_argsTupleScheme();
}
}
private static class user_getFileBlocksByPath_argsTupleScheme extends TupleScheme<user_getFileBlocksByPath_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getFileBlocksByPath_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetPath()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetPath()) {
oprot.writeString(struct.path);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getFileBlocksByPath_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
}
}
}
}
public static class user_getFileBlocksByPath_result implements org.apache.thrift.TBase<user_getFileBlocksByPath_result, user_getFileBlocksByPath_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getFileBlocksByPath_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
private static final org.apache.thrift.protocol.TField E_F_FIELD_DESC = new org.apache.thrift.protocol.TField("eF", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField E_I_FIELD_DESC = new org.apache.thrift.protocol.TField("eI", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getFileBlocksByPath_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getFileBlocksByPath_resultTupleSchemeFactory());
}
public List<ClientBlockInfo> success; // required
public FileDoesNotExistException eF; // required
public InvalidPathException eI; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E_F((short)1, "eF"),
E_I((short)2, "eI");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E_F
return E_F;
case 2: // E_I
return E_I;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ClientBlockInfo.class))));
tmpMap.put(_Fields.E_F, new org.apache.thrift.meta_data.FieldMetaData("eF", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_I, new org.apache.thrift.meta_data.FieldMetaData("eI", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getFileBlocksByPath_result.class, metaDataMap);
}
public user_getFileBlocksByPath_result() {
}
public user_getFileBlocksByPath_result(
List<ClientBlockInfo> success,
FileDoesNotExistException eF,
InvalidPathException eI)
{
this();
this.success = success;
this.eF = eF;
this.eI = eI;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getFileBlocksByPath_result(user_getFileBlocksByPath_result other) {
if (other.isSetSuccess()) {
List<ClientBlockInfo> __this__success = new ArrayList<ClientBlockInfo>();
for (ClientBlockInfo other_element : other.success) {
__this__success.add(new ClientBlockInfo(other_element));
}
this.success = __this__success;
}
if (other.isSetEF()) {
this.eF = new FileDoesNotExistException(other.eF);
}
if (other.isSetEI()) {
this.eI = new InvalidPathException(other.eI);
}
}
public user_getFileBlocksByPath_result deepCopy() {
return new user_getFileBlocksByPath_result(this);
}
@Override
public void clear() {
this.success = null;
this.eF = null;
this.eI = null;
}
public int getSuccessSize() {
return (this.success == null) ? 0 : this.success.size();
}
public java.util.Iterator<ClientBlockInfo> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(ClientBlockInfo elem) {
if (this.success == null) {
this.success = new ArrayList<ClientBlockInfo>();
}
this.success.add(elem);
}
public List<ClientBlockInfo> getSuccess() {
return this.success;
}
public user_getFileBlocksByPath_result setSuccess(List<ClientBlockInfo> success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public FileDoesNotExistException getEF() {
return this.eF;
}
public user_getFileBlocksByPath_result setEF(FileDoesNotExistException eF) {
this.eF = eF;
return this;
}
public void unsetEF() {
this.eF = null;
}
/** Returns true if field eF is set (has been assigned a value) and false otherwise */
public boolean isSetEF() {
return this.eF != null;
}
public void setEFIsSet(boolean value) {
if (!value) {
this.eF = null;
}
}
public InvalidPathException getEI() {
return this.eI;
}
public user_getFileBlocksByPath_result setEI(InvalidPathException eI) {
this.eI = eI;
return this;
}
public void unsetEI() {
this.eI = null;
}
/** Returns true if field eI is set (has been assigned a value) and false otherwise */
public boolean isSetEI() {
return this.eI != null;
}
public void setEIIsSet(boolean value) {
if (!value) {
this.eI = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((List<ClientBlockInfo>)value);
}
break;
case E_F:
if (value == null) {
unsetEF();
} else {
setEF((FileDoesNotExistException)value);
}
break;
case E_I:
if (value == null) {
unsetEI();
} else {
setEI((InvalidPathException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
case E_F:
return getEF();
case E_I:
return getEI();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E_F:
return isSetEF();
case E_I:
return isSetEI();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getFileBlocksByPath_result)
return this.equals((user_getFileBlocksByPath_result)that);
return false;
}
public boolean equals(user_getFileBlocksByPath_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
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_eF = true && this.isSetEF();
boolean that_present_eF = true && that.isSetEF();
if (this_present_eF || that_present_eF) {
if (!(this_present_eF && that_present_eF))
return false;
if (!this.eF.equals(that.eF))
return false;
}
boolean this_present_eI = true && this.isSetEI();
boolean that_present_eI = true && that.isSetEI();
if (this_present_eI || that_present_eI) {
if (!(this_present_eI && that_present_eI))
return false;
if (!this.eI.equals(that.eI))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getFileBlocksByPath_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getFileBlocksByPath_result typedOther = (user_getFileBlocksByPath_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEF()).compareTo(typedOther.isSetEF());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEF()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eF, typedOther.eF);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEI()).compareTo(typedOther.isSetEI());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEI()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eI, typedOther.eI);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getFileBlocksByPath_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
if (!first) sb.append(", ");
sb.append("eF:");
if (this.eF == null) {
sb.append("null");
} else {
sb.append(this.eF);
}
first = false;
if (!first) sb.append(", ");
sb.append("eI:");
if (this.eI == null) {
sb.append("null");
} else {
sb.append(this.eI);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getFileBlocksByPath_resultStandardSchemeFactory implements SchemeFactory {
public user_getFileBlocksByPath_resultStandardScheme getScheme() {
return new user_getFileBlocksByPath_resultStandardScheme();
}
}
private static class user_getFileBlocksByPath_resultStandardScheme extends StandardScheme<user_getFileBlocksByPath_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getFileBlocksByPath_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list128 = iprot.readListBegin();
struct.success = new ArrayList<ClientBlockInfo>(_list128.size);
for (int _i129 = 0; _i129 < _list128.size; ++_i129)
{
ClientBlockInfo _elem130; // required
_elem130 = new ClientBlockInfo();
_elem130.read(iprot);
struct.success.add(_elem130);
}
iprot.readListEnd();
}
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E_F
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eF = new FileDoesNotExistException();
struct.eF.read(iprot);
struct.setEFIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // E_I
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getFileBlocksByPath_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
for (ClientBlockInfo _iter131 : struct.success)
{
_iter131.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.eF != null) {
oprot.writeFieldBegin(E_F_FIELD_DESC);
struct.eF.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eI != null) {
oprot.writeFieldBegin(E_I_FIELD_DESC);
struct.eI.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getFileBlocksByPath_resultTupleSchemeFactory implements SchemeFactory {
public user_getFileBlocksByPath_resultTupleScheme getScheme() {
return new user_getFileBlocksByPath_resultTupleScheme();
}
}
private static class user_getFileBlocksByPath_resultTupleScheme extends TupleScheme<user_getFileBlocksByPath_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getFileBlocksByPath_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetEF()) {
optionals.set(1);
}
if (struct.isSetEI()) {
optionals.set(2);
}
oprot.writeBitSet(optionals, 3);
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
for (ClientBlockInfo _iter132 : struct.success)
{
_iter132.write(oprot);
}
}
}
if (struct.isSetEF()) {
struct.eF.write(oprot);
}
if (struct.isSetEI()) {
struct.eI.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getFileBlocksByPath_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list133 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.success = new ArrayList<ClientBlockInfo>(_list133.size);
for (int _i134 = 0; _i134 < _list133.size; ++_i134)
{
ClientBlockInfo _elem135; // required
_elem135 = new ClientBlockInfo();
_elem135.read(iprot);
struct.success.add(_elem135);
}
}
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.eF = new FileDoesNotExistException();
struct.eF.read(iprot);
struct.setEFIsSet(true);
}
if (incoming.get(2)) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
}
}
}
}
public static class user_listFiles_args implements org.apache.thrift.TBase<user_listFiles_args, user_listFiles_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_listFiles_args");
private static final org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField RECURSIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("recursive", org.apache.thrift.protocol.TType.BOOL, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_listFiles_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_listFiles_argsTupleSchemeFactory());
}
public String path; // required
public boolean recursive; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
PATH((short)1, "path"),
RECURSIVE((short)2, "recursive");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // PATH
return PATH;
case 2: // RECURSIVE
return RECURSIVE;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __RECURSIVE_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.RECURSIVE, new org.apache.thrift.meta_data.FieldMetaData("recursive", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_listFiles_args.class, metaDataMap);
}
public user_listFiles_args() {
}
public user_listFiles_args(
String path,
boolean recursive)
{
this();
this.path = path;
this.recursive = recursive;
setRecursiveIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_listFiles_args(user_listFiles_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetPath()) {
this.path = other.path;
}
this.recursive = other.recursive;
}
public user_listFiles_args deepCopy() {
return new user_listFiles_args(this);
}
@Override
public void clear() {
this.path = null;
setRecursiveIsSet(false);
this.recursive = false;
}
public String getPath() {
return this.path;
}
public user_listFiles_args setPath(String path) {
this.path = path;
return this;
}
public void unsetPath() {
this.path = null;
}
/** Returns true if field path is set (has been assigned a value) and false otherwise */
public boolean isSetPath() {
return this.path != null;
}
public void setPathIsSet(boolean value) {
if (!value) {
this.path = null;
}
}
public boolean isRecursive() {
return this.recursive;
}
public user_listFiles_args setRecursive(boolean recursive) {
this.recursive = recursive;
setRecursiveIsSet(true);
return this;
}
public void unsetRecursive() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECURSIVE_ISSET_ID);
}
/** Returns true if field recursive is set (has been assigned a value) and false otherwise */
public boolean isSetRecursive() {
return EncodingUtils.testBit(__isset_bitfield, __RECURSIVE_ISSET_ID);
}
public void setRecursiveIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECURSIVE_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case PATH:
if (value == null) {
unsetPath();
} else {
setPath((String)value);
}
break;
case RECURSIVE:
if (value == null) {
unsetRecursive();
} else {
setRecursive((Boolean)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case PATH:
return getPath();
case RECURSIVE:
return Boolean.valueOf(isRecursive());
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case PATH:
return isSetPath();
case RECURSIVE:
return isSetRecursive();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_listFiles_args)
return this.equals((user_listFiles_args)that);
return false;
}
public boolean equals(user_listFiles_args that) {
if (that == null)
return false;
boolean this_present_path = true && this.isSetPath();
boolean that_present_path = true && that.isSetPath();
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;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_listFiles_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_listFiles_args typedOther = (user_listFiles_args)other;
lastComparison = Boolean.valueOf(isSetPath()).compareTo(typedOther.isSetPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, typedOther.path);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetRecursive()).compareTo(typedOther.isSetRecursive());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRecursive()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.recursive, typedOther.recursive);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_listFiles_args(");
boolean first = true;
sb.append("path:");
if (this.path == null) {
sb.append("null");
} else {
sb.append(this.path);
}
first = false;
if (!first) sb.append(", ");
sb.append("recursive:");
sb.append(this.recursive);
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_listFiles_argsStandardSchemeFactory implements SchemeFactory {
public user_listFiles_argsStandardScheme getScheme() {
return new user_listFiles_argsStandardScheme();
}
}
private static class user_listFiles_argsStandardScheme extends StandardScheme<user_listFiles_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_listFiles_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // RECURSIVE
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.recursive = iprot.readBool();
struct.setRecursiveIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_listFiles_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.path != null) {
oprot.writeFieldBegin(PATH_FIELD_DESC);
oprot.writeString(struct.path);
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(RECURSIVE_FIELD_DESC);
oprot.writeBool(struct.recursive);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_listFiles_argsTupleSchemeFactory implements SchemeFactory {
public user_listFiles_argsTupleScheme getScheme() {
return new user_listFiles_argsTupleScheme();
}
}
private static class user_listFiles_argsTupleScheme extends TupleScheme<user_listFiles_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_listFiles_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetPath()) {
optionals.set(0);
}
if (struct.isSetRecursive()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetPath()) {
oprot.writeString(struct.path);
}
if (struct.isSetRecursive()) {
oprot.writeBool(struct.recursive);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_listFiles_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
}
if (incoming.get(1)) {
struct.recursive = iprot.readBool();
struct.setRecursiveIsSet(true);
}
}
}
}
public static class user_listFiles_result implements org.apache.thrift.TBase<user_listFiles_result, user_listFiles_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_listFiles_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
private static final org.apache.thrift.protocol.TField E_F_FIELD_DESC = new org.apache.thrift.protocol.TField("eF", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField E_I_FIELD_DESC = new org.apache.thrift.protocol.TField("eI", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_listFiles_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_listFiles_resultTupleSchemeFactory());
}
public List<Integer> success; // required
public FileDoesNotExistException eF; // required
public InvalidPathException eI; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E_F((short)1, "eF"),
E_I((short)2, "eI");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E_F
return E_F;
case 2: // E_I
return E_I;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))));
tmpMap.put(_Fields.E_F, new org.apache.thrift.meta_data.FieldMetaData("eF", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_I, new org.apache.thrift.meta_data.FieldMetaData("eI", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_listFiles_result.class, metaDataMap);
}
public user_listFiles_result() {
}
public user_listFiles_result(
List<Integer> success,
FileDoesNotExistException eF,
InvalidPathException eI)
{
this();
this.success = success;
this.eF = eF;
this.eI = eI;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_listFiles_result(user_listFiles_result other) {
if (other.isSetSuccess()) {
List<Integer> __this__success = new ArrayList<Integer>();
for (Integer other_element : other.success) {
__this__success.add(other_element);
}
this.success = __this__success;
}
if (other.isSetEF()) {
this.eF = new FileDoesNotExistException(other.eF);
}
if (other.isSetEI()) {
this.eI = new InvalidPathException(other.eI);
}
}
public user_listFiles_result deepCopy() {
return new user_listFiles_result(this);
}
@Override
public void clear() {
this.success = null;
this.eF = null;
this.eI = null;
}
public int getSuccessSize() {
return (this.success == null) ? 0 : this.success.size();
}
public java.util.Iterator<Integer> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(int elem) {
if (this.success == null) {
this.success = new ArrayList<Integer>();
}
this.success.add(elem);
}
public List<Integer> getSuccess() {
return this.success;
}
public user_listFiles_result setSuccess(List<Integer> success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public FileDoesNotExistException getEF() {
return this.eF;
}
public user_listFiles_result setEF(FileDoesNotExistException eF) {
this.eF = eF;
return this;
}
public void unsetEF() {
this.eF = null;
}
/** Returns true if field eF is set (has been assigned a value) and false otherwise */
public boolean isSetEF() {
return this.eF != null;
}
public void setEFIsSet(boolean value) {
if (!value) {
this.eF = null;
}
}
public InvalidPathException getEI() {
return this.eI;
}
public user_listFiles_result setEI(InvalidPathException eI) {
this.eI = eI;
return this;
}
public void unsetEI() {
this.eI = null;
}
/** Returns true if field eI is set (has been assigned a value) and false otherwise */
public boolean isSetEI() {
return this.eI != null;
}
public void setEIIsSet(boolean value) {
if (!value) {
this.eI = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((List<Integer>)value);
}
break;
case E_F:
if (value == null) {
unsetEF();
} else {
setEF((FileDoesNotExistException)value);
}
break;
case E_I:
if (value == null) {
unsetEI();
} else {
setEI((InvalidPathException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
case E_F:
return getEF();
case E_I:
return getEI();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E_F:
return isSetEF();
case E_I:
return isSetEI();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_listFiles_result)
return this.equals((user_listFiles_result)that);
return false;
}
public boolean equals(user_listFiles_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
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_eF = true && this.isSetEF();
boolean that_present_eF = true && that.isSetEF();
if (this_present_eF || that_present_eF) {
if (!(this_present_eF && that_present_eF))
return false;
if (!this.eF.equals(that.eF))
return false;
}
boolean this_present_eI = true && this.isSetEI();
boolean that_present_eI = true && that.isSetEI();
if (this_present_eI || that_present_eI) {
if (!(this_present_eI && that_present_eI))
return false;
if (!this.eI.equals(that.eI))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_listFiles_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_listFiles_result typedOther = (user_listFiles_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEF()).compareTo(typedOther.isSetEF());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEF()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eF, typedOther.eF);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEI()).compareTo(typedOther.isSetEI());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEI()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eI, typedOther.eI);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_listFiles_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
if (!first) sb.append(", ");
sb.append("eF:");
if (this.eF == null) {
sb.append("null");
} else {
sb.append(this.eF);
}
first = false;
if (!first) sb.append(", ");
sb.append("eI:");
if (this.eI == null) {
sb.append("null");
} else {
sb.append(this.eI);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_listFiles_resultStandardSchemeFactory implements SchemeFactory {
public user_listFiles_resultStandardScheme getScheme() {
return new user_listFiles_resultStandardScheme();
}
}
private static class user_listFiles_resultStandardScheme extends StandardScheme<user_listFiles_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_listFiles_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list136 = iprot.readListBegin();
struct.success = new ArrayList<Integer>(_list136.size);
for (int _i137 = 0; _i137 < _list136.size; ++_i137)
{
int _elem138; // required
_elem138 = iprot.readI32();
struct.success.add(_elem138);
}
iprot.readListEnd();
}
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E_F
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eF = new FileDoesNotExistException();
struct.eF.read(iprot);
struct.setEFIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // E_I
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_listFiles_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.success.size()));
for (int _iter139 : struct.success)
{
oprot.writeI32(_iter139);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.eF != null) {
oprot.writeFieldBegin(E_F_FIELD_DESC);
struct.eF.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eI != null) {
oprot.writeFieldBegin(E_I_FIELD_DESC);
struct.eI.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_listFiles_resultTupleSchemeFactory implements SchemeFactory {
public user_listFiles_resultTupleScheme getScheme() {
return new user_listFiles_resultTupleScheme();
}
}
private static class user_listFiles_resultTupleScheme extends TupleScheme<user_listFiles_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_listFiles_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetEF()) {
optionals.set(1);
}
if (struct.isSetEI()) {
optionals.set(2);
}
oprot.writeBitSet(optionals, 3);
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
for (int _iter140 : struct.success)
{
oprot.writeI32(_iter140);
}
}
}
if (struct.isSetEF()) {
struct.eF.write(oprot);
}
if (struct.isSetEI()) {
struct.eI.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_listFiles_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list141 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32());
struct.success = new ArrayList<Integer>(_list141.size);
for (int _i142 = 0; _i142 < _list141.size; ++_i142)
{
int _elem143; // required
_elem143 = iprot.readI32();
struct.success.add(_elem143);
}
}
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.eF = new FileDoesNotExistException();
struct.eF.read(iprot);
struct.setEFIsSet(true);
}
if (incoming.get(2)) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
}
}
}
}
public static class user_ls_args implements org.apache.thrift.TBase<user_ls_args, user_ls_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_ls_args");
private static final org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField RECURSIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("recursive", org.apache.thrift.protocol.TType.BOOL, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_ls_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_ls_argsTupleSchemeFactory());
}
public String path; // required
public boolean recursive; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
PATH((short)1, "path"),
RECURSIVE((short)2, "recursive");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // PATH
return PATH;
case 2: // RECURSIVE
return RECURSIVE;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __RECURSIVE_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.RECURSIVE, new org.apache.thrift.meta_data.FieldMetaData("recursive", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_ls_args.class, metaDataMap);
}
public user_ls_args() {
}
public user_ls_args(
String path,
boolean recursive)
{
this();
this.path = path;
this.recursive = recursive;
setRecursiveIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_ls_args(user_ls_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetPath()) {
this.path = other.path;
}
this.recursive = other.recursive;
}
public user_ls_args deepCopy() {
return new user_ls_args(this);
}
@Override
public void clear() {
this.path = null;
setRecursiveIsSet(false);
this.recursive = false;
}
public String getPath() {
return this.path;
}
public user_ls_args setPath(String path) {
this.path = path;
return this;
}
public void unsetPath() {
this.path = null;
}
/** Returns true if field path is set (has been assigned a value) and false otherwise */
public boolean isSetPath() {
return this.path != null;
}
public void setPathIsSet(boolean value) {
if (!value) {
this.path = null;
}
}
public boolean isRecursive() {
return this.recursive;
}
public user_ls_args setRecursive(boolean recursive) {
this.recursive = recursive;
setRecursiveIsSet(true);
return this;
}
public void unsetRecursive() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECURSIVE_ISSET_ID);
}
/** Returns true if field recursive is set (has been assigned a value) and false otherwise */
public boolean isSetRecursive() {
return EncodingUtils.testBit(__isset_bitfield, __RECURSIVE_ISSET_ID);
}
public void setRecursiveIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECURSIVE_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case PATH:
if (value == null) {
unsetPath();
} else {
setPath((String)value);
}
break;
case RECURSIVE:
if (value == null) {
unsetRecursive();
} else {
setRecursive((Boolean)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case PATH:
return getPath();
case RECURSIVE:
return Boolean.valueOf(isRecursive());
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case PATH:
return isSetPath();
case RECURSIVE:
return isSetRecursive();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_ls_args)
return this.equals((user_ls_args)that);
return false;
}
public boolean equals(user_ls_args that) {
if (that == null)
return false;
boolean this_present_path = true && this.isSetPath();
boolean that_present_path = true && that.isSetPath();
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;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_ls_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_ls_args typedOther = (user_ls_args)other;
lastComparison = Boolean.valueOf(isSetPath()).compareTo(typedOther.isSetPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, typedOther.path);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetRecursive()).compareTo(typedOther.isSetRecursive());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRecursive()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.recursive, typedOther.recursive);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_ls_args(");
boolean first = true;
sb.append("path:");
if (this.path == null) {
sb.append("null");
} else {
sb.append(this.path);
}
first = false;
if (!first) sb.append(", ");
sb.append("recursive:");
sb.append(this.recursive);
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_ls_argsStandardSchemeFactory implements SchemeFactory {
public user_ls_argsStandardScheme getScheme() {
return new user_ls_argsStandardScheme();
}
}
private static class user_ls_argsStandardScheme extends StandardScheme<user_ls_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_ls_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // RECURSIVE
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.recursive = iprot.readBool();
struct.setRecursiveIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_ls_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.path != null) {
oprot.writeFieldBegin(PATH_FIELD_DESC);
oprot.writeString(struct.path);
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(RECURSIVE_FIELD_DESC);
oprot.writeBool(struct.recursive);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_ls_argsTupleSchemeFactory implements SchemeFactory {
public user_ls_argsTupleScheme getScheme() {
return new user_ls_argsTupleScheme();
}
}
private static class user_ls_argsTupleScheme extends TupleScheme<user_ls_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_ls_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetPath()) {
optionals.set(0);
}
if (struct.isSetRecursive()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetPath()) {
oprot.writeString(struct.path);
}
if (struct.isSetRecursive()) {
oprot.writeBool(struct.recursive);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_ls_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
}
if (incoming.get(1)) {
struct.recursive = iprot.readBool();
struct.setRecursiveIsSet(true);
}
}
}
}
public static class user_ls_result implements org.apache.thrift.TBase<user_ls_result, user_ls_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_ls_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
private static final org.apache.thrift.protocol.TField E_F_FIELD_DESC = new org.apache.thrift.protocol.TField("eF", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField E_I_FIELD_DESC = new org.apache.thrift.protocol.TField("eI", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_ls_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_ls_resultTupleSchemeFactory());
}
public List<String> success; // required
public FileDoesNotExistException eF; // required
public InvalidPathException eI; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E_F((short)1, "eF"),
E_I((short)2, "eI");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E_F
return E_F;
case 2: // E_I
return E_I;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.E_F, new org.apache.thrift.meta_data.FieldMetaData("eF", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_I, new org.apache.thrift.meta_data.FieldMetaData("eI", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_ls_result.class, metaDataMap);
}
public user_ls_result() {
}
public user_ls_result(
List<String> success,
FileDoesNotExistException eF,
InvalidPathException eI)
{
this();
this.success = success;
this.eF = eF;
this.eI = eI;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_ls_result(user_ls_result other) {
if (other.isSetSuccess()) {
List<String> __this__success = new ArrayList<String>();
for (String other_element : other.success) {
__this__success.add(other_element);
}
this.success = __this__success;
}
if (other.isSetEF()) {
this.eF = new FileDoesNotExistException(other.eF);
}
if (other.isSetEI()) {
this.eI = new InvalidPathException(other.eI);
}
}
public user_ls_result deepCopy() {
return new user_ls_result(this);
}
@Override
public void clear() {
this.success = null;
this.eF = null;
this.eI = null;
}
public int getSuccessSize() {
return (this.success == null) ? 0 : this.success.size();
}
public java.util.Iterator<String> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(String elem) {
if (this.success == null) {
this.success = new ArrayList<String>();
}
this.success.add(elem);
}
public List<String> getSuccess() {
return this.success;
}
public user_ls_result setSuccess(List<String> success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public FileDoesNotExistException getEF() {
return this.eF;
}
public user_ls_result setEF(FileDoesNotExistException eF) {
this.eF = eF;
return this;
}
public void unsetEF() {
this.eF = null;
}
/** Returns true if field eF is set (has been assigned a value) and false otherwise */
public boolean isSetEF() {
return this.eF != null;
}
public void setEFIsSet(boolean value) {
if (!value) {
this.eF = null;
}
}
public InvalidPathException getEI() {
return this.eI;
}
public user_ls_result setEI(InvalidPathException eI) {
this.eI = eI;
return this;
}
public void unsetEI() {
this.eI = null;
}
/** Returns true if field eI is set (has been assigned a value) and false otherwise */
public boolean isSetEI() {
return this.eI != null;
}
public void setEIIsSet(boolean value) {
if (!value) {
this.eI = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((List<String>)value);
}
break;
case E_F:
if (value == null) {
unsetEF();
} else {
setEF((FileDoesNotExistException)value);
}
break;
case E_I:
if (value == null) {
unsetEI();
} else {
setEI((InvalidPathException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
case E_F:
return getEF();
case E_I:
return getEI();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E_F:
return isSetEF();
case E_I:
return isSetEI();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_ls_result)
return this.equals((user_ls_result)that);
return false;
}
public boolean equals(user_ls_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
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_eF = true && this.isSetEF();
boolean that_present_eF = true && that.isSetEF();
if (this_present_eF || that_present_eF) {
if (!(this_present_eF && that_present_eF))
return false;
if (!this.eF.equals(that.eF))
return false;
}
boolean this_present_eI = true && this.isSetEI();
boolean that_present_eI = true && that.isSetEI();
if (this_present_eI || that_present_eI) {
if (!(this_present_eI && that_present_eI))
return false;
if (!this.eI.equals(that.eI))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_ls_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_ls_result typedOther = (user_ls_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEF()).compareTo(typedOther.isSetEF());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEF()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eF, typedOther.eF);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEI()).compareTo(typedOther.isSetEI());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEI()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eI, typedOther.eI);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_ls_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
if (!first) sb.append(", ");
sb.append("eF:");
if (this.eF == null) {
sb.append("null");
} else {
sb.append(this.eF);
}
first = false;
if (!first) sb.append(", ");
sb.append("eI:");
if (this.eI == null) {
sb.append("null");
} else {
sb.append(this.eI);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_ls_resultStandardSchemeFactory implements SchemeFactory {
public user_ls_resultStandardScheme getScheme() {
return new user_ls_resultStandardScheme();
}
}
private static class user_ls_resultStandardScheme extends StandardScheme<user_ls_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_ls_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list144 = iprot.readListBegin();
struct.success = new ArrayList<String>(_list144.size);
for (int _i145 = 0; _i145 < _list144.size; ++_i145)
{
String _elem146; // required
_elem146 = iprot.readString();
struct.success.add(_elem146);
}
iprot.readListEnd();
}
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E_F
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eF = new FileDoesNotExistException();
struct.eF.read(iprot);
struct.setEFIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // E_I
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_ls_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
for (String _iter147 : struct.success)
{
oprot.writeString(_iter147);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.eF != null) {
oprot.writeFieldBegin(E_F_FIELD_DESC);
struct.eF.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eI != null) {
oprot.writeFieldBegin(E_I_FIELD_DESC);
struct.eI.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_ls_resultTupleSchemeFactory implements SchemeFactory {
public user_ls_resultTupleScheme getScheme() {
return new user_ls_resultTupleScheme();
}
}
private static class user_ls_resultTupleScheme extends TupleScheme<user_ls_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_ls_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetEF()) {
optionals.set(1);
}
if (struct.isSetEI()) {
optionals.set(2);
}
oprot.writeBitSet(optionals, 3);
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
for (String _iter148 : struct.success)
{
oprot.writeString(_iter148);
}
}
}
if (struct.isSetEF()) {
struct.eF.write(oprot);
}
if (struct.isSetEI()) {
struct.eI.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_ls_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list149 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.success = new ArrayList<String>(_list149.size);
for (int _i150 = 0; _i150 < _list149.size; ++_i150)
{
String _elem151; // required
_elem151 = iprot.readString();
struct.success.add(_elem151);
}
}
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.eF = new FileDoesNotExistException();
struct.eF.read(iprot);
struct.setEFIsSet(true);
}
if (incoming.get(2)) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
}
}
}
}
public static class user_deleteById_args implements org.apache.thrift.TBase<user_deleteById_args, user_deleteById_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_deleteById_args");
private static final org.apache.thrift.protocol.TField FILE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fileId", org.apache.thrift.protocol.TType.I32, (short)1);
private static final org.apache.thrift.protocol.TField RECURSIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("recursive", org.apache.thrift.protocol.TType.BOOL, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_deleteById_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_deleteById_argsTupleSchemeFactory());
}
public int fileId; // required
public boolean recursive; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
FILE_ID((short)1, "fileId"),
RECURSIVE((short)2, "recursive");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // FILE_ID
return FILE_ID;
case 2: // RECURSIVE
return RECURSIVE;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __FILEID_ISSET_ID = 0;
private static final int __RECURSIVE_ISSET_ID = 1;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.FILE_ID, new org.apache.thrift.meta_data.FieldMetaData("fileId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.RECURSIVE, new org.apache.thrift.meta_data.FieldMetaData("recursive", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_deleteById_args.class, metaDataMap);
}
public user_deleteById_args() {
}
public user_deleteById_args(
int fileId,
boolean recursive)
{
this();
this.fileId = fileId;
setFileIdIsSet(true);
this.recursive = recursive;
setRecursiveIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_deleteById_args(user_deleteById_args other) {
__isset_bitfield = other.__isset_bitfield;
this.fileId = other.fileId;
this.recursive = other.recursive;
}
public user_deleteById_args deepCopy() {
return new user_deleteById_args(this);
}
@Override
public void clear() {
setFileIdIsSet(false);
this.fileId = 0;
setRecursiveIsSet(false);
this.recursive = false;
}
public int getFileId() {
return this.fileId;
}
public user_deleteById_args setFileId(int fileId) {
this.fileId = fileId;
setFileIdIsSet(true);
return this;
}
public void unsetFileId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILEID_ISSET_ID);
}
/** Returns true if field fileId is set (has been assigned a value) and false otherwise */
public boolean isSetFileId() {
return EncodingUtils.testBit(__isset_bitfield, __FILEID_ISSET_ID);
}
public void setFileIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILEID_ISSET_ID, value);
}
public boolean isRecursive() {
return this.recursive;
}
public user_deleteById_args setRecursive(boolean recursive) {
this.recursive = recursive;
setRecursiveIsSet(true);
return this;
}
public void unsetRecursive() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECURSIVE_ISSET_ID);
}
/** Returns true if field recursive is set (has been assigned a value) and false otherwise */
public boolean isSetRecursive() {
return EncodingUtils.testBit(__isset_bitfield, __RECURSIVE_ISSET_ID);
}
public void setRecursiveIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECURSIVE_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case FILE_ID:
if (value == null) {
unsetFileId();
} else {
setFileId((Integer)value);
}
break;
case RECURSIVE:
if (value == null) {
unsetRecursive();
} else {
setRecursive((Boolean)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case FILE_ID:
return Integer.valueOf(getFileId());
case RECURSIVE:
return Boolean.valueOf(isRecursive());
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case FILE_ID:
return isSetFileId();
case RECURSIVE:
return isSetRecursive();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_deleteById_args)
return this.equals((user_deleteById_args)that);
return false;
}
public boolean equals(user_deleteById_args that) {
if (that == null)
return false;
boolean this_present_fileId = true;
boolean that_present_fileId = true;
if (this_present_fileId || that_present_fileId) {
if (!(this_present_fileId && that_present_fileId))
return false;
if (this.fileId != that.fileId)
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;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_deleteById_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_deleteById_args typedOther = (user_deleteById_args)other;
lastComparison = Boolean.valueOf(isSetFileId()).compareTo(typedOther.isSetFileId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFileId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileId, typedOther.fileId);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetRecursive()).compareTo(typedOther.isSetRecursive());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRecursive()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.recursive, typedOther.recursive);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_deleteById_args(");
boolean first = true;
sb.append("fileId:");
sb.append(this.fileId);
first = false;
if (!first) sb.append(", ");
sb.append("recursive:");
sb.append(this.recursive);
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_deleteById_argsStandardSchemeFactory implements SchemeFactory {
public user_deleteById_argsStandardScheme getScheme() {
return new user_deleteById_argsStandardScheme();
}
}
private static class user_deleteById_argsStandardScheme extends StandardScheme<user_deleteById_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_deleteById_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // FILE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // RECURSIVE
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.recursive = iprot.readBool();
struct.setRecursiveIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_deleteById_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(FILE_ID_FIELD_DESC);
oprot.writeI32(struct.fileId);
oprot.writeFieldEnd();
oprot.writeFieldBegin(RECURSIVE_FIELD_DESC);
oprot.writeBool(struct.recursive);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_deleteById_argsTupleSchemeFactory implements SchemeFactory {
public user_deleteById_argsTupleScheme getScheme() {
return new user_deleteById_argsTupleScheme();
}
}
private static class user_deleteById_argsTupleScheme extends TupleScheme<user_deleteById_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_deleteById_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetFileId()) {
optionals.set(0);
}
if (struct.isSetRecursive()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetFileId()) {
oprot.writeI32(struct.fileId);
}
if (struct.isSetRecursive()) {
oprot.writeBool(struct.recursive);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_deleteById_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
}
if (incoming.get(1)) {
struct.recursive = iprot.readBool();
struct.setRecursiveIsSet(true);
}
}
}
}
public static class user_deleteById_result implements org.apache.thrift.TBase<user_deleteById_result, user_deleteById_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_deleteById_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_deleteById_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_deleteById_resultTupleSchemeFactory());
}
public boolean success; // required
public TachyonException e; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E((short)1, "e");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E
return E;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_deleteById_result.class, metaDataMap);
}
public user_deleteById_result() {
}
public user_deleteById_result(
boolean success,
TachyonException e)
{
this();
this.success = success;
setSuccessIsSet(true);
this.e = e;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_deleteById_result(user_deleteById_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
if (other.isSetE()) {
this.e = new TachyonException(other.e);
}
}
public user_deleteById_result deepCopy() {
return new user_deleteById_result(this);
}
@Override
public void clear() {
setSuccessIsSet(false);
this.success = false;
this.e = null;
}
public boolean isSuccess() {
return this.success;
}
public user_deleteById_result setSuccess(boolean success) {
this.success = success;
setSuccessIsSet(true);
return this;
}
public void unsetSuccess() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public TachyonException getE() {
return this.e;
}
public user_deleteById_result setE(TachyonException e) {
this.e = e;
return this;
}
public void unsetE() {
this.e = null;
}
/** Returns true if field e is set (has been assigned a value) and false otherwise */
public boolean isSetE() {
return this.e != null;
}
public void setEIsSet(boolean value) {
if (!value) {
this.e = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Boolean)value);
}
break;
case E:
if (value == null) {
unsetE();
} else {
setE((TachyonException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return Boolean.valueOf(isSuccess());
case E:
return getE();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E:
return isSetE();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_deleteById_result)
return this.equals((user_deleteById_result)that);
return false;
}
public boolean equals(user_deleteById_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_e = true && this.isSetE();
boolean that_present_e = true && that.isSetE();
if (this_present_e || that_present_e) {
if (!(this_present_e && that_present_e))
return false;
if (!this.e.equals(that.e))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_deleteById_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_deleteById_result typedOther = (user_deleteById_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetE()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_deleteById_result(");
boolean first = true;
sb.append("success:");
sb.append(this.success);
first = false;
if (!first) sb.append(", ");
sb.append("e:");
if (this.e == null) {
sb.append("null");
} else {
sb.append(this.e);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_deleteById_resultStandardSchemeFactory implements SchemeFactory {
public user_deleteById_resultStandardScheme getScheme() {
return new user_deleteById_resultStandardScheme();
}
}
private static class user_deleteById_resultStandardScheme extends StandardScheme<user_deleteById_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_deleteById_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.success = iprot.readBool();
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.e = new TachyonException();
struct.e.read(iprot);
struct.setEIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_deleteById_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.isSetSuccess()) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeBool(struct.success);
oprot.writeFieldEnd();
}
if (struct.e != null) {
oprot.writeFieldBegin(E_FIELD_DESC);
struct.e.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_deleteById_resultTupleSchemeFactory implements SchemeFactory {
public user_deleteById_resultTupleScheme getScheme() {
return new user_deleteById_resultTupleScheme();
}
}
private static class user_deleteById_resultTupleScheme extends TupleScheme<user_deleteById_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_deleteById_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetE()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetSuccess()) {
oprot.writeBool(struct.success);
}
if (struct.isSetE()) {
struct.e.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_deleteById_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.success = iprot.readBool();
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.e = new TachyonException();
struct.e.read(iprot);
struct.setEIsSet(true);
}
}
}
}
public static class user_deleteByPath_args implements org.apache.thrift.TBase<user_deleteByPath_args, user_deleteByPath_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_deleteByPath_args");
private static final org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField RECURSIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("recursive", org.apache.thrift.protocol.TType.BOOL, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_deleteByPath_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_deleteByPath_argsTupleSchemeFactory());
}
public String path; // required
public boolean recursive; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
PATH((short)1, "path"),
RECURSIVE((short)2, "recursive");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // PATH
return PATH;
case 2: // RECURSIVE
return RECURSIVE;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __RECURSIVE_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.RECURSIVE, new org.apache.thrift.meta_data.FieldMetaData("recursive", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_deleteByPath_args.class, metaDataMap);
}
public user_deleteByPath_args() {
}
public user_deleteByPath_args(
String path,
boolean recursive)
{
this();
this.path = path;
this.recursive = recursive;
setRecursiveIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_deleteByPath_args(user_deleteByPath_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetPath()) {
this.path = other.path;
}
this.recursive = other.recursive;
}
public user_deleteByPath_args deepCopy() {
return new user_deleteByPath_args(this);
}
@Override
public void clear() {
this.path = null;
setRecursiveIsSet(false);
this.recursive = false;
}
public String getPath() {
return this.path;
}
public user_deleteByPath_args setPath(String path) {
this.path = path;
return this;
}
public void unsetPath() {
this.path = null;
}
/** Returns true if field path is set (has been assigned a value) and false otherwise */
public boolean isSetPath() {
return this.path != null;
}
public void setPathIsSet(boolean value) {
if (!value) {
this.path = null;
}
}
public boolean isRecursive() {
return this.recursive;
}
public user_deleteByPath_args setRecursive(boolean recursive) {
this.recursive = recursive;
setRecursiveIsSet(true);
return this;
}
public void unsetRecursive() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECURSIVE_ISSET_ID);
}
/** Returns true if field recursive is set (has been assigned a value) and false otherwise */
public boolean isSetRecursive() {
return EncodingUtils.testBit(__isset_bitfield, __RECURSIVE_ISSET_ID);
}
public void setRecursiveIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECURSIVE_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case PATH:
if (value == null) {
unsetPath();
} else {
setPath((String)value);
}
break;
case RECURSIVE:
if (value == null) {
unsetRecursive();
} else {
setRecursive((Boolean)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case PATH:
return getPath();
case RECURSIVE:
return Boolean.valueOf(isRecursive());
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case PATH:
return isSetPath();
case RECURSIVE:
return isSetRecursive();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_deleteByPath_args)
return this.equals((user_deleteByPath_args)that);
return false;
}
public boolean equals(user_deleteByPath_args that) {
if (that == null)
return false;
boolean this_present_path = true && this.isSetPath();
boolean that_present_path = true && that.isSetPath();
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;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_deleteByPath_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_deleteByPath_args typedOther = (user_deleteByPath_args)other;
lastComparison = Boolean.valueOf(isSetPath()).compareTo(typedOther.isSetPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, typedOther.path);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetRecursive()).compareTo(typedOther.isSetRecursive());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRecursive()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.recursive, typedOther.recursive);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_deleteByPath_args(");
boolean first = true;
sb.append("path:");
if (this.path == null) {
sb.append("null");
} else {
sb.append(this.path);
}
first = false;
if (!first) sb.append(", ");
sb.append("recursive:");
sb.append(this.recursive);
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_deleteByPath_argsStandardSchemeFactory implements SchemeFactory {
public user_deleteByPath_argsStandardScheme getScheme() {
return new user_deleteByPath_argsStandardScheme();
}
}
private static class user_deleteByPath_argsStandardScheme extends StandardScheme<user_deleteByPath_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_deleteByPath_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // RECURSIVE
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.recursive = iprot.readBool();
struct.setRecursiveIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_deleteByPath_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.path != null) {
oprot.writeFieldBegin(PATH_FIELD_DESC);
oprot.writeString(struct.path);
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(RECURSIVE_FIELD_DESC);
oprot.writeBool(struct.recursive);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_deleteByPath_argsTupleSchemeFactory implements SchemeFactory {
public user_deleteByPath_argsTupleScheme getScheme() {
return new user_deleteByPath_argsTupleScheme();
}
}
private static class user_deleteByPath_argsTupleScheme extends TupleScheme<user_deleteByPath_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_deleteByPath_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetPath()) {
optionals.set(0);
}
if (struct.isSetRecursive()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetPath()) {
oprot.writeString(struct.path);
}
if (struct.isSetRecursive()) {
oprot.writeBool(struct.recursive);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_deleteByPath_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
}
if (incoming.get(1)) {
struct.recursive = iprot.readBool();
struct.setRecursiveIsSet(true);
}
}
}
}
public static class user_deleteByPath_result implements org.apache.thrift.TBase<user_deleteByPath_result, user_deleteByPath_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_deleteByPath_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_deleteByPath_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_deleteByPath_resultTupleSchemeFactory());
}
public boolean success; // required
public TachyonException e; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E((short)1, "e");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E
return E;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_deleteByPath_result.class, metaDataMap);
}
public user_deleteByPath_result() {
}
public user_deleteByPath_result(
boolean success,
TachyonException e)
{
this();
this.success = success;
setSuccessIsSet(true);
this.e = e;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_deleteByPath_result(user_deleteByPath_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
if (other.isSetE()) {
this.e = new TachyonException(other.e);
}
}
public user_deleteByPath_result deepCopy() {
return new user_deleteByPath_result(this);
}
@Override
public void clear() {
setSuccessIsSet(false);
this.success = false;
this.e = null;
}
public boolean isSuccess() {
return this.success;
}
public user_deleteByPath_result setSuccess(boolean success) {
this.success = success;
setSuccessIsSet(true);
return this;
}
public void unsetSuccess() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public TachyonException getE() {
return this.e;
}
public user_deleteByPath_result setE(TachyonException e) {
this.e = e;
return this;
}
public void unsetE() {
this.e = null;
}
/** Returns true if field e is set (has been assigned a value) and false otherwise */
public boolean isSetE() {
return this.e != null;
}
public void setEIsSet(boolean value) {
if (!value) {
this.e = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Boolean)value);
}
break;
case E:
if (value == null) {
unsetE();
} else {
setE((TachyonException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return Boolean.valueOf(isSuccess());
case E:
return getE();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E:
return isSetE();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_deleteByPath_result)
return this.equals((user_deleteByPath_result)that);
return false;
}
public boolean equals(user_deleteByPath_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_e = true && this.isSetE();
boolean that_present_e = true && that.isSetE();
if (this_present_e || that_present_e) {
if (!(this_present_e && that_present_e))
return false;
if (!this.e.equals(that.e))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_deleteByPath_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_deleteByPath_result typedOther = (user_deleteByPath_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetE()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_deleteByPath_result(");
boolean first = true;
sb.append("success:");
sb.append(this.success);
first = false;
if (!first) sb.append(", ");
sb.append("e:");
if (this.e == null) {
sb.append("null");
} else {
sb.append(this.e);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_deleteByPath_resultStandardSchemeFactory implements SchemeFactory {
public user_deleteByPath_resultStandardScheme getScheme() {
return new user_deleteByPath_resultStandardScheme();
}
}
private static class user_deleteByPath_resultStandardScheme extends StandardScheme<user_deleteByPath_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_deleteByPath_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.success = iprot.readBool();
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.e = new TachyonException();
struct.e.read(iprot);
struct.setEIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_deleteByPath_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.isSetSuccess()) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeBool(struct.success);
oprot.writeFieldEnd();
}
if (struct.e != null) {
oprot.writeFieldBegin(E_FIELD_DESC);
struct.e.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_deleteByPath_resultTupleSchemeFactory implements SchemeFactory {
public user_deleteByPath_resultTupleScheme getScheme() {
return new user_deleteByPath_resultTupleScheme();
}
}
private static class user_deleteByPath_resultTupleScheme extends TupleScheme<user_deleteByPath_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_deleteByPath_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetE()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetSuccess()) {
oprot.writeBool(struct.success);
}
if (struct.isSetE()) {
struct.e.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_deleteByPath_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.success = iprot.readBool();
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.e = new TachyonException();
struct.e.read(iprot);
struct.setEIsSet(true);
}
}
}
}
public static class user_outOfMemoryForPinFile_args implements org.apache.thrift.TBase<user_outOfMemoryForPinFile_args, user_outOfMemoryForPinFile_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_outOfMemoryForPinFile_args");
private static final org.apache.thrift.protocol.TField FILE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fileId", org.apache.thrift.protocol.TType.I32, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_outOfMemoryForPinFile_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_outOfMemoryForPinFile_argsTupleSchemeFactory());
}
public int fileId; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
FILE_ID((short)1, "fileId");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // FILE_ID
return FILE_ID;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __FILEID_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.FILE_ID, new org.apache.thrift.meta_data.FieldMetaData("fileId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_outOfMemoryForPinFile_args.class, metaDataMap);
}
public user_outOfMemoryForPinFile_args() {
}
public user_outOfMemoryForPinFile_args(
int fileId)
{
this();
this.fileId = fileId;
setFileIdIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_outOfMemoryForPinFile_args(user_outOfMemoryForPinFile_args other) {
__isset_bitfield = other.__isset_bitfield;
this.fileId = other.fileId;
}
public user_outOfMemoryForPinFile_args deepCopy() {
return new user_outOfMemoryForPinFile_args(this);
}
@Override
public void clear() {
setFileIdIsSet(false);
this.fileId = 0;
}
public int getFileId() {
return this.fileId;
}
public user_outOfMemoryForPinFile_args setFileId(int fileId) {
this.fileId = fileId;
setFileIdIsSet(true);
return this;
}
public void unsetFileId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILEID_ISSET_ID);
}
/** Returns true if field fileId is set (has been assigned a value) and false otherwise */
public boolean isSetFileId() {
return EncodingUtils.testBit(__isset_bitfield, __FILEID_ISSET_ID);
}
public void setFileIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILEID_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case FILE_ID:
if (value == null) {
unsetFileId();
} else {
setFileId((Integer)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case FILE_ID:
return Integer.valueOf(getFileId());
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case FILE_ID:
return isSetFileId();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_outOfMemoryForPinFile_args)
return this.equals((user_outOfMemoryForPinFile_args)that);
return false;
}
public boolean equals(user_outOfMemoryForPinFile_args that) {
if (that == null)
return false;
boolean this_present_fileId = true;
boolean that_present_fileId = true;
if (this_present_fileId || that_present_fileId) {
if (!(this_present_fileId && that_present_fileId))
return false;
if (this.fileId != that.fileId)
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_outOfMemoryForPinFile_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_outOfMemoryForPinFile_args typedOther = (user_outOfMemoryForPinFile_args)other;
lastComparison = Boolean.valueOf(isSetFileId()).compareTo(typedOther.isSetFileId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFileId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileId, typedOther.fileId);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_outOfMemoryForPinFile_args(");
boolean first = true;
sb.append("fileId:");
sb.append(this.fileId);
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_outOfMemoryForPinFile_argsStandardSchemeFactory implements SchemeFactory {
public user_outOfMemoryForPinFile_argsStandardScheme getScheme() {
return new user_outOfMemoryForPinFile_argsStandardScheme();
}
}
private static class user_outOfMemoryForPinFile_argsStandardScheme extends StandardScheme<user_outOfMemoryForPinFile_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_outOfMemoryForPinFile_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // FILE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_outOfMemoryForPinFile_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(FILE_ID_FIELD_DESC);
oprot.writeI32(struct.fileId);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_outOfMemoryForPinFile_argsTupleSchemeFactory implements SchemeFactory {
public user_outOfMemoryForPinFile_argsTupleScheme getScheme() {
return new user_outOfMemoryForPinFile_argsTupleScheme();
}
}
private static class user_outOfMemoryForPinFile_argsTupleScheme extends TupleScheme<user_outOfMemoryForPinFile_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_outOfMemoryForPinFile_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetFileId()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetFileId()) {
oprot.writeI32(struct.fileId);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_outOfMemoryForPinFile_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
}
}
}
}
public static class user_outOfMemoryForPinFile_result implements org.apache.thrift.TBase<user_outOfMemoryForPinFile_result, user_outOfMemoryForPinFile_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_outOfMemoryForPinFile_result");
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_outOfMemoryForPinFile_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_outOfMemoryForPinFile_resultTupleSchemeFactory());
}
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
;
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_outOfMemoryForPinFile_result.class, metaDataMap);
}
public user_outOfMemoryForPinFile_result() {
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_outOfMemoryForPinFile_result(user_outOfMemoryForPinFile_result other) {
}
public user_outOfMemoryForPinFile_result deepCopy() {
return new user_outOfMemoryForPinFile_result(this);
}
@Override
public void clear() {
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_outOfMemoryForPinFile_result)
return this.equals((user_outOfMemoryForPinFile_result)that);
return false;
}
public boolean equals(user_outOfMemoryForPinFile_result that) {
if (that == null)
return false;
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_outOfMemoryForPinFile_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_outOfMemoryForPinFile_result typedOther = (user_outOfMemoryForPinFile_result)other;
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_outOfMemoryForPinFile_result(");
boolean first = true;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_outOfMemoryForPinFile_resultStandardSchemeFactory implements SchemeFactory {
public user_outOfMemoryForPinFile_resultStandardScheme getScheme() {
return new user_outOfMemoryForPinFile_resultStandardScheme();
}
}
private static class user_outOfMemoryForPinFile_resultStandardScheme extends StandardScheme<user_outOfMemoryForPinFile_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_outOfMemoryForPinFile_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_outOfMemoryForPinFile_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_outOfMemoryForPinFile_resultTupleSchemeFactory implements SchemeFactory {
public user_outOfMemoryForPinFile_resultTupleScheme getScheme() {
return new user_outOfMemoryForPinFile_resultTupleScheme();
}
}
private static class user_outOfMemoryForPinFile_resultTupleScheme extends TupleScheme<user_outOfMemoryForPinFile_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_outOfMemoryForPinFile_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_outOfMemoryForPinFile_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
}
}
}
public static class user_rename_args implements org.apache.thrift.TBase<user_rename_args, user_rename_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_rename_args");
private static final org.apache.thrift.protocol.TField SRC_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("srcPath", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField DST_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("dstPath", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_rename_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_rename_argsTupleSchemeFactory());
}
public String srcPath; // required
public String dstPath; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SRC_PATH((short)1, "srcPath"),
DST_PATH((short)2, "dstPath");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // SRC_PATH
return SRC_PATH;
case 2: // DST_PATH
return DST_PATH;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SRC_PATH, new org.apache.thrift.meta_data.FieldMetaData("srcPath", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.DST_PATH, new org.apache.thrift.meta_data.FieldMetaData("dstPath", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_rename_args.class, metaDataMap);
}
public user_rename_args() {
}
public user_rename_args(
String srcPath,
String dstPath)
{
this();
this.srcPath = srcPath;
this.dstPath = dstPath;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_rename_args(user_rename_args other) {
if (other.isSetSrcPath()) {
this.srcPath = other.srcPath;
}
if (other.isSetDstPath()) {
this.dstPath = other.dstPath;
}
}
public user_rename_args deepCopy() {
return new user_rename_args(this);
}
@Override
public void clear() {
this.srcPath = null;
this.dstPath = null;
}
public String getSrcPath() {
return this.srcPath;
}
public user_rename_args setSrcPath(String srcPath) {
this.srcPath = srcPath;
return this;
}
public void unsetSrcPath() {
this.srcPath = null;
}
/** Returns true if field srcPath is set (has been assigned a value) and false otherwise */
public boolean isSetSrcPath() {
return this.srcPath != null;
}
public void setSrcPathIsSet(boolean value) {
if (!value) {
this.srcPath = null;
}
}
public String getDstPath() {
return this.dstPath;
}
public user_rename_args setDstPath(String dstPath) {
this.dstPath = dstPath;
return this;
}
public void unsetDstPath() {
this.dstPath = null;
}
/** Returns true if field dstPath is set (has been assigned a value) and false otherwise */
public boolean isSetDstPath() {
return this.dstPath != null;
}
public void setDstPathIsSet(boolean value) {
if (!value) {
this.dstPath = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SRC_PATH:
if (value == null) {
unsetSrcPath();
} else {
setSrcPath((String)value);
}
break;
case DST_PATH:
if (value == null) {
unsetDstPath();
} else {
setDstPath((String)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SRC_PATH:
return getSrcPath();
case DST_PATH:
return getDstPath();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SRC_PATH:
return isSetSrcPath();
case DST_PATH:
return isSetDstPath();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_rename_args)
return this.equals((user_rename_args)that);
return false;
}
public boolean equals(user_rename_args that) {
if (that == null)
return false;
boolean this_present_srcPath = true && this.isSetSrcPath();
boolean that_present_srcPath = true && that.isSetSrcPath();
if (this_present_srcPath || that_present_srcPath) {
if (!(this_present_srcPath && that_present_srcPath))
return false;
if (!this.srcPath.equals(that.srcPath))
return false;
}
boolean this_present_dstPath = true && this.isSetDstPath();
boolean that_present_dstPath = true && that.isSetDstPath();
if (this_present_dstPath || that_present_dstPath) {
if (!(this_present_dstPath && that_present_dstPath))
return false;
if (!this.dstPath.equals(that.dstPath))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_rename_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_rename_args typedOther = (user_rename_args)other;
lastComparison = Boolean.valueOf(isSetSrcPath()).compareTo(typedOther.isSetSrcPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSrcPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.srcPath, typedOther.srcPath);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetDstPath()).compareTo(typedOther.isSetDstPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetDstPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dstPath, typedOther.dstPath);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_rename_args(");
boolean first = true;
sb.append("srcPath:");
if (this.srcPath == null) {
sb.append("null");
} else {
sb.append(this.srcPath);
}
first = false;
if (!first) sb.append(", ");
sb.append("dstPath:");
if (this.dstPath == null) {
sb.append("null");
} else {
sb.append(this.dstPath);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_rename_argsStandardSchemeFactory implements SchemeFactory {
public user_rename_argsStandardScheme getScheme() {
return new user_rename_argsStandardScheme();
}
}
private static class user_rename_argsStandardScheme extends StandardScheme<user_rename_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_rename_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // SRC_PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.srcPath = iprot.readString();
struct.setSrcPathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // DST_PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.dstPath = iprot.readString();
struct.setDstPathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_rename_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.srcPath != null) {
oprot.writeFieldBegin(SRC_PATH_FIELD_DESC);
oprot.writeString(struct.srcPath);
oprot.writeFieldEnd();
}
if (struct.dstPath != null) {
oprot.writeFieldBegin(DST_PATH_FIELD_DESC);
oprot.writeString(struct.dstPath);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_rename_argsTupleSchemeFactory implements SchemeFactory {
public user_rename_argsTupleScheme getScheme() {
return new user_rename_argsTupleScheme();
}
}
private static class user_rename_argsTupleScheme extends TupleScheme<user_rename_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_rename_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSrcPath()) {
optionals.set(0);
}
if (struct.isSetDstPath()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetSrcPath()) {
oprot.writeString(struct.srcPath);
}
if (struct.isSetDstPath()) {
oprot.writeString(struct.dstPath);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_rename_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.srcPath = iprot.readString();
struct.setSrcPathIsSet(true);
}
if (incoming.get(1)) {
struct.dstPath = iprot.readString();
struct.setDstPathIsSet(true);
}
}
}
}
public static class user_rename_result implements org.apache.thrift.TBase<user_rename_result, user_rename_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_rename_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
private static final org.apache.thrift.protocol.TField E_A_FIELD_DESC = new org.apache.thrift.protocol.TField("eA", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField E_F_FIELD_DESC = new org.apache.thrift.protocol.TField("eF", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final org.apache.thrift.protocol.TField E_I_FIELD_DESC = new org.apache.thrift.protocol.TField("eI", org.apache.thrift.protocol.TType.STRUCT, (short)3);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_rename_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_rename_resultTupleSchemeFactory());
}
public boolean success; // required
public FileAlreadyExistException eA; // required
public FileDoesNotExistException eF; // required
public InvalidPathException eI; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E_A((short)1, "eA"),
E_F((short)2, "eF"),
E_I((short)3, "eI");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E_A
return E_A;
case 2: // E_F
return E_F;
case 3: // E_I
return E_I;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
tmpMap.put(_Fields.E_A, new org.apache.thrift.meta_data.FieldMetaData("eA", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_F, new org.apache.thrift.meta_data.FieldMetaData("eF", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_I, new org.apache.thrift.meta_data.FieldMetaData("eI", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_rename_result.class, metaDataMap);
}
public user_rename_result() {
}
public user_rename_result(
boolean success,
FileAlreadyExistException eA,
FileDoesNotExistException eF,
InvalidPathException eI)
{
this();
this.success = success;
setSuccessIsSet(true);
this.eA = eA;
this.eF = eF;
this.eI = eI;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_rename_result(user_rename_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
if (other.isSetEA()) {
this.eA = new FileAlreadyExistException(other.eA);
}
if (other.isSetEF()) {
this.eF = new FileDoesNotExistException(other.eF);
}
if (other.isSetEI()) {
this.eI = new InvalidPathException(other.eI);
}
}
public user_rename_result deepCopy() {
return new user_rename_result(this);
}
@Override
public void clear() {
setSuccessIsSet(false);
this.success = false;
this.eA = null;
this.eF = null;
this.eI = null;
}
public boolean isSuccess() {
return this.success;
}
public user_rename_result setSuccess(boolean success) {
this.success = success;
setSuccessIsSet(true);
return this;
}
public void unsetSuccess() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public FileAlreadyExistException getEA() {
return this.eA;
}
public user_rename_result setEA(FileAlreadyExistException eA) {
this.eA = eA;
return this;
}
public void unsetEA() {
this.eA = null;
}
/** Returns true if field eA is set (has been assigned a value) and false otherwise */
public boolean isSetEA() {
return this.eA != null;
}
public void setEAIsSet(boolean value) {
if (!value) {
this.eA = null;
}
}
public FileDoesNotExistException getEF() {
return this.eF;
}
public user_rename_result setEF(FileDoesNotExistException eF) {
this.eF = eF;
return this;
}
public void unsetEF() {
this.eF = null;
}
/** Returns true if field eF is set (has been assigned a value) and false otherwise */
public boolean isSetEF() {
return this.eF != null;
}
public void setEFIsSet(boolean value) {
if (!value) {
this.eF = null;
}
}
public InvalidPathException getEI() {
return this.eI;
}
public user_rename_result setEI(InvalidPathException eI) {
this.eI = eI;
return this;
}
public void unsetEI() {
this.eI = null;
}
/** Returns true if field eI is set (has been assigned a value) and false otherwise */
public boolean isSetEI() {
return this.eI != null;
}
public void setEIIsSet(boolean value) {
if (!value) {
this.eI = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Boolean)value);
}
break;
case E_A:
if (value == null) {
unsetEA();
} else {
setEA((FileAlreadyExistException)value);
}
break;
case E_F:
if (value == null) {
unsetEF();
} else {
setEF((FileDoesNotExistException)value);
}
break;
case E_I:
if (value == null) {
unsetEI();
} else {
setEI((InvalidPathException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return Boolean.valueOf(isSuccess());
case E_A:
return getEA();
case E_F:
return getEF();
case E_I:
return getEI();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E_A:
return isSetEA();
case E_F:
return isSetEF();
case E_I:
return isSetEI();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_rename_result)
return this.equals((user_rename_result)that);
return false;
}
public boolean equals(user_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_eA = true && this.isSetEA();
boolean that_present_eA = true && that.isSetEA();
if (this_present_eA || that_present_eA) {
if (!(this_present_eA && that_present_eA))
return false;
if (!this.eA.equals(that.eA))
return false;
}
boolean this_present_eF = true && this.isSetEF();
boolean that_present_eF = true && that.isSetEF();
if (this_present_eF || that_present_eF) {
if (!(this_present_eF && that_present_eF))
return false;
if (!this.eF.equals(that.eF))
return false;
}
boolean this_present_eI = true && this.isSetEI();
boolean that_present_eI = true && that.isSetEI();
if (this_present_eI || that_present_eI) {
if (!(this_present_eI && that_present_eI))
return false;
if (!this.eI.equals(that.eI))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_rename_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_rename_result typedOther = (user_rename_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEA()).compareTo(typedOther.isSetEA());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEA()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eA, typedOther.eA);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEF()).compareTo(typedOther.isSetEF());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEF()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eF, typedOther.eF);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEI()).compareTo(typedOther.isSetEI());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEI()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eI, typedOther.eI);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_rename_result(");
boolean first = true;
sb.append("success:");
sb.append(this.success);
first = false;
if (!first) sb.append(", ");
sb.append("eA:");
if (this.eA == null) {
sb.append("null");
} else {
sb.append(this.eA);
}
first = false;
if (!first) sb.append(", ");
sb.append("eF:");
if (this.eF == null) {
sb.append("null");
} else {
sb.append(this.eF);
}
first = false;
if (!first) sb.append(", ");
sb.append("eI:");
if (this.eI == null) {
sb.append("null");
} else {
sb.append(this.eI);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_rename_resultStandardSchemeFactory implements SchemeFactory {
public user_rename_resultStandardScheme getScheme() {
return new user_rename_resultStandardScheme();
}
}
private static class user_rename_resultStandardScheme extends StandardScheme<user_rename_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_rename_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.success = iprot.readBool();
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E_A
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eA = new FileAlreadyExistException();
struct.eA.read(iprot);
struct.setEAIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // E_F
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eF = new FileDoesNotExistException();
struct.eF.read(iprot);
struct.setEFIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // E_I
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_rename_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.isSetSuccess()) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeBool(struct.success);
oprot.writeFieldEnd();
}
if (struct.eA != null) {
oprot.writeFieldBegin(E_A_FIELD_DESC);
struct.eA.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eF != null) {
oprot.writeFieldBegin(E_F_FIELD_DESC);
struct.eF.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eI != null) {
oprot.writeFieldBegin(E_I_FIELD_DESC);
struct.eI.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_rename_resultTupleSchemeFactory implements SchemeFactory {
public user_rename_resultTupleScheme getScheme() {
return new user_rename_resultTupleScheme();
}
}
private static class user_rename_resultTupleScheme extends TupleScheme<user_rename_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_rename_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetEA()) {
optionals.set(1);
}
if (struct.isSetEF()) {
optionals.set(2);
}
if (struct.isSetEI()) {
optionals.set(3);
}
oprot.writeBitSet(optionals, 4);
if (struct.isSetSuccess()) {
oprot.writeBool(struct.success);
}
if (struct.isSetEA()) {
struct.eA.write(oprot);
}
if (struct.isSetEF()) {
struct.eF.write(oprot);
}
if (struct.isSetEI()) {
struct.eI.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_rename_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
struct.success = iprot.readBool();
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.eA = new FileAlreadyExistException();
struct.eA.read(iprot);
struct.setEAIsSet(true);
}
if (incoming.get(2)) {
struct.eF = new FileDoesNotExistException();
struct.eF.read(iprot);
struct.setEFIsSet(true);
}
if (incoming.get(3)) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
}
}
}
}
public static class user_renameTo_args implements org.apache.thrift.TBase<user_renameTo_args, user_renameTo_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_renameTo_args");
private static final org.apache.thrift.protocol.TField FILE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fileId", org.apache.thrift.protocol.TType.I32, (short)1);
private static final org.apache.thrift.protocol.TField DST_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("dstPath", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_renameTo_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_renameTo_argsTupleSchemeFactory());
}
public int fileId; // required
public String dstPath; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
FILE_ID((short)1, "fileId"),
DST_PATH((short)2, "dstPath");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // FILE_ID
return FILE_ID;
case 2: // DST_PATH
return DST_PATH;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __FILEID_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.FILE_ID, new org.apache.thrift.meta_data.FieldMetaData("fileId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.DST_PATH, new org.apache.thrift.meta_data.FieldMetaData("dstPath", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_renameTo_args.class, metaDataMap);
}
public user_renameTo_args() {
}
public user_renameTo_args(
int fileId,
String dstPath)
{
this();
this.fileId = fileId;
setFileIdIsSet(true);
this.dstPath = dstPath;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_renameTo_args(user_renameTo_args other) {
__isset_bitfield = other.__isset_bitfield;
this.fileId = other.fileId;
if (other.isSetDstPath()) {
this.dstPath = other.dstPath;
}
}
public user_renameTo_args deepCopy() {
return new user_renameTo_args(this);
}
@Override
public void clear() {
setFileIdIsSet(false);
this.fileId = 0;
this.dstPath = null;
}
public int getFileId() {
return this.fileId;
}
public user_renameTo_args setFileId(int fileId) {
this.fileId = fileId;
setFileIdIsSet(true);
return this;
}
public void unsetFileId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILEID_ISSET_ID);
}
/** Returns true if field fileId is set (has been assigned a value) and false otherwise */
public boolean isSetFileId() {
return EncodingUtils.testBit(__isset_bitfield, __FILEID_ISSET_ID);
}
public void setFileIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILEID_ISSET_ID, value);
}
public String getDstPath() {
return this.dstPath;
}
public user_renameTo_args setDstPath(String dstPath) {
this.dstPath = dstPath;
return this;
}
public void unsetDstPath() {
this.dstPath = null;
}
/** Returns true if field dstPath is set (has been assigned a value) and false otherwise */
public boolean isSetDstPath() {
return this.dstPath != null;
}
public void setDstPathIsSet(boolean value) {
if (!value) {
this.dstPath = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case FILE_ID:
if (value == null) {
unsetFileId();
} else {
setFileId((Integer)value);
}
break;
case DST_PATH:
if (value == null) {
unsetDstPath();
} else {
setDstPath((String)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case FILE_ID:
return Integer.valueOf(getFileId());
case DST_PATH:
return getDstPath();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case FILE_ID:
return isSetFileId();
case DST_PATH:
return isSetDstPath();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_renameTo_args)
return this.equals((user_renameTo_args)that);
return false;
}
public boolean equals(user_renameTo_args that) {
if (that == null)
return false;
boolean this_present_fileId = true;
boolean that_present_fileId = true;
if (this_present_fileId || that_present_fileId) {
if (!(this_present_fileId && that_present_fileId))
return false;
if (this.fileId != that.fileId)
return false;
}
boolean this_present_dstPath = true && this.isSetDstPath();
boolean that_present_dstPath = true && that.isSetDstPath();
if (this_present_dstPath || that_present_dstPath) {
if (!(this_present_dstPath && that_present_dstPath))
return false;
if (!this.dstPath.equals(that.dstPath))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_renameTo_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_renameTo_args typedOther = (user_renameTo_args)other;
lastComparison = Boolean.valueOf(isSetFileId()).compareTo(typedOther.isSetFileId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFileId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileId, typedOther.fileId);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetDstPath()).compareTo(typedOther.isSetDstPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetDstPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dstPath, typedOther.dstPath);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_renameTo_args(");
boolean first = true;
sb.append("fileId:");
sb.append(this.fileId);
first = false;
if (!first) sb.append(", ");
sb.append("dstPath:");
if (this.dstPath == null) {
sb.append("null");
} else {
sb.append(this.dstPath);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_renameTo_argsStandardSchemeFactory implements SchemeFactory {
public user_renameTo_argsStandardScheme getScheme() {
return new user_renameTo_argsStandardScheme();
}
}
private static class user_renameTo_argsStandardScheme extends StandardScheme<user_renameTo_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_renameTo_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // FILE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // DST_PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.dstPath = iprot.readString();
struct.setDstPathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_renameTo_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(FILE_ID_FIELD_DESC);
oprot.writeI32(struct.fileId);
oprot.writeFieldEnd();
if (struct.dstPath != null) {
oprot.writeFieldBegin(DST_PATH_FIELD_DESC);
oprot.writeString(struct.dstPath);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_renameTo_argsTupleSchemeFactory implements SchemeFactory {
public user_renameTo_argsTupleScheme getScheme() {
return new user_renameTo_argsTupleScheme();
}
}
private static class user_renameTo_argsTupleScheme extends TupleScheme<user_renameTo_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_renameTo_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetFileId()) {
optionals.set(0);
}
if (struct.isSetDstPath()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetFileId()) {
oprot.writeI32(struct.fileId);
}
if (struct.isSetDstPath()) {
oprot.writeString(struct.dstPath);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_renameTo_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
}
if (incoming.get(1)) {
struct.dstPath = iprot.readString();
struct.setDstPathIsSet(true);
}
}
}
}
public static class user_renameTo_result implements org.apache.thrift.TBase<user_renameTo_result, user_renameTo_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_renameTo_result");
private static final org.apache.thrift.protocol.TField E_A_FIELD_DESC = new org.apache.thrift.protocol.TField("eA", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField E_F_FIELD_DESC = new org.apache.thrift.protocol.TField("eF", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final org.apache.thrift.protocol.TField E_I_FIELD_DESC = new org.apache.thrift.protocol.TField("eI", org.apache.thrift.protocol.TType.STRUCT, (short)3);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_renameTo_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_renameTo_resultTupleSchemeFactory());
}
public FileAlreadyExistException eA; // required
public FileDoesNotExistException eF; // required
public InvalidPathException eI; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
E_A((short)1, "eA"),
E_F((short)2, "eF"),
E_I((short)3, "eI");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // E_A
return E_A;
case 2: // E_F
return E_F;
case 3: // E_I
return E_I;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.E_A, new org.apache.thrift.meta_data.FieldMetaData("eA", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_F, new org.apache.thrift.meta_data.FieldMetaData("eF", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_I, new org.apache.thrift.meta_data.FieldMetaData("eI", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_renameTo_result.class, metaDataMap);
}
public user_renameTo_result() {
}
public user_renameTo_result(
FileAlreadyExistException eA,
FileDoesNotExistException eF,
InvalidPathException eI)
{
this();
this.eA = eA;
this.eF = eF;
this.eI = eI;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_renameTo_result(user_renameTo_result other) {
if (other.isSetEA()) {
this.eA = new FileAlreadyExistException(other.eA);
}
if (other.isSetEF()) {
this.eF = new FileDoesNotExistException(other.eF);
}
if (other.isSetEI()) {
this.eI = new InvalidPathException(other.eI);
}
}
public user_renameTo_result deepCopy() {
return new user_renameTo_result(this);
}
@Override
public void clear() {
this.eA = null;
this.eF = null;
this.eI = null;
}
public FileAlreadyExistException getEA() {
return this.eA;
}
public user_renameTo_result setEA(FileAlreadyExistException eA) {
this.eA = eA;
return this;
}
public void unsetEA() {
this.eA = null;
}
/** Returns true if field eA is set (has been assigned a value) and false otherwise */
public boolean isSetEA() {
return this.eA != null;
}
public void setEAIsSet(boolean value) {
if (!value) {
this.eA = null;
}
}
public FileDoesNotExistException getEF() {
return this.eF;
}
public user_renameTo_result setEF(FileDoesNotExistException eF) {
this.eF = eF;
return this;
}
public void unsetEF() {
this.eF = null;
}
/** Returns true if field eF is set (has been assigned a value) and false otherwise */
public boolean isSetEF() {
return this.eF != null;
}
public void setEFIsSet(boolean value) {
if (!value) {
this.eF = null;
}
}
public InvalidPathException getEI() {
return this.eI;
}
public user_renameTo_result setEI(InvalidPathException eI) {
this.eI = eI;
return this;
}
public void unsetEI() {
this.eI = null;
}
/** Returns true if field eI is set (has been assigned a value) and false otherwise */
public boolean isSetEI() {
return this.eI != null;
}
public void setEIIsSet(boolean value) {
if (!value) {
this.eI = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case E_A:
if (value == null) {
unsetEA();
} else {
setEA((FileAlreadyExistException)value);
}
break;
case E_F:
if (value == null) {
unsetEF();
} else {
setEF((FileDoesNotExistException)value);
}
break;
case E_I:
if (value == null) {
unsetEI();
} else {
setEI((InvalidPathException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case E_A:
return getEA();
case E_F:
return getEF();
case E_I:
return getEI();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case E_A:
return isSetEA();
case E_F:
return isSetEF();
case E_I:
return isSetEI();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_renameTo_result)
return this.equals((user_renameTo_result)that);
return false;
}
public boolean equals(user_renameTo_result that) {
if (that == null)
return false;
boolean this_present_eA = true && this.isSetEA();
boolean that_present_eA = true && that.isSetEA();
if (this_present_eA || that_present_eA) {
if (!(this_present_eA && that_present_eA))
return false;
if (!this.eA.equals(that.eA))
return false;
}
boolean this_present_eF = true && this.isSetEF();
boolean that_present_eF = true && that.isSetEF();
if (this_present_eF || that_present_eF) {
if (!(this_present_eF && that_present_eF))
return false;
if (!this.eF.equals(that.eF))
return false;
}
boolean this_present_eI = true && this.isSetEI();
boolean that_present_eI = true && that.isSetEI();
if (this_present_eI || that_present_eI) {
if (!(this_present_eI && that_present_eI))
return false;
if (!this.eI.equals(that.eI))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_renameTo_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_renameTo_result typedOther = (user_renameTo_result)other;
lastComparison = Boolean.valueOf(isSetEA()).compareTo(typedOther.isSetEA());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEA()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eA, typedOther.eA);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEF()).compareTo(typedOther.isSetEF());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEF()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eF, typedOther.eF);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEI()).compareTo(typedOther.isSetEI());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEI()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eI, typedOther.eI);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_renameTo_result(");
boolean first = true;
sb.append("eA:");
if (this.eA == null) {
sb.append("null");
} else {
sb.append(this.eA);
}
first = false;
if (!first) sb.append(", ");
sb.append("eF:");
if (this.eF == null) {
sb.append("null");
} else {
sb.append(this.eF);
}
first = false;
if (!first) sb.append(", ");
sb.append("eI:");
if (this.eI == null) {
sb.append("null");
} else {
sb.append(this.eI);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_renameTo_resultStandardSchemeFactory implements SchemeFactory {
public user_renameTo_resultStandardScheme getScheme() {
return new user_renameTo_resultStandardScheme();
}
}
private static class user_renameTo_resultStandardScheme extends StandardScheme<user_renameTo_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_renameTo_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // E_A
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eA = new FileAlreadyExistException();
struct.eA.read(iprot);
struct.setEAIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // E_F
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eF = new FileDoesNotExistException();
struct.eF.read(iprot);
struct.setEFIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // E_I
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_renameTo_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.eA != null) {
oprot.writeFieldBegin(E_A_FIELD_DESC);
struct.eA.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eF != null) {
oprot.writeFieldBegin(E_F_FIELD_DESC);
struct.eF.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eI != null) {
oprot.writeFieldBegin(E_I_FIELD_DESC);
struct.eI.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_renameTo_resultTupleSchemeFactory implements SchemeFactory {
public user_renameTo_resultTupleScheme getScheme() {
return new user_renameTo_resultTupleScheme();
}
}
private static class user_renameTo_resultTupleScheme extends TupleScheme<user_renameTo_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_renameTo_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetEA()) {
optionals.set(0);
}
if (struct.isSetEF()) {
optionals.set(1);
}
if (struct.isSetEI()) {
optionals.set(2);
}
oprot.writeBitSet(optionals, 3);
if (struct.isSetEA()) {
struct.eA.write(oprot);
}
if (struct.isSetEF()) {
struct.eF.write(oprot);
}
if (struct.isSetEI()) {
struct.eI.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_renameTo_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
struct.eA = new FileAlreadyExistException();
struct.eA.read(iprot);
struct.setEAIsSet(true);
}
if (incoming.get(1)) {
struct.eF = new FileDoesNotExistException();
struct.eF.read(iprot);
struct.setEFIsSet(true);
}
if (incoming.get(2)) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
}
}
}
}
public static class user_setPinned_args implements org.apache.thrift.TBase<user_setPinned_args, user_setPinned_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_setPinned_args");
private static final org.apache.thrift.protocol.TField FILE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fileId", org.apache.thrift.protocol.TType.I32, (short)1);
private static final org.apache.thrift.protocol.TField PINNED_FIELD_DESC = new org.apache.thrift.protocol.TField("pinned", org.apache.thrift.protocol.TType.BOOL, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_setPinned_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_setPinned_argsTupleSchemeFactory());
}
public int fileId; // required
public boolean pinned; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
FILE_ID((short)1, "fileId"),
PINNED((short)2, "pinned");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // FILE_ID
return FILE_ID;
case 2: // PINNED
return PINNED;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __FILEID_ISSET_ID = 0;
private static final int __PINNED_ISSET_ID = 1;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.FILE_ID, new org.apache.thrift.meta_data.FieldMetaData("fileId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.PINNED, new org.apache.thrift.meta_data.FieldMetaData("pinned", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_setPinned_args.class, metaDataMap);
}
public user_setPinned_args() {
}
public user_setPinned_args(
int fileId,
boolean pinned)
{
this();
this.fileId = fileId;
setFileIdIsSet(true);
this.pinned = pinned;
setPinnedIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_setPinned_args(user_setPinned_args other) {
__isset_bitfield = other.__isset_bitfield;
this.fileId = other.fileId;
this.pinned = other.pinned;
}
public user_setPinned_args deepCopy() {
return new user_setPinned_args(this);
}
@Override
public void clear() {
setFileIdIsSet(false);
this.fileId = 0;
setPinnedIsSet(false);
this.pinned = false;
}
public int getFileId() {
return this.fileId;
}
public user_setPinned_args setFileId(int fileId) {
this.fileId = fileId;
setFileIdIsSet(true);
return this;
}
public void unsetFileId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILEID_ISSET_ID);
}
/** Returns true if field fileId is set (has been assigned a value) and false otherwise */
public boolean isSetFileId() {
return EncodingUtils.testBit(__isset_bitfield, __FILEID_ISSET_ID);
}
public void setFileIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILEID_ISSET_ID, value);
}
public boolean isPinned() {
return this.pinned;
}
public user_setPinned_args setPinned(boolean pinned) {
this.pinned = pinned;
setPinnedIsSet(true);
return this;
}
public void unsetPinned() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PINNED_ISSET_ID);
}
/** Returns true if field pinned is set (has been assigned a value) and false otherwise */
public boolean isSetPinned() {
return EncodingUtils.testBit(__isset_bitfield, __PINNED_ISSET_ID);
}
public void setPinnedIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PINNED_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case FILE_ID:
if (value == null) {
unsetFileId();
} else {
setFileId((Integer)value);
}
break;
case PINNED:
if (value == null) {
unsetPinned();
} else {
setPinned((Boolean)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case FILE_ID:
return Integer.valueOf(getFileId());
case PINNED:
return Boolean.valueOf(isPinned());
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case FILE_ID:
return isSetFileId();
case PINNED:
return isSetPinned();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_setPinned_args)
return this.equals((user_setPinned_args)that);
return false;
}
public boolean equals(user_setPinned_args that) {
if (that == null)
return false;
boolean this_present_fileId = true;
boolean that_present_fileId = true;
if (this_present_fileId || that_present_fileId) {
if (!(this_present_fileId && that_present_fileId))
return false;
if (this.fileId != that.fileId)
return false;
}
boolean this_present_pinned = true;
boolean that_present_pinned = true;
if (this_present_pinned || that_present_pinned) {
if (!(this_present_pinned && that_present_pinned))
return false;
if (this.pinned != that.pinned)
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_setPinned_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_setPinned_args typedOther = (user_setPinned_args)other;
lastComparison = Boolean.valueOf(isSetFileId()).compareTo(typedOther.isSetFileId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFileId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileId, typedOther.fileId);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetPinned()).compareTo(typedOther.isSetPinned());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPinned()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinned, typedOther.pinned);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_setPinned_args(");
boolean first = true;
sb.append("fileId:");
sb.append(this.fileId);
first = false;
if (!first) sb.append(", ");
sb.append("pinned:");
sb.append(this.pinned);
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_setPinned_argsStandardSchemeFactory implements SchemeFactory {
public user_setPinned_argsStandardScheme getScheme() {
return new user_setPinned_argsStandardScheme();
}
}
private static class user_setPinned_argsStandardScheme extends StandardScheme<user_setPinned_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_setPinned_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // FILE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // PINNED
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.pinned = iprot.readBool();
struct.setPinnedIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_setPinned_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(FILE_ID_FIELD_DESC);
oprot.writeI32(struct.fileId);
oprot.writeFieldEnd();
oprot.writeFieldBegin(PINNED_FIELD_DESC);
oprot.writeBool(struct.pinned);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_setPinned_argsTupleSchemeFactory implements SchemeFactory {
public user_setPinned_argsTupleScheme getScheme() {
return new user_setPinned_argsTupleScheme();
}
}
private static class user_setPinned_argsTupleScheme extends TupleScheme<user_setPinned_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_setPinned_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetFileId()) {
optionals.set(0);
}
if (struct.isSetPinned()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetFileId()) {
oprot.writeI32(struct.fileId);
}
if (struct.isSetPinned()) {
oprot.writeBool(struct.pinned);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_setPinned_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.fileId = iprot.readI32();
struct.setFileIdIsSet(true);
}
if (incoming.get(1)) {
struct.pinned = iprot.readBool();
struct.setPinnedIsSet(true);
}
}
}
}
public static class user_setPinned_result implements org.apache.thrift.TBase<user_setPinned_result, user_setPinned_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_setPinned_result");
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_setPinned_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_setPinned_resultTupleSchemeFactory());
}
public FileDoesNotExistException e; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
E((short)1, "e");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // E
return E;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_setPinned_result.class, metaDataMap);
}
public user_setPinned_result() {
}
public user_setPinned_result(
FileDoesNotExistException e)
{
this();
this.e = e;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_setPinned_result(user_setPinned_result other) {
if (other.isSetE()) {
this.e = new FileDoesNotExistException(other.e);
}
}
public user_setPinned_result deepCopy() {
return new user_setPinned_result(this);
}
@Override
public void clear() {
this.e = null;
}
public FileDoesNotExistException getE() {
return this.e;
}
public user_setPinned_result setE(FileDoesNotExistException e) {
this.e = e;
return this;
}
public void unsetE() {
this.e = null;
}
/** Returns true if field e is set (has been assigned a value) and false otherwise */
public boolean isSetE() {
return this.e != null;
}
public void setEIsSet(boolean value) {
if (!value) {
this.e = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case E:
if (value == null) {
unsetE();
} else {
setE((FileDoesNotExistException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case E:
return getE();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case E:
return isSetE();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_setPinned_result)
return this.equals((user_setPinned_result)that);
return false;
}
public boolean equals(user_setPinned_result that) {
if (that == null)
return false;
boolean this_present_e = true && this.isSetE();
boolean that_present_e = true && that.isSetE();
if (this_present_e || that_present_e) {
if (!(this_present_e && that_present_e))
return false;
if (!this.e.equals(that.e))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_setPinned_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_setPinned_result typedOther = (user_setPinned_result)other;
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetE()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_setPinned_result(");
boolean first = true;
sb.append("e:");
if (this.e == null) {
sb.append("null");
} else {
sb.append(this.e);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_setPinned_resultStandardSchemeFactory implements SchemeFactory {
public user_setPinned_resultStandardScheme getScheme() {
return new user_setPinned_resultStandardScheme();
}
}
private static class user_setPinned_resultStandardScheme extends StandardScheme<user_setPinned_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_setPinned_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // E
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.e = new FileDoesNotExistException();
struct.e.read(iprot);
struct.setEIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_setPinned_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.e != null) {
oprot.writeFieldBegin(E_FIELD_DESC);
struct.e.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_setPinned_resultTupleSchemeFactory implements SchemeFactory {
public user_setPinned_resultTupleScheme getScheme() {
return new user_setPinned_resultTupleScheme();
}
}
private static class user_setPinned_resultTupleScheme extends TupleScheme<user_setPinned_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_setPinned_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetE()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetE()) {
struct.e.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_setPinned_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.e = new FileDoesNotExistException();
struct.e.read(iprot);
struct.setEIsSet(true);
}
}
}
}
public static class user_mkdir_args implements org.apache.thrift.TBase<user_mkdir_args, user_mkdir_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_mkdir_args");
private static final org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_mkdir_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_mkdir_argsTupleSchemeFactory());
}
public String path; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
PATH((short)1, "path");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // PATH
return PATH;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_mkdir_args.class, metaDataMap);
}
public user_mkdir_args() {
}
public user_mkdir_args(
String path)
{
this();
this.path = path;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_mkdir_args(user_mkdir_args other) {
if (other.isSetPath()) {
this.path = other.path;
}
}
public user_mkdir_args deepCopy() {
return new user_mkdir_args(this);
}
@Override
public void clear() {
this.path = null;
}
public String getPath() {
return this.path;
}
public user_mkdir_args setPath(String path) {
this.path = path;
return this;
}
public void unsetPath() {
this.path = null;
}
/** Returns true if field path is set (has been assigned a value) and false otherwise */
public boolean isSetPath() {
return this.path != null;
}
public void setPathIsSet(boolean value) {
if (!value) {
this.path = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case PATH:
if (value == null) {
unsetPath();
} else {
setPath((String)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case PATH:
return getPath();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case PATH:
return isSetPath();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_mkdir_args)
return this.equals((user_mkdir_args)that);
return false;
}
public boolean equals(user_mkdir_args that) {
if (that == null)
return false;
boolean this_present_path = true && this.isSetPath();
boolean that_present_path = true && that.isSetPath();
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;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_mkdir_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_mkdir_args typedOther = (user_mkdir_args)other;
lastComparison = Boolean.valueOf(isSetPath()).compareTo(typedOther.isSetPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, typedOther.path);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_mkdir_args(");
boolean first = true;
sb.append("path:");
if (this.path == null) {
sb.append("null");
} else {
sb.append(this.path);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_mkdir_argsStandardSchemeFactory implements SchemeFactory {
public user_mkdir_argsStandardScheme getScheme() {
return new user_mkdir_argsStandardScheme();
}
}
private static class user_mkdir_argsStandardScheme extends StandardScheme<user_mkdir_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_mkdir_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_mkdir_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.path != null) {
oprot.writeFieldBegin(PATH_FIELD_DESC);
oprot.writeString(struct.path);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_mkdir_argsTupleSchemeFactory implements SchemeFactory {
public user_mkdir_argsTupleScheme getScheme() {
return new user_mkdir_argsTupleScheme();
}
}
private static class user_mkdir_argsTupleScheme extends TupleScheme<user_mkdir_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_mkdir_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetPath()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetPath()) {
oprot.writeString(struct.path);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_mkdir_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
}
}
}
}
public static class user_mkdir_result implements org.apache.thrift.TBase<user_mkdir_result, user_mkdir_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_mkdir_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
private static final org.apache.thrift.protocol.TField E_R_FIELD_DESC = new org.apache.thrift.protocol.TField("eR", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField E_I_FIELD_DESC = new org.apache.thrift.protocol.TField("eI", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final org.apache.thrift.protocol.TField E_T_FIELD_DESC = new org.apache.thrift.protocol.TField("eT", org.apache.thrift.protocol.TType.STRUCT, (short)3);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_mkdir_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_mkdir_resultTupleSchemeFactory());
}
public boolean success; // required
public FileAlreadyExistException eR; // required
public InvalidPathException eI; // required
public TachyonException eT; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E_R((short)1, "eR"),
E_I((short)2, "eI"),
E_T((short)3, "eT");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E_R
return E_R;
case 2: // E_I
return E_I;
case 3: // E_T
return E_T;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
tmpMap.put(_Fields.E_R, new org.apache.thrift.meta_data.FieldMetaData("eR", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_I, new org.apache.thrift.meta_data.FieldMetaData("eI", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_T, new org.apache.thrift.meta_data.FieldMetaData("eT", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_mkdir_result.class, metaDataMap);
}
public user_mkdir_result() {
}
public user_mkdir_result(
boolean success,
FileAlreadyExistException eR,
InvalidPathException eI,
TachyonException eT)
{
this();
this.success = success;
setSuccessIsSet(true);
this.eR = eR;
this.eI = eI;
this.eT = eT;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_mkdir_result(user_mkdir_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
if (other.isSetER()) {
this.eR = new FileAlreadyExistException(other.eR);
}
if (other.isSetEI()) {
this.eI = new InvalidPathException(other.eI);
}
if (other.isSetET()) {
this.eT = new TachyonException(other.eT);
}
}
public user_mkdir_result deepCopy() {
return new user_mkdir_result(this);
}
@Override
public void clear() {
setSuccessIsSet(false);
this.success = false;
this.eR = null;
this.eI = null;
this.eT = null;
}
public boolean isSuccess() {
return this.success;
}
public user_mkdir_result setSuccess(boolean success) {
this.success = success;
setSuccessIsSet(true);
return this;
}
public void unsetSuccess() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public FileAlreadyExistException getER() {
return this.eR;
}
public user_mkdir_result setER(FileAlreadyExistException eR) {
this.eR = eR;
return this;
}
public void unsetER() {
this.eR = null;
}
/** Returns true if field eR is set (has been assigned a value) and false otherwise */
public boolean isSetER() {
return this.eR != null;
}
public void setERIsSet(boolean value) {
if (!value) {
this.eR = null;
}
}
public InvalidPathException getEI() {
return this.eI;
}
public user_mkdir_result setEI(InvalidPathException eI) {
this.eI = eI;
return this;
}
public void unsetEI() {
this.eI = null;
}
/** Returns true if field eI is set (has been assigned a value) and false otherwise */
public boolean isSetEI() {
return this.eI != null;
}
public void setEIIsSet(boolean value) {
if (!value) {
this.eI = null;
}
}
public TachyonException getET() {
return this.eT;
}
public user_mkdir_result setET(TachyonException eT) {
this.eT = eT;
return this;
}
public void unsetET() {
this.eT = null;
}
/** Returns true if field eT is set (has been assigned a value) and false otherwise */
public boolean isSetET() {
return this.eT != null;
}
public void setETIsSet(boolean value) {
if (!value) {
this.eT = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Boolean)value);
}
break;
case E_R:
if (value == null) {
unsetER();
} else {
setER((FileAlreadyExistException)value);
}
break;
case E_I:
if (value == null) {
unsetEI();
} else {
setEI((InvalidPathException)value);
}
break;
case E_T:
if (value == null) {
unsetET();
} else {
setET((TachyonException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return Boolean.valueOf(isSuccess());
case E_R:
return getER();
case E_I:
return getEI();
case E_T:
return getET();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E_R:
return isSetER();
case E_I:
return isSetEI();
case E_T:
return isSetET();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_mkdir_result)
return this.equals((user_mkdir_result)that);
return false;
}
public boolean equals(user_mkdir_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_eR = true && this.isSetER();
boolean that_present_eR = true && that.isSetER();
if (this_present_eR || that_present_eR) {
if (!(this_present_eR && that_present_eR))
return false;
if (!this.eR.equals(that.eR))
return false;
}
boolean this_present_eI = true && this.isSetEI();
boolean that_present_eI = true && that.isSetEI();
if (this_present_eI || that_present_eI) {
if (!(this_present_eI && that_present_eI))
return false;
if (!this.eI.equals(that.eI))
return false;
}
boolean this_present_eT = true && this.isSetET();
boolean that_present_eT = true && that.isSetET();
if (this_present_eT || that_present_eT) {
if (!(this_present_eT && that_present_eT))
return false;
if (!this.eT.equals(that.eT))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_mkdir_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_mkdir_result typedOther = (user_mkdir_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetER()).compareTo(typedOther.isSetER());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetER()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eR, typedOther.eR);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEI()).compareTo(typedOther.isSetEI());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEI()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eI, typedOther.eI);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetET()).compareTo(typedOther.isSetET());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetET()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eT, typedOther.eT);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_mkdir_result(");
boolean first = true;
sb.append("success:");
sb.append(this.success);
first = false;
if (!first) sb.append(", ");
sb.append("eR:");
if (this.eR == null) {
sb.append("null");
} else {
sb.append(this.eR);
}
first = false;
if (!first) sb.append(", ");
sb.append("eI:");
if (this.eI == null) {
sb.append("null");
} else {
sb.append(this.eI);
}
first = false;
if (!first) sb.append(", ");
sb.append("eT:");
if (this.eT == null) {
sb.append("null");
} else {
sb.append(this.eT);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_mkdir_resultStandardSchemeFactory implements SchemeFactory {
public user_mkdir_resultStandardScheme getScheme() {
return new user_mkdir_resultStandardScheme();
}
}
private static class user_mkdir_resultStandardScheme extends StandardScheme<user_mkdir_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_mkdir_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.success = iprot.readBool();
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E_R
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eR = new FileAlreadyExistException();
struct.eR.read(iprot);
struct.setERIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // E_I
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // E_T
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eT = new TachyonException();
struct.eT.read(iprot);
struct.setETIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_mkdir_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.isSetSuccess()) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeBool(struct.success);
oprot.writeFieldEnd();
}
if (struct.eR != null) {
oprot.writeFieldBegin(E_R_FIELD_DESC);
struct.eR.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eI != null) {
oprot.writeFieldBegin(E_I_FIELD_DESC);
struct.eI.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eT != null) {
oprot.writeFieldBegin(E_T_FIELD_DESC);
struct.eT.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_mkdir_resultTupleSchemeFactory implements SchemeFactory {
public user_mkdir_resultTupleScheme getScheme() {
return new user_mkdir_resultTupleScheme();
}
}
private static class user_mkdir_resultTupleScheme extends TupleScheme<user_mkdir_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_mkdir_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetER()) {
optionals.set(1);
}
if (struct.isSetEI()) {
optionals.set(2);
}
if (struct.isSetET()) {
optionals.set(3);
}
oprot.writeBitSet(optionals, 4);
if (struct.isSetSuccess()) {
oprot.writeBool(struct.success);
}
if (struct.isSetER()) {
struct.eR.write(oprot);
}
if (struct.isSetEI()) {
struct.eI.write(oprot);
}
if (struct.isSetET()) {
struct.eT.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_mkdir_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
struct.success = iprot.readBool();
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.eR = new FileAlreadyExistException();
struct.eR.read(iprot);
struct.setERIsSet(true);
}
if (incoming.get(2)) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
}
if (incoming.get(3)) {
struct.eT = new TachyonException();
struct.eT.read(iprot);
struct.setETIsSet(true);
}
}
}
}
public static class user_createRawTable_args implements org.apache.thrift.TBase<user_createRawTable_args, user_createRawTable_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_createRawTable_args");
private static final org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.I32, (short)2);
private static final org.apache.thrift.protocol.TField METADATA_FIELD_DESC = new org.apache.thrift.protocol.TField("metadata", org.apache.thrift.protocol.TType.STRING, (short)3);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_createRawTable_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_createRawTable_argsTupleSchemeFactory());
}
public String path; // required
public int columns; // required
public ByteBuffer metadata; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
PATH((short)1, "path"),
COLUMNS((short)2, "columns"),
METADATA((short)3, "metadata");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // PATH
return PATH;
case 2: // COLUMNS
return COLUMNS;
case 3: // METADATA
return METADATA;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __COLUMNS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.METADATA, new org.apache.thrift.meta_data.FieldMetaData("metadata", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_createRawTable_args.class, metaDataMap);
}
public user_createRawTable_args() {
}
public user_createRawTable_args(
String path,
int columns,
ByteBuffer metadata)
{
this();
this.path = path;
this.columns = columns;
setColumnsIsSet(true);
this.metadata = metadata;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_createRawTable_args(user_createRawTable_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetPath()) {
this.path = other.path;
}
this.columns = other.columns;
if (other.isSetMetadata()) {
this.metadata = org.apache.thrift.TBaseHelper.copyBinary(other.metadata);
;
}
}
public user_createRawTable_args deepCopy() {
return new user_createRawTable_args(this);
}
@Override
public void clear() {
this.path = null;
setColumnsIsSet(false);
this.columns = 0;
this.metadata = null;
}
public String getPath() {
return this.path;
}
public user_createRawTable_args setPath(String path) {
this.path = path;
return this;
}
public void unsetPath() {
this.path = null;
}
/** Returns true if field path is set (has been assigned a value) and false otherwise */
public boolean isSetPath() {
return this.path != null;
}
public void setPathIsSet(boolean value) {
if (!value) {
this.path = null;
}
}
public int getColumns() {
return this.columns;
}
public user_createRawTable_args setColumns(int columns) {
this.columns = columns;
setColumnsIsSet(true);
return this;
}
public void unsetColumns() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __COLUMNS_ISSET_ID);
}
/** Returns true if field columns is set (has been assigned a value) and false otherwise */
public boolean isSetColumns() {
return EncodingUtils.testBit(__isset_bitfield, __COLUMNS_ISSET_ID);
}
public void setColumnsIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __COLUMNS_ISSET_ID, value);
}
public byte[] getMetadata() {
setMetadata(org.apache.thrift.TBaseHelper.rightSize(metadata));
return metadata == null ? null : metadata.array();
}
public ByteBuffer bufferForMetadata() {
return metadata;
}
public user_createRawTable_args setMetadata(byte[] metadata) {
setMetadata(metadata == null ? (ByteBuffer)null : ByteBuffer.wrap(metadata));
return this;
}
public user_createRawTable_args setMetadata(ByteBuffer metadata) {
this.metadata = metadata;
return this;
}
public void unsetMetadata() {
this.metadata = null;
}
/** Returns true if field metadata is set (has been assigned a value) and false otherwise */
public boolean isSetMetadata() {
return this.metadata != null;
}
public void setMetadataIsSet(boolean value) {
if (!value) {
this.metadata = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case PATH:
if (value == null) {
unsetPath();
} else {
setPath((String)value);
}
break;
case COLUMNS:
if (value == null) {
unsetColumns();
} else {
setColumns((Integer)value);
}
break;
case METADATA:
if (value == null) {
unsetMetadata();
} else {
setMetadata((ByteBuffer)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case PATH:
return getPath();
case COLUMNS:
return Integer.valueOf(getColumns());
case METADATA:
return getMetadata();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case PATH:
return isSetPath();
case COLUMNS:
return isSetColumns();
case METADATA:
return isSetMetadata();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_createRawTable_args)
return this.equals((user_createRawTable_args)that);
return false;
}
public boolean equals(user_createRawTable_args that) {
if (that == null)
return false;
boolean this_present_path = true && this.isSetPath();
boolean that_present_path = true && that.isSetPath();
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_columns = true;
boolean that_present_columns = true;
if (this_present_columns || that_present_columns) {
if (!(this_present_columns && that_present_columns))
return false;
if (this.columns != that.columns)
return false;
}
boolean this_present_metadata = true && this.isSetMetadata();
boolean that_present_metadata = true && that.isSetMetadata();
if (this_present_metadata || that_present_metadata) {
if (!(this_present_metadata && that_present_metadata))
return false;
if (!this.metadata.equals(that.metadata))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_createRawTable_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_createRawTable_args typedOther = (user_createRawTable_args)other;
lastComparison = Boolean.valueOf(isSetPath()).compareTo(typedOther.isSetPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, typedOther.path);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetColumns()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetMetadata()).compareTo(typedOther.isSetMetadata());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetMetadata()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.metadata, typedOther.metadata);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_createRawTable_args(");
boolean first = true;
sb.append("path:");
if (this.path == null) {
sb.append("null");
} else {
sb.append(this.path);
}
first = false;
if (!first) sb.append(", ");
sb.append("columns:");
sb.append(this.columns);
first = false;
if (!first) sb.append(", ");
sb.append("metadata:");
if (this.metadata == null) {
sb.append("null");
} else {
org.apache.thrift.TBaseHelper.toString(this.metadata, sb);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_createRawTable_argsStandardSchemeFactory implements SchemeFactory {
public user_createRawTable_argsStandardScheme getScheme() {
return new user_createRawTable_argsStandardScheme();
}
}
private static class user_createRawTable_argsStandardScheme extends StandardScheme<user_createRawTable_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_createRawTable_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // COLUMNS
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.columns = iprot.readI32();
struct.setColumnsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // METADATA
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.metadata = iprot.readBinary();
struct.setMetadataIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_createRawTable_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.path != null) {
oprot.writeFieldBegin(PATH_FIELD_DESC);
oprot.writeString(struct.path);
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
oprot.writeI32(struct.columns);
oprot.writeFieldEnd();
if (struct.metadata != null) {
oprot.writeFieldBegin(METADATA_FIELD_DESC);
oprot.writeBinary(struct.metadata);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_createRawTable_argsTupleSchemeFactory implements SchemeFactory {
public user_createRawTable_argsTupleScheme getScheme() {
return new user_createRawTable_argsTupleScheme();
}
}
private static class user_createRawTable_argsTupleScheme extends TupleScheme<user_createRawTable_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_createRawTable_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetPath()) {
optionals.set(0);
}
if (struct.isSetColumns()) {
optionals.set(1);
}
if (struct.isSetMetadata()) {
optionals.set(2);
}
oprot.writeBitSet(optionals, 3);
if (struct.isSetPath()) {
oprot.writeString(struct.path);
}
if (struct.isSetColumns()) {
oprot.writeI32(struct.columns);
}
if (struct.isSetMetadata()) {
oprot.writeBinary(struct.metadata);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_createRawTable_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
}
if (incoming.get(1)) {
struct.columns = iprot.readI32();
struct.setColumnsIsSet(true);
}
if (incoming.get(2)) {
struct.metadata = iprot.readBinary();
struct.setMetadataIsSet(true);
}
}
}
}
public static class user_createRawTable_result implements org.apache.thrift.TBase<user_createRawTable_result, user_createRawTable_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_createRawTable_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
private static final org.apache.thrift.protocol.TField E_R_FIELD_DESC = new org.apache.thrift.protocol.TField("eR", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField E_I_FIELD_DESC = new org.apache.thrift.protocol.TField("eI", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final org.apache.thrift.protocol.TField E_T_FIELD_DESC = new org.apache.thrift.protocol.TField("eT", org.apache.thrift.protocol.TType.STRUCT, (short)3);
private static final org.apache.thrift.protocol.TField E_TA_FIELD_DESC = new org.apache.thrift.protocol.TField("eTa", org.apache.thrift.protocol.TType.STRUCT, (short)4);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_createRawTable_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_createRawTable_resultTupleSchemeFactory());
}
public int success; // required
public FileAlreadyExistException eR; // required
public InvalidPathException eI; // required
public TableColumnException eT; // required
public TachyonException eTa; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E_R((short)1, "eR"),
E_I((short)2, "eI"),
E_T((short)3, "eT"),
E_TA((short)4, "eTa");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E_R
return E_R;
case 2: // E_I
return E_I;
case 3: // E_T
return E_T;
case 4: // E_TA
return E_TA;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.E_R, new org.apache.thrift.meta_data.FieldMetaData("eR", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_I, new org.apache.thrift.meta_data.FieldMetaData("eI", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_T, new org.apache.thrift.meta_data.FieldMetaData("eT", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_TA, new org.apache.thrift.meta_data.FieldMetaData("eTa", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_createRawTable_result.class, metaDataMap);
}
public user_createRawTable_result() {
}
public user_createRawTable_result(
int success,
FileAlreadyExistException eR,
InvalidPathException eI,
TableColumnException eT,
TachyonException eTa)
{
this();
this.success = success;
setSuccessIsSet(true);
this.eR = eR;
this.eI = eI;
this.eT = eT;
this.eTa = eTa;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_createRawTable_result(user_createRawTable_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
if (other.isSetER()) {
this.eR = new FileAlreadyExistException(other.eR);
}
if (other.isSetEI()) {
this.eI = new InvalidPathException(other.eI);
}
if (other.isSetET()) {
this.eT = new TableColumnException(other.eT);
}
if (other.isSetETa()) {
this.eTa = new TachyonException(other.eTa);
}
}
public user_createRawTable_result deepCopy() {
return new user_createRawTable_result(this);
}
@Override
public void clear() {
setSuccessIsSet(false);
this.success = 0;
this.eR = null;
this.eI = null;
this.eT = null;
this.eTa = null;
}
public int getSuccess() {
return this.success;
}
public user_createRawTable_result setSuccess(int success) {
this.success = success;
setSuccessIsSet(true);
return this;
}
public void unsetSuccess() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public FileAlreadyExistException getER() {
return this.eR;
}
public user_createRawTable_result setER(FileAlreadyExistException eR) {
this.eR = eR;
return this;
}
public void unsetER() {
this.eR = null;
}
/** Returns true if field eR is set (has been assigned a value) and false otherwise */
public boolean isSetER() {
return this.eR != null;
}
public void setERIsSet(boolean value) {
if (!value) {
this.eR = null;
}
}
public InvalidPathException getEI() {
return this.eI;
}
public user_createRawTable_result setEI(InvalidPathException eI) {
this.eI = eI;
return this;
}
public void unsetEI() {
this.eI = null;
}
/** Returns true if field eI is set (has been assigned a value) and false otherwise */
public boolean isSetEI() {
return this.eI != null;
}
public void setEIIsSet(boolean value) {
if (!value) {
this.eI = null;
}
}
public TableColumnException getET() {
return this.eT;
}
public user_createRawTable_result setET(TableColumnException eT) {
this.eT = eT;
return this;
}
public void unsetET() {
this.eT = null;
}
/** Returns true if field eT is set (has been assigned a value) and false otherwise */
public boolean isSetET() {
return this.eT != null;
}
public void setETIsSet(boolean value) {
if (!value) {
this.eT = null;
}
}
public TachyonException getETa() {
return this.eTa;
}
public user_createRawTable_result setETa(TachyonException eTa) {
this.eTa = eTa;
return this;
}
public void unsetETa() {
this.eTa = null;
}
/** Returns true if field eTa is set (has been assigned a value) and false otherwise */
public boolean isSetETa() {
return this.eTa != null;
}
public void setETaIsSet(boolean value) {
if (!value) {
this.eTa = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Integer)value);
}
break;
case E_R:
if (value == null) {
unsetER();
} else {
setER((FileAlreadyExistException)value);
}
break;
case E_I:
if (value == null) {
unsetEI();
} else {
setEI((InvalidPathException)value);
}
break;
case E_T:
if (value == null) {
unsetET();
} else {
setET((TableColumnException)value);
}
break;
case E_TA:
if (value == null) {
unsetETa();
} else {
setETa((TachyonException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return Integer.valueOf(getSuccess());
case E_R:
return getER();
case E_I:
return getEI();
case E_T:
return getET();
case E_TA:
return getETa();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E_R:
return isSetER();
case E_I:
return isSetEI();
case E_T:
return isSetET();
case E_TA:
return isSetETa();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_createRawTable_result)
return this.equals((user_createRawTable_result)that);
return false;
}
public boolean equals(user_createRawTable_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_eR = true && this.isSetER();
boolean that_present_eR = true && that.isSetER();
if (this_present_eR || that_present_eR) {
if (!(this_present_eR && that_present_eR))
return false;
if (!this.eR.equals(that.eR))
return false;
}
boolean this_present_eI = true && this.isSetEI();
boolean that_present_eI = true && that.isSetEI();
if (this_present_eI || that_present_eI) {
if (!(this_present_eI && that_present_eI))
return false;
if (!this.eI.equals(that.eI))
return false;
}
boolean this_present_eT = true && this.isSetET();
boolean that_present_eT = true && that.isSetET();
if (this_present_eT || that_present_eT) {
if (!(this_present_eT && that_present_eT))
return false;
if (!this.eT.equals(that.eT))
return false;
}
boolean this_present_eTa = true && this.isSetETa();
boolean that_present_eTa = true && that.isSetETa();
if (this_present_eTa || that_present_eTa) {
if (!(this_present_eTa && that_present_eTa))
return false;
if (!this.eTa.equals(that.eTa))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_createRawTable_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_createRawTable_result typedOther = (user_createRawTable_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetER()).compareTo(typedOther.isSetER());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetER()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eR, typedOther.eR);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEI()).compareTo(typedOther.isSetEI());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEI()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eI, typedOther.eI);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetET()).compareTo(typedOther.isSetET());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetET()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eT, typedOther.eT);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetETa()).compareTo(typedOther.isSetETa());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetETa()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eTa, typedOther.eTa);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_createRawTable_result(");
boolean first = true;
sb.append("success:");
sb.append(this.success);
first = false;
if (!first) sb.append(", ");
sb.append("eR:");
if (this.eR == null) {
sb.append("null");
} else {
sb.append(this.eR);
}
first = false;
if (!first) sb.append(", ");
sb.append("eI:");
if (this.eI == null) {
sb.append("null");
} else {
sb.append(this.eI);
}
first = false;
if (!first) sb.append(", ");
sb.append("eT:");
if (this.eT == null) {
sb.append("null");
} else {
sb.append(this.eT);
}
first = false;
if (!first) sb.append(", ");
sb.append("eTa:");
if (this.eTa == null) {
sb.append("null");
} else {
sb.append(this.eTa);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_createRawTable_resultStandardSchemeFactory implements SchemeFactory {
public user_createRawTable_resultStandardScheme getScheme() {
return new user_createRawTable_resultStandardScheme();
}
}
private static class user_createRawTable_resultStandardScheme extends StandardScheme<user_createRawTable_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_createRawTable_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.success = iprot.readI32();
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E_R
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eR = new FileAlreadyExistException();
struct.eR.read(iprot);
struct.setERIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // E_I
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // E_T
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eT = new TableColumnException();
struct.eT.read(iprot);
struct.setETIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // E_TA
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eTa = new TachyonException();
struct.eTa.read(iprot);
struct.setETaIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_createRawTable_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.isSetSuccess()) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeI32(struct.success);
oprot.writeFieldEnd();
}
if (struct.eR != null) {
oprot.writeFieldBegin(E_R_FIELD_DESC);
struct.eR.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eI != null) {
oprot.writeFieldBegin(E_I_FIELD_DESC);
struct.eI.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eT != null) {
oprot.writeFieldBegin(E_T_FIELD_DESC);
struct.eT.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eTa != null) {
oprot.writeFieldBegin(E_TA_FIELD_DESC);
struct.eTa.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_createRawTable_resultTupleSchemeFactory implements SchemeFactory {
public user_createRawTable_resultTupleScheme getScheme() {
return new user_createRawTable_resultTupleScheme();
}
}
private static class user_createRawTable_resultTupleScheme extends TupleScheme<user_createRawTable_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_createRawTable_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetER()) {
optionals.set(1);
}
if (struct.isSetEI()) {
optionals.set(2);
}
if (struct.isSetET()) {
optionals.set(3);
}
if (struct.isSetETa()) {
optionals.set(4);
}
oprot.writeBitSet(optionals, 5);
if (struct.isSetSuccess()) {
oprot.writeI32(struct.success);
}
if (struct.isSetER()) {
struct.eR.write(oprot);
}
if (struct.isSetEI()) {
struct.eI.write(oprot);
}
if (struct.isSetET()) {
struct.eT.write(oprot);
}
if (struct.isSetETa()) {
struct.eTa.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_createRawTable_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(5);
if (incoming.get(0)) {
struct.success = iprot.readI32();
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.eR = new FileAlreadyExistException();
struct.eR.read(iprot);
struct.setERIsSet(true);
}
if (incoming.get(2)) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
}
if (incoming.get(3)) {
struct.eT = new TableColumnException();
struct.eT.read(iprot);
struct.setETIsSet(true);
}
if (incoming.get(4)) {
struct.eTa = new TachyonException();
struct.eTa.read(iprot);
struct.setETaIsSet(true);
}
}
}
}
public static class user_getRawTableId_args implements org.apache.thrift.TBase<user_getRawTableId_args, user_getRawTableId_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getRawTableId_args");
private static final org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getRawTableId_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getRawTableId_argsTupleSchemeFactory());
}
public String path; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
PATH((short)1, "path");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // PATH
return PATH;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getRawTableId_args.class, metaDataMap);
}
public user_getRawTableId_args() {
}
public user_getRawTableId_args(
String path)
{
this();
this.path = path;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getRawTableId_args(user_getRawTableId_args other) {
if (other.isSetPath()) {
this.path = other.path;
}
}
public user_getRawTableId_args deepCopy() {
return new user_getRawTableId_args(this);
}
@Override
public void clear() {
this.path = null;
}
public String getPath() {
return this.path;
}
public user_getRawTableId_args setPath(String path) {
this.path = path;
return this;
}
public void unsetPath() {
this.path = null;
}
/** Returns true if field path is set (has been assigned a value) and false otherwise */
public boolean isSetPath() {
return this.path != null;
}
public void setPathIsSet(boolean value) {
if (!value) {
this.path = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case PATH:
if (value == null) {
unsetPath();
} else {
setPath((String)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case PATH:
return getPath();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case PATH:
return isSetPath();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getRawTableId_args)
return this.equals((user_getRawTableId_args)that);
return false;
}
public boolean equals(user_getRawTableId_args that) {
if (that == null)
return false;
boolean this_present_path = true && this.isSetPath();
boolean that_present_path = true && that.isSetPath();
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;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getRawTableId_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getRawTableId_args typedOther = (user_getRawTableId_args)other;
lastComparison = Boolean.valueOf(isSetPath()).compareTo(typedOther.isSetPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, typedOther.path);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getRawTableId_args(");
boolean first = true;
sb.append("path:");
if (this.path == null) {
sb.append("null");
} else {
sb.append(this.path);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getRawTableId_argsStandardSchemeFactory implements SchemeFactory {
public user_getRawTableId_argsStandardScheme getScheme() {
return new user_getRawTableId_argsStandardScheme();
}
}
private static class user_getRawTableId_argsStandardScheme extends StandardScheme<user_getRawTableId_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getRawTableId_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getRawTableId_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.path != null) {
oprot.writeFieldBegin(PATH_FIELD_DESC);
oprot.writeString(struct.path);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getRawTableId_argsTupleSchemeFactory implements SchemeFactory {
public user_getRawTableId_argsTupleScheme getScheme() {
return new user_getRawTableId_argsTupleScheme();
}
}
private static class user_getRawTableId_argsTupleScheme extends TupleScheme<user_getRawTableId_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getRawTableId_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetPath()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetPath()) {
oprot.writeString(struct.path);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getRawTableId_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
}
}
}
}
public static class user_getRawTableId_result implements org.apache.thrift.TBase<user_getRawTableId_result, user_getRawTableId_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getRawTableId_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getRawTableId_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getRawTableId_resultTupleSchemeFactory());
}
public int success; // required
public InvalidPathException e; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E((short)1, "e");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E
return E;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getRawTableId_result.class, metaDataMap);
}
public user_getRawTableId_result() {
}
public user_getRawTableId_result(
int success,
InvalidPathException e)
{
this();
this.success = success;
setSuccessIsSet(true);
this.e = e;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getRawTableId_result(user_getRawTableId_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
if (other.isSetE()) {
this.e = new InvalidPathException(other.e);
}
}
public user_getRawTableId_result deepCopy() {
return new user_getRawTableId_result(this);
}
@Override
public void clear() {
setSuccessIsSet(false);
this.success = 0;
this.e = null;
}
public int getSuccess() {
return this.success;
}
public user_getRawTableId_result setSuccess(int success) {
this.success = success;
setSuccessIsSet(true);
return this;
}
public void unsetSuccess() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public InvalidPathException getE() {
return this.e;
}
public user_getRawTableId_result setE(InvalidPathException e) {
this.e = e;
return this;
}
public void unsetE() {
this.e = null;
}
/** Returns true if field e is set (has been assigned a value) and false otherwise */
public boolean isSetE() {
return this.e != null;
}
public void setEIsSet(boolean value) {
if (!value) {
this.e = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Integer)value);
}
break;
case E:
if (value == null) {
unsetE();
} else {
setE((InvalidPathException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return Integer.valueOf(getSuccess());
case E:
return getE();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E:
return isSetE();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getRawTableId_result)
return this.equals((user_getRawTableId_result)that);
return false;
}
public boolean equals(user_getRawTableId_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_e = true && this.isSetE();
boolean that_present_e = true && that.isSetE();
if (this_present_e || that_present_e) {
if (!(this_present_e && that_present_e))
return false;
if (!this.e.equals(that.e))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getRawTableId_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getRawTableId_result typedOther = (user_getRawTableId_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetE()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getRawTableId_result(");
boolean first = true;
sb.append("success:");
sb.append(this.success);
first = false;
if (!first) sb.append(", ");
sb.append("e:");
if (this.e == null) {
sb.append("null");
} else {
sb.append(this.e);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getRawTableId_resultStandardSchemeFactory implements SchemeFactory {
public user_getRawTableId_resultStandardScheme getScheme() {
return new user_getRawTableId_resultStandardScheme();
}
}
private static class user_getRawTableId_resultStandardScheme extends StandardScheme<user_getRawTableId_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getRawTableId_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.success = iprot.readI32();
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.e = new InvalidPathException();
struct.e.read(iprot);
struct.setEIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getRawTableId_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.isSetSuccess()) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeI32(struct.success);
oprot.writeFieldEnd();
}
if (struct.e != null) {
oprot.writeFieldBegin(E_FIELD_DESC);
struct.e.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getRawTableId_resultTupleSchemeFactory implements SchemeFactory {
public user_getRawTableId_resultTupleScheme getScheme() {
return new user_getRawTableId_resultTupleScheme();
}
}
private static class user_getRawTableId_resultTupleScheme extends TupleScheme<user_getRawTableId_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getRawTableId_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetE()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetSuccess()) {
oprot.writeI32(struct.success);
}
if (struct.isSetE()) {
struct.e.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getRawTableId_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.success = iprot.readI32();
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.e = new InvalidPathException();
struct.e.read(iprot);
struct.setEIsSet(true);
}
}
}
}
public static class user_getClientRawTableInfoById_args implements org.apache.thrift.TBase<user_getClientRawTableInfoById_args, user_getClientRawTableInfoById_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getClientRawTableInfoById_args");
private static final org.apache.thrift.protocol.TField TABLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("tableId", org.apache.thrift.protocol.TType.I32, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getClientRawTableInfoById_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getClientRawTableInfoById_argsTupleSchemeFactory());
}
public int tableId; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
TABLE_ID((short)1, "tableId");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // TABLE_ID
return TABLE_ID;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __TABLEID_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.TABLE_ID, new org.apache.thrift.meta_data.FieldMetaData("tableId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getClientRawTableInfoById_args.class, metaDataMap);
}
public user_getClientRawTableInfoById_args() {
}
public user_getClientRawTableInfoById_args(
int tableId)
{
this();
this.tableId = tableId;
setTableIdIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getClientRawTableInfoById_args(user_getClientRawTableInfoById_args other) {
__isset_bitfield = other.__isset_bitfield;
this.tableId = other.tableId;
}
public user_getClientRawTableInfoById_args deepCopy() {
return new user_getClientRawTableInfoById_args(this);
}
@Override
public void clear() {
setTableIdIsSet(false);
this.tableId = 0;
}
public int getTableId() {
return this.tableId;
}
public user_getClientRawTableInfoById_args setTableId(int tableId) {
this.tableId = tableId;
setTableIdIsSet(true);
return this;
}
public void unsetTableId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TABLEID_ISSET_ID);
}
/** Returns true if field tableId is set (has been assigned a value) and false otherwise */
public boolean isSetTableId() {
return EncodingUtils.testBit(__isset_bitfield, __TABLEID_ISSET_ID);
}
public void setTableIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TABLEID_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case TABLE_ID:
if (value == null) {
unsetTableId();
} else {
setTableId((Integer)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case TABLE_ID:
return Integer.valueOf(getTableId());
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case TABLE_ID:
return isSetTableId();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getClientRawTableInfoById_args)
return this.equals((user_getClientRawTableInfoById_args)that);
return false;
}
public boolean equals(user_getClientRawTableInfoById_args that) {
if (that == null)
return false;
boolean this_present_tableId = true;
boolean that_present_tableId = true;
if (this_present_tableId || that_present_tableId) {
if (!(this_present_tableId && that_present_tableId))
return false;
if (this.tableId != that.tableId)
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getClientRawTableInfoById_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getClientRawTableInfoById_args typedOther = (user_getClientRawTableInfoById_args)other;
lastComparison = Boolean.valueOf(isSetTableId()).compareTo(typedOther.isSetTableId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTableId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableId, typedOther.tableId);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getClientRawTableInfoById_args(");
boolean first = true;
sb.append("tableId:");
sb.append(this.tableId);
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getClientRawTableInfoById_argsStandardSchemeFactory implements SchemeFactory {
public user_getClientRawTableInfoById_argsStandardScheme getScheme() {
return new user_getClientRawTableInfoById_argsStandardScheme();
}
}
private static class user_getClientRawTableInfoById_argsStandardScheme extends StandardScheme<user_getClientRawTableInfoById_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getClientRawTableInfoById_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // TABLE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.tableId = iprot.readI32();
struct.setTableIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getClientRawTableInfoById_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(TABLE_ID_FIELD_DESC);
oprot.writeI32(struct.tableId);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getClientRawTableInfoById_argsTupleSchemeFactory implements SchemeFactory {
public user_getClientRawTableInfoById_argsTupleScheme getScheme() {
return new user_getClientRawTableInfoById_argsTupleScheme();
}
}
private static class user_getClientRawTableInfoById_argsTupleScheme extends TupleScheme<user_getClientRawTableInfoById_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getClientRawTableInfoById_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetTableId()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetTableId()) {
oprot.writeI32(struct.tableId);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getClientRawTableInfoById_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.tableId = iprot.readI32();
struct.setTableIdIsSet(true);
}
}
}
}
public static class user_getClientRawTableInfoById_result implements org.apache.thrift.TBase<user_getClientRawTableInfoById_result, user_getClientRawTableInfoById_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getClientRawTableInfoById_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getClientRawTableInfoById_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getClientRawTableInfoById_resultTupleSchemeFactory());
}
public ClientRawTableInfo success; // required
public TableDoesNotExistException e; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E((short)1, "e");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E
return E;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ClientRawTableInfo.class)));
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getClientRawTableInfoById_result.class, metaDataMap);
}
public user_getClientRawTableInfoById_result() {
}
public user_getClientRawTableInfoById_result(
ClientRawTableInfo success,
TableDoesNotExistException e)
{
this();
this.success = success;
this.e = e;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getClientRawTableInfoById_result(user_getClientRawTableInfoById_result other) {
if (other.isSetSuccess()) {
this.success = new ClientRawTableInfo(other.success);
}
if (other.isSetE()) {
this.e = new TableDoesNotExistException(other.e);
}
}
public user_getClientRawTableInfoById_result deepCopy() {
return new user_getClientRawTableInfoById_result(this);
}
@Override
public void clear() {
this.success = null;
this.e = null;
}
public ClientRawTableInfo getSuccess() {
return this.success;
}
public user_getClientRawTableInfoById_result setSuccess(ClientRawTableInfo success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public TableDoesNotExistException getE() {
return this.e;
}
public user_getClientRawTableInfoById_result setE(TableDoesNotExistException e) {
this.e = e;
return this;
}
public void unsetE() {
this.e = null;
}
/** Returns true if field e is set (has been assigned a value) and false otherwise */
public boolean isSetE() {
return this.e != null;
}
public void setEIsSet(boolean value) {
if (!value) {
this.e = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((ClientRawTableInfo)value);
}
break;
case E:
if (value == null) {
unsetE();
} else {
setE((TableDoesNotExistException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
case E:
return getE();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E:
return isSetE();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getClientRawTableInfoById_result)
return this.equals((user_getClientRawTableInfoById_result)that);
return false;
}
public boolean equals(user_getClientRawTableInfoById_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
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_e = true && this.isSetE();
boolean that_present_e = true && that.isSetE();
if (this_present_e || that_present_e) {
if (!(this_present_e && that_present_e))
return false;
if (!this.e.equals(that.e))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getClientRawTableInfoById_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getClientRawTableInfoById_result typedOther = (user_getClientRawTableInfoById_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetE()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getClientRawTableInfoById_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
if (!first) sb.append(", ");
sb.append("e:");
if (this.e == null) {
sb.append("null");
} else {
sb.append(this.e);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (success != null) {
success.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getClientRawTableInfoById_resultStandardSchemeFactory implements SchemeFactory {
public user_getClientRawTableInfoById_resultStandardScheme getScheme() {
return new user_getClientRawTableInfoById_resultStandardScheme();
}
}
private static class user_getClientRawTableInfoById_resultStandardScheme extends StandardScheme<user_getClientRawTableInfoById_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getClientRawTableInfoById_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.success = new ClientRawTableInfo();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.e = new TableDoesNotExistException();
struct.e.read(iprot);
struct.setEIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getClientRawTableInfoById_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
struct.success.write(oprot);
oprot.writeFieldEnd();
}
if (struct.e != null) {
oprot.writeFieldBegin(E_FIELD_DESC);
struct.e.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getClientRawTableInfoById_resultTupleSchemeFactory implements SchemeFactory {
public user_getClientRawTableInfoById_resultTupleScheme getScheme() {
return new user_getClientRawTableInfoById_resultTupleScheme();
}
}
private static class user_getClientRawTableInfoById_resultTupleScheme extends TupleScheme<user_getClientRawTableInfoById_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getClientRawTableInfoById_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetE()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
if (struct.isSetE()) {
struct.e.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getClientRawTableInfoById_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.success = new ClientRawTableInfo();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.e = new TableDoesNotExistException();
struct.e.read(iprot);
struct.setEIsSet(true);
}
}
}
}
public static class user_getClientRawTableInfoByPath_args implements org.apache.thrift.TBase<user_getClientRawTableInfoByPath_args, user_getClientRawTableInfoByPath_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getClientRawTableInfoByPath_args");
private static final org.apache.thrift.protocol.TField TABLE_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("tablePath", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getClientRawTableInfoByPath_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getClientRawTableInfoByPath_argsTupleSchemeFactory());
}
public String tablePath; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
TABLE_PATH((short)1, "tablePath");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // TABLE_PATH
return TABLE_PATH;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.TABLE_PATH, new org.apache.thrift.meta_data.FieldMetaData("tablePath", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getClientRawTableInfoByPath_args.class, metaDataMap);
}
public user_getClientRawTableInfoByPath_args() {
}
public user_getClientRawTableInfoByPath_args(
String tablePath)
{
this();
this.tablePath = tablePath;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getClientRawTableInfoByPath_args(user_getClientRawTableInfoByPath_args other) {
if (other.isSetTablePath()) {
this.tablePath = other.tablePath;
}
}
public user_getClientRawTableInfoByPath_args deepCopy() {
return new user_getClientRawTableInfoByPath_args(this);
}
@Override
public void clear() {
this.tablePath = null;
}
public String getTablePath() {
return this.tablePath;
}
public user_getClientRawTableInfoByPath_args setTablePath(String tablePath) {
this.tablePath = tablePath;
return this;
}
public void unsetTablePath() {
this.tablePath = null;
}
/** Returns true if field tablePath is set (has been assigned a value) and false otherwise */
public boolean isSetTablePath() {
return this.tablePath != null;
}
public void setTablePathIsSet(boolean value) {
if (!value) {
this.tablePath = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case TABLE_PATH:
if (value == null) {
unsetTablePath();
} else {
setTablePath((String)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case TABLE_PATH:
return getTablePath();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case TABLE_PATH:
return isSetTablePath();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getClientRawTableInfoByPath_args)
return this.equals((user_getClientRawTableInfoByPath_args)that);
return false;
}
public boolean equals(user_getClientRawTableInfoByPath_args that) {
if (that == null)
return false;
boolean this_present_tablePath = true && this.isSetTablePath();
boolean that_present_tablePath = true && that.isSetTablePath();
if (this_present_tablePath || that_present_tablePath) {
if (!(this_present_tablePath && that_present_tablePath))
return false;
if (!this.tablePath.equals(that.tablePath))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getClientRawTableInfoByPath_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getClientRawTableInfoByPath_args typedOther = (user_getClientRawTableInfoByPath_args)other;
lastComparison = Boolean.valueOf(isSetTablePath()).compareTo(typedOther.isSetTablePath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTablePath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablePath, typedOther.tablePath);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getClientRawTableInfoByPath_args(");
boolean first = true;
sb.append("tablePath:");
if (this.tablePath == null) {
sb.append("null");
} else {
sb.append(this.tablePath);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getClientRawTableInfoByPath_argsStandardSchemeFactory implements SchemeFactory {
public user_getClientRawTableInfoByPath_argsStandardScheme getScheme() {
return new user_getClientRawTableInfoByPath_argsStandardScheme();
}
}
private static class user_getClientRawTableInfoByPath_argsStandardScheme extends StandardScheme<user_getClientRawTableInfoByPath_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getClientRawTableInfoByPath_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // TABLE_PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.tablePath = iprot.readString();
struct.setTablePathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getClientRawTableInfoByPath_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.tablePath != null) {
oprot.writeFieldBegin(TABLE_PATH_FIELD_DESC);
oprot.writeString(struct.tablePath);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getClientRawTableInfoByPath_argsTupleSchemeFactory implements SchemeFactory {
public user_getClientRawTableInfoByPath_argsTupleScheme getScheme() {
return new user_getClientRawTableInfoByPath_argsTupleScheme();
}
}
private static class user_getClientRawTableInfoByPath_argsTupleScheme extends TupleScheme<user_getClientRawTableInfoByPath_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getClientRawTableInfoByPath_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetTablePath()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetTablePath()) {
oprot.writeString(struct.tablePath);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getClientRawTableInfoByPath_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.tablePath = iprot.readString();
struct.setTablePathIsSet(true);
}
}
}
}
public static class user_getClientRawTableInfoByPath_result implements org.apache.thrift.TBase<user_getClientRawTableInfoByPath_result, user_getClientRawTableInfoByPath_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getClientRawTableInfoByPath_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
private static final org.apache.thrift.protocol.TField E_T_FIELD_DESC = new org.apache.thrift.protocol.TField("eT", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField E_I_FIELD_DESC = new org.apache.thrift.protocol.TField("eI", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getClientRawTableInfoByPath_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getClientRawTableInfoByPath_resultTupleSchemeFactory());
}
public ClientRawTableInfo success; // required
public TableDoesNotExistException eT; // required
public InvalidPathException eI; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E_T((short)1, "eT"),
E_I((short)2, "eI");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E_T
return E_T;
case 2: // E_I
return E_I;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ClientRawTableInfo.class)));
tmpMap.put(_Fields.E_T, new org.apache.thrift.meta_data.FieldMetaData("eT", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_I, new org.apache.thrift.meta_data.FieldMetaData("eI", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getClientRawTableInfoByPath_result.class, metaDataMap);
}
public user_getClientRawTableInfoByPath_result() {
}
public user_getClientRawTableInfoByPath_result(
ClientRawTableInfo success,
TableDoesNotExistException eT,
InvalidPathException eI)
{
this();
this.success = success;
this.eT = eT;
this.eI = eI;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getClientRawTableInfoByPath_result(user_getClientRawTableInfoByPath_result other) {
if (other.isSetSuccess()) {
this.success = new ClientRawTableInfo(other.success);
}
if (other.isSetET()) {
this.eT = new TableDoesNotExistException(other.eT);
}
if (other.isSetEI()) {
this.eI = new InvalidPathException(other.eI);
}
}
public user_getClientRawTableInfoByPath_result deepCopy() {
return new user_getClientRawTableInfoByPath_result(this);
}
@Override
public void clear() {
this.success = null;
this.eT = null;
this.eI = null;
}
public ClientRawTableInfo getSuccess() {
return this.success;
}
public user_getClientRawTableInfoByPath_result setSuccess(ClientRawTableInfo success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public TableDoesNotExistException getET() {
return this.eT;
}
public user_getClientRawTableInfoByPath_result setET(TableDoesNotExistException eT) {
this.eT = eT;
return this;
}
public void unsetET() {
this.eT = null;
}
/** Returns true if field eT is set (has been assigned a value) and false otherwise */
public boolean isSetET() {
return this.eT != null;
}
public void setETIsSet(boolean value) {
if (!value) {
this.eT = null;
}
}
public InvalidPathException getEI() {
return this.eI;
}
public user_getClientRawTableInfoByPath_result setEI(InvalidPathException eI) {
this.eI = eI;
return this;
}
public void unsetEI() {
this.eI = null;
}
/** Returns true if field eI is set (has been assigned a value) and false otherwise */
public boolean isSetEI() {
return this.eI != null;
}
public void setEIIsSet(boolean value) {
if (!value) {
this.eI = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((ClientRawTableInfo)value);
}
break;
case E_T:
if (value == null) {
unsetET();
} else {
setET((TableDoesNotExistException)value);
}
break;
case E_I:
if (value == null) {
unsetEI();
} else {
setEI((InvalidPathException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
case E_T:
return getET();
case E_I:
return getEI();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E_T:
return isSetET();
case E_I:
return isSetEI();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getClientRawTableInfoByPath_result)
return this.equals((user_getClientRawTableInfoByPath_result)that);
return false;
}
public boolean equals(user_getClientRawTableInfoByPath_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
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_eT = true && this.isSetET();
boolean that_present_eT = true && that.isSetET();
if (this_present_eT || that_present_eT) {
if (!(this_present_eT && that_present_eT))
return false;
if (!this.eT.equals(that.eT))
return false;
}
boolean this_present_eI = true && this.isSetEI();
boolean that_present_eI = true && that.isSetEI();
if (this_present_eI || that_present_eI) {
if (!(this_present_eI && that_present_eI))
return false;
if (!this.eI.equals(that.eI))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getClientRawTableInfoByPath_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getClientRawTableInfoByPath_result typedOther = (user_getClientRawTableInfoByPath_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetET()).compareTo(typedOther.isSetET());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetET()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eT, typedOther.eT);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEI()).compareTo(typedOther.isSetEI());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEI()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eI, typedOther.eI);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getClientRawTableInfoByPath_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
if (!first) sb.append(", ");
sb.append("eT:");
if (this.eT == null) {
sb.append("null");
} else {
sb.append(this.eT);
}
first = false;
if (!first) sb.append(", ");
sb.append("eI:");
if (this.eI == null) {
sb.append("null");
} else {
sb.append(this.eI);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (success != null) {
success.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getClientRawTableInfoByPath_resultStandardSchemeFactory implements SchemeFactory {
public user_getClientRawTableInfoByPath_resultStandardScheme getScheme() {
return new user_getClientRawTableInfoByPath_resultStandardScheme();
}
}
private static class user_getClientRawTableInfoByPath_resultStandardScheme extends StandardScheme<user_getClientRawTableInfoByPath_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getClientRawTableInfoByPath_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.success = new ClientRawTableInfo();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E_T
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eT = new TableDoesNotExistException();
struct.eT.read(iprot);
struct.setETIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // E_I
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getClientRawTableInfoByPath_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
struct.success.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eT != null) {
oprot.writeFieldBegin(E_T_FIELD_DESC);
struct.eT.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eI != null) {
oprot.writeFieldBegin(E_I_FIELD_DESC);
struct.eI.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getClientRawTableInfoByPath_resultTupleSchemeFactory implements SchemeFactory {
public user_getClientRawTableInfoByPath_resultTupleScheme getScheme() {
return new user_getClientRawTableInfoByPath_resultTupleScheme();
}
}
private static class user_getClientRawTableInfoByPath_resultTupleScheme extends TupleScheme<user_getClientRawTableInfoByPath_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getClientRawTableInfoByPath_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetET()) {
optionals.set(1);
}
if (struct.isSetEI()) {
optionals.set(2);
}
oprot.writeBitSet(optionals, 3);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
if (struct.isSetET()) {
struct.eT.write(oprot);
}
if (struct.isSetEI()) {
struct.eI.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getClientRawTableInfoByPath_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
struct.success = new ClientRawTableInfo();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.eT = new TableDoesNotExistException();
struct.eT.read(iprot);
struct.setETIsSet(true);
}
if (incoming.get(2)) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
}
}
}
}
public static class user_updateRawTableMetadata_args implements org.apache.thrift.TBase<user_updateRawTableMetadata_args, user_updateRawTableMetadata_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_updateRawTableMetadata_args");
private static final org.apache.thrift.protocol.TField TABLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("tableId", org.apache.thrift.protocol.TType.I32, (short)1);
private static final org.apache.thrift.protocol.TField METADATA_FIELD_DESC = new org.apache.thrift.protocol.TField("metadata", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_updateRawTableMetadata_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_updateRawTableMetadata_argsTupleSchemeFactory());
}
public int tableId; // required
public ByteBuffer metadata; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
TABLE_ID((short)1, "tableId"),
METADATA((short)2, "metadata");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // TABLE_ID
return TABLE_ID;
case 2: // METADATA
return METADATA;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __TABLEID_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.TABLE_ID, new org.apache.thrift.meta_data.FieldMetaData("tableId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.METADATA, new org.apache.thrift.meta_data.FieldMetaData("metadata", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_updateRawTableMetadata_args.class, metaDataMap);
}
public user_updateRawTableMetadata_args() {
}
public user_updateRawTableMetadata_args(
int tableId,
ByteBuffer metadata)
{
this();
this.tableId = tableId;
setTableIdIsSet(true);
this.metadata = metadata;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_updateRawTableMetadata_args(user_updateRawTableMetadata_args other) {
__isset_bitfield = other.__isset_bitfield;
this.tableId = other.tableId;
if (other.isSetMetadata()) {
this.metadata = org.apache.thrift.TBaseHelper.copyBinary(other.metadata);
;
}
}
public user_updateRawTableMetadata_args deepCopy() {
return new user_updateRawTableMetadata_args(this);
}
@Override
public void clear() {
setTableIdIsSet(false);
this.tableId = 0;
this.metadata = null;
}
public int getTableId() {
return this.tableId;
}
public user_updateRawTableMetadata_args setTableId(int tableId) {
this.tableId = tableId;
setTableIdIsSet(true);
return this;
}
public void unsetTableId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TABLEID_ISSET_ID);
}
/** Returns true if field tableId is set (has been assigned a value) and false otherwise */
public boolean isSetTableId() {
return EncodingUtils.testBit(__isset_bitfield, __TABLEID_ISSET_ID);
}
public void setTableIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TABLEID_ISSET_ID, value);
}
public byte[] getMetadata() {
setMetadata(org.apache.thrift.TBaseHelper.rightSize(metadata));
return metadata == null ? null : metadata.array();
}
public ByteBuffer bufferForMetadata() {
return metadata;
}
public user_updateRawTableMetadata_args setMetadata(byte[] metadata) {
setMetadata(metadata == null ? (ByteBuffer)null : ByteBuffer.wrap(metadata));
return this;
}
public user_updateRawTableMetadata_args setMetadata(ByteBuffer metadata) {
this.metadata = metadata;
return this;
}
public void unsetMetadata() {
this.metadata = null;
}
/** Returns true if field metadata is set (has been assigned a value) and false otherwise */
public boolean isSetMetadata() {
return this.metadata != null;
}
public void setMetadataIsSet(boolean value) {
if (!value) {
this.metadata = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case TABLE_ID:
if (value == null) {
unsetTableId();
} else {
setTableId((Integer)value);
}
break;
case METADATA:
if (value == null) {
unsetMetadata();
} else {
setMetadata((ByteBuffer)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case TABLE_ID:
return Integer.valueOf(getTableId());
case METADATA:
return getMetadata();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case TABLE_ID:
return isSetTableId();
case METADATA:
return isSetMetadata();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_updateRawTableMetadata_args)
return this.equals((user_updateRawTableMetadata_args)that);
return false;
}
public boolean equals(user_updateRawTableMetadata_args that) {
if (that == null)
return false;
boolean this_present_tableId = true;
boolean that_present_tableId = true;
if (this_present_tableId || that_present_tableId) {
if (!(this_present_tableId && that_present_tableId))
return false;
if (this.tableId != that.tableId)
return false;
}
boolean this_present_metadata = true && this.isSetMetadata();
boolean that_present_metadata = true && that.isSetMetadata();
if (this_present_metadata || that_present_metadata) {
if (!(this_present_metadata && that_present_metadata))
return false;
if (!this.metadata.equals(that.metadata))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_updateRawTableMetadata_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_updateRawTableMetadata_args typedOther = (user_updateRawTableMetadata_args)other;
lastComparison = Boolean.valueOf(isSetTableId()).compareTo(typedOther.isSetTableId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTableId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableId, typedOther.tableId);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetMetadata()).compareTo(typedOther.isSetMetadata());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetMetadata()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.metadata, typedOther.metadata);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_updateRawTableMetadata_args(");
boolean first = true;
sb.append("tableId:");
sb.append(this.tableId);
first = false;
if (!first) sb.append(", ");
sb.append("metadata:");
if (this.metadata == null) {
sb.append("null");
} else {
org.apache.thrift.TBaseHelper.toString(this.metadata, sb);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_updateRawTableMetadata_argsStandardSchemeFactory implements SchemeFactory {
public user_updateRawTableMetadata_argsStandardScheme getScheme() {
return new user_updateRawTableMetadata_argsStandardScheme();
}
}
private static class user_updateRawTableMetadata_argsStandardScheme extends StandardScheme<user_updateRawTableMetadata_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_updateRawTableMetadata_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // TABLE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.tableId = iprot.readI32();
struct.setTableIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // METADATA
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.metadata = iprot.readBinary();
struct.setMetadataIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_updateRawTableMetadata_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(TABLE_ID_FIELD_DESC);
oprot.writeI32(struct.tableId);
oprot.writeFieldEnd();
if (struct.metadata != null) {
oprot.writeFieldBegin(METADATA_FIELD_DESC);
oprot.writeBinary(struct.metadata);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_updateRawTableMetadata_argsTupleSchemeFactory implements SchemeFactory {
public user_updateRawTableMetadata_argsTupleScheme getScheme() {
return new user_updateRawTableMetadata_argsTupleScheme();
}
}
private static class user_updateRawTableMetadata_argsTupleScheme extends TupleScheme<user_updateRawTableMetadata_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_updateRawTableMetadata_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetTableId()) {
optionals.set(0);
}
if (struct.isSetMetadata()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetTableId()) {
oprot.writeI32(struct.tableId);
}
if (struct.isSetMetadata()) {
oprot.writeBinary(struct.metadata);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_updateRawTableMetadata_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.tableId = iprot.readI32();
struct.setTableIdIsSet(true);
}
if (incoming.get(1)) {
struct.metadata = iprot.readBinary();
struct.setMetadataIsSet(true);
}
}
}
}
public static class user_updateRawTableMetadata_result implements org.apache.thrift.TBase<user_updateRawTableMetadata_result, user_updateRawTableMetadata_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_updateRawTableMetadata_result");
private static final org.apache.thrift.protocol.TField E_T_FIELD_DESC = new org.apache.thrift.protocol.TField("eT", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField E_TA_FIELD_DESC = new org.apache.thrift.protocol.TField("eTa", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_updateRawTableMetadata_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_updateRawTableMetadata_resultTupleSchemeFactory());
}
public TableDoesNotExistException eT; // required
public TachyonException eTa; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
E_T((short)1, "eT"),
E_TA((short)2, "eTa");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // E_T
return E_T;
case 2: // E_TA
return E_TA;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.E_T, new org.apache.thrift.meta_data.FieldMetaData("eT", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_TA, new org.apache.thrift.meta_data.FieldMetaData("eTa", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_updateRawTableMetadata_result.class, metaDataMap);
}
public user_updateRawTableMetadata_result() {
}
public user_updateRawTableMetadata_result(
TableDoesNotExistException eT,
TachyonException eTa)
{
this();
this.eT = eT;
this.eTa = eTa;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_updateRawTableMetadata_result(user_updateRawTableMetadata_result other) {
if (other.isSetET()) {
this.eT = new TableDoesNotExistException(other.eT);
}
if (other.isSetETa()) {
this.eTa = new TachyonException(other.eTa);
}
}
public user_updateRawTableMetadata_result deepCopy() {
return new user_updateRawTableMetadata_result(this);
}
@Override
public void clear() {
this.eT = null;
this.eTa = null;
}
public TableDoesNotExistException getET() {
return this.eT;
}
public user_updateRawTableMetadata_result setET(TableDoesNotExistException eT) {
this.eT = eT;
return this;
}
public void unsetET() {
this.eT = null;
}
/** Returns true if field eT is set (has been assigned a value) and false otherwise */
public boolean isSetET() {
return this.eT != null;
}
public void setETIsSet(boolean value) {
if (!value) {
this.eT = null;
}
}
public TachyonException getETa() {
return this.eTa;
}
public user_updateRawTableMetadata_result setETa(TachyonException eTa) {
this.eTa = eTa;
return this;
}
public void unsetETa() {
this.eTa = null;
}
/** Returns true if field eTa is set (has been assigned a value) and false otherwise */
public boolean isSetETa() {
return this.eTa != null;
}
public void setETaIsSet(boolean value) {
if (!value) {
this.eTa = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case E_T:
if (value == null) {
unsetET();
} else {
setET((TableDoesNotExistException)value);
}
break;
case E_TA:
if (value == null) {
unsetETa();
} else {
setETa((TachyonException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case E_T:
return getET();
case E_TA:
return getETa();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case E_T:
return isSetET();
case E_TA:
return isSetETa();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_updateRawTableMetadata_result)
return this.equals((user_updateRawTableMetadata_result)that);
return false;
}
public boolean equals(user_updateRawTableMetadata_result that) {
if (that == null)
return false;
boolean this_present_eT = true && this.isSetET();
boolean that_present_eT = true && that.isSetET();
if (this_present_eT || that_present_eT) {
if (!(this_present_eT && that_present_eT))
return false;
if (!this.eT.equals(that.eT))
return false;
}
boolean this_present_eTa = true && this.isSetETa();
boolean that_present_eTa = true && that.isSetETa();
if (this_present_eTa || that_present_eTa) {
if (!(this_present_eTa && that_present_eTa))
return false;
if (!this.eTa.equals(that.eTa))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_updateRawTableMetadata_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_updateRawTableMetadata_result typedOther = (user_updateRawTableMetadata_result)other;
lastComparison = Boolean.valueOf(isSetET()).compareTo(typedOther.isSetET());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetET()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eT, typedOther.eT);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetETa()).compareTo(typedOther.isSetETa());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetETa()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eTa, typedOther.eTa);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_updateRawTableMetadata_result(");
boolean first = true;
sb.append("eT:");
if (this.eT == null) {
sb.append("null");
} else {
sb.append(this.eT);
}
first = false;
if (!first) sb.append(", ");
sb.append("eTa:");
if (this.eTa == null) {
sb.append("null");
} else {
sb.append(this.eTa);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_updateRawTableMetadata_resultStandardSchemeFactory implements SchemeFactory {
public user_updateRawTableMetadata_resultStandardScheme getScheme() {
return new user_updateRawTableMetadata_resultStandardScheme();
}
}
private static class user_updateRawTableMetadata_resultStandardScheme extends StandardScheme<user_updateRawTableMetadata_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_updateRawTableMetadata_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // E_T
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eT = new TableDoesNotExistException();
struct.eT.read(iprot);
struct.setETIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // E_TA
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eTa = new TachyonException();
struct.eTa.read(iprot);
struct.setETaIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_updateRawTableMetadata_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.eT != null) {
oprot.writeFieldBegin(E_T_FIELD_DESC);
struct.eT.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eTa != null) {
oprot.writeFieldBegin(E_TA_FIELD_DESC);
struct.eTa.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_updateRawTableMetadata_resultTupleSchemeFactory implements SchemeFactory {
public user_updateRawTableMetadata_resultTupleScheme getScheme() {
return new user_updateRawTableMetadata_resultTupleScheme();
}
}
private static class user_updateRawTableMetadata_resultTupleScheme extends TupleScheme<user_updateRawTableMetadata_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_updateRawTableMetadata_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetET()) {
optionals.set(0);
}
if (struct.isSetETa()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetET()) {
struct.eT.write(oprot);
}
if (struct.isSetETa()) {
struct.eTa.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_updateRawTableMetadata_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.eT = new TableDoesNotExistException();
struct.eT.read(iprot);
struct.setETIsSet(true);
}
if (incoming.get(1)) {
struct.eTa = new TachyonException();
struct.eTa.read(iprot);
struct.setETaIsSet(true);
}
}
}
}
public static class user_getNumberOfFiles_args implements org.apache.thrift.TBase<user_getNumberOfFiles_args, user_getNumberOfFiles_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getNumberOfFiles_args");
private static final org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getNumberOfFiles_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getNumberOfFiles_argsTupleSchemeFactory());
}
public String path; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
PATH((short)1, "path");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // PATH
return PATH;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getNumberOfFiles_args.class, metaDataMap);
}
public user_getNumberOfFiles_args() {
}
public user_getNumberOfFiles_args(
String path)
{
this();
this.path = path;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getNumberOfFiles_args(user_getNumberOfFiles_args other) {
if (other.isSetPath()) {
this.path = other.path;
}
}
public user_getNumberOfFiles_args deepCopy() {
return new user_getNumberOfFiles_args(this);
}
@Override
public void clear() {
this.path = null;
}
public String getPath() {
return this.path;
}
public user_getNumberOfFiles_args setPath(String path) {
this.path = path;
return this;
}
public void unsetPath() {
this.path = null;
}
/** Returns true if field path is set (has been assigned a value) and false otherwise */
public boolean isSetPath() {
return this.path != null;
}
public void setPathIsSet(boolean value) {
if (!value) {
this.path = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case PATH:
if (value == null) {
unsetPath();
} else {
setPath((String)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case PATH:
return getPath();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case PATH:
return isSetPath();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getNumberOfFiles_args)
return this.equals((user_getNumberOfFiles_args)that);
return false;
}
public boolean equals(user_getNumberOfFiles_args that) {
if (that == null)
return false;
boolean this_present_path = true && this.isSetPath();
boolean that_present_path = true && that.isSetPath();
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;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getNumberOfFiles_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getNumberOfFiles_args typedOther = (user_getNumberOfFiles_args)other;
lastComparison = Boolean.valueOf(isSetPath()).compareTo(typedOther.isSetPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, typedOther.path);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getNumberOfFiles_args(");
boolean first = true;
sb.append("path:");
if (this.path == null) {
sb.append("null");
} else {
sb.append(this.path);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getNumberOfFiles_argsStandardSchemeFactory implements SchemeFactory {
public user_getNumberOfFiles_argsStandardScheme getScheme() {
return new user_getNumberOfFiles_argsStandardScheme();
}
}
private static class user_getNumberOfFiles_argsStandardScheme extends StandardScheme<user_getNumberOfFiles_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getNumberOfFiles_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getNumberOfFiles_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.path != null) {
oprot.writeFieldBegin(PATH_FIELD_DESC);
oprot.writeString(struct.path);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getNumberOfFiles_argsTupleSchemeFactory implements SchemeFactory {
public user_getNumberOfFiles_argsTupleScheme getScheme() {
return new user_getNumberOfFiles_argsTupleScheme();
}
}
private static class user_getNumberOfFiles_argsTupleScheme extends TupleScheme<user_getNumberOfFiles_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getNumberOfFiles_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetPath()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetPath()) {
oprot.writeString(struct.path);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getNumberOfFiles_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
}
}
}
}
public static class user_getNumberOfFiles_result implements org.apache.thrift.TBase<user_getNumberOfFiles_result, user_getNumberOfFiles_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getNumberOfFiles_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
private static final org.apache.thrift.protocol.TField E_R_FIELD_DESC = new org.apache.thrift.protocol.TField("eR", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField E_I_FIELD_DESC = new org.apache.thrift.protocol.TField("eI", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getNumberOfFiles_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getNumberOfFiles_resultTupleSchemeFactory());
}
public int success; // required
public FileDoesNotExistException eR; // required
public InvalidPathException eI; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E_R((short)1, "eR"),
E_I((short)2, "eI");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E_R
return E_R;
case 2: // E_I
return E_I;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.E_R, new org.apache.thrift.meta_data.FieldMetaData("eR", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.E_I, new org.apache.thrift.meta_data.FieldMetaData("eI", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getNumberOfFiles_result.class, metaDataMap);
}
public user_getNumberOfFiles_result() {
}
public user_getNumberOfFiles_result(
int success,
FileDoesNotExistException eR,
InvalidPathException eI)
{
this();
this.success = success;
setSuccessIsSet(true);
this.eR = eR;
this.eI = eI;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getNumberOfFiles_result(user_getNumberOfFiles_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
if (other.isSetER()) {
this.eR = new FileDoesNotExistException(other.eR);
}
if (other.isSetEI()) {
this.eI = new InvalidPathException(other.eI);
}
}
public user_getNumberOfFiles_result deepCopy() {
return new user_getNumberOfFiles_result(this);
}
@Override
public void clear() {
setSuccessIsSet(false);
this.success = 0;
this.eR = null;
this.eI = null;
}
public int getSuccess() {
return this.success;
}
public user_getNumberOfFiles_result setSuccess(int success) {
this.success = success;
setSuccessIsSet(true);
return this;
}
public void unsetSuccess() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public FileDoesNotExistException getER() {
return this.eR;
}
public user_getNumberOfFiles_result setER(FileDoesNotExistException eR) {
this.eR = eR;
return this;
}
public void unsetER() {
this.eR = null;
}
/** Returns true if field eR is set (has been assigned a value) and false otherwise */
public boolean isSetER() {
return this.eR != null;
}
public void setERIsSet(boolean value) {
if (!value) {
this.eR = null;
}
}
public InvalidPathException getEI() {
return this.eI;
}
public user_getNumberOfFiles_result setEI(InvalidPathException eI) {
this.eI = eI;
return this;
}
public void unsetEI() {
this.eI = null;
}
/** Returns true if field eI is set (has been assigned a value) and false otherwise */
public boolean isSetEI() {
return this.eI != null;
}
public void setEIIsSet(boolean value) {
if (!value) {
this.eI = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Integer)value);
}
break;
case E_R:
if (value == null) {
unsetER();
} else {
setER((FileDoesNotExistException)value);
}
break;
case E_I:
if (value == null) {
unsetEI();
} else {
setEI((InvalidPathException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return Integer.valueOf(getSuccess());
case E_R:
return getER();
case E_I:
return getEI();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case E_R:
return isSetER();
case E_I:
return isSetEI();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getNumberOfFiles_result)
return this.equals((user_getNumberOfFiles_result)that);
return false;
}
public boolean equals(user_getNumberOfFiles_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_eR = true && this.isSetER();
boolean that_present_eR = true && that.isSetER();
if (this_present_eR || that_present_eR) {
if (!(this_present_eR && that_present_eR))
return false;
if (!this.eR.equals(that.eR))
return false;
}
boolean this_present_eI = true && this.isSetEI();
boolean that_present_eI = true && that.isSetEI();
if (this_present_eI || that_present_eI) {
if (!(this_present_eI && that_present_eI))
return false;
if (!this.eI.equals(that.eI))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getNumberOfFiles_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getNumberOfFiles_result typedOther = (user_getNumberOfFiles_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetER()).compareTo(typedOther.isSetER());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetER()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eR, typedOther.eR);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEI()).compareTo(typedOther.isSetEI());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEI()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eI, typedOther.eI);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getNumberOfFiles_result(");
boolean first = true;
sb.append("success:");
sb.append(this.success);
first = false;
if (!first) sb.append(", ");
sb.append("eR:");
if (this.eR == null) {
sb.append("null");
} else {
sb.append(this.eR);
}
first = false;
if (!first) sb.append(", ");
sb.append("eI:");
if (this.eI == null) {
sb.append("null");
} else {
sb.append(this.eI);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getNumberOfFiles_resultStandardSchemeFactory implements SchemeFactory {
public user_getNumberOfFiles_resultStandardScheme getScheme() {
return new user_getNumberOfFiles_resultStandardScheme();
}
}
private static class user_getNumberOfFiles_resultStandardScheme extends StandardScheme<user_getNumberOfFiles_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getNumberOfFiles_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.success = iprot.readI32();
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E_R
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eR = new FileDoesNotExistException();
struct.eR.read(iprot);
struct.setERIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // E_I
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getNumberOfFiles_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.isSetSuccess()) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeI32(struct.success);
oprot.writeFieldEnd();
}
if (struct.eR != null) {
oprot.writeFieldBegin(E_R_FIELD_DESC);
struct.eR.write(oprot);
oprot.writeFieldEnd();
}
if (struct.eI != null) {
oprot.writeFieldBegin(E_I_FIELD_DESC);
struct.eI.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getNumberOfFiles_resultTupleSchemeFactory implements SchemeFactory {
public user_getNumberOfFiles_resultTupleScheme getScheme() {
return new user_getNumberOfFiles_resultTupleScheme();
}
}
private static class user_getNumberOfFiles_resultTupleScheme extends TupleScheme<user_getNumberOfFiles_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getNumberOfFiles_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetER()) {
optionals.set(1);
}
if (struct.isSetEI()) {
optionals.set(2);
}
oprot.writeBitSet(optionals, 3);
if (struct.isSetSuccess()) {
oprot.writeI32(struct.success);
}
if (struct.isSetER()) {
struct.eR.write(oprot);
}
if (struct.isSetEI()) {
struct.eI.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getNumberOfFiles_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
struct.success = iprot.readI32();
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.eR = new FileDoesNotExistException();
struct.eR.read(iprot);
struct.setERIsSet(true);
}
if (incoming.get(2)) {
struct.eI = new InvalidPathException();
struct.eI.read(iprot);
struct.setEIIsSet(true);
}
}
}
}
public static class user_getUnderfsAddress_args implements org.apache.thrift.TBase<user_getUnderfsAddress_args, user_getUnderfsAddress_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getUnderfsAddress_args");
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getUnderfsAddress_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getUnderfsAddress_argsTupleSchemeFactory());
}
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
;
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getUnderfsAddress_args.class, metaDataMap);
}
public user_getUnderfsAddress_args() {
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getUnderfsAddress_args(user_getUnderfsAddress_args other) {
}
public user_getUnderfsAddress_args deepCopy() {
return new user_getUnderfsAddress_args(this);
}
@Override
public void clear() {
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getUnderfsAddress_args)
return this.equals((user_getUnderfsAddress_args)that);
return false;
}
public boolean equals(user_getUnderfsAddress_args that) {
if (that == null)
return false;
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getUnderfsAddress_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getUnderfsAddress_args typedOther = (user_getUnderfsAddress_args)other;
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getUnderfsAddress_args(");
boolean first = true;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getUnderfsAddress_argsStandardSchemeFactory implements SchemeFactory {
public user_getUnderfsAddress_argsStandardScheme getScheme() {
return new user_getUnderfsAddress_argsStandardScheme();
}
}
private static class user_getUnderfsAddress_argsStandardScheme extends StandardScheme<user_getUnderfsAddress_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getUnderfsAddress_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getUnderfsAddress_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getUnderfsAddress_argsTupleSchemeFactory implements SchemeFactory {
public user_getUnderfsAddress_argsTupleScheme getScheme() {
return new user_getUnderfsAddress_argsTupleScheme();
}
}
private static class user_getUnderfsAddress_argsTupleScheme extends TupleScheme<user_getUnderfsAddress_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getUnderfsAddress_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getUnderfsAddress_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
}
}
}
public static class user_getUnderfsAddress_result implements org.apache.thrift.TBase<user_getUnderfsAddress_result, user_getUnderfsAddress_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("user_getUnderfsAddress_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new user_getUnderfsAddress_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new user_getUnderfsAddress_resultTupleSchemeFactory());
}
public String success; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(user_getUnderfsAddress_result.class, metaDataMap);
}
public user_getUnderfsAddress_result() {
}
public user_getUnderfsAddress_result(
String success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public user_getUnderfsAddress_result(user_getUnderfsAddress_result other) {
if (other.isSetSuccess()) {
this.success = other.success;
}
}
public user_getUnderfsAddress_result deepCopy() {
return new user_getUnderfsAddress_result(this);
}
@Override
public void clear() {
this.success = null;
}
public String getSuccess() {
return this.success;
}
public user_getUnderfsAddress_result setSuccess(String success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((String)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof user_getUnderfsAddress_result)
return this.equals((user_getUnderfsAddress_result)that);
return false;
}
public boolean equals(user_getUnderfsAddress_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
if (this_present_success || that_present_success) {
if (!(this_present_success && that_present_success))
return false;
if (!this.success.equals(that.success))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(user_getUnderfsAddress_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
user_getUnderfsAddress_result typedOther = (user_getUnderfsAddress_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("user_getUnderfsAddress_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class user_getUnderfsAddress_resultStandardSchemeFactory implements SchemeFactory {
public user_getUnderfsAddress_resultStandardScheme getScheme() {
return new user_getUnderfsAddress_resultStandardScheme();
}
}
private static class user_getUnderfsAddress_resultStandardScheme extends StandardScheme<user_getUnderfsAddress_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, user_getUnderfsAddress_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.success = iprot.readString();
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, user_getUnderfsAddress_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeString(struct.success);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class user_getUnderfsAddress_resultTupleSchemeFactory implements SchemeFactory {
public user_getUnderfsAddress_resultTupleScheme getScheme() {
return new user_getUnderfsAddress_resultTupleScheme();
}
}
private static class user_getUnderfsAddress_resultTupleScheme extends TupleScheme<user_getUnderfsAddress_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, user_getUnderfsAddress_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
oprot.writeString(struct.success);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, user_getUnderfsAddress_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = iprot.readString();
struct.setSuccessIsSet(true);
}
}
}
}
}