BackendService.java
/**
* Autogenerated by Thrift Compiler (0.16.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.doris.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)", date = "2026-05-14")
public class BackendService {
public interface Iface {
public org.apache.doris.thrift.TAgentResult submitTasks(java.util.List<org.apache.doris.thrift.TAgentTaskRequest> tasks) throws org.apache.thrift.TException;
public org.apache.doris.thrift.TAgentResult makeSnapshot(org.apache.doris.thrift.TSnapshotRequest snapshot_request) throws org.apache.thrift.TException;
public org.apache.doris.thrift.TAgentResult releaseSnapshot(java.lang.String snapshot_path) throws org.apache.thrift.TException;
public org.apache.doris.thrift.TAgentResult publishClusterState(org.apache.doris.thrift.TAgentPublishRequest request) throws org.apache.thrift.TException;
public TTabletStatResult getTabletStat() throws org.apache.thrift.TException;
public long getTrashUsedCapacity() throws org.apache.thrift.TException;
public java.util.List<TDiskTrashInfo> getDiskTrashUsedCapacity() throws org.apache.thrift.TException;
public org.apache.doris.thrift.TStatus submitRoutineLoadTask(java.util.List<TRoutineLoadTask> tasks) throws org.apache.thrift.TException;
public org.apache.doris.thrift.TScanOpenResult openScanner(org.apache.doris.thrift.TScanOpenParams params) throws org.apache.thrift.TException;
public org.apache.doris.thrift.TScanBatchResult getNext(org.apache.doris.thrift.TScanNextBatchParams params) throws org.apache.thrift.TException;
public org.apache.doris.thrift.TScanCloseResult closeScanner(org.apache.doris.thrift.TScanCloseParams params) throws org.apache.thrift.TException;
public TStreamLoadRecordResult getStreamLoadRecord(long last_stream_record_time) throws org.apache.thrift.TException;
public TCheckStorageFormatResult checkStorageFormat() throws org.apache.thrift.TException;
public TWarmUpCacheAsyncResponse warmUpCacheAsync(TWarmUpCacheAsyncRequest request) throws org.apache.thrift.TException;
public TCheckWarmUpCacheAsyncResponse checkWarmUpCacheAsync(TCheckWarmUpCacheAsyncRequest request) throws org.apache.thrift.TException;
public TSyncLoadForTabletsResponse syncLoadForTablets(TSyncLoadForTabletsRequest request) throws org.apache.thrift.TException;
public TGetTopNHotPartitionsResponse getTopNHotPartitions(TGetTopNHotPartitionsRequest request) throws org.apache.thrift.TException;
public TWarmUpTabletsResponse warmUpTablets(TWarmUpTabletsRequest request) throws org.apache.thrift.TException;
public TIngestBinlogResult ingestBinlog(TIngestBinlogRequest ingest_binlog_request) throws org.apache.thrift.TException;
public TQueryIngestBinlogResult queryIngestBinlog(TQueryIngestBinlogRequest query_ingest_binlog_request) throws org.apache.thrift.TException;
public TPublishTopicResult publishTopicInfo(TPublishTopicRequest topic_request) throws org.apache.thrift.TException;
public TGetRealtimeExecStatusResponse getRealtimeExecStatus(TGetRealtimeExecStatusRequest request) throws org.apache.thrift.TException;
public TDictionaryStatusList getDictionaryStatus(java.util.List<java.lang.Long> dictionary_ids) throws org.apache.thrift.TException;
public TTestStorageConnectivityResponse testStorageConnectivity(TTestStorageConnectivityRequest request) throws org.apache.thrift.TException;
}
public interface AsyncIface {
public void submitTasks(java.util.List<org.apache.doris.thrift.TAgentTaskRequest> tasks, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult> resultHandler) throws org.apache.thrift.TException;
public void makeSnapshot(org.apache.doris.thrift.TSnapshotRequest snapshot_request, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult> resultHandler) throws org.apache.thrift.TException;
public void releaseSnapshot(java.lang.String snapshot_path, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult> resultHandler) throws org.apache.thrift.TException;
public void publishClusterState(org.apache.doris.thrift.TAgentPublishRequest request, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult> resultHandler) throws org.apache.thrift.TException;
public void getTabletStat(org.apache.thrift.async.AsyncMethodCallback<TTabletStatResult> resultHandler) throws org.apache.thrift.TException;
public void getTrashUsedCapacity(org.apache.thrift.async.AsyncMethodCallback<java.lang.Long> resultHandler) throws org.apache.thrift.TException;
public void getDiskTrashUsedCapacity(org.apache.thrift.async.AsyncMethodCallback<java.util.List<TDiskTrashInfo>> resultHandler) throws org.apache.thrift.TException;
public void submitRoutineLoadTask(java.util.List<TRoutineLoadTask> tasks, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TStatus> resultHandler) throws org.apache.thrift.TException;
public void openScanner(org.apache.doris.thrift.TScanOpenParams params, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TScanOpenResult> resultHandler) throws org.apache.thrift.TException;
public void getNext(org.apache.doris.thrift.TScanNextBatchParams params, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TScanBatchResult> resultHandler) throws org.apache.thrift.TException;
public void closeScanner(org.apache.doris.thrift.TScanCloseParams params, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TScanCloseResult> resultHandler) throws org.apache.thrift.TException;
public void getStreamLoadRecord(long last_stream_record_time, org.apache.thrift.async.AsyncMethodCallback<TStreamLoadRecordResult> resultHandler) throws org.apache.thrift.TException;
public void checkStorageFormat(org.apache.thrift.async.AsyncMethodCallback<TCheckStorageFormatResult> resultHandler) throws org.apache.thrift.TException;
public void warmUpCacheAsync(TWarmUpCacheAsyncRequest request, org.apache.thrift.async.AsyncMethodCallback<TWarmUpCacheAsyncResponse> resultHandler) throws org.apache.thrift.TException;
public void checkWarmUpCacheAsync(TCheckWarmUpCacheAsyncRequest request, org.apache.thrift.async.AsyncMethodCallback<TCheckWarmUpCacheAsyncResponse> resultHandler) throws org.apache.thrift.TException;
public void syncLoadForTablets(TSyncLoadForTabletsRequest request, org.apache.thrift.async.AsyncMethodCallback<TSyncLoadForTabletsResponse> resultHandler) throws org.apache.thrift.TException;
public void getTopNHotPartitions(TGetTopNHotPartitionsRequest request, org.apache.thrift.async.AsyncMethodCallback<TGetTopNHotPartitionsResponse> resultHandler) throws org.apache.thrift.TException;
public void warmUpTablets(TWarmUpTabletsRequest request, org.apache.thrift.async.AsyncMethodCallback<TWarmUpTabletsResponse> resultHandler) throws org.apache.thrift.TException;
public void ingestBinlog(TIngestBinlogRequest ingest_binlog_request, org.apache.thrift.async.AsyncMethodCallback<TIngestBinlogResult> resultHandler) throws org.apache.thrift.TException;
public void queryIngestBinlog(TQueryIngestBinlogRequest query_ingest_binlog_request, org.apache.thrift.async.AsyncMethodCallback<TQueryIngestBinlogResult> resultHandler) throws org.apache.thrift.TException;
public void publishTopicInfo(TPublishTopicRequest topic_request, org.apache.thrift.async.AsyncMethodCallback<TPublishTopicResult> resultHandler) throws org.apache.thrift.TException;
public void getRealtimeExecStatus(TGetRealtimeExecStatusRequest request, org.apache.thrift.async.AsyncMethodCallback<TGetRealtimeExecStatusResponse> resultHandler) throws org.apache.thrift.TException;
public void getDictionaryStatus(java.util.List<java.lang.Long> dictionary_ids, org.apache.thrift.async.AsyncMethodCallback<TDictionaryStatusList> resultHandler) throws org.apache.thrift.TException;
public void testStorageConnectivity(TTestStorageConnectivityRequest request, org.apache.thrift.async.AsyncMethodCallback<TTestStorageConnectivityResponse> 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 org.apache.doris.thrift.TAgentResult submitTasks(java.util.List<org.apache.doris.thrift.TAgentTaskRequest> tasks) throws org.apache.thrift.TException
{
sendSubmitTasks(tasks);
return recvSubmitTasks();
}
public void sendSubmitTasks(java.util.List<org.apache.doris.thrift.TAgentTaskRequest> tasks) throws org.apache.thrift.TException
{
submit_tasks_args args = new submit_tasks_args();
args.setTasks(tasks);
sendBase("submit_tasks", args);
}
public org.apache.doris.thrift.TAgentResult recvSubmitTasks() throws org.apache.thrift.TException
{
submit_tasks_result result = new submit_tasks_result();
receiveBase(result, "submit_tasks");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "submit_tasks failed: unknown result");
}
public org.apache.doris.thrift.TAgentResult makeSnapshot(org.apache.doris.thrift.TSnapshotRequest snapshot_request) throws org.apache.thrift.TException
{
sendMakeSnapshot(snapshot_request);
return recvMakeSnapshot();
}
public void sendMakeSnapshot(org.apache.doris.thrift.TSnapshotRequest snapshot_request) throws org.apache.thrift.TException
{
make_snapshot_args args = new make_snapshot_args();
args.setSnapshotRequest(snapshot_request);
sendBase("make_snapshot", args);
}
public org.apache.doris.thrift.TAgentResult recvMakeSnapshot() throws org.apache.thrift.TException
{
make_snapshot_result result = new make_snapshot_result();
receiveBase(result, "make_snapshot");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "make_snapshot failed: unknown result");
}
public org.apache.doris.thrift.TAgentResult releaseSnapshot(java.lang.String snapshot_path) throws org.apache.thrift.TException
{
sendReleaseSnapshot(snapshot_path);
return recvReleaseSnapshot();
}
public void sendReleaseSnapshot(java.lang.String snapshot_path) throws org.apache.thrift.TException
{
release_snapshot_args args = new release_snapshot_args();
args.setSnapshotPath(snapshot_path);
sendBase("release_snapshot", args);
}
public org.apache.doris.thrift.TAgentResult recvReleaseSnapshot() throws org.apache.thrift.TException
{
release_snapshot_result result = new release_snapshot_result();
receiveBase(result, "release_snapshot");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "release_snapshot failed: unknown result");
}
public org.apache.doris.thrift.TAgentResult publishClusterState(org.apache.doris.thrift.TAgentPublishRequest request) throws org.apache.thrift.TException
{
sendPublishClusterState(request);
return recvPublishClusterState();
}
public void sendPublishClusterState(org.apache.doris.thrift.TAgentPublishRequest request) throws org.apache.thrift.TException
{
publish_cluster_state_args args = new publish_cluster_state_args();
args.setRequest(request);
sendBase("publish_cluster_state", args);
}
public org.apache.doris.thrift.TAgentResult recvPublishClusterState() throws org.apache.thrift.TException
{
publish_cluster_state_result result = new publish_cluster_state_result();
receiveBase(result, "publish_cluster_state");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "publish_cluster_state failed: unknown result");
}
public TTabletStatResult getTabletStat() throws org.apache.thrift.TException
{
sendGetTabletStat();
return recvGetTabletStat();
}
public void sendGetTabletStat() throws org.apache.thrift.TException
{
get_tablet_stat_args args = new get_tablet_stat_args();
sendBase("get_tablet_stat", args);
}
public TTabletStatResult recvGetTabletStat() throws org.apache.thrift.TException
{
get_tablet_stat_result result = new get_tablet_stat_result();
receiveBase(result, "get_tablet_stat");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_tablet_stat failed: unknown result");
}
public long getTrashUsedCapacity() throws org.apache.thrift.TException
{
sendGetTrashUsedCapacity();
return recvGetTrashUsedCapacity();
}
public void sendGetTrashUsedCapacity() throws org.apache.thrift.TException
{
get_trash_used_capacity_args args = new get_trash_used_capacity_args();
sendBase("get_trash_used_capacity", args);
}
public long recvGetTrashUsedCapacity() throws org.apache.thrift.TException
{
get_trash_used_capacity_result result = new get_trash_used_capacity_result();
receiveBase(result, "get_trash_used_capacity");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_trash_used_capacity failed: unknown result");
}
public java.util.List<TDiskTrashInfo> getDiskTrashUsedCapacity() throws org.apache.thrift.TException
{
sendGetDiskTrashUsedCapacity();
return recvGetDiskTrashUsedCapacity();
}
public void sendGetDiskTrashUsedCapacity() throws org.apache.thrift.TException
{
get_disk_trash_used_capacity_args args = new get_disk_trash_used_capacity_args();
sendBase("get_disk_trash_used_capacity", args);
}
public java.util.List<TDiskTrashInfo> recvGetDiskTrashUsedCapacity() throws org.apache.thrift.TException
{
get_disk_trash_used_capacity_result result = new get_disk_trash_used_capacity_result();
receiveBase(result, "get_disk_trash_used_capacity");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_disk_trash_used_capacity failed: unknown result");
}
public org.apache.doris.thrift.TStatus submitRoutineLoadTask(java.util.List<TRoutineLoadTask> tasks) throws org.apache.thrift.TException
{
sendSubmitRoutineLoadTask(tasks);
return recvSubmitRoutineLoadTask();
}
public void sendSubmitRoutineLoadTask(java.util.List<TRoutineLoadTask> tasks) throws org.apache.thrift.TException
{
submit_routine_load_task_args args = new submit_routine_load_task_args();
args.setTasks(tasks);
sendBase("submit_routine_load_task", args);
}
public org.apache.doris.thrift.TStatus recvSubmitRoutineLoadTask() throws org.apache.thrift.TException
{
submit_routine_load_task_result result = new submit_routine_load_task_result();
receiveBase(result, "submit_routine_load_task");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "submit_routine_load_task failed: unknown result");
}
public org.apache.doris.thrift.TScanOpenResult openScanner(org.apache.doris.thrift.TScanOpenParams params) throws org.apache.thrift.TException
{
sendOpenScanner(params);
return recvOpenScanner();
}
public void sendOpenScanner(org.apache.doris.thrift.TScanOpenParams params) throws org.apache.thrift.TException
{
open_scanner_args args = new open_scanner_args();
args.setParams(params);
sendBase("open_scanner", args);
}
public org.apache.doris.thrift.TScanOpenResult recvOpenScanner() throws org.apache.thrift.TException
{
open_scanner_result result = new open_scanner_result();
receiveBase(result, "open_scanner");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "open_scanner failed: unknown result");
}
public org.apache.doris.thrift.TScanBatchResult getNext(org.apache.doris.thrift.TScanNextBatchParams params) throws org.apache.thrift.TException
{
sendGetNext(params);
return recvGetNext();
}
public void sendGetNext(org.apache.doris.thrift.TScanNextBatchParams params) throws org.apache.thrift.TException
{
get_next_args args = new get_next_args();
args.setParams(params);
sendBase("get_next", args);
}
public org.apache.doris.thrift.TScanBatchResult recvGetNext() throws org.apache.thrift.TException
{
get_next_result result = new get_next_result();
receiveBase(result, "get_next");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_next failed: unknown result");
}
public org.apache.doris.thrift.TScanCloseResult closeScanner(org.apache.doris.thrift.TScanCloseParams params) throws org.apache.thrift.TException
{
sendCloseScanner(params);
return recvCloseScanner();
}
public void sendCloseScanner(org.apache.doris.thrift.TScanCloseParams params) throws org.apache.thrift.TException
{
close_scanner_args args = new close_scanner_args();
args.setParams(params);
sendBase("close_scanner", args);
}
public org.apache.doris.thrift.TScanCloseResult recvCloseScanner() throws org.apache.thrift.TException
{
close_scanner_result result = new close_scanner_result();
receiveBase(result, "close_scanner");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "close_scanner failed: unknown result");
}
public TStreamLoadRecordResult getStreamLoadRecord(long last_stream_record_time) throws org.apache.thrift.TException
{
sendGetStreamLoadRecord(last_stream_record_time);
return recvGetStreamLoadRecord();
}
public void sendGetStreamLoadRecord(long last_stream_record_time) throws org.apache.thrift.TException
{
get_stream_load_record_args args = new get_stream_load_record_args();
args.setLastStreamRecordTime(last_stream_record_time);
sendBase("get_stream_load_record", args);
}
public TStreamLoadRecordResult recvGetStreamLoadRecord() throws org.apache.thrift.TException
{
get_stream_load_record_result result = new get_stream_load_record_result();
receiveBase(result, "get_stream_load_record");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_stream_load_record failed: unknown result");
}
public TCheckStorageFormatResult checkStorageFormat() throws org.apache.thrift.TException
{
sendCheckStorageFormat();
return recvCheckStorageFormat();
}
public void sendCheckStorageFormat() throws org.apache.thrift.TException
{
check_storage_format_args args = new check_storage_format_args();
sendBase("check_storage_format", args);
}
public TCheckStorageFormatResult recvCheckStorageFormat() throws org.apache.thrift.TException
{
check_storage_format_result result = new check_storage_format_result();
receiveBase(result, "check_storage_format");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "check_storage_format failed: unknown result");
}
public TWarmUpCacheAsyncResponse warmUpCacheAsync(TWarmUpCacheAsyncRequest request) throws org.apache.thrift.TException
{
sendWarmUpCacheAsync(request);
return recvWarmUpCacheAsync();
}
public void sendWarmUpCacheAsync(TWarmUpCacheAsyncRequest request) throws org.apache.thrift.TException
{
warm_up_cache_async_args args = new warm_up_cache_async_args();
args.setRequest(request);
sendBase("warm_up_cache_async", args);
}
public TWarmUpCacheAsyncResponse recvWarmUpCacheAsync() throws org.apache.thrift.TException
{
warm_up_cache_async_result result = new warm_up_cache_async_result();
receiveBase(result, "warm_up_cache_async");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "warm_up_cache_async failed: unknown result");
}
public TCheckWarmUpCacheAsyncResponse checkWarmUpCacheAsync(TCheckWarmUpCacheAsyncRequest request) throws org.apache.thrift.TException
{
sendCheckWarmUpCacheAsync(request);
return recvCheckWarmUpCacheAsync();
}
public void sendCheckWarmUpCacheAsync(TCheckWarmUpCacheAsyncRequest request) throws org.apache.thrift.TException
{
check_warm_up_cache_async_args args = new check_warm_up_cache_async_args();
args.setRequest(request);
sendBase("check_warm_up_cache_async", args);
}
public TCheckWarmUpCacheAsyncResponse recvCheckWarmUpCacheAsync() throws org.apache.thrift.TException
{
check_warm_up_cache_async_result result = new check_warm_up_cache_async_result();
receiveBase(result, "check_warm_up_cache_async");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "check_warm_up_cache_async failed: unknown result");
}
public TSyncLoadForTabletsResponse syncLoadForTablets(TSyncLoadForTabletsRequest request) throws org.apache.thrift.TException
{
sendSyncLoadForTablets(request);
return recvSyncLoadForTablets();
}
public void sendSyncLoadForTablets(TSyncLoadForTabletsRequest request) throws org.apache.thrift.TException
{
sync_load_for_tablets_args args = new sync_load_for_tablets_args();
args.setRequest(request);
sendBase("sync_load_for_tablets", args);
}
public TSyncLoadForTabletsResponse recvSyncLoadForTablets() throws org.apache.thrift.TException
{
sync_load_for_tablets_result result = new sync_load_for_tablets_result();
receiveBase(result, "sync_load_for_tablets");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sync_load_for_tablets failed: unknown result");
}
public TGetTopNHotPartitionsResponse getTopNHotPartitions(TGetTopNHotPartitionsRequest request) throws org.apache.thrift.TException
{
sendGetTopNHotPartitions(request);
return recvGetTopNHotPartitions();
}
public void sendGetTopNHotPartitions(TGetTopNHotPartitionsRequest request) throws org.apache.thrift.TException
{
get_top_n_hot_partitions_args args = new get_top_n_hot_partitions_args();
args.setRequest(request);
sendBase("get_top_n_hot_partitions", args);
}
public TGetTopNHotPartitionsResponse recvGetTopNHotPartitions() throws org.apache.thrift.TException
{
get_top_n_hot_partitions_result result = new get_top_n_hot_partitions_result();
receiveBase(result, "get_top_n_hot_partitions");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_top_n_hot_partitions failed: unknown result");
}
public TWarmUpTabletsResponse warmUpTablets(TWarmUpTabletsRequest request) throws org.apache.thrift.TException
{
sendWarmUpTablets(request);
return recvWarmUpTablets();
}
public void sendWarmUpTablets(TWarmUpTabletsRequest request) throws org.apache.thrift.TException
{
warm_up_tablets_args args = new warm_up_tablets_args();
args.setRequest(request);
sendBase("warm_up_tablets", args);
}
public TWarmUpTabletsResponse recvWarmUpTablets() throws org.apache.thrift.TException
{
warm_up_tablets_result result = new warm_up_tablets_result();
receiveBase(result, "warm_up_tablets");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "warm_up_tablets failed: unknown result");
}
public TIngestBinlogResult ingestBinlog(TIngestBinlogRequest ingest_binlog_request) throws org.apache.thrift.TException
{
sendIngestBinlog(ingest_binlog_request);
return recvIngestBinlog();
}
public void sendIngestBinlog(TIngestBinlogRequest ingest_binlog_request) throws org.apache.thrift.TException
{
ingest_binlog_args args = new ingest_binlog_args();
args.setIngestBinlogRequest(ingest_binlog_request);
sendBase("ingest_binlog", args);
}
public TIngestBinlogResult recvIngestBinlog() throws org.apache.thrift.TException
{
ingest_binlog_result result = new ingest_binlog_result();
receiveBase(result, "ingest_binlog");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "ingest_binlog failed: unknown result");
}
public TQueryIngestBinlogResult queryIngestBinlog(TQueryIngestBinlogRequest query_ingest_binlog_request) throws org.apache.thrift.TException
{
sendQueryIngestBinlog(query_ingest_binlog_request);
return recvQueryIngestBinlog();
}
public void sendQueryIngestBinlog(TQueryIngestBinlogRequest query_ingest_binlog_request) throws org.apache.thrift.TException
{
query_ingest_binlog_args args = new query_ingest_binlog_args();
args.setQueryIngestBinlogRequest(query_ingest_binlog_request);
sendBase("query_ingest_binlog", args);
}
public TQueryIngestBinlogResult recvQueryIngestBinlog() throws org.apache.thrift.TException
{
query_ingest_binlog_result result = new query_ingest_binlog_result();
receiveBase(result, "query_ingest_binlog");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "query_ingest_binlog failed: unknown result");
}
public TPublishTopicResult publishTopicInfo(TPublishTopicRequest topic_request) throws org.apache.thrift.TException
{
sendPublishTopicInfo(topic_request);
return recvPublishTopicInfo();
}
public void sendPublishTopicInfo(TPublishTopicRequest topic_request) throws org.apache.thrift.TException
{
publish_topic_info_args args = new publish_topic_info_args();
args.setTopicRequest(topic_request);
sendBase("publish_topic_info", args);
}
public TPublishTopicResult recvPublishTopicInfo() throws org.apache.thrift.TException
{
publish_topic_info_result result = new publish_topic_info_result();
receiveBase(result, "publish_topic_info");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "publish_topic_info failed: unknown result");
}
public TGetRealtimeExecStatusResponse getRealtimeExecStatus(TGetRealtimeExecStatusRequest request) throws org.apache.thrift.TException
{
sendGetRealtimeExecStatus(request);
return recvGetRealtimeExecStatus();
}
public void sendGetRealtimeExecStatus(TGetRealtimeExecStatusRequest request) throws org.apache.thrift.TException
{
get_realtime_exec_status_args args = new get_realtime_exec_status_args();
args.setRequest(request);
sendBase("get_realtime_exec_status", args);
}
public TGetRealtimeExecStatusResponse recvGetRealtimeExecStatus() throws org.apache.thrift.TException
{
get_realtime_exec_status_result result = new get_realtime_exec_status_result();
receiveBase(result, "get_realtime_exec_status");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_realtime_exec_status failed: unknown result");
}
public TDictionaryStatusList getDictionaryStatus(java.util.List<java.lang.Long> dictionary_ids) throws org.apache.thrift.TException
{
sendGetDictionaryStatus(dictionary_ids);
return recvGetDictionaryStatus();
}
public void sendGetDictionaryStatus(java.util.List<java.lang.Long> dictionary_ids) throws org.apache.thrift.TException
{
get_dictionary_status_args args = new get_dictionary_status_args();
args.setDictionaryIds(dictionary_ids);
sendBase("get_dictionary_status", args);
}
public TDictionaryStatusList recvGetDictionaryStatus() throws org.apache.thrift.TException
{
get_dictionary_status_result result = new get_dictionary_status_result();
receiveBase(result, "get_dictionary_status");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_dictionary_status failed: unknown result");
}
public TTestStorageConnectivityResponse testStorageConnectivity(TTestStorageConnectivityRequest request) throws org.apache.thrift.TException
{
sendTestStorageConnectivity(request);
return recvTestStorageConnectivity();
}
public void sendTestStorageConnectivity(TTestStorageConnectivityRequest request) throws org.apache.thrift.TException
{
test_storage_connectivity_args args = new test_storage_connectivity_args();
args.setRequest(request);
sendBase("test_storage_connectivity", args);
}
public TTestStorageConnectivityResponse recvTestStorageConnectivity() throws org.apache.thrift.TException
{
test_storage_connectivity_result result = new test_storage_connectivity_result();
receiveBase(result, "test_storage_connectivity");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "test_storage_connectivity 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 submitTasks(java.util.List<org.apache.doris.thrift.TAgentTaskRequest> tasks, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult> resultHandler) throws org.apache.thrift.TException {
checkReady();
submit_tasks_call method_call = new submit_tasks_call(tasks, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class submit_tasks_call extends org.apache.thrift.async.TAsyncMethodCall<org.apache.doris.thrift.TAgentResult> {
private java.util.List<org.apache.doris.thrift.TAgentTaskRequest> tasks;
public submit_tasks_call(java.util.List<org.apache.doris.thrift.TAgentTaskRequest> tasks, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult> 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.tasks = tasks;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("submit_tasks", org.apache.thrift.protocol.TMessageType.CALL, 0));
submit_tasks_args args = new submit_tasks_args();
args.setTasks(tasks);
args.write(prot);
prot.writeMessageEnd();
}
public org.apache.doris.thrift.TAgentResult getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvSubmitTasks();
}
}
public void makeSnapshot(org.apache.doris.thrift.TSnapshotRequest snapshot_request, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult> resultHandler) throws org.apache.thrift.TException {
checkReady();
make_snapshot_call method_call = new make_snapshot_call(snapshot_request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class make_snapshot_call extends org.apache.thrift.async.TAsyncMethodCall<org.apache.doris.thrift.TAgentResult> {
private org.apache.doris.thrift.TSnapshotRequest snapshot_request;
public make_snapshot_call(org.apache.doris.thrift.TSnapshotRequest snapshot_request, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult> 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.snapshot_request = snapshot_request;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("make_snapshot", org.apache.thrift.protocol.TMessageType.CALL, 0));
make_snapshot_args args = new make_snapshot_args();
args.setSnapshotRequest(snapshot_request);
args.write(prot);
prot.writeMessageEnd();
}
public org.apache.doris.thrift.TAgentResult getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvMakeSnapshot();
}
}
public void releaseSnapshot(java.lang.String snapshot_path, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult> resultHandler) throws org.apache.thrift.TException {
checkReady();
release_snapshot_call method_call = new release_snapshot_call(snapshot_path, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class release_snapshot_call extends org.apache.thrift.async.TAsyncMethodCall<org.apache.doris.thrift.TAgentResult> {
private java.lang.String snapshot_path;
public release_snapshot_call(java.lang.String snapshot_path, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult> 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.snapshot_path = snapshot_path;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("release_snapshot", org.apache.thrift.protocol.TMessageType.CALL, 0));
release_snapshot_args args = new release_snapshot_args();
args.setSnapshotPath(snapshot_path);
args.write(prot);
prot.writeMessageEnd();
}
public org.apache.doris.thrift.TAgentResult getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvReleaseSnapshot();
}
}
public void publishClusterState(org.apache.doris.thrift.TAgentPublishRequest request, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult> resultHandler) throws org.apache.thrift.TException {
checkReady();
publish_cluster_state_call method_call = new publish_cluster_state_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class publish_cluster_state_call extends org.apache.thrift.async.TAsyncMethodCall<org.apache.doris.thrift.TAgentResult> {
private org.apache.doris.thrift.TAgentPublishRequest request;
public publish_cluster_state_call(org.apache.doris.thrift.TAgentPublishRequest request, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult> 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.request = request;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("publish_cluster_state", org.apache.thrift.protocol.TMessageType.CALL, 0));
publish_cluster_state_args args = new publish_cluster_state_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public org.apache.doris.thrift.TAgentResult getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvPublishClusterState();
}
}
public void getTabletStat(org.apache.thrift.async.AsyncMethodCallback<TTabletStatResult> resultHandler) throws org.apache.thrift.TException {
checkReady();
get_tablet_stat_call method_call = new get_tablet_stat_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class get_tablet_stat_call extends org.apache.thrift.async.TAsyncMethodCall<TTabletStatResult> {
public get_tablet_stat_call(org.apache.thrift.async.AsyncMethodCallback<TTabletStatResult> 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("get_tablet_stat", org.apache.thrift.protocol.TMessageType.CALL, 0));
get_tablet_stat_args args = new get_tablet_stat_args();
args.write(prot);
prot.writeMessageEnd();
}
public TTabletStatResult getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvGetTabletStat();
}
}
public void getTrashUsedCapacity(org.apache.thrift.async.AsyncMethodCallback<java.lang.Long> resultHandler) throws org.apache.thrift.TException {
checkReady();
get_trash_used_capacity_call method_call = new get_trash_used_capacity_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class get_trash_used_capacity_call extends org.apache.thrift.async.TAsyncMethodCall<java.lang.Long> {
public get_trash_used_capacity_call(org.apache.thrift.async.AsyncMethodCallback<java.lang.Long> 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("get_trash_used_capacity", org.apache.thrift.protocol.TMessageType.CALL, 0));
get_trash_used_capacity_args args = new get_trash_used_capacity_args();
args.write(prot);
prot.writeMessageEnd();
}
public java.lang.Long getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvGetTrashUsedCapacity();
}
}
public void getDiskTrashUsedCapacity(org.apache.thrift.async.AsyncMethodCallback<java.util.List<TDiskTrashInfo>> resultHandler) throws org.apache.thrift.TException {
checkReady();
get_disk_trash_used_capacity_call method_call = new get_disk_trash_used_capacity_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class get_disk_trash_used_capacity_call extends org.apache.thrift.async.TAsyncMethodCall<java.util.List<TDiskTrashInfo>> {
public get_disk_trash_used_capacity_call(org.apache.thrift.async.AsyncMethodCallback<java.util.List<TDiskTrashInfo>> 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("get_disk_trash_used_capacity", org.apache.thrift.protocol.TMessageType.CALL, 0));
get_disk_trash_used_capacity_args args = new get_disk_trash_used_capacity_args();
args.write(prot);
prot.writeMessageEnd();
}
public java.util.List<TDiskTrashInfo> getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvGetDiskTrashUsedCapacity();
}
}
public void submitRoutineLoadTask(java.util.List<TRoutineLoadTask> tasks, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TStatus> resultHandler) throws org.apache.thrift.TException {
checkReady();
submit_routine_load_task_call method_call = new submit_routine_load_task_call(tasks, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class submit_routine_load_task_call extends org.apache.thrift.async.TAsyncMethodCall<org.apache.doris.thrift.TStatus> {
private java.util.List<TRoutineLoadTask> tasks;
public submit_routine_load_task_call(java.util.List<TRoutineLoadTask> tasks, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TStatus> 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.tasks = tasks;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("submit_routine_load_task", org.apache.thrift.protocol.TMessageType.CALL, 0));
submit_routine_load_task_args args = new submit_routine_load_task_args();
args.setTasks(tasks);
args.write(prot);
prot.writeMessageEnd();
}
public org.apache.doris.thrift.TStatus getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvSubmitRoutineLoadTask();
}
}
public void openScanner(org.apache.doris.thrift.TScanOpenParams params, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TScanOpenResult> resultHandler) throws org.apache.thrift.TException {
checkReady();
open_scanner_call method_call = new open_scanner_call(params, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class open_scanner_call extends org.apache.thrift.async.TAsyncMethodCall<org.apache.doris.thrift.TScanOpenResult> {
private org.apache.doris.thrift.TScanOpenParams params;
public open_scanner_call(org.apache.doris.thrift.TScanOpenParams params, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TScanOpenResult> 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.params = params;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("open_scanner", org.apache.thrift.protocol.TMessageType.CALL, 0));
open_scanner_args args = new open_scanner_args();
args.setParams(params);
args.write(prot);
prot.writeMessageEnd();
}
public org.apache.doris.thrift.TScanOpenResult getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvOpenScanner();
}
}
public void getNext(org.apache.doris.thrift.TScanNextBatchParams params, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TScanBatchResult> resultHandler) throws org.apache.thrift.TException {
checkReady();
get_next_call method_call = new get_next_call(params, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class get_next_call extends org.apache.thrift.async.TAsyncMethodCall<org.apache.doris.thrift.TScanBatchResult> {
private org.apache.doris.thrift.TScanNextBatchParams params;
public get_next_call(org.apache.doris.thrift.TScanNextBatchParams params, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TScanBatchResult> 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.params = params;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_next", org.apache.thrift.protocol.TMessageType.CALL, 0));
get_next_args args = new get_next_args();
args.setParams(params);
args.write(prot);
prot.writeMessageEnd();
}
public org.apache.doris.thrift.TScanBatchResult getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvGetNext();
}
}
public void closeScanner(org.apache.doris.thrift.TScanCloseParams params, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TScanCloseResult> resultHandler) throws org.apache.thrift.TException {
checkReady();
close_scanner_call method_call = new close_scanner_call(params, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class close_scanner_call extends org.apache.thrift.async.TAsyncMethodCall<org.apache.doris.thrift.TScanCloseResult> {
private org.apache.doris.thrift.TScanCloseParams params;
public close_scanner_call(org.apache.doris.thrift.TScanCloseParams params, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TScanCloseResult> 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.params = params;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("close_scanner", org.apache.thrift.protocol.TMessageType.CALL, 0));
close_scanner_args args = new close_scanner_args();
args.setParams(params);
args.write(prot);
prot.writeMessageEnd();
}
public org.apache.doris.thrift.TScanCloseResult getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvCloseScanner();
}
}
public void getStreamLoadRecord(long last_stream_record_time, org.apache.thrift.async.AsyncMethodCallback<TStreamLoadRecordResult> resultHandler) throws org.apache.thrift.TException {
checkReady();
get_stream_load_record_call method_call = new get_stream_load_record_call(last_stream_record_time, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class get_stream_load_record_call extends org.apache.thrift.async.TAsyncMethodCall<TStreamLoadRecordResult> {
private long last_stream_record_time;
public get_stream_load_record_call(long last_stream_record_time, org.apache.thrift.async.AsyncMethodCallback<TStreamLoadRecordResult> 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.last_stream_record_time = last_stream_record_time;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_stream_load_record", org.apache.thrift.protocol.TMessageType.CALL, 0));
get_stream_load_record_args args = new get_stream_load_record_args();
args.setLastStreamRecordTime(last_stream_record_time);
args.write(prot);
prot.writeMessageEnd();
}
public TStreamLoadRecordResult getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvGetStreamLoadRecord();
}
}
public void checkStorageFormat(org.apache.thrift.async.AsyncMethodCallback<TCheckStorageFormatResult> resultHandler) throws org.apache.thrift.TException {
checkReady();
check_storage_format_call method_call = new check_storage_format_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class check_storage_format_call extends org.apache.thrift.async.TAsyncMethodCall<TCheckStorageFormatResult> {
public check_storage_format_call(org.apache.thrift.async.AsyncMethodCallback<TCheckStorageFormatResult> 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("check_storage_format", org.apache.thrift.protocol.TMessageType.CALL, 0));
check_storage_format_args args = new check_storage_format_args();
args.write(prot);
prot.writeMessageEnd();
}
public TCheckStorageFormatResult getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvCheckStorageFormat();
}
}
public void warmUpCacheAsync(TWarmUpCacheAsyncRequest request, org.apache.thrift.async.AsyncMethodCallback<TWarmUpCacheAsyncResponse> resultHandler) throws org.apache.thrift.TException {
checkReady();
warm_up_cache_async_call method_call = new warm_up_cache_async_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class warm_up_cache_async_call extends org.apache.thrift.async.TAsyncMethodCall<TWarmUpCacheAsyncResponse> {
private TWarmUpCacheAsyncRequest request;
public warm_up_cache_async_call(TWarmUpCacheAsyncRequest request, org.apache.thrift.async.AsyncMethodCallback<TWarmUpCacheAsyncResponse> 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.request = request;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("warm_up_cache_async", org.apache.thrift.protocol.TMessageType.CALL, 0));
warm_up_cache_async_args args = new warm_up_cache_async_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public TWarmUpCacheAsyncResponse getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvWarmUpCacheAsync();
}
}
public void checkWarmUpCacheAsync(TCheckWarmUpCacheAsyncRequest request, org.apache.thrift.async.AsyncMethodCallback<TCheckWarmUpCacheAsyncResponse> resultHandler) throws org.apache.thrift.TException {
checkReady();
check_warm_up_cache_async_call method_call = new check_warm_up_cache_async_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class check_warm_up_cache_async_call extends org.apache.thrift.async.TAsyncMethodCall<TCheckWarmUpCacheAsyncResponse> {
private TCheckWarmUpCacheAsyncRequest request;
public check_warm_up_cache_async_call(TCheckWarmUpCacheAsyncRequest request, org.apache.thrift.async.AsyncMethodCallback<TCheckWarmUpCacheAsyncResponse> 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.request = request;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("check_warm_up_cache_async", org.apache.thrift.protocol.TMessageType.CALL, 0));
check_warm_up_cache_async_args args = new check_warm_up_cache_async_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public TCheckWarmUpCacheAsyncResponse getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvCheckWarmUpCacheAsync();
}
}
public void syncLoadForTablets(TSyncLoadForTabletsRequest request, org.apache.thrift.async.AsyncMethodCallback<TSyncLoadForTabletsResponse> resultHandler) throws org.apache.thrift.TException {
checkReady();
sync_load_for_tablets_call method_call = new sync_load_for_tablets_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class sync_load_for_tablets_call extends org.apache.thrift.async.TAsyncMethodCall<TSyncLoadForTabletsResponse> {
private TSyncLoadForTabletsRequest request;
public sync_load_for_tablets_call(TSyncLoadForTabletsRequest request, org.apache.thrift.async.AsyncMethodCallback<TSyncLoadForTabletsResponse> 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.request = request;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sync_load_for_tablets", org.apache.thrift.protocol.TMessageType.CALL, 0));
sync_load_for_tablets_args args = new sync_load_for_tablets_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public TSyncLoadForTabletsResponse getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvSyncLoadForTablets();
}
}
public void getTopNHotPartitions(TGetTopNHotPartitionsRequest request, org.apache.thrift.async.AsyncMethodCallback<TGetTopNHotPartitionsResponse> resultHandler) throws org.apache.thrift.TException {
checkReady();
get_top_n_hot_partitions_call method_call = new get_top_n_hot_partitions_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class get_top_n_hot_partitions_call extends org.apache.thrift.async.TAsyncMethodCall<TGetTopNHotPartitionsResponse> {
private TGetTopNHotPartitionsRequest request;
public get_top_n_hot_partitions_call(TGetTopNHotPartitionsRequest request, org.apache.thrift.async.AsyncMethodCallback<TGetTopNHotPartitionsResponse> 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.request = request;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_top_n_hot_partitions", org.apache.thrift.protocol.TMessageType.CALL, 0));
get_top_n_hot_partitions_args args = new get_top_n_hot_partitions_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public TGetTopNHotPartitionsResponse getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvGetTopNHotPartitions();
}
}
public void warmUpTablets(TWarmUpTabletsRequest request, org.apache.thrift.async.AsyncMethodCallback<TWarmUpTabletsResponse> resultHandler) throws org.apache.thrift.TException {
checkReady();
warm_up_tablets_call method_call = new warm_up_tablets_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class warm_up_tablets_call extends org.apache.thrift.async.TAsyncMethodCall<TWarmUpTabletsResponse> {
private TWarmUpTabletsRequest request;
public warm_up_tablets_call(TWarmUpTabletsRequest request, org.apache.thrift.async.AsyncMethodCallback<TWarmUpTabletsResponse> 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.request = request;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("warm_up_tablets", org.apache.thrift.protocol.TMessageType.CALL, 0));
warm_up_tablets_args args = new warm_up_tablets_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public TWarmUpTabletsResponse getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvWarmUpTablets();
}
}
public void ingestBinlog(TIngestBinlogRequest ingest_binlog_request, org.apache.thrift.async.AsyncMethodCallback<TIngestBinlogResult> resultHandler) throws org.apache.thrift.TException {
checkReady();
ingest_binlog_call method_call = new ingest_binlog_call(ingest_binlog_request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class ingest_binlog_call extends org.apache.thrift.async.TAsyncMethodCall<TIngestBinlogResult> {
private TIngestBinlogRequest ingest_binlog_request;
public ingest_binlog_call(TIngestBinlogRequest ingest_binlog_request, org.apache.thrift.async.AsyncMethodCallback<TIngestBinlogResult> 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.ingest_binlog_request = ingest_binlog_request;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("ingest_binlog", org.apache.thrift.protocol.TMessageType.CALL, 0));
ingest_binlog_args args = new ingest_binlog_args();
args.setIngestBinlogRequest(ingest_binlog_request);
args.write(prot);
prot.writeMessageEnd();
}
public TIngestBinlogResult getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvIngestBinlog();
}
}
public void queryIngestBinlog(TQueryIngestBinlogRequest query_ingest_binlog_request, org.apache.thrift.async.AsyncMethodCallback<TQueryIngestBinlogResult> resultHandler) throws org.apache.thrift.TException {
checkReady();
query_ingest_binlog_call method_call = new query_ingest_binlog_call(query_ingest_binlog_request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class query_ingest_binlog_call extends org.apache.thrift.async.TAsyncMethodCall<TQueryIngestBinlogResult> {
private TQueryIngestBinlogRequest query_ingest_binlog_request;
public query_ingest_binlog_call(TQueryIngestBinlogRequest query_ingest_binlog_request, org.apache.thrift.async.AsyncMethodCallback<TQueryIngestBinlogResult> 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.query_ingest_binlog_request = query_ingest_binlog_request;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("query_ingest_binlog", org.apache.thrift.protocol.TMessageType.CALL, 0));
query_ingest_binlog_args args = new query_ingest_binlog_args();
args.setQueryIngestBinlogRequest(query_ingest_binlog_request);
args.write(prot);
prot.writeMessageEnd();
}
public TQueryIngestBinlogResult getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvQueryIngestBinlog();
}
}
public void publishTopicInfo(TPublishTopicRequest topic_request, org.apache.thrift.async.AsyncMethodCallback<TPublishTopicResult> resultHandler) throws org.apache.thrift.TException {
checkReady();
publish_topic_info_call method_call = new publish_topic_info_call(topic_request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class publish_topic_info_call extends org.apache.thrift.async.TAsyncMethodCall<TPublishTopicResult> {
private TPublishTopicRequest topic_request;
public publish_topic_info_call(TPublishTopicRequest topic_request, org.apache.thrift.async.AsyncMethodCallback<TPublishTopicResult> 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.topic_request = topic_request;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("publish_topic_info", org.apache.thrift.protocol.TMessageType.CALL, 0));
publish_topic_info_args args = new publish_topic_info_args();
args.setTopicRequest(topic_request);
args.write(prot);
prot.writeMessageEnd();
}
public TPublishTopicResult getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvPublishTopicInfo();
}
}
public void getRealtimeExecStatus(TGetRealtimeExecStatusRequest request, org.apache.thrift.async.AsyncMethodCallback<TGetRealtimeExecStatusResponse> resultHandler) throws org.apache.thrift.TException {
checkReady();
get_realtime_exec_status_call method_call = new get_realtime_exec_status_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class get_realtime_exec_status_call extends org.apache.thrift.async.TAsyncMethodCall<TGetRealtimeExecStatusResponse> {
private TGetRealtimeExecStatusRequest request;
public get_realtime_exec_status_call(TGetRealtimeExecStatusRequest request, org.apache.thrift.async.AsyncMethodCallback<TGetRealtimeExecStatusResponse> 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.request = request;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_realtime_exec_status", org.apache.thrift.protocol.TMessageType.CALL, 0));
get_realtime_exec_status_args args = new get_realtime_exec_status_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public TGetRealtimeExecStatusResponse getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvGetRealtimeExecStatus();
}
}
public void getDictionaryStatus(java.util.List<java.lang.Long> dictionary_ids, org.apache.thrift.async.AsyncMethodCallback<TDictionaryStatusList> resultHandler) throws org.apache.thrift.TException {
checkReady();
get_dictionary_status_call method_call = new get_dictionary_status_call(dictionary_ids, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class get_dictionary_status_call extends org.apache.thrift.async.TAsyncMethodCall<TDictionaryStatusList> {
private java.util.List<java.lang.Long> dictionary_ids;
public get_dictionary_status_call(java.util.List<java.lang.Long> dictionary_ids, org.apache.thrift.async.AsyncMethodCallback<TDictionaryStatusList> 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.dictionary_ids = dictionary_ids;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_dictionary_status", org.apache.thrift.protocol.TMessageType.CALL, 0));
get_dictionary_status_args args = new get_dictionary_status_args();
args.setDictionaryIds(dictionary_ids);
args.write(prot);
prot.writeMessageEnd();
}
public TDictionaryStatusList getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvGetDictionaryStatus();
}
}
public void testStorageConnectivity(TTestStorageConnectivityRequest request, org.apache.thrift.async.AsyncMethodCallback<TTestStorageConnectivityResponse> resultHandler) throws org.apache.thrift.TException {
checkReady();
test_storage_connectivity_call method_call = new test_storage_connectivity_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class test_storage_connectivity_call extends org.apache.thrift.async.TAsyncMethodCall<TTestStorageConnectivityResponse> {
private TTestStorageConnectivityRequest request;
public test_storage_connectivity_call(TTestStorageConnectivityRequest request, org.apache.thrift.async.AsyncMethodCallback<TTestStorageConnectivityResponse> 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.request = request;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("test_storage_connectivity", org.apache.thrift.protocol.TMessageType.CALL, 0));
test_storage_connectivity_args args = new test_storage_connectivity_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public TTestStorageConnectivityResponse getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.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)).recvTestStorageConnectivity();
}
}
}
public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName());
public Processor(I iface) {
super(iface, getProcessMap(new java.util.HashMap<java.lang.String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
}
protected Processor(I iface, java.util.Map<java.lang.String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
super(iface, getProcessMap(processMap));
}
private static <I extends Iface> java.util.Map<java.lang.String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(java.util.Map<java.lang.String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
processMap.put("submit_tasks", new submit_tasks());
processMap.put("make_snapshot", new make_snapshot());
processMap.put("release_snapshot", new release_snapshot());
processMap.put("publish_cluster_state", new publish_cluster_state());
processMap.put("get_tablet_stat", new get_tablet_stat());
processMap.put("get_trash_used_capacity", new get_trash_used_capacity());
processMap.put("get_disk_trash_used_capacity", new get_disk_trash_used_capacity());
processMap.put("submit_routine_load_task", new submit_routine_load_task());
processMap.put("open_scanner", new open_scanner());
processMap.put("get_next", new get_next());
processMap.put("close_scanner", new close_scanner());
processMap.put("get_stream_load_record", new get_stream_load_record());
processMap.put("check_storage_format", new check_storage_format());
processMap.put("warm_up_cache_async", new warm_up_cache_async());
processMap.put("check_warm_up_cache_async", new check_warm_up_cache_async());
processMap.put("sync_load_for_tablets", new sync_load_for_tablets());
processMap.put("get_top_n_hot_partitions", new get_top_n_hot_partitions());
processMap.put("warm_up_tablets", new warm_up_tablets());
processMap.put("ingest_binlog", new ingest_binlog());
processMap.put("query_ingest_binlog", new query_ingest_binlog());
processMap.put("publish_topic_info", new publish_topic_info());
processMap.put("get_realtime_exec_status", new get_realtime_exec_status());
processMap.put("get_dictionary_status", new get_dictionary_status());
processMap.put("test_storage_connectivity", new test_storage_connectivity());
return processMap;
}
public static class submit_tasks<I extends Iface> extends org.apache.thrift.ProcessFunction<I, submit_tasks_args> {
public submit_tasks() {
super("submit_tasks");
}
public submit_tasks_args getEmptyArgsInstance() {
return new submit_tasks_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public submit_tasks_result getResult(I iface, submit_tasks_args args) throws org.apache.thrift.TException {
submit_tasks_result result = new submit_tasks_result();
result.success = iface.submitTasks(args.tasks);
return result;
}
}
public static class make_snapshot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, make_snapshot_args> {
public make_snapshot() {
super("make_snapshot");
}
public make_snapshot_args getEmptyArgsInstance() {
return new make_snapshot_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public make_snapshot_result getResult(I iface, make_snapshot_args args) throws org.apache.thrift.TException {
make_snapshot_result result = new make_snapshot_result();
result.success = iface.makeSnapshot(args.snapshot_request);
return result;
}
}
public static class release_snapshot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, release_snapshot_args> {
public release_snapshot() {
super("release_snapshot");
}
public release_snapshot_args getEmptyArgsInstance() {
return new release_snapshot_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public release_snapshot_result getResult(I iface, release_snapshot_args args) throws org.apache.thrift.TException {
release_snapshot_result result = new release_snapshot_result();
result.success = iface.releaseSnapshot(args.snapshot_path);
return result;
}
}
public static class publish_cluster_state<I extends Iface> extends org.apache.thrift.ProcessFunction<I, publish_cluster_state_args> {
public publish_cluster_state() {
super("publish_cluster_state");
}
public publish_cluster_state_args getEmptyArgsInstance() {
return new publish_cluster_state_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public publish_cluster_state_result getResult(I iface, publish_cluster_state_args args) throws org.apache.thrift.TException {
publish_cluster_state_result result = new publish_cluster_state_result();
result.success = iface.publishClusterState(args.request);
return result;
}
}
public static class get_tablet_stat<I extends Iface> extends org.apache.thrift.ProcessFunction<I, get_tablet_stat_args> {
public get_tablet_stat() {
super("get_tablet_stat");
}
public get_tablet_stat_args getEmptyArgsInstance() {
return new get_tablet_stat_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public get_tablet_stat_result getResult(I iface, get_tablet_stat_args args) throws org.apache.thrift.TException {
get_tablet_stat_result result = new get_tablet_stat_result();
result.success = iface.getTabletStat();
return result;
}
}
public static class get_trash_used_capacity<I extends Iface> extends org.apache.thrift.ProcessFunction<I, get_trash_used_capacity_args> {
public get_trash_used_capacity() {
super("get_trash_used_capacity");
}
public get_trash_used_capacity_args getEmptyArgsInstance() {
return new get_trash_used_capacity_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public get_trash_used_capacity_result getResult(I iface, get_trash_used_capacity_args args) throws org.apache.thrift.TException {
get_trash_used_capacity_result result = new get_trash_used_capacity_result();
result.success = iface.getTrashUsedCapacity();
result.setSuccessIsSet(true);
return result;
}
}
public static class get_disk_trash_used_capacity<I extends Iface> extends org.apache.thrift.ProcessFunction<I, get_disk_trash_used_capacity_args> {
public get_disk_trash_used_capacity() {
super("get_disk_trash_used_capacity");
}
public get_disk_trash_used_capacity_args getEmptyArgsInstance() {
return new get_disk_trash_used_capacity_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public get_disk_trash_used_capacity_result getResult(I iface, get_disk_trash_used_capacity_args args) throws org.apache.thrift.TException {
get_disk_trash_used_capacity_result result = new get_disk_trash_used_capacity_result();
result.success = iface.getDiskTrashUsedCapacity();
return result;
}
}
public static class submit_routine_load_task<I extends Iface> extends org.apache.thrift.ProcessFunction<I, submit_routine_load_task_args> {
public submit_routine_load_task() {
super("submit_routine_load_task");
}
public submit_routine_load_task_args getEmptyArgsInstance() {
return new submit_routine_load_task_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public submit_routine_load_task_result getResult(I iface, submit_routine_load_task_args args) throws org.apache.thrift.TException {
submit_routine_load_task_result result = new submit_routine_load_task_result();
result.success = iface.submitRoutineLoadTask(args.tasks);
return result;
}
}
public static class open_scanner<I extends Iface> extends org.apache.thrift.ProcessFunction<I, open_scanner_args> {
public open_scanner() {
super("open_scanner");
}
public open_scanner_args getEmptyArgsInstance() {
return new open_scanner_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public open_scanner_result getResult(I iface, open_scanner_args args) throws org.apache.thrift.TException {
open_scanner_result result = new open_scanner_result();
result.success = iface.openScanner(args.params);
return result;
}
}
public static class get_next<I extends Iface> extends org.apache.thrift.ProcessFunction<I, get_next_args> {
public get_next() {
super("get_next");
}
public get_next_args getEmptyArgsInstance() {
return new get_next_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public get_next_result getResult(I iface, get_next_args args) throws org.apache.thrift.TException {
get_next_result result = new get_next_result();
result.success = iface.getNext(args.params);
return result;
}
}
public static class close_scanner<I extends Iface> extends org.apache.thrift.ProcessFunction<I, close_scanner_args> {
public close_scanner() {
super("close_scanner");
}
public close_scanner_args getEmptyArgsInstance() {
return new close_scanner_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public close_scanner_result getResult(I iface, close_scanner_args args) throws org.apache.thrift.TException {
close_scanner_result result = new close_scanner_result();
result.success = iface.closeScanner(args.params);
return result;
}
}
public static class get_stream_load_record<I extends Iface> extends org.apache.thrift.ProcessFunction<I, get_stream_load_record_args> {
public get_stream_load_record() {
super("get_stream_load_record");
}
public get_stream_load_record_args getEmptyArgsInstance() {
return new get_stream_load_record_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public get_stream_load_record_result getResult(I iface, get_stream_load_record_args args) throws org.apache.thrift.TException {
get_stream_load_record_result result = new get_stream_load_record_result();
result.success = iface.getStreamLoadRecord(args.last_stream_record_time);
return result;
}
}
public static class check_storage_format<I extends Iface> extends org.apache.thrift.ProcessFunction<I, check_storage_format_args> {
public check_storage_format() {
super("check_storage_format");
}
public check_storage_format_args getEmptyArgsInstance() {
return new check_storage_format_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public check_storage_format_result getResult(I iface, check_storage_format_args args) throws org.apache.thrift.TException {
check_storage_format_result result = new check_storage_format_result();
result.success = iface.checkStorageFormat();
return result;
}
}
public static class warm_up_cache_async<I extends Iface> extends org.apache.thrift.ProcessFunction<I, warm_up_cache_async_args> {
public warm_up_cache_async() {
super("warm_up_cache_async");
}
public warm_up_cache_async_args getEmptyArgsInstance() {
return new warm_up_cache_async_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public warm_up_cache_async_result getResult(I iface, warm_up_cache_async_args args) throws org.apache.thrift.TException {
warm_up_cache_async_result result = new warm_up_cache_async_result();
result.success = iface.warmUpCacheAsync(args.request);
return result;
}
}
public static class check_warm_up_cache_async<I extends Iface> extends org.apache.thrift.ProcessFunction<I, check_warm_up_cache_async_args> {
public check_warm_up_cache_async() {
super("check_warm_up_cache_async");
}
public check_warm_up_cache_async_args getEmptyArgsInstance() {
return new check_warm_up_cache_async_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public check_warm_up_cache_async_result getResult(I iface, check_warm_up_cache_async_args args) throws org.apache.thrift.TException {
check_warm_up_cache_async_result result = new check_warm_up_cache_async_result();
result.success = iface.checkWarmUpCacheAsync(args.request);
return result;
}
}
public static class sync_load_for_tablets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sync_load_for_tablets_args> {
public sync_load_for_tablets() {
super("sync_load_for_tablets");
}
public sync_load_for_tablets_args getEmptyArgsInstance() {
return new sync_load_for_tablets_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public sync_load_for_tablets_result getResult(I iface, sync_load_for_tablets_args args) throws org.apache.thrift.TException {
sync_load_for_tablets_result result = new sync_load_for_tablets_result();
result.success = iface.syncLoadForTablets(args.request);
return result;
}
}
public static class get_top_n_hot_partitions<I extends Iface> extends org.apache.thrift.ProcessFunction<I, get_top_n_hot_partitions_args> {
public get_top_n_hot_partitions() {
super("get_top_n_hot_partitions");
}
public get_top_n_hot_partitions_args getEmptyArgsInstance() {
return new get_top_n_hot_partitions_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public get_top_n_hot_partitions_result getResult(I iface, get_top_n_hot_partitions_args args) throws org.apache.thrift.TException {
get_top_n_hot_partitions_result result = new get_top_n_hot_partitions_result();
result.success = iface.getTopNHotPartitions(args.request);
return result;
}
}
public static class warm_up_tablets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, warm_up_tablets_args> {
public warm_up_tablets() {
super("warm_up_tablets");
}
public warm_up_tablets_args getEmptyArgsInstance() {
return new warm_up_tablets_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public warm_up_tablets_result getResult(I iface, warm_up_tablets_args args) throws org.apache.thrift.TException {
warm_up_tablets_result result = new warm_up_tablets_result();
result.success = iface.warmUpTablets(args.request);
return result;
}
}
public static class ingest_binlog<I extends Iface> extends org.apache.thrift.ProcessFunction<I, ingest_binlog_args> {
public ingest_binlog() {
super("ingest_binlog");
}
public ingest_binlog_args getEmptyArgsInstance() {
return new ingest_binlog_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public ingest_binlog_result getResult(I iface, ingest_binlog_args args) throws org.apache.thrift.TException {
ingest_binlog_result result = new ingest_binlog_result();
result.success = iface.ingestBinlog(args.ingest_binlog_request);
return result;
}
}
public static class query_ingest_binlog<I extends Iface> extends org.apache.thrift.ProcessFunction<I, query_ingest_binlog_args> {
public query_ingest_binlog() {
super("query_ingest_binlog");
}
public query_ingest_binlog_args getEmptyArgsInstance() {
return new query_ingest_binlog_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public query_ingest_binlog_result getResult(I iface, query_ingest_binlog_args args) throws org.apache.thrift.TException {
query_ingest_binlog_result result = new query_ingest_binlog_result();
result.success = iface.queryIngestBinlog(args.query_ingest_binlog_request);
return result;
}
}
public static class publish_topic_info<I extends Iface> extends org.apache.thrift.ProcessFunction<I, publish_topic_info_args> {
public publish_topic_info() {
super("publish_topic_info");
}
public publish_topic_info_args getEmptyArgsInstance() {
return new publish_topic_info_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public publish_topic_info_result getResult(I iface, publish_topic_info_args args) throws org.apache.thrift.TException {
publish_topic_info_result result = new publish_topic_info_result();
result.success = iface.publishTopicInfo(args.topic_request);
return result;
}
}
public static class get_realtime_exec_status<I extends Iface> extends org.apache.thrift.ProcessFunction<I, get_realtime_exec_status_args> {
public get_realtime_exec_status() {
super("get_realtime_exec_status");
}
public get_realtime_exec_status_args getEmptyArgsInstance() {
return new get_realtime_exec_status_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public get_realtime_exec_status_result getResult(I iface, get_realtime_exec_status_args args) throws org.apache.thrift.TException {
get_realtime_exec_status_result result = new get_realtime_exec_status_result();
result.success = iface.getRealtimeExecStatus(args.request);
return result;
}
}
public static class get_dictionary_status<I extends Iface> extends org.apache.thrift.ProcessFunction<I, get_dictionary_status_args> {
public get_dictionary_status() {
super("get_dictionary_status");
}
public get_dictionary_status_args getEmptyArgsInstance() {
return new get_dictionary_status_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public get_dictionary_status_result getResult(I iface, get_dictionary_status_args args) throws org.apache.thrift.TException {
get_dictionary_status_result result = new get_dictionary_status_result();
result.success = iface.getDictionaryStatus(args.dictionary_ids);
return result;
}
}
public static class test_storage_connectivity<I extends Iface> extends org.apache.thrift.ProcessFunction<I, test_storage_connectivity_args> {
public test_storage_connectivity() {
super("test_storage_connectivity");
}
public test_storage_connectivity_args getEmptyArgsInstance() {
return new test_storage_connectivity_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public test_storage_connectivity_result getResult(I iface, test_storage_connectivity_args args) throws org.apache.thrift.TException {
test_storage_connectivity_result result = new test_storage_connectivity_result();
result.success = iface.testStorageConnectivity(args.request);
return result;
}
}
}
public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName());
public AsyncProcessor(I iface) {
super(iface, getProcessMap(new java.util.HashMap<java.lang.String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
}
protected AsyncProcessor(I iface, java.util.Map<java.lang.String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
super(iface, getProcessMap(processMap));
}
private static <I extends AsyncIface> java.util.Map<java.lang.String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase,?>> getProcessMap(java.util.Map<java.lang.String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
processMap.put("submit_tasks", new submit_tasks());
processMap.put("make_snapshot", new make_snapshot());
processMap.put("release_snapshot", new release_snapshot());
processMap.put("publish_cluster_state", new publish_cluster_state());
processMap.put("get_tablet_stat", new get_tablet_stat());
processMap.put("get_trash_used_capacity", new get_trash_used_capacity());
processMap.put("get_disk_trash_used_capacity", new get_disk_trash_used_capacity());
processMap.put("submit_routine_load_task", new submit_routine_load_task());
processMap.put("open_scanner", new open_scanner());
processMap.put("get_next", new get_next());
processMap.put("close_scanner", new close_scanner());
processMap.put("get_stream_load_record", new get_stream_load_record());
processMap.put("check_storage_format", new check_storage_format());
processMap.put("warm_up_cache_async", new warm_up_cache_async());
processMap.put("check_warm_up_cache_async", new check_warm_up_cache_async());
processMap.put("sync_load_for_tablets", new sync_load_for_tablets());
processMap.put("get_top_n_hot_partitions", new get_top_n_hot_partitions());
processMap.put("warm_up_tablets", new warm_up_tablets());
processMap.put("ingest_binlog", new ingest_binlog());
processMap.put("query_ingest_binlog", new query_ingest_binlog());
processMap.put("publish_topic_info", new publish_topic_info());
processMap.put("get_realtime_exec_status", new get_realtime_exec_status());
processMap.put("get_dictionary_status", new get_dictionary_status());
processMap.put("test_storage_connectivity", new test_storage_connectivity());
return processMap;
}
public static class submit_tasks<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, submit_tasks_args, org.apache.doris.thrift.TAgentResult> {
public submit_tasks() {
super("submit_tasks");
}
public submit_tasks_args getEmptyArgsInstance() {
return new submit_tasks_args();
}
public org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult>() {
public void onComplete(org.apache.doris.thrift.TAgentResult o) {
submit_tasks_result result = new submit_tasks_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
submit_tasks_result result = new submit_tasks_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, submit_tasks_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult> resultHandler) throws org.apache.thrift.TException {
iface.submitTasks(args.tasks,resultHandler);
}
}
public static class make_snapshot<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, make_snapshot_args, org.apache.doris.thrift.TAgentResult> {
public make_snapshot() {
super("make_snapshot");
}
public make_snapshot_args getEmptyArgsInstance() {
return new make_snapshot_args();
}
public org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult>() {
public void onComplete(org.apache.doris.thrift.TAgentResult o) {
make_snapshot_result result = new make_snapshot_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
make_snapshot_result result = new make_snapshot_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, make_snapshot_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult> resultHandler) throws org.apache.thrift.TException {
iface.makeSnapshot(args.snapshot_request,resultHandler);
}
}
public static class release_snapshot<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, release_snapshot_args, org.apache.doris.thrift.TAgentResult> {
public release_snapshot() {
super("release_snapshot");
}
public release_snapshot_args getEmptyArgsInstance() {
return new release_snapshot_args();
}
public org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult>() {
public void onComplete(org.apache.doris.thrift.TAgentResult o) {
release_snapshot_result result = new release_snapshot_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
release_snapshot_result result = new release_snapshot_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, release_snapshot_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult> resultHandler) throws org.apache.thrift.TException {
iface.releaseSnapshot(args.snapshot_path,resultHandler);
}
}
public static class publish_cluster_state<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, publish_cluster_state_args, org.apache.doris.thrift.TAgentResult> {
public publish_cluster_state() {
super("publish_cluster_state");
}
public publish_cluster_state_args getEmptyArgsInstance() {
return new publish_cluster_state_args();
}
public org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult>() {
public void onComplete(org.apache.doris.thrift.TAgentResult o) {
publish_cluster_state_result result = new publish_cluster_state_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
publish_cluster_state_result result = new publish_cluster_state_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, publish_cluster_state_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TAgentResult> resultHandler) throws org.apache.thrift.TException {
iface.publishClusterState(args.request,resultHandler);
}
}
public static class get_tablet_stat<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, get_tablet_stat_args, TTabletStatResult> {
public get_tablet_stat() {
super("get_tablet_stat");
}
public get_tablet_stat_args getEmptyArgsInstance() {
return new get_tablet_stat_args();
}
public org.apache.thrift.async.AsyncMethodCallback<TTabletStatResult> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<TTabletStatResult>() {
public void onComplete(TTabletStatResult o) {
get_tablet_stat_result result = new get_tablet_stat_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
get_tablet_stat_result result = new get_tablet_stat_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, get_tablet_stat_args args, org.apache.thrift.async.AsyncMethodCallback<TTabletStatResult> resultHandler) throws org.apache.thrift.TException {
iface.getTabletStat(resultHandler);
}
}
public static class get_trash_used_capacity<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, get_trash_used_capacity_args, java.lang.Long> {
public get_trash_used_capacity() {
super("get_trash_used_capacity");
}
public get_trash_used_capacity_args getEmptyArgsInstance() {
return new get_trash_used_capacity_args();
}
public org.apache.thrift.async.AsyncMethodCallback<java.lang.Long> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<java.lang.Long>() {
public void onComplete(java.lang.Long o) {
get_trash_used_capacity_result result = new get_trash_used_capacity_result();
result.success = o;
result.setSuccessIsSet(true);
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
get_trash_used_capacity_result result = new get_trash_used_capacity_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, get_trash_used_capacity_args args, org.apache.thrift.async.AsyncMethodCallback<java.lang.Long> resultHandler) throws org.apache.thrift.TException {
iface.getTrashUsedCapacity(resultHandler);
}
}
public static class get_disk_trash_used_capacity<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, get_disk_trash_used_capacity_args, java.util.List<TDiskTrashInfo>> {
public get_disk_trash_used_capacity() {
super("get_disk_trash_used_capacity");
}
public get_disk_trash_used_capacity_args getEmptyArgsInstance() {
return new get_disk_trash_used_capacity_args();
}
public org.apache.thrift.async.AsyncMethodCallback<java.util.List<TDiskTrashInfo>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<TDiskTrashInfo>>() {
public void onComplete(java.util.List<TDiskTrashInfo> o) {
get_disk_trash_used_capacity_result result = new get_disk_trash_used_capacity_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
get_disk_trash_used_capacity_result result = new get_disk_trash_used_capacity_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, get_disk_trash_used_capacity_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<TDiskTrashInfo>> resultHandler) throws org.apache.thrift.TException {
iface.getDiskTrashUsedCapacity(resultHandler);
}
}
public static class submit_routine_load_task<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, submit_routine_load_task_args, org.apache.doris.thrift.TStatus> {
public submit_routine_load_task() {
super("submit_routine_load_task");
}
public submit_routine_load_task_args getEmptyArgsInstance() {
return new submit_routine_load_task_args();
}
public org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TStatus> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TStatus>() {
public void onComplete(org.apache.doris.thrift.TStatus o) {
submit_routine_load_task_result result = new submit_routine_load_task_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
submit_routine_load_task_result result = new submit_routine_load_task_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, submit_routine_load_task_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TStatus> resultHandler) throws org.apache.thrift.TException {
iface.submitRoutineLoadTask(args.tasks,resultHandler);
}
}
public static class open_scanner<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, open_scanner_args, org.apache.doris.thrift.TScanOpenResult> {
public open_scanner() {
super("open_scanner");
}
public open_scanner_args getEmptyArgsInstance() {
return new open_scanner_args();
}
public org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TScanOpenResult> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TScanOpenResult>() {
public void onComplete(org.apache.doris.thrift.TScanOpenResult o) {
open_scanner_result result = new open_scanner_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
open_scanner_result result = new open_scanner_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, open_scanner_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TScanOpenResult> resultHandler) throws org.apache.thrift.TException {
iface.openScanner(args.params,resultHandler);
}
}
public static class get_next<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, get_next_args, org.apache.doris.thrift.TScanBatchResult> {
public get_next() {
super("get_next");
}
public get_next_args getEmptyArgsInstance() {
return new get_next_args();
}
public org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TScanBatchResult> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TScanBatchResult>() {
public void onComplete(org.apache.doris.thrift.TScanBatchResult o) {
get_next_result result = new get_next_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
get_next_result result = new get_next_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, get_next_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TScanBatchResult> resultHandler) throws org.apache.thrift.TException {
iface.getNext(args.params,resultHandler);
}
}
public static class close_scanner<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, close_scanner_args, org.apache.doris.thrift.TScanCloseResult> {
public close_scanner() {
super("close_scanner");
}
public close_scanner_args getEmptyArgsInstance() {
return new close_scanner_args();
}
public org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TScanCloseResult> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TScanCloseResult>() {
public void onComplete(org.apache.doris.thrift.TScanCloseResult o) {
close_scanner_result result = new close_scanner_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
close_scanner_result result = new close_scanner_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, close_scanner_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.doris.thrift.TScanCloseResult> resultHandler) throws org.apache.thrift.TException {
iface.closeScanner(args.params,resultHandler);
}
}
public static class get_stream_load_record<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, get_stream_load_record_args, TStreamLoadRecordResult> {
public get_stream_load_record() {
super("get_stream_load_record");
}
public get_stream_load_record_args getEmptyArgsInstance() {
return new get_stream_load_record_args();
}
public org.apache.thrift.async.AsyncMethodCallback<TStreamLoadRecordResult> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<TStreamLoadRecordResult>() {
public void onComplete(TStreamLoadRecordResult o) {
get_stream_load_record_result result = new get_stream_load_record_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
get_stream_load_record_result result = new get_stream_load_record_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, get_stream_load_record_args args, org.apache.thrift.async.AsyncMethodCallback<TStreamLoadRecordResult> resultHandler) throws org.apache.thrift.TException {
iface.getStreamLoadRecord(args.last_stream_record_time,resultHandler);
}
}
public static class check_storage_format<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, check_storage_format_args, TCheckStorageFormatResult> {
public check_storage_format() {
super("check_storage_format");
}
public check_storage_format_args getEmptyArgsInstance() {
return new check_storage_format_args();
}
public org.apache.thrift.async.AsyncMethodCallback<TCheckStorageFormatResult> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<TCheckStorageFormatResult>() {
public void onComplete(TCheckStorageFormatResult o) {
check_storage_format_result result = new check_storage_format_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
check_storage_format_result result = new check_storage_format_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, check_storage_format_args args, org.apache.thrift.async.AsyncMethodCallback<TCheckStorageFormatResult> resultHandler) throws org.apache.thrift.TException {
iface.checkStorageFormat(resultHandler);
}
}
public static class warm_up_cache_async<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, warm_up_cache_async_args, TWarmUpCacheAsyncResponse> {
public warm_up_cache_async() {
super("warm_up_cache_async");
}
public warm_up_cache_async_args getEmptyArgsInstance() {
return new warm_up_cache_async_args();
}
public org.apache.thrift.async.AsyncMethodCallback<TWarmUpCacheAsyncResponse> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<TWarmUpCacheAsyncResponse>() {
public void onComplete(TWarmUpCacheAsyncResponse o) {
warm_up_cache_async_result result = new warm_up_cache_async_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
warm_up_cache_async_result result = new warm_up_cache_async_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, warm_up_cache_async_args args, org.apache.thrift.async.AsyncMethodCallback<TWarmUpCacheAsyncResponse> resultHandler) throws org.apache.thrift.TException {
iface.warmUpCacheAsync(args.request,resultHandler);
}
}
public static class check_warm_up_cache_async<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, check_warm_up_cache_async_args, TCheckWarmUpCacheAsyncResponse> {
public check_warm_up_cache_async() {
super("check_warm_up_cache_async");
}
public check_warm_up_cache_async_args getEmptyArgsInstance() {
return new check_warm_up_cache_async_args();
}
public org.apache.thrift.async.AsyncMethodCallback<TCheckWarmUpCacheAsyncResponse> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<TCheckWarmUpCacheAsyncResponse>() {
public void onComplete(TCheckWarmUpCacheAsyncResponse o) {
check_warm_up_cache_async_result result = new check_warm_up_cache_async_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
check_warm_up_cache_async_result result = new check_warm_up_cache_async_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, check_warm_up_cache_async_args args, org.apache.thrift.async.AsyncMethodCallback<TCheckWarmUpCacheAsyncResponse> resultHandler) throws org.apache.thrift.TException {
iface.checkWarmUpCacheAsync(args.request,resultHandler);
}
}
public static class sync_load_for_tablets<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, sync_load_for_tablets_args, TSyncLoadForTabletsResponse> {
public sync_load_for_tablets() {
super("sync_load_for_tablets");
}
public sync_load_for_tablets_args getEmptyArgsInstance() {
return new sync_load_for_tablets_args();
}
public org.apache.thrift.async.AsyncMethodCallback<TSyncLoadForTabletsResponse> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<TSyncLoadForTabletsResponse>() {
public void onComplete(TSyncLoadForTabletsResponse o) {
sync_load_for_tablets_result result = new sync_load_for_tablets_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
sync_load_for_tablets_result result = new sync_load_for_tablets_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, sync_load_for_tablets_args args, org.apache.thrift.async.AsyncMethodCallback<TSyncLoadForTabletsResponse> resultHandler) throws org.apache.thrift.TException {
iface.syncLoadForTablets(args.request,resultHandler);
}
}
public static class get_top_n_hot_partitions<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, get_top_n_hot_partitions_args, TGetTopNHotPartitionsResponse> {
public get_top_n_hot_partitions() {
super("get_top_n_hot_partitions");
}
public get_top_n_hot_partitions_args getEmptyArgsInstance() {
return new get_top_n_hot_partitions_args();
}
public org.apache.thrift.async.AsyncMethodCallback<TGetTopNHotPartitionsResponse> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<TGetTopNHotPartitionsResponse>() {
public void onComplete(TGetTopNHotPartitionsResponse o) {
get_top_n_hot_partitions_result result = new get_top_n_hot_partitions_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
get_top_n_hot_partitions_result result = new get_top_n_hot_partitions_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, get_top_n_hot_partitions_args args, org.apache.thrift.async.AsyncMethodCallback<TGetTopNHotPartitionsResponse> resultHandler) throws org.apache.thrift.TException {
iface.getTopNHotPartitions(args.request,resultHandler);
}
}
public static class warm_up_tablets<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, warm_up_tablets_args, TWarmUpTabletsResponse> {
public warm_up_tablets() {
super("warm_up_tablets");
}
public warm_up_tablets_args getEmptyArgsInstance() {
return new warm_up_tablets_args();
}
public org.apache.thrift.async.AsyncMethodCallback<TWarmUpTabletsResponse> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<TWarmUpTabletsResponse>() {
public void onComplete(TWarmUpTabletsResponse o) {
warm_up_tablets_result result = new warm_up_tablets_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
warm_up_tablets_result result = new warm_up_tablets_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, warm_up_tablets_args args, org.apache.thrift.async.AsyncMethodCallback<TWarmUpTabletsResponse> resultHandler) throws org.apache.thrift.TException {
iface.warmUpTablets(args.request,resultHandler);
}
}
public static class ingest_binlog<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, ingest_binlog_args, TIngestBinlogResult> {
public ingest_binlog() {
super("ingest_binlog");
}
public ingest_binlog_args getEmptyArgsInstance() {
return new ingest_binlog_args();
}
public org.apache.thrift.async.AsyncMethodCallback<TIngestBinlogResult> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<TIngestBinlogResult>() {
public void onComplete(TIngestBinlogResult o) {
ingest_binlog_result result = new ingest_binlog_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
ingest_binlog_result result = new ingest_binlog_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, ingest_binlog_args args, org.apache.thrift.async.AsyncMethodCallback<TIngestBinlogResult> resultHandler) throws org.apache.thrift.TException {
iface.ingestBinlog(args.ingest_binlog_request,resultHandler);
}
}
public static class query_ingest_binlog<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, query_ingest_binlog_args, TQueryIngestBinlogResult> {
public query_ingest_binlog() {
super("query_ingest_binlog");
}
public query_ingest_binlog_args getEmptyArgsInstance() {
return new query_ingest_binlog_args();
}
public org.apache.thrift.async.AsyncMethodCallback<TQueryIngestBinlogResult> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<TQueryIngestBinlogResult>() {
public void onComplete(TQueryIngestBinlogResult o) {
query_ingest_binlog_result result = new query_ingest_binlog_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
query_ingest_binlog_result result = new query_ingest_binlog_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, query_ingest_binlog_args args, org.apache.thrift.async.AsyncMethodCallback<TQueryIngestBinlogResult> resultHandler) throws org.apache.thrift.TException {
iface.queryIngestBinlog(args.query_ingest_binlog_request,resultHandler);
}
}
public static class publish_topic_info<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, publish_topic_info_args, TPublishTopicResult> {
public publish_topic_info() {
super("publish_topic_info");
}
public publish_topic_info_args getEmptyArgsInstance() {
return new publish_topic_info_args();
}
public org.apache.thrift.async.AsyncMethodCallback<TPublishTopicResult> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<TPublishTopicResult>() {
public void onComplete(TPublishTopicResult o) {
publish_topic_info_result result = new publish_topic_info_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
publish_topic_info_result result = new publish_topic_info_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, publish_topic_info_args args, org.apache.thrift.async.AsyncMethodCallback<TPublishTopicResult> resultHandler) throws org.apache.thrift.TException {
iface.publishTopicInfo(args.topic_request,resultHandler);
}
}
public static class get_realtime_exec_status<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, get_realtime_exec_status_args, TGetRealtimeExecStatusResponse> {
public get_realtime_exec_status() {
super("get_realtime_exec_status");
}
public get_realtime_exec_status_args getEmptyArgsInstance() {
return new get_realtime_exec_status_args();
}
public org.apache.thrift.async.AsyncMethodCallback<TGetRealtimeExecStatusResponse> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<TGetRealtimeExecStatusResponse>() {
public void onComplete(TGetRealtimeExecStatusResponse o) {
get_realtime_exec_status_result result = new get_realtime_exec_status_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
get_realtime_exec_status_result result = new get_realtime_exec_status_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, get_realtime_exec_status_args args, org.apache.thrift.async.AsyncMethodCallback<TGetRealtimeExecStatusResponse> resultHandler) throws org.apache.thrift.TException {
iface.getRealtimeExecStatus(args.request,resultHandler);
}
}
public static class get_dictionary_status<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, get_dictionary_status_args, TDictionaryStatusList> {
public get_dictionary_status() {
super("get_dictionary_status");
}
public get_dictionary_status_args getEmptyArgsInstance() {
return new get_dictionary_status_args();
}
public org.apache.thrift.async.AsyncMethodCallback<TDictionaryStatusList> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<TDictionaryStatusList>() {
public void onComplete(TDictionaryStatusList o) {
get_dictionary_status_result result = new get_dictionary_status_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
get_dictionary_status_result result = new get_dictionary_status_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, get_dictionary_status_args args, org.apache.thrift.async.AsyncMethodCallback<TDictionaryStatusList> resultHandler) throws org.apache.thrift.TException {
iface.getDictionaryStatus(args.dictionary_ids,resultHandler);
}
}
public static class test_storage_connectivity<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, test_storage_connectivity_args, TTestStorageConnectivityResponse> {
public test_storage_connectivity() {
super("test_storage_connectivity");
}
public test_storage_connectivity_args getEmptyArgsInstance() {
return new test_storage_connectivity_args();
}
public org.apache.thrift.async.AsyncMethodCallback<TTestStorageConnectivityResponse> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback<TTestStorageConnectivityResponse>() {
public void onComplete(TTestStorageConnectivityResponse o) {
test_storage_connectivity_result result = new test_storage_connectivity_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
test_storage_connectivity_result result = new test_storage_connectivity_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, test_storage_connectivity_args args, org.apache.thrift.async.AsyncMethodCallback<TTestStorageConnectivityResponse> resultHandler) throws org.apache.thrift.TException {
iface.testStorageConnectivity(args.request,resultHandler);
}
}
}
public static class submit_tasks_args implements org.apache.thrift.TBase<submit_tasks_args, submit_tasks_args._Fields>, java.io.Serializable, Cloneable, Comparable<submit_tasks_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("submit_tasks_args");
private static final org.apache.thrift.protocol.TField TASKS_FIELD_DESC = new org.apache.thrift.protocol.TField("tasks", org.apache.thrift.protocol.TType.LIST, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new submit_tasks_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new submit_tasks_argsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable java.util.List<org.apache.doris.thrift.TAgentTaskRequest> tasks; // 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 {
TASKS((short)1, "tasks");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // TASKS
return TASKS;
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.TASKS, new org.apache.thrift.meta_data.FieldMetaData("tasks", 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, org.apache.doris.thrift.TAgentTaskRequest.class))));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(submit_tasks_args.class, metaDataMap);
}
public submit_tasks_args() {
}
public submit_tasks_args(
java.util.List<org.apache.doris.thrift.TAgentTaskRequest> tasks)
{
this();
this.tasks = tasks;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public submit_tasks_args(submit_tasks_args other) {
if (other.isSetTasks()) {
java.util.List<org.apache.doris.thrift.TAgentTaskRequest> __this__tasks = new java.util.ArrayList<org.apache.doris.thrift.TAgentTaskRequest>(other.tasks.size());
for (org.apache.doris.thrift.TAgentTaskRequest other_element : other.tasks) {
__this__tasks.add(new org.apache.doris.thrift.TAgentTaskRequest(other_element));
}
this.tasks = __this__tasks;
}
}
public submit_tasks_args deepCopy() {
return new submit_tasks_args(this);
}
@Override
public void clear() {
this.tasks = null;
}
public int getTasksSize() {
return (this.tasks == null) ? 0 : this.tasks.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<org.apache.doris.thrift.TAgentTaskRequest> getTasksIterator() {
return (this.tasks == null) ? null : this.tasks.iterator();
}
public void addToTasks(org.apache.doris.thrift.TAgentTaskRequest elem) {
if (this.tasks == null) {
this.tasks = new java.util.ArrayList<org.apache.doris.thrift.TAgentTaskRequest>();
}
this.tasks.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<org.apache.doris.thrift.TAgentTaskRequest> getTasks() {
return this.tasks;
}
public submit_tasks_args setTasks(@org.apache.thrift.annotation.Nullable java.util.List<org.apache.doris.thrift.TAgentTaskRequest> tasks) {
this.tasks = tasks;
return this;
}
public void unsetTasks() {
this.tasks = null;
}
/** Returns true if field tasks is set (has been assigned a value) and false otherwise */
public boolean isSetTasks() {
return this.tasks != null;
}
public void setTasksIsSet(boolean value) {
if (!value) {
this.tasks = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case TASKS:
if (value == null) {
unsetTasks();
} else {
setTasks((java.util.List<org.apache.doris.thrift.TAgentTaskRequest>)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case TASKS:
return getTasks();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case TASKS:
return isSetTasks();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof submit_tasks_args)
return this.equals((submit_tasks_args)that);
return false;
}
public boolean equals(submit_tasks_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_tasks = true && this.isSetTasks();
boolean that_present_tasks = true && that.isSetTasks();
if (this_present_tasks || that_present_tasks) {
if (!(this_present_tasks && that_present_tasks))
return false;
if (!this.tasks.equals(that.tasks))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetTasks()) ? 131071 : 524287);
if (isSetTasks())
hashCode = hashCode * 8191 + tasks.hashCode();
return hashCode;
}
@Override
public int compareTo(submit_tasks_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetTasks(), other.isSetTasks());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTasks()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tasks, other.tasks);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("submit_tasks_args(");
boolean first = true;
sb.append("tasks:");
if (this.tasks == null) {
sb.append("null");
} else {
sb.append(this.tasks);
}
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, java.lang.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 submit_tasks_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public submit_tasks_argsStandardScheme getScheme() {
return new submit_tasks_argsStandardScheme();
}
}
private static class submit_tasks_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<submit_tasks_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, submit_tasks_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: // TASKS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list198 = iprot.readListBegin();
struct.tasks = new java.util.ArrayList<org.apache.doris.thrift.TAgentTaskRequest>(_list198.size);
@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TAgentTaskRequest _elem199;
for (int _i200 = 0; _i200 < _list198.size; ++_i200)
{
_elem199 = new org.apache.doris.thrift.TAgentTaskRequest();
_elem199.read(iprot);
struct.tasks.add(_elem199);
}
iprot.readListEnd();
}
struct.setTasksIsSet(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, submit_tasks_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.tasks != null) {
oprot.writeFieldBegin(TASKS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tasks.size()));
for (org.apache.doris.thrift.TAgentTaskRequest _iter201 : struct.tasks)
{
_iter201.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class submit_tasks_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public submit_tasks_argsTupleScheme getScheme() {
return new submit_tasks_argsTupleScheme();
}
}
private static class submit_tasks_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<submit_tasks_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, submit_tasks_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetTasks()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetTasks()) {
{
oprot.writeI32(struct.tasks.size());
for (org.apache.doris.thrift.TAgentTaskRequest _iter202 : struct.tasks)
{
_iter202.write(oprot);
}
}
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, submit_tasks_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list203 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
struct.tasks = new java.util.ArrayList<org.apache.doris.thrift.TAgentTaskRequest>(_list203.size);
@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TAgentTaskRequest _elem204;
for (int _i205 = 0; _i205 < _list203.size; ++_i205)
{
_elem204 = new org.apache.doris.thrift.TAgentTaskRequest();
_elem204.read(iprot);
struct.tasks.add(_elem204);
}
}
struct.setTasksIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class submit_tasks_result implements org.apache.thrift.TBase<submit_tasks_result, submit_tasks_result._Fields>, java.io.Serializable, Cloneable, Comparable<submit_tasks_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("submit_tasks_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new submit_tasks_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new submit_tasks_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TAgentResult 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, org.apache.doris.thrift.TAgentResult.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(submit_tasks_result.class, metaDataMap);
}
public submit_tasks_result() {
}
public submit_tasks_result(
org.apache.doris.thrift.TAgentResult success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public submit_tasks_result(submit_tasks_result other) {
if (other.isSetSuccess()) {
this.success = new org.apache.doris.thrift.TAgentResult(other.success);
}
}
public submit_tasks_result deepCopy() {
return new submit_tasks_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public org.apache.doris.thrift.TAgentResult getSuccess() {
return this.success;
}
public submit_tasks_result setSuccess(@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TAgentResult 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((org.apache.doris.thrift.TAgentResult)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof submit_tasks_result)
return this.equals((submit_tasks_result)that);
return false;
}
public boolean equals(submit_tasks_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(submit_tasks_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("submit_tasks_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
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, java.lang.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 submit_tasks_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public submit_tasks_resultStandardScheme getScheme() {
return new submit_tasks_resultStandardScheme();
}
}
private static class submit_tasks_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<submit_tasks_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, submit_tasks_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 org.apache.doris.thrift.TAgentResult();
struct.success.read(iprot);
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, submit_tasks_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class submit_tasks_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public submit_tasks_resultTupleScheme getScheme() {
return new submit_tasks_resultTupleScheme();
}
}
private static class submit_tasks_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<submit_tasks_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, submit_tasks_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, submit_tasks_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new org.apache.doris.thrift.TAgentResult();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class make_snapshot_args implements org.apache.thrift.TBase<make_snapshot_args, make_snapshot_args._Fields>, java.io.Serializable, Cloneable, Comparable<make_snapshot_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("make_snapshot_args");
private static final org.apache.thrift.protocol.TField SNAPSHOT_REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("snapshot_request", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new make_snapshot_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new make_snapshot_argsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TSnapshotRequest snapshot_request; // 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 {
SNAPSHOT_REQUEST((short)1, "snapshot_request");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // SNAPSHOT_REQUEST
return SNAPSHOT_REQUEST;
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SNAPSHOT_REQUEST, new org.apache.thrift.meta_data.FieldMetaData("snapshot_request", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.doris.thrift.TSnapshotRequest.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(make_snapshot_args.class, metaDataMap);
}
public make_snapshot_args() {
}
public make_snapshot_args(
org.apache.doris.thrift.TSnapshotRequest snapshot_request)
{
this();
this.snapshot_request = snapshot_request;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public make_snapshot_args(make_snapshot_args other) {
if (other.isSetSnapshotRequest()) {
this.snapshot_request = new org.apache.doris.thrift.TSnapshotRequest(other.snapshot_request);
}
}
public make_snapshot_args deepCopy() {
return new make_snapshot_args(this);
}
@Override
public void clear() {
this.snapshot_request = null;
}
@org.apache.thrift.annotation.Nullable
public org.apache.doris.thrift.TSnapshotRequest getSnapshotRequest() {
return this.snapshot_request;
}
public make_snapshot_args setSnapshotRequest(@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TSnapshotRequest snapshot_request) {
this.snapshot_request = snapshot_request;
return this;
}
public void unsetSnapshotRequest() {
this.snapshot_request = null;
}
/** Returns true if field snapshot_request is set (has been assigned a value) and false otherwise */
public boolean isSetSnapshotRequest() {
return this.snapshot_request != null;
}
public void setSnapshotRequestIsSet(boolean value) {
if (!value) {
this.snapshot_request = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SNAPSHOT_REQUEST:
if (value == null) {
unsetSnapshotRequest();
} else {
setSnapshotRequest((org.apache.doris.thrift.TSnapshotRequest)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SNAPSHOT_REQUEST:
return getSnapshotRequest();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SNAPSHOT_REQUEST:
return isSetSnapshotRequest();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof make_snapshot_args)
return this.equals((make_snapshot_args)that);
return false;
}
public boolean equals(make_snapshot_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_snapshot_request = true && this.isSetSnapshotRequest();
boolean that_present_snapshot_request = true && that.isSetSnapshotRequest();
if (this_present_snapshot_request || that_present_snapshot_request) {
if (!(this_present_snapshot_request && that_present_snapshot_request))
return false;
if (!this.snapshot_request.equals(that.snapshot_request))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSnapshotRequest()) ? 131071 : 524287);
if (isSetSnapshotRequest())
hashCode = hashCode * 8191 + snapshot_request.hashCode();
return hashCode;
}
@Override
public int compareTo(make_snapshot_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSnapshotRequest(), other.isSetSnapshotRequest());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSnapshotRequest()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.snapshot_request, other.snapshot_request);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("make_snapshot_args(");
boolean first = true;
sb.append("snapshot_request:");
if (this.snapshot_request == null) {
sb.append("null");
} else {
sb.append(this.snapshot_request);
}
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 (snapshot_request != null) {
snapshot_request.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, java.lang.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 make_snapshot_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public make_snapshot_argsStandardScheme getScheme() {
return new make_snapshot_argsStandardScheme();
}
}
private static class make_snapshot_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<make_snapshot_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, make_snapshot_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: // SNAPSHOT_REQUEST
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.snapshot_request = new org.apache.doris.thrift.TSnapshotRequest();
struct.snapshot_request.read(iprot);
struct.setSnapshotRequestIsSet(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, make_snapshot_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.snapshot_request != null) {
oprot.writeFieldBegin(SNAPSHOT_REQUEST_FIELD_DESC);
struct.snapshot_request.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class make_snapshot_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public make_snapshot_argsTupleScheme getScheme() {
return new make_snapshot_argsTupleScheme();
}
}
private static class make_snapshot_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<make_snapshot_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, make_snapshot_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSnapshotRequest()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSnapshotRequest()) {
struct.snapshot_request.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, make_snapshot_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.snapshot_request = new org.apache.doris.thrift.TSnapshotRequest();
struct.snapshot_request.read(iprot);
struct.setSnapshotRequestIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class make_snapshot_result implements org.apache.thrift.TBase<make_snapshot_result, make_snapshot_result._Fields>, java.io.Serializable, Cloneable, Comparable<make_snapshot_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("make_snapshot_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new make_snapshot_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new make_snapshot_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TAgentResult 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, org.apache.doris.thrift.TAgentResult.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(make_snapshot_result.class, metaDataMap);
}
public make_snapshot_result() {
}
public make_snapshot_result(
org.apache.doris.thrift.TAgentResult success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public make_snapshot_result(make_snapshot_result other) {
if (other.isSetSuccess()) {
this.success = new org.apache.doris.thrift.TAgentResult(other.success);
}
}
public make_snapshot_result deepCopy() {
return new make_snapshot_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public org.apache.doris.thrift.TAgentResult getSuccess() {
return this.success;
}
public make_snapshot_result setSuccess(@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TAgentResult 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((org.apache.doris.thrift.TAgentResult)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof make_snapshot_result)
return this.equals((make_snapshot_result)that);
return false;
}
public boolean equals(make_snapshot_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(make_snapshot_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("make_snapshot_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
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, java.lang.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 make_snapshot_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public make_snapshot_resultStandardScheme getScheme() {
return new make_snapshot_resultStandardScheme();
}
}
private static class make_snapshot_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<make_snapshot_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, make_snapshot_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 org.apache.doris.thrift.TAgentResult();
struct.success.read(iprot);
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, make_snapshot_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class make_snapshot_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public make_snapshot_resultTupleScheme getScheme() {
return new make_snapshot_resultTupleScheme();
}
}
private static class make_snapshot_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<make_snapshot_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, make_snapshot_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, make_snapshot_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new org.apache.doris.thrift.TAgentResult();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class release_snapshot_args implements org.apache.thrift.TBase<release_snapshot_args, release_snapshot_args._Fields>, java.io.Serializable, Cloneable, Comparable<release_snapshot_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("release_snapshot_args");
private static final org.apache.thrift.protocol.TField SNAPSHOT_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("snapshot_path", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new release_snapshot_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new release_snapshot_argsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable java.lang.String snapshot_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 {
SNAPSHOT_PATH((short)1, "snapshot_path");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // SNAPSHOT_PATH
return SNAPSHOT_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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SNAPSHOT_PATH, new org.apache.thrift.meta_data.FieldMetaData("snapshot_path", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(release_snapshot_args.class, metaDataMap);
}
public release_snapshot_args() {
}
public release_snapshot_args(
java.lang.String snapshot_path)
{
this();
this.snapshot_path = snapshot_path;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public release_snapshot_args(release_snapshot_args other) {
if (other.isSetSnapshotPath()) {
this.snapshot_path = other.snapshot_path;
}
}
public release_snapshot_args deepCopy() {
return new release_snapshot_args(this);
}
@Override
public void clear() {
this.snapshot_path = null;
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getSnapshotPath() {
return this.snapshot_path;
}
public release_snapshot_args setSnapshotPath(@org.apache.thrift.annotation.Nullable java.lang.String snapshot_path) {
this.snapshot_path = snapshot_path;
return this;
}
public void unsetSnapshotPath() {
this.snapshot_path = null;
}
/** Returns true if field snapshot_path is set (has been assigned a value) and false otherwise */
public boolean isSetSnapshotPath() {
return this.snapshot_path != null;
}
public void setSnapshotPathIsSet(boolean value) {
if (!value) {
this.snapshot_path = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SNAPSHOT_PATH:
if (value == null) {
unsetSnapshotPath();
} else {
setSnapshotPath((java.lang.String)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SNAPSHOT_PATH:
return getSnapshotPath();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SNAPSHOT_PATH:
return isSetSnapshotPath();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof release_snapshot_args)
return this.equals((release_snapshot_args)that);
return false;
}
public boolean equals(release_snapshot_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_snapshot_path = true && this.isSetSnapshotPath();
boolean that_present_snapshot_path = true && that.isSetSnapshotPath();
if (this_present_snapshot_path || that_present_snapshot_path) {
if (!(this_present_snapshot_path && that_present_snapshot_path))
return false;
if (!this.snapshot_path.equals(that.snapshot_path))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSnapshotPath()) ? 131071 : 524287);
if (isSetSnapshotPath())
hashCode = hashCode * 8191 + snapshot_path.hashCode();
return hashCode;
}
@Override
public int compareTo(release_snapshot_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSnapshotPath(), other.isSetSnapshotPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSnapshotPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.snapshot_path, other.snapshot_path);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("release_snapshot_args(");
boolean first = true;
sb.append("snapshot_path:");
if (this.snapshot_path == null) {
sb.append("null");
} else {
sb.append(this.snapshot_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, java.lang.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 release_snapshot_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public release_snapshot_argsStandardScheme getScheme() {
return new release_snapshot_argsStandardScheme();
}
}
private static class release_snapshot_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<release_snapshot_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, release_snapshot_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: // SNAPSHOT_PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.snapshot_path = iprot.readString();
struct.setSnapshotPathIsSet(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, release_snapshot_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.snapshot_path != null) {
oprot.writeFieldBegin(SNAPSHOT_PATH_FIELD_DESC);
oprot.writeString(struct.snapshot_path);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class release_snapshot_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public release_snapshot_argsTupleScheme getScheme() {
return new release_snapshot_argsTupleScheme();
}
}
private static class release_snapshot_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<release_snapshot_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, release_snapshot_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSnapshotPath()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSnapshotPath()) {
oprot.writeString(struct.snapshot_path);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, release_snapshot_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.snapshot_path = iprot.readString();
struct.setSnapshotPathIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class release_snapshot_result implements org.apache.thrift.TBase<release_snapshot_result, release_snapshot_result._Fields>, java.io.Serializable, Cloneable, Comparable<release_snapshot_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("release_snapshot_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new release_snapshot_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new release_snapshot_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TAgentResult 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, org.apache.doris.thrift.TAgentResult.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(release_snapshot_result.class, metaDataMap);
}
public release_snapshot_result() {
}
public release_snapshot_result(
org.apache.doris.thrift.TAgentResult success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public release_snapshot_result(release_snapshot_result other) {
if (other.isSetSuccess()) {
this.success = new org.apache.doris.thrift.TAgentResult(other.success);
}
}
public release_snapshot_result deepCopy() {
return new release_snapshot_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public org.apache.doris.thrift.TAgentResult getSuccess() {
return this.success;
}
public release_snapshot_result setSuccess(@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TAgentResult 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((org.apache.doris.thrift.TAgentResult)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof release_snapshot_result)
return this.equals((release_snapshot_result)that);
return false;
}
public boolean equals(release_snapshot_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(release_snapshot_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("release_snapshot_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
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, java.lang.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 release_snapshot_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public release_snapshot_resultStandardScheme getScheme() {
return new release_snapshot_resultStandardScheme();
}
}
private static class release_snapshot_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<release_snapshot_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, release_snapshot_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 org.apache.doris.thrift.TAgentResult();
struct.success.read(iprot);
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, release_snapshot_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class release_snapshot_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public release_snapshot_resultTupleScheme getScheme() {
return new release_snapshot_resultTupleScheme();
}
}
private static class release_snapshot_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<release_snapshot_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, release_snapshot_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, release_snapshot_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new org.apache.doris.thrift.TAgentResult();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class publish_cluster_state_args implements org.apache.thrift.TBase<publish_cluster_state_args, publish_cluster_state_args._Fields>, java.io.Serializable, Cloneable, Comparable<publish_cluster_state_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("publish_cluster_state_args");
private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new publish_cluster_state_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new publish_cluster_state_argsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TAgentPublishRequest request; // 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 {
REQUEST((short)1, "request");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // REQUEST
return REQUEST;
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.doris.thrift.TAgentPublishRequest.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(publish_cluster_state_args.class, metaDataMap);
}
public publish_cluster_state_args() {
}
public publish_cluster_state_args(
org.apache.doris.thrift.TAgentPublishRequest request)
{
this();
this.request = request;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public publish_cluster_state_args(publish_cluster_state_args other) {
if (other.isSetRequest()) {
this.request = new org.apache.doris.thrift.TAgentPublishRequest(other.request);
}
}
public publish_cluster_state_args deepCopy() {
return new publish_cluster_state_args(this);
}
@Override
public void clear() {
this.request = null;
}
@org.apache.thrift.annotation.Nullable
public org.apache.doris.thrift.TAgentPublishRequest getRequest() {
return this.request;
}
public publish_cluster_state_args setRequest(@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TAgentPublishRequest request) {
this.request = request;
return this;
}
public void unsetRequest() {
this.request = null;
}
/** Returns true if field request is set (has been assigned a value) and false otherwise */
public boolean isSetRequest() {
return this.request != null;
}
public void setRequestIsSet(boolean value) {
if (!value) {
this.request = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case REQUEST:
if (value == null) {
unsetRequest();
} else {
setRequest((org.apache.doris.thrift.TAgentPublishRequest)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case REQUEST:
return getRequest();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case REQUEST:
return isSetRequest();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof publish_cluster_state_args)
return this.equals((publish_cluster_state_args)that);
return false;
}
public boolean equals(publish_cluster_state_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_request = true && this.isSetRequest();
boolean that_present_request = true && that.isSetRequest();
if (this_present_request || that_present_request) {
if (!(this_present_request && that_present_request))
return false;
if (!this.request.equals(that.request))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetRequest()) ? 131071 : 524287);
if (isSetRequest())
hashCode = hashCode * 8191 + request.hashCode();
return hashCode;
}
@Override
public int compareTo(publish_cluster_state_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetRequest(), other.isSetRequest());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRequest()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("publish_cluster_state_args(");
boolean first = true;
sb.append("request:");
if (this.request == null) {
sb.append("null");
} else {
sb.append(this.request);
}
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 (request != null) {
request.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, java.lang.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 publish_cluster_state_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public publish_cluster_state_argsStandardScheme getScheme() {
return new publish_cluster_state_argsStandardScheme();
}
}
private static class publish_cluster_state_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<publish_cluster_state_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, publish_cluster_state_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: // REQUEST
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.request = new org.apache.doris.thrift.TAgentPublishRequest();
struct.request.read(iprot);
struct.setRequestIsSet(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, publish_cluster_state_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.request != null) {
oprot.writeFieldBegin(REQUEST_FIELD_DESC);
struct.request.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class publish_cluster_state_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public publish_cluster_state_argsTupleScheme getScheme() {
return new publish_cluster_state_argsTupleScheme();
}
}
private static class publish_cluster_state_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<publish_cluster_state_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, publish_cluster_state_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetRequest()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetRequest()) {
struct.request.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, publish_cluster_state_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.request = new org.apache.doris.thrift.TAgentPublishRequest();
struct.request.read(iprot);
struct.setRequestIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class publish_cluster_state_result implements org.apache.thrift.TBase<publish_cluster_state_result, publish_cluster_state_result._Fields>, java.io.Serializable, Cloneable, Comparable<publish_cluster_state_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("publish_cluster_state_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new publish_cluster_state_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new publish_cluster_state_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TAgentResult 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, org.apache.doris.thrift.TAgentResult.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(publish_cluster_state_result.class, metaDataMap);
}
public publish_cluster_state_result() {
}
public publish_cluster_state_result(
org.apache.doris.thrift.TAgentResult success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public publish_cluster_state_result(publish_cluster_state_result other) {
if (other.isSetSuccess()) {
this.success = new org.apache.doris.thrift.TAgentResult(other.success);
}
}
public publish_cluster_state_result deepCopy() {
return new publish_cluster_state_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public org.apache.doris.thrift.TAgentResult getSuccess() {
return this.success;
}
public publish_cluster_state_result setSuccess(@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TAgentResult 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((org.apache.doris.thrift.TAgentResult)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof publish_cluster_state_result)
return this.equals((publish_cluster_state_result)that);
return false;
}
public boolean equals(publish_cluster_state_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(publish_cluster_state_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("publish_cluster_state_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
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, java.lang.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 publish_cluster_state_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public publish_cluster_state_resultStandardScheme getScheme() {
return new publish_cluster_state_resultStandardScheme();
}
}
private static class publish_cluster_state_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<publish_cluster_state_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, publish_cluster_state_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 org.apache.doris.thrift.TAgentResult();
struct.success.read(iprot);
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, publish_cluster_state_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class publish_cluster_state_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public publish_cluster_state_resultTupleScheme getScheme() {
return new publish_cluster_state_resultTupleScheme();
}
}
private static class publish_cluster_state_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<publish_cluster_state_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, publish_cluster_state_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, publish_cluster_state_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new org.apache.doris.thrift.TAgentResult();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class get_tablet_stat_args implements org.apache.thrift.TBase<get_tablet_stat_args, get_tablet_stat_args._Fields>, java.io.Serializable, Cloneable, Comparable<get_tablet_stat_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tablet_stat_args");
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_tablet_stat_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_tablet_stat_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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tablet_stat_args.class, metaDataMap);
}
public get_tablet_stat_args() {
}
/**
* Performs a deep copy on <i>other</i>.
*/
public get_tablet_stat_args(get_tablet_stat_args other) {
}
public get_tablet_stat_args deepCopy() {
return new get_tablet_stat_args(this);
}
@Override
public void clear() {
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof get_tablet_stat_args)
return this.equals((get_tablet_stat_args)that);
return false;
}
public boolean equals(get_tablet_stat_args that) {
if (that == null)
return false;
if (this == that)
return true;
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
return hashCode;
}
@Override
public int compareTo(get_tablet_stat_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("get_tablet_stat_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, java.lang.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 get_tablet_stat_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_tablet_stat_argsStandardScheme getScheme() {
return new get_tablet_stat_argsStandardScheme();
}
}
private static class get_tablet_stat_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<get_tablet_stat_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, get_tablet_stat_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, get_tablet_stat_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class get_tablet_stat_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_tablet_stat_argsTupleScheme getScheme() {
return new get_tablet_stat_argsTupleScheme();
}
}
private static class get_tablet_stat_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<get_tablet_stat_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, get_tablet_stat_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, get_tablet_stat_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class get_tablet_stat_result implements org.apache.thrift.TBase<get_tablet_stat_result, get_tablet_stat_result._Fields>, java.io.Serializable, Cloneable, Comparable<get_tablet_stat_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tablet_stat_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_tablet_stat_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_tablet_stat_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TTabletStatResult 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TTabletStatResult.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tablet_stat_result.class, metaDataMap);
}
public get_tablet_stat_result() {
}
public get_tablet_stat_result(
TTabletStatResult success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public get_tablet_stat_result(get_tablet_stat_result other) {
if (other.isSetSuccess()) {
this.success = new TTabletStatResult(other.success);
}
}
public get_tablet_stat_result deepCopy() {
return new get_tablet_stat_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public TTabletStatResult getSuccess() {
return this.success;
}
public get_tablet_stat_result setSuccess(@org.apache.thrift.annotation.Nullable TTabletStatResult 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((TTabletStatResult)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof get_tablet_stat_result)
return this.equals((get_tablet_stat_result)that);
return false;
}
public boolean equals(get_tablet_stat_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(get_tablet_stat_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("get_tablet_stat_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
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, java.lang.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 get_tablet_stat_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_tablet_stat_resultStandardScheme getScheme() {
return new get_tablet_stat_resultStandardScheme();
}
}
private static class get_tablet_stat_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<get_tablet_stat_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, get_tablet_stat_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 TTabletStatResult();
struct.success.read(iprot);
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, get_tablet_stat_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class get_tablet_stat_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_tablet_stat_resultTupleScheme getScheme() {
return new get_tablet_stat_resultTupleScheme();
}
}
private static class get_tablet_stat_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<get_tablet_stat_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, get_tablet_stat_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, get_tablet_stat_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new TTabletStatResult();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class get_trash_used_capacity_args implements org.apache.thrift.TBase<get_trash_used_capacity_args, get_trash_used_capacity_args._Fields>, java.io.Serializable, Cloneable, Comparable<get_trash_used_capacity_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_trash_used_capacity_args");
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_trash_used_capacity_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_trash_used_capacity_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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_trash_used_capacity_args.class, metaDataMap);
}
public get_trash_used_capacity_args() {
}
/**
* Performs a deep copy on <i>other</i>.
*/
public get_trash_used_capacity_args(get_trash_used_capacity_args other) {
}
public get_trash_used_capacity_args deepCopy() {
return new get_trash_used_capacity_args(this);
}
@Override
public void clear() {
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof get_trash_used_capacity_args)
return this.equals((get_trash_used_capacity_args)that);
return false;
}
public boolean equals(get_trash_used_capacity_args that) {
if (that == null)
return false;
if (this == that)
return true;
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
return hashCode;
}
@Override
public int compareTo(get_trash_used_capacity_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("get_trash_used_capacity_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, java.lang.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 get_trash_used_capacity_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_trash_used_capacity_argsStandardScheme getScheme() {
return new get_trash_used_capacity_argsStandardScheme();
}
}
private static class get_trash_used_capacity_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<get_trash_used_capacity_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, get_trash_used_capacity_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, get_trash_used_capacity_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class get_trash_used_capacity_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_trash_used_capacity_argsTupleScheme getScheme() {
return new get_trash_used_capacity_argsTupleScheme();
}
}
private static class get_trash_used_capacity_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<get_trash_used_capacity_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, get_trash_used_capacity_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, get_trash_used_capacity_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class get_trash_used_capacity_result implements org.apache.thrift.TBase<get_trash_used_capacity_result, get_trash_used_capacity_result._Fields>, java.io.Serializable, Cloneable, Comparable<get_trash_used_capacity_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_trash_used_capacity_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_trash_used_capacity_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_trash_used_capacity_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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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 = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_trash_used_capacity_result.class, metaDataMap);
}
public get_trash_used_capacity_result() {
}
public get_trash_used_capacity_result(
long success)
{
this();
this.success = success;
setSuccessIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public get_trash_used_capacity_result(get_trash_used_capacity_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
}
public get_trash_used_capacity_result deepCopy() {
return new get_trash_used_capacity_result(this);
}
@Override
public void clear() {
setSuccessIsSet(false);
this.success = 0;
}
public long getSuccess() {
return this.success;
}
public get_trash_used_capacity_result setSuccess(long success) {
this.success = success;
setSuccessIsSet(true);
return this;
}
public void unsetSuccess() {
__isset_bitfield = org.apache.thrift.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 org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((java.lang.Long)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof get_trash_used_capacity_result)
return this.equals((get_trash_used_capacity_result)that);
return false;
}
public boolean equals(get_trash_used_capacity_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(success);
return hashCode;
}
@Override
public int compareTo(get_trash_used_capacity_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("get_trash_used_capacity_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, java.lang.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 get_trash_used_capacity_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_trash_used_capacity_resultStandardScheme getScheme() {
return new get_trash_used_capacity_resultStandardScheme();
}
}
private static class get_trash_used_capacity_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<get_trash_used_capacity_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, get_trash_used_capacity_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, get_trash_used_capacity_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 get_trash_used_capacity_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_trash_used_capacity_resultTupleScheme getScheme() {
return new get_trash_used_capacity_resultTupleScheme();
}
}
private static class get_trash_used_capacity_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<get_trash_used_capacity_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, get_trash_used_capacity_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.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, get_trash_used_capacity_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = iprot.readI64();
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class get_disk_trash_used_capacity_args implements org.apache.thrift.TBase<get_disk_trash_used_capacity_args, get_disk_trash_used_capacity_args._Fields>, java.io.Serializable, Cloneable, Comparable<get_disk_trash_used_capacity_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_disk_trash_used_capacity_args");
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_disk_trash_used_capacity_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_disk_trash_used_capacity_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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_disk_trash_used_capacity_args.class, metaDataMap);
}
public get_disk_trash_used_capacity_args() {
}
/**
* Performs a deep copy on <i>other</i>.
*/
public get_disk_trash_used_capacity_args(get_disk_trash_used_capacity_args other) {
}
public get_disk_trash_used_capacity_args deepCopy() {
return new get_disk_trash_used_capacity_args(this);
}
@Override
public void clear() {
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof get_disk_trash_used_capacity_args)
return this.equals((get_disk_trash_used_capacity_args)that);
return false;
}
public boolean equals(get_disk_trash_used_capacity_args that) {
if (that == null)
return false;
if (this == that)
return true;
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
return hashCode;
}
@Override
public int compareTo(get_disk_trash_used_capacity_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("get_disk_trash_used_capacity_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, java.lang.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 get_disk_trash_used_capacity_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_disk_trash_used_capacity_argsStandardScheme getScheme() {
return new get_disk_trash_used_capacity_argsStandardScheme();
}
}
private static class get_disk_trash_used_capacity_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<get_disk_trash_used_capacity_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, get_disk_trash_used_capacity_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, get_disk_trash_used_capacity_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class get_disk_trash_used_capacity_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_disk_trash_used_capacity_argsTupleScheme getScheme() {
return new get_disk_trash_used_capacity_argsTupleScheme();
}
}
private static class get_disk_trash_used_capacity_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<get_disk_trash_used_capacity_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, get_disk_trash_used_capacity_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, get_disk_trash_used_capacity_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class get_disk_trash_used_capacity_result implements org.apache.thrift.TBase<get_disk_trash_used_capacity_result, get_disk_trash_used_capacity_result._Fields>, java.io.Serializable, Cloneable, Comparable<get_disk_trash_used_capacity_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_disk_trash_used_capacity_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_disk_trash_used_capacity_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_disk_trash_used_capacity_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable java.util.List<TDiskTrashInfo> 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TDiskTrashInfo.class))));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_disk_trash_used_capacity_result.class, metaDataMap);
}
public get_disk_trash_used_capacity_result() {
}
public get_disk_trash_used_capacity_result(
java.util.List<TDiskTrashInfo> success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public get_disk_trash_used_capacity_result(get_disk_trash_used_capacity_result other) {
if (other.isSetSuccess()) {
java.util.List<TDiskTrashInfo> __this__success = new java.util.ArrayList<TDiskTrashInfo>(other.success.size());
for (TDiskTrashInfo other_element : other.success) {
__this__success.add(new TDiskTrashInfo(other_element));
}
this.success = __this__success;
}
}
public get_disk_trash_used_capacity_result deepCopy() {
return new get_disk_trash_used_capacity_result(this);
}
@Override
public void clear() {
this.success = null;
}
public int getSuccessSize() {
return (this.success == null) ? 0 : this.success.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<TDiskTrashInfo> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(TDiskTrashInfo elem) {
if (this.success == null) {
this.success = new java.util.ArrayList<TDiskTrashInfo>();
}
this.success.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<TDiskTrashInfo> getSuccess() {
return this.success;
}
public get_disk_trash_used_capacity_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List<TDiskTrashInfo> 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((java.util.List<TDiskTrashInfo>)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof get_disk_trash_used_capacity_result)
return this.equals((get_disk_trash_used_capacity_result)that);
return false;
}
public boolean equals(get_disk_trash_used_capacity_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(get_disk_trash_used_capacity_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("get_disk_trash_used_capacity_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, java.lang.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 get_disk_trash_used_capacity_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_disk_trash_used_capacity_resultStandardScheme getScheme() {
return new get_disk_trash_used_capacity_resultStandardScheme();
}
}
private static class get_disk_trash_used_capacity_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<get_disk_trash_used_capacity_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, get_disk_trash_used_capacity_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 _list206 = iprot.readListBegin();
struct.success = new java.util.ArrayList<TDiskTrashInfo>(_list206.size);
@org.apache.thrift.annotation.Nullable TDiskTrashInfo _elem207;
for (int _i208 = 0; _i208 < _list206.size; ++_i208)
{
_elem207 = new TDiskTrashInfo();
_elem207.read(iprot);
struct.success.add(_elem207);
}
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, get_disk_trash_used_capacity_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 (TDiskTrashInfo _iter209 : struct.success)
{
_iter209.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class get_disk_trash_used_capacity_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_disk_trash_used_capacity_resultTupleScheme getScheme() {
return new get_disk_trash_used_capacity_resultTupleScheme();
}
}
private static class get_disk_trash_used_capacity_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<get_disk_trash_used_capacity_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, get_disk_trash_used_capacity_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
for (TDiskTrashInfo _iter210 : struct.success)
{
_iter210.write(oprot);
}
}
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, get_disk_trash_used_capacity_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list211 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
struct.success = new java.util.ArrayList<TDiskTrashInfo>(_list211.size);
@org.apache.thrift.annotation.Nullable TDiskTrashInfo _elem212;
for (int _i213 = 0; _i213 < _list211.size; ++_i213)
{
_elem212 = new TDiskTrashInfo();
_elem212.read(iprot);
struct.success.add(_elem212);
}
}
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class submit_routine_load_task_args implements org.apache.thrift.TBase<submit_routine_load_task_args, submit_routine_load_task_args._Fields>, java.io.Serializable, Cloneable, Comparable<submit_routine_load_task_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("submit_routine_load_task_args");
private static final org.apache.thrift.protocol.TField TASKS_FIELD_DESC = new org.apache.thrift.protocol.TField("tasks", org.apache.thrift.protocol.TType.LIST, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new submit_routine_load_task_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new submit_routine_load_task_argsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable java.util.List<TRoutineLoadTask> tasks; // 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 {
TASKS((short)1, "tasks");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // TASKS
return TASKS;
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.TASKS, new org.apache.thrift.meta_data.FieldMetaData("tasks", 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, TRoutineLoadTask.class))));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(submit_routine_load_task_args.class, metaDataMap);
}
public submit_routine_load_task_args() {
}
public submit_routine_load_task_args(
java.util.List<TRoutineLoadTask> tasks)
{
this();
this.tasks = tasks;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public submit_routine_load_task_args(submit_routine_load_task_args other) {
if (other.isSetTasks()) {
java.util.List<TRoutineLoadTask> __this__tasks = new java.util.ArrayList<TRoutineLoadTask>(other.tasks.size());
for (TRoutineLoadTask other_element : other.tasks) {
__this__tasks.add(new TRoutineLoadTask(other_element));
}
this.tasks = __this__tasks;
}
}
public submit_routine_load_task_args deepCopy() {
return new submit_routine_load_task_args(this);
}
@Override
public void clear() {
this.tasks = null;
}
public int getTasksSize() {
return (this.tasks == null) ? 0 : this.tasks.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<TRoutineLoadTask> getTasksIterator() {
return (this.tasks == null) ? null : this.tasks.iterator();
}
public void addToTasks(TRoutineLoadTask elem) {
if (this.tasks == null) {
this.tasks = new java.util.ArrayList<TRoutineLoadTask>();
}
this.tasks.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<TRoutineLoadTask> getTasks() {
return this.tasks;
}
public submit_routine_load_task_args setTasks(@org.apache.thrift.annotation.Nullable java.util.List<TRoutineLoadTask> tasks) {
this.tasks = tasks;
return this;
}
public void unsetTasks() {
this.tasks = null;
}
/** Returns true if field tasks is set (has been assigned a value) and false otherwise */
public boolean isSetTasks() {
return this.tasks != null;
}
public void setTasksIsSet(boolean value) {
if (!value) {
this.tasks = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case TASKS:
if (value == null) {
unsetTasks();
} else {
setTasks((java.util.List<TRoutineLoadTask>)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case TASKS:
return getTasks();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case TASKS:
return isSetTasks();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof submit_routine_load_task_args)
return this.equals((submit_routine_load_task_args)that);
return false;
}
public boolean equals(submit_routine_load_task_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_tasks = true && this.isSetTasks();
boolean that_present_tasks = true && that.isSetTasks();
if (this_present_tasks || that_present_tasks) {
if (!(this_present_tasks && that_present_tasks))
return false;
if (!this.tasks.equals(that.tasks))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetTasks()) ? 131071 : 524287);
if (isSetTasks())
hashCode = hashCode * 8191 + tasks.hashCode();
return hashCode;
}
@Override
public int compareTo(submit_routine_load_task_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetTasks(), other.isSetTasks());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTasks()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tasks, other.tasks);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("submit_routine_load_task_args(");
boolean first = true;
sb.append("tasks:");
if (this.tasks == null) {
sb.append("null");
} else {
sb.append(this.tasks);
}
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, java.lang.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 submit_routine_load_task_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public submit_routine_load_task_argsStandardScheme getScheme() {
return new submit_routine_load_task_argsStandardScheme();
}
}
private static class submit_routine_load_task_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<submit_routine_load_task_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, submit_routine_load_task_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: // TASKS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list214 = iprot.readListBegin();
struct.tasks = new java.util.ArrayList<TRoutineLoadTask>(_list214.size);
@org.apache.thrift.annotation.Nullable TRoutineLoadTask _elem215;
for (int _i216 = 0; _i216 < _list214.size; ++_i216)
{
_elem215 = new TRoutineLoadTask();
_elem215.read(iprot);
struct.tasks.add(_elem215);
}
iprot.readListEnd();
}
struct.setTasksIsSet(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, submit_routine_load_task_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.tasks != null) {
oprot.writeFieldBegin(TASKS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tasks.size()));
for (TRoutineLoadTask _iter217 : struct.tasks)
{
_iter217.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class submit_routine_load_task_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public submit_routine_load_task_argsTupleScheme getScheme() {
return new submit_routine_load_task_argsTupleScheme();
}
}
private static class submit_routine_load_task_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<submit_routine_load_task_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, submit_routine_load_task_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetTasks()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetTasks()) {
{
oprot.writeI32(struct.tasks.size());
for (TRoutineLoadTask _iter218 : struct.tasks)
{
_iter218.write(oprot);
}
}
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, submit_routine_load_task_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list219 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
struct.tasks = new java.util.ArrayList<TRoutineLoadTask>(_list219.size);
@org.apache.thrift.annotation.Nullable TRoutineLoadTask _elem220;
for (int _i221 = 0; _i221 < _list219.size; ++_i221)
{
_elem220 = new TRoutineLoadTask();
_elem220.read(iprot);
struct.tasks.add(_elem220);
}
}
struct.setTasksIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class submit_routine_load_task_result implements org.apache.thrift.TBase<submit_routine_load_task_result, submit_routine_load_task_result._Fields>, java.io.Serializable, Cloneable, Comparable<submit_routine_load_task_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("submit_routine_load_task_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new submit_routine_load_task_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new submit_routine_load_task_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TStatus 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, org.apache.doris.thrift.TStatus.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(submit_routine_load_task_result.class, metaDataMap);
}
public submit_routine_load_task_result() {
}
public submit_routine_load_task_result(
org.apache.doris.thrift.TStatus success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public submit_routine_load_task_result(submit_routine_load_task_result other) {
if (other.isSetSuccess()) {
this.success = new org.apache.doris.thrift.TStatus(other.success);
}
}
public submit_routine_load_task_result deepCopy() {
return new submit_routine_load_task_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public org.apache.doris.thrift.TStatus getSuccess() {
return this.success;
}
public submit_routine_load_task_result setSuccess(@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TStatus 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((org.apache.doris.thrift.TStatus)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof submit_routine_load_task_result)
return this.equals((submit_routine_load_task_result)that);
return false;
}
public boolean equals(submit_routine_load_task_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(submit_routine_load_task_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("submit_routine_load_task_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
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, java.lang.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 submit_routine_load_task_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public submit_routine_load_task_resultStandardScheme getScheme() {
return new submit_routine_load_task_resultStandardScheme();
}
}
private static class submit_routine_load_task_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<submit_routine_load_task_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, submit_routine_load_task_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 org.apache.doris.thrift.TStatus();
struct.success.read(iprot);
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, submit_routine_load_task_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class submit_routine_load_task_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public submit_routine_load_task_resultTupleScheme getScheme() {
return new submit_routine_load_task_resultTupleScheme();
}
}
private static class submit_routine_load_task_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<submit_routine_load_task_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, submit_routine_load_task_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, submit_routine_load_task_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new org.apache.doris.thrift.TStatus();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class open_scanner_args implements org.apache.thrift.TBase<open_scanner_args, open_scanner_args._Fields>, java.io.Serializable, Cloneable, Comparable<open_scanner_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("open_scanner_args");
private static final org.apache.thrift.protocol.TField PARAMS_FIELD_DESC = new org.apache.thrift.protocol.TField("params", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new open_scanner_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new open_scanner_argsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TScanOpenParams params; // 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 {
PARAMS((short)1, "params");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // PARAMS
return PARAMS;
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.doris.thrift.TScanOpenParams.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(open_scanner_args.class, metaDataMap);
}
public open_scanner_args() {
}
public open_scanner_args(
org.apache.doris.thrift.TScanOpenParams params)
{
this();
this.params = params;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public open_scanner_args(open_scanner_args other) {
if (other.isSetParams()) {
this.params = new org.apache.doris.thrift.TScanOpenParams(other.params);
}
}
public open_scanner_args deepCopy() {
return new open_scanner_args(this);
}
@Override
public void clear() {
this.params = null;
}
@org.apache.thrift.annotation.Nullable
public org.apache.doris.thrift.TScanOpenParams getParams() {
return this.params;
}
public open_scanner_args setParams(@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TScanOpenParams params) {
this.params = params;
return this;
}
public void unsetParams() {
this.params = null;
}
/** Returns true if field params is set (has been assigned a value) and false otherwise */
public boolean isSetParams() {
return this.params != null;
}
public void setParamsIsSet(boolean value) {
if (!value) {
this.params = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case PARAMS:
if (value == null) {
unsetParams();
} else {
setParams((org.apache.doris.thrift.TScanOpenParams)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case PARAMS:
return getParams();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case PARAMS:
return isSetParams();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof open_scanner_args)
return this.equals((open_scanner_args)that);
return false;
}
public boolean equals(open_scanner_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_params = true && this.isSetParams();
boolean that_present_params = true && that.isSetParams();
if (this_present_params || that_present_params) {
if (!(this_present_params && that_present_params))
return false;
if (!this.params.equals(that.params))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetParams()) ? 131071 : 524287);
if (isSetParams())
hashCode = hashCode * 8191 + params.hashCode();
return hashCode;
}
@Override
public int compareTo(open_scanner_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetParams(), other.isSetParams());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetParams()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, other.params);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("open_scanner_args(");
boolean first = true;
sb.append("params:");
if (this.params == null) {
sb.append("null");
} else {
sb.append(this.params);
}
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 (params != null) {
params.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, java.lang.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 open_scanner_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public open_scanner_argsStandardScheme getScheme() {
return new open_scanner_argsStandardScheme();
}
}
private static class open_scanner_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<open_scanner_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, open_scanner_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: // PARAMS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.params = new org.apache.doris.thrift.TScanOpenParams();
struct.params.read(iprot);
struct.setParamsIsSet(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, open_scanner_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.params != null) {
oprot.writeFieldBegin(PARAMS_FIELD_DESC);
struct.params.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class open_scanner_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public open_scanner_argsTupleScheme getScheme() {
return new open_scanner_argsTupleScheme();
}
}
private static class open_scanner_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<open_scanner_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, open_scanner_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetParams()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetParams()) {
struct.params.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, open_scanner_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.params = new org.apache.doris.thrift.TScanOpenParams();
struct.params.read(iprot);
struct.setParamsIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class open_scanner_result implements org.apache.thrift.TBase<open_scanner_result, open_scanner_result._Fields>, java.io.Serializable, Cloneable, Comparable<open_scanner_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("open_scanner_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new open_scanner_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new open_scanner_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TScanOpenResult 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, org.apache.doris.thrift.TScanOpenResult.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(open_scanner_result.class, metaDataMap);
}
public open_scanner_result() {
}
public open_scanner_result(
org.apache.doris.thrift.TScanOpenResult success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public open_scanner_result(open_scanner_result other) {
if (other.isSetSuccess()) {
this.success = new org.apache.doris.thrift.TScanOpenResult(other.success);
}
}
public open_scanner_result deepCopy() {
return new open_scanner_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public org.apache.doris.thrift.TScanOpenResult getSuccess() {
return this.success;
}
public open_scanner_result setSuccess(@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TScanOpenResult 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((org.apache.doris.thrift.TScanOpenResult)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof open_scanner_result)
return this.equals((open_scanner_result)that);
return false;
}
public boolean equals(open_scanner_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(open_scanner_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("open_scanner_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
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, java.lang.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 open_scanner_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public open_scanner_resultStandardScheme getScheme() {
return new open_scanner_resultStandardScheme();
}
}
private static class open_scanner_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<open_scanner_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, open_scanner_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 org.apache.doris.thrift.TScanOpenResult();
struct.success.read(iprot);
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, open_scanner_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class open_scanner_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public open_scanner_resultTupleScheme getScheme() {
return new open_scanner_resultTupleScheme();
}
}
private static class open_scanner_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<open_scanner_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, open_scanner_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, open_scanner_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new org.apache.doris.thrift.TScanOpenResult();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class get_next_args implements org.apache.thrift.TBase<get_next_args, get_next_args._Fields>, java.io.Serializable, Cloneable, Comparable<get_next_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_next_args");
private static final org.apache.thrift.protocol.TField PARAMS_FIELD_DESC = new org.apache.thrift.protocol.TField("params", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_next_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_next_argsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TScanNextBatchParams params; // 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 {
PARAMS((short)1, "params");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // PARAMS
return PARAMS;
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.doris.thrift.TScanNextBatchParams.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_next_args.class, metaDataMap);
}
public get_next_args() {
}
public get_next_args(
org.apache.doris.thrift.TScanNextBatchParams params)
{
this();
this.params = params;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public get_next_args(get_next_args other) {
if (other.isSetParams()) {
this.params = new org.apache.doris.thrift.TScanNextBatchParams(other.params);
}
}
public get_next_args deepCopy() {
return new get_next_args(this);
}
@Override
public void clear() {
this.params = null;
}
@org.apache.thrift.annotation.Nullable
public org.apache.doris.thrift.TScanNextBatchParams getParams() {
return this.params;
}
public get_next_args setParams(@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TScanNextBatchParams params) {
this.params = params;
return this;
}
public void unsetParams() {
this.params = null;
}
/** Returns true if field params is set (has been assigned a value) and false otherwise */
public boolean isSetParams() {
return this.params != null;
}
public void setParamsIsSet(boolean value) {
if (!value) {
this.params = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case PARAMS:
if (value == null) {
unsetParams();
} else {
setParams((org.apache.doris.thrift.TScanNextBatchParams)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case PARAMS:
return getParams();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case PARAMS:
return isSetParams();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof get_next_args)
return this.equals((get_next_args)that);
return false;
}
public boolean equals(get_next_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_params = true && this.isSetParams();
boolean that_present_params = true && that.isSetParams();
if (this_present_params || that_present_params) {
if (!(this_present_params && that_present_params))
return false;
if (!this.params.equals(that.params))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetParams()) ? 131071 : 524287);
if (isSetParams())
hashCode = hashCode * 8191 + params.hashCode();
return hashCode;
}
@Override
public int compareTo(get_next_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetParams(), other.isSetParams());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetParams()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, other.params);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("get_next_args(");
boolean first = true;
sb.append("params:");
if (this.params == null) {
sb.append("null");
} else {
sb.append(this.params);
}
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 (params != null) {
params.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, java.lang.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 get_next_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_next_argsStandardScheme getScheme() {
return new get_next_argsStandardScheme();
}
}
private static class get_next_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<get_next_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, get_next_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: // PARAMS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.params = new org.apache.doris.thrift.TScanNextBatchParams();
struct.params.read(iprot);
struct.setParamsIsSet(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, get_next_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.params != null) {
oprot.writeFieldBegin(PARAMS_FIELD_DESC);
struct.params.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class get_next_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_next_argsTupleScheme getScheme() {
return new get_next_argsTupleScheme();
}
}
private static class get_next_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<get_next_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, get_next_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetParams()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetParams()) {
struct.params.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, get_next_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.params = new org.apache.doris.thrift.TScanNextBatchParams();
struct.params.read(iprot);
struct.setParamsIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class get_next_result implements org.apache.thrift.TBase<get_next_result, get_next_result._Fields>, java.io.Serializable, Cloneable, Comparable<get_next_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_next_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_next_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_next_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TScanBatchResult 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, org.apache.doris.thrift.TScanBatchResult.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_next_result.class, metaDataMap);
}
public get_next_result() {
}
public get_next_result(
org.apache.doris.thrift.TScanBatchResult success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public get_next_result(get_next_result other) {
if (other.isSetSuccess()) {
this.success = new org.apache.doris.thrift.TScanBatchResult(other.success);
}
}
public get_next_result deepCopy() {
return new get_next_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public org.apache.doris.thrift.TScanBatchResult getSuccess() {
return this.success;
}
public get_next_result setSuccess(@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TScanBatchResult 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((org.apache.doris.thrift.TScanBatchResult)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof get_next_result)
return this.equals((get_next_result)that);
return false;
}
public boolean equals(get_next_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(get_next_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("get_next_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
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, java.lang.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 get_next_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_next_resultStandardScheme getScheme() {
return new get_next_resultStandardScheme();
}
}
private static class get_next_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<get_next_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, get_next_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 org.apache.doris.thrift.TScanBatchResult();
struct.success.read(iprot);
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, get_next_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class get_next_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_next_resultTupleScheme getScheme() {
return new get_next_resultTupleScheme();
}
}
private static class get_next_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<get_next_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, get_next_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, get_next_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new org.apache.doris.thrift.TScanBatchResult();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class close_scanner_args implements org.apache.thrift.TBase<close_scanner_args, close_scanner_args._Fields>, java.io.Serializable, Cloneable, Comparable<close_scanner_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("close_scanner_args");
private static final org.apache.thrift.protocol.TField PARAMS_FIELD_DESC = new org.apache.thrift.protocol.TField("params", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new close_scanner_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new close_scanner_argsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TScanCloseParams params; // 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 {
PARAMS((short)1, "params");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // PARAMS
return PARAMS;
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.doris.thrift.TScanCloseParams.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(close_scanner_args.class, metaDataMap);
}
public close_scanner_args() {
}
public close_scanner_args(
org.apache.doris.thrift.TScanCloseParams params)
{
this();
this.params = params;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public close_scanner_args(close_scanner_args other) {
if (other.isSetParams()) {
this.params = new org.apache.doris.thrift.TScanCloseParams(other.params);
}
}
public close_scanner_args deepCopy() {
return new close_scanner_args(this);
}
@Override
public void clear() {
this.params = null;
}
@org.apache.thrift.annotation.Nullable
public org.apache.doris.thrift.TScanCloseParams getParams() {
return this.params;
}
public close_scanner_args setParams(@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TScanCloseParams params) {
this.params = params;
return this;
}
public void unsetParams() {
this.params = null;
}
/** Returns true if field params is set (has been assigned a value) and false otherwise */
public boolean isSetParams() {
return this.params != null;
}
public void setParamsIsSet(boolean value) {
if (!value) {
this.params = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case PARAMS:
if (value == null) {
unsetParams();
} else {
setParams((org.apache.doris.thrift.TScanCloseParams)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case PARAMS:
return getParams();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case PARAMS:
return isSetParams();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof close_scanner_args)
return this.equals((close_scanner_args)that);
return false;
}
public boolean equals(close_scanner_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_params = true && this.isSetParams();
boolean that_present_params = true && that.isSetParams();
if (this_present_params || that_present_params) {
if (!(this_present_params && that_present_params))
return false;
if (!this.params.equals(that.params))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetParams()) ? 131071 : 524287);
if (isSetParams())
hashCode = hashCode * 8191 + params.hashCode();
return hashCode;
}
@Override
public int compareTo(close_scanner_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetParams(), other.isSetParams());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetParams()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, other.params);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("close_scanner_args(");
boolean first = true;
sb.append("params:");
if (this.params == null) {
sb.append("null");
} else {
sb.append(this.params);
}
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 (params != null) {
params.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, java.lang.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 close_scanner_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public close_scanner_argsStandardScheme getScheme() {
return new close_scanner_argsStandardScheme();
}
}
private static class close_scanner_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<close_scanner_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, close_scanner_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: // PARAMS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.params = new org.apache.doris.thrift.TScanCloseParams();
struct.params.read(iprot);
struct.setParamsIsSet(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, close_scanner_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.params != null) {
oprot.writeFieldBegin(PARAMS_FIELD_DESC);
struct.params.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class close_scanner_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public close_scanner_argsTupleScheme getScheme() {
return new close_scanner_argsTupleScheme();
}
}
private static class close_scanner_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<close_scanner_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, close_scanner_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetParams()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetParams()) {
struct.params.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, close_scanner_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.params = new org.apache.doris.thrift.TScanCloseParams();
struct.params.read(iprot);
struct.setParamsIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class close_scanner_result implements org.apache.thrift.TBase<close_scanner_result, close_scanner_result._Fields>, java.io.Serializable, Cloneable, Comparable<close_scanner_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("close_scanner_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new close_scanner_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new close_scanner_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TScanCloseResult 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, org.apache.doris.thrift.TScanCloseResult.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(close_scanner_result.class, metaDataMap);
}
public close_scanner_result() {
}
public close_scanner_result(
org.apache.doris.thrift.TScanCloseResult success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public close_scanner_result(close_scanner_result other) {
if (other.isSetSuccess()) {
this.success = new org.apache.doris.thrift.TScanCloseResult(other.success);
}
}
public close_scanner_result deepCopy() {
return new close_scanner_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public org.apache.doris.thrift.TScanCloseResult getSuccess() {
return this.success;
}
public close_scanner_result setSuccess(@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TScanCloseResult 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((org.apache.doris.thrift.TScanCloseResult)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof close_scanner_result)
return this.equals((close_scanner_result)that);
return false;
}
public boolean equals(close_scanner_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(close_scanner_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("close_scanner_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
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, java.lang.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 close_scanner_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public close_scanner_resultStandardScheme getScheme() {
return new close_scanner_resultStandardScheme();
}
}
private static class close_scanner_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<close_scanner_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, close_scanner_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 org.apache.doris.thrift.TScanCloseResult();
struct.success.read(iprot);
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, close_scanner_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class close_scanner_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public close_scanner_resultTupleScheme getScheme() {
return new close_scanner_resultTupleScheme();
}
}
private static class close_scanner_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<close_scanner_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, close_scanner_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, close_scanner_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new org.apache.doris.thrift.TScanCloseResult();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class get_stream_load_record_args implements org.apache.thrift.TBase<get_stream_load_record_args, get_stream_load_record_args._Fields>, java.io.Serializable, Cloneable, Comparable<get_stream_load_record_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_stream_load_record_args");
private static final org.apache.thrift.protocol.TField LAST_STREAM_RECORD_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("last_stream_record_time", org.apache.thrift.protocol.TType.I64, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_stream_load_record_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_stream_load_record_argsTupleSchemeFactory();
public long last_stream_record_time; // 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 {
LAST_STREAM_RECORD_TIME((short)1, "last_stream_record_time");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // LAST_STREAM_RECORD_TIME
return LAST_STREAM_RECORD_TIME;
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __LAST_STREAM_RECORD_TIME_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.LAST_STREAM_RECORD_TIME, new org.apache.thrift.meta_data.FieldMetaData("last_stream_record_time", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_stream_load_record_args.class, metaDataMap);
}
public get_stream_load_record_args() {
}
public get_stream_load_record_args(
long last_stream_record_time)
{
this();
this.last_stream_record_time = last_stream_record_time;
setLastStreamRecordTimeIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public get_stream_load_record_args(get_stream_load_record_args other) {
__isset_bitfield = other.__isset_bitfield;
this.last_stream_record_time = other.last_stream_record_time;
}
public get_stream_load_record_args deepCopy() {
return new get_stream_load_record_args(this);
}
@Override
public void clear() {
setLastStreamRecordTimeIsSet(false);
this.last_stream_record_time = 0;
}
public long getLastStreamRecordTime() {
return this.last_stream_record_time;
}
public get_stream_load_record_args setLastStreamRecordTime(long last_stream_record_time) {
this.last_stream_record_time = last_stream_record_time;
setLastStreamRecordTimeIsSet(true);
return this;
}
public void unsetLastStreamRecordTime() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __LAST_STREAM_RECORD_TIME_ISSET_ID);
}
/** Returns true if field last_stream_record_time is set (has been assigned a value) and false otherwise */
public boolean isSetLastStreamRecordTime() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __LAST_STREAM_RECORD_TIME_ISSET_ID);
}
public void setLastStreamRecordTimeIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __LAST_STREAM_RECORD_TIME_ISSET_ID, value);
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case LAST_STREAM_RECORD_TIME:
if (value == null) {
unsetLastStreamRecordTime();
} else {
setLastStreamRecordTime((java.lang.Long)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case LAST_STREAM_RECORD_TIME:
return getLastStreamRecordTime();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case LAST_STREAM_RECORD_TIME:
return isSetLastStreamRecordTime();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof get_stream_load_record_args)
return this.equals((get_stream_load_record_args)that);
return false;
}
public boolean equals(get_stream_load_record_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_last_stream_record_time = true;
boolean that_present_last_stream_record_time = true;
if (this_present_last_stream_record_time || that_present_last_stream_record_time) {
if (!(this_present_last_stream_record_time && that_present_last_stream_record_time))
return false;
if (this.last_stream_record_time != that.last_stream_record_time)
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(last_stream_record_time);
return hashCode;
}
@Override
public int compareTo(get_stream_load_record_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetLastStreamRecordTime(), other.isSetLastStreamRecordTime());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetLastStreamRecordTime()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.last_stream_record_time, other.last_stream_record_time);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("get_stream_load_record_args(");
boolean first = true;
sb.append("last_stream_record_time:");
sb.append(this.last_stream_record_time);
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, java.lang.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 get_stream_load_record_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_stream_load_record_argsStandardScheme getScheme() {
return new get_stream_load_record_argsStandardScheme();
}
}
private static class get_stream_load_record_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<get_stream_load_record_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, get_stream_load_record_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: // LAST_STREAM_RECORD_TIME
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.last_stream_record_time = iprot.readI64();
struct.setLastStreamRecordTimeIsSet(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, get_stream_load_record_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(LAST_STREAM_RECORD_TIME_FIELD_DESC);
oprot.writeI64(struct.last_stream_record_time);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class get_stream_load_record_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_stream_load_record_argsTupleScheme getScheme() {
return new get_stream_load_record_argsTupleScheme();
}
}
private static class get_stream_load_record_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<get_stream_load_record_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, get_stream_load_record_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetLastStreamRecordTime()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetLastStreamRecordTime()) {
oprot.writeI64(struct.last_stream_record_time);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, get_stream_load_record_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.last_stream_record_time = iprot.readI64();
struct.setLastStreamRecordTimeIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class get_stream_load_record_result implements org.apache.thrift.TBase<get_stream_load_record_result, get_stream_load_record_result._Fields>, java.io.Serializable, Cloneable, Comparable<get_stream_load_record_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_stream_load_record_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_stream_load_record_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_stream_load_record_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TStreamLoadRecordResult 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TStreamLoadRecordResult.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_stream_load_record_result.class, metaDataMap);
}
public get_stream_load_record_result() {
}
public get_stream_load_record_result(
TStreamLoadRecordResult success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public get_stream_load_record_result(get_stream_load_record_result other) {
if (other.isSetSuccess()) {
this.success = new TStreamLoadRecordResult(other.success);
}
}
public get_stream_load_record_result deepCopy() {
return new get_stream_load_record_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public TStreamLoadRecordResult getSuccess() {
return this.success;
}
public get_stream_load_record_result setSuccess(@org.apache.thrift.annotation.Nullable TStreamLoadRecordResult 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((TStreamLoadRecordResult)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof get_stream_load_record_result)
return this.equals((get_stream_load_record_result)that);
return false;
}
public boolean equals(get_stream_load_record_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(get_stream_load_record_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("get_stream_load_record_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
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, java.lang.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 get_stream_load_record_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_stream_load_record_resultStandardScheme getScheme() {
return new get_stream_load_record_resultStandardScheme();
}
}
private static class get_stream_load_record_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<get_stream_load_record_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, get_stream_load_record_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 TStreamLoadRecordResult();
struct.success.read(iprot);
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, get_stream_load_record_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class get_stream_load_record_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_stream_load_record_resultTupleScheme getScheme() {
return new get_stream_load_record_resultTupleScheme();
}
}
private static class get_stream_load_record_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<get_stream_load_record_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, get_stream_load_record_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, get_stream_load_record_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new TStreamLoadRecordResult();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class check_storage_format_args implements org.apache.thrift.TBase<check_storage_format_args, check_storage_format_args._Fields>, java.io.Serializable, Cloneable, Comparable<check_storage_format_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("check_storage_format_args");
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new check_storage_format_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new check_storage_format_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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(check_storage_format_args.class, metaDataMap);
}
public check_storage_format_args() {
}
/**
* Performs a deep copy on <i>other</i>.
*/
public check_storage_format_args(check_storage_format_args other) {
}
public check_storage_format_args deepCopy() {
return new check_storage_format_args(this);
}
@Override
public void clear() {
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof check_storage_format_args)
return this.equals((check_storage_format_args)that);
return false;
}
public boolean equals(check_storage_format_args that) {
if (that == null)
return false;
if (this == that)
return true;
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
return hashCode;
}
@Override
public int compareTo(check_storage_format_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("check_storage_format_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, java.lang.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 check_storage_format_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public check_storage_format_argsStandardScheme getScheme() {
return new check_storage_format_argsStandardScheme();
}
}
private static class check_storage_format_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<check_storage_format_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, check_storage_format_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, check_storage_format_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class check_storage_format_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public check_storage_format_argsTupleScheme getScheme() {
return new check_storage_format_argsTupleScheme();
}
}
private static class check_storage_format_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<check_storage_format_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, check_storage_format_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, check_storage_format_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class check_storage_format_result implements org.apache.thrift.TBase<check_storage_format_result, check_storage_format_result._Fields>, java.io.Serializable, Cloneable, Comparable<check_storage_format_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("check_storage_format_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new check_storage_format_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new check_storage_format_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TCheckStorageFormatResult 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TCheckStorageFormatResult.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(check_storage_format_result.class, metaDataMap);
}
public check_storage_format_result() {
}
public check_storage_format_result(
TCheckStorageFormatResult success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public check_storage_format_result(check_storage_format_result other) {
if (other.isSetSuccess()) {
this.success = new TCheckStorageFormatResult(other.success);
}
}
public check_storage_format_result deepCopy() {
return new check_storage_format_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public TCheckStorageFormatResult getSuccess() {
return this.success;
}
public check_storage_format_result setSuccess(@org.apache.thrift.annotation.Nullable TCheckStorageFormatResult 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((TCheckStorageFormatResult)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof check_storage_format_result)
return this.equals((check_storage_format_result)that);
return false;
}
public boolean equals(check_storage_format_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(check_storage_format_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("check_storage_format_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
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, java.lang.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 check_storage_format_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public check_storage_format_resultStandardScheme getScheme() {
return new check_storage_format_resultStandardScheme();
}
}
private static class check_storage_format_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<check_storage_format_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, check_storage_format_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 TCheckStorageFormatResult();
struct.success.read(iprot);
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, check_storage_format_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class check_storage_format_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public check_storage_format_resultTupleScheme getScheme() {
return new check_storage_format_resultTupleScheme();
}
}
private static class check_storage_format_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<check_storage_format_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, check_storage_format_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, check_storage_format_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new TCheckStorageFormatResult();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class warm_up_cache_async_args implements org.apache.thrift.TBase<warm_up_cache_async_args, warm_up_cache_async_args._Fields>, java.io.Serializable, Cloneable, Comparable<warm_up_cache_async_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("warm_up_cache_async_args");
private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new warm_up_cache_async_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new warm_up_cache_async_argsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TWarmUpCacheAsyncRequest request; // 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 {
REQUEST((short)1, "request");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // REQUEST
return REQUEST;
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TWarmUpCacheAsyncRequest.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(warm_up_cache_async_args.class, metaDataMap);
}
public warm_up_cache_async_args() {
}
public warm_up_cache_async_args(
TWarmUpCacheAsyncRequest request)
{
this();
this.request = request;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public warm_up_cache_async_args(warm_up_cache_async_args other) {
if (other.isSetRequest()) {
this.request = new TWarmUpCacheAsyncRequest(other.request);
}
}
public warm_up_cache_async_args deepCopy() {
return new warm_up_cache_async_args(this);
}
@Override
public void clear() {
this.request = null;
}
@org.apache.thrift.annotation.Nullable
public TWarmUpCacheAsyncRequest getRequest() {
return this.request;
}
public warm_up_cache_async_args setRequest(@org.apache.thrift.annotation.Nullable TWarmUpCacheAsyncRequest request) {
this.request = request;
return this;
}
public void unsetRequest() {
this.request = null;
}
/** Returns true if field request is set (has been assigned a value) and false otherwise */
public boolean isSetRequest() {
return this.request != null;
}
public void setRequestIsSet(boolean value) {
if (!value) {
this.request = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case REQUEST:
if (value == null) {
unsetRequest();
} else {
setRequest((TWarmUpCacheAsyncRequest)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case REQUEST:
return getRequest();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case REQUEST:
return isSetRequest();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof warm_up_cache_async_args)
return this.equals((warm_up_cache_async_args)that);
return false;
}
public boolean equals(warm_up_cache_async_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_request = true && this.isSetRequest();
boolean that_present_request = true && that.isSetRequest();
if (this_present_request || that_present_request) {
if (!(this_present_request && that_present_request))
return false;
if (!this.request.equals(that.request))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetRequest()) ? 131071 : 524287);
if (isSetRequest())
hashCode = hashCode * 8191 + request.hashCode();
return hashCode;
}
@Override
public int compareTo(warm_up_cache_async_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetRequest(), other.isSetRequest());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRequest()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("warm_up_cache_async_args(");
boolean first = true;
sb.append("request:");
if (this.request == null) {
sb.append("null");
} else {
sb.append(this.request);
}
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 (request != null) {
request.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, java.lang.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 warm_up_cache_async_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public warm_up_cache_async_argsStandardScheme getScheme() {
return new warm_up_cache_async_argsStandardScheme();
}
}
private static class warm_up_cache_async_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<warm_up_cache_async_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, warm_up_cache_async_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: // REQUEST
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.request = new TWarmUpCacheAsyncRequest();
struct.request.read(iprot);
struct.setRequestIsSet(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, warm_up_cache_async_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.request != null) {
oprot.writeFieldBegin(REQUEST_FIELD_DESC);
struct.request.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class warm_up_cache_async_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public warm_up_cache_async_argsTupleScheme getScheme() {
return new warm_up_cache_async_argsTupleScheme();
}
}
private static class warm_up_cache_async_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<warm_up_cache_async_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, warm_up_cache_async_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetRequest()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetRequest()) {
struct.request.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, warm_up_cache_async_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.request = new TWarmUpCacheAsyncRequest();
struct.request.read(iprot);
struct.setRequestIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class warm_up_cache_async_result implements org.apache.thrift.TBase<warm_up_cache_async_result, warm_up_cache_async_result._Fields>, java.io.Serializable, Cloneable, Comparable<warm_up_cache_async_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("warm_up_cache_async_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new warm_up_cache_async_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new warm_up_cache_async_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TWarmUpCacheAsyncResponse 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TWarmUpCacheAsyncResponse.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(warm_up_cache_async_result.class, metaDataMap);
}
public warm_up_cache_async_result() {
}
public warm_up_cache_async_result(
TWarmUpCacheAsyncResponse success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public warm_up_cache_async_result(warm_up_cache_async_result other) {
if (other.isSetSuccess()) {
this.success = new TWarmUpCacheAsyncResponse(other.success);
}
}
public warm_up_cache_async_result deepCopy() {
return new warm_up_cache_async_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public TWarmUpCacheAsyncResponse getSuccess() {
return this.success;
}
public warm_up_cache_async_result setSuccess(@org.apache.thrift.annotation.Nullable TWarmUpCacheAsyncResponse 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((TWarmUpCacheAsyncResponse)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof warm_up_cache_async_result)
return this.equals((warm_up_cache_async_result)that);
return false;
}
public boolean equals(warm_up_cache_async_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(warm_up_cache_async_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("warm_up_cache_async_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
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, java.lang.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 warm_up_cache_async_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public warm_up_cache_async_resultStandardScheme getScheme() {
return new warm_up_cache_async_resultStandardScheme();
}
}
private static class warm_up_cache_async_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<warm_up_cache_async_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, warm_up_cache_async_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 TWarmUpCacheAsyncResponse();
struct.success.read(iprot);
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, warm_up_cache_async_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class warm_up_cache_async_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public warm_up_cache_async_resultTupleScheme getScheme() {
return new warm_up_cache_async_resultTupleScheme();
}
}
private static class warm_up_cache_async_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<warm_up_cache_async_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, warm_up_cache_async_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, warm_up_cache_async_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new TWarmUpCacheAsyncResponse();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class check_warm_up_cache_async_args implements org.apache.thrift.TBase<check_warm_up_cache_async_args, check_warm_up_cache_async_args._Fields>, java.io.Serializable, Cloneable, Comparable<check_warm_up_cache_async_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("check_warm_up_cache_async_args");
private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new check_warm_up_cache_async_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new check_warm_up_cache_async_argsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TCheckWarmUpCacheAsyncRequest request; // 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 {
REQUEST((short)1, "request");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // REQUEST
return REQUEST;
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCheckWarmUpCacheAsyncRequest.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(check_warm_up_cache_async_args.class, metaDataMap);
}
public check_warm_up_cache_async_args() {
}
public check_warm_up_cache_async_args(
TCheckWarmUpCacheAsyncRequest request)
{
this();
this.request = request;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public check_warm_up_cache_async_args(check_warm_up_cache_async_args other) {
if (other.isSetRequest()) {
this.request = new TCheckWarmUpCacheAsyncRequest(other.request);
}
}
public check_warm_up_cache_async_args deepCopy() {
return new check_warm_up_cache_async_args(this);
}
@Override
public void clear() {
this.request = null;
}
@org.apache.thrift.annotation.Nullable
public TCheckWarmUpCacheAsyncRequest getRequest() {
return this.request;
}
public check_warm_up_cache_async_args setRequest(@org.apache.thrift.annotation.Nullable TCheckWarmUpCacheAsyncRequest request) {
this.request = request;
return this;
}
public void unsetRequest() {
this.request = null;
}
/** Returns true if field request is set (has been assigned a value) and false otherwise */
public boolean isSetRequest() {
return this.request != null;
}
public void setRequestIsSet(boolean value) {
if (!value) {
this.request = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case REQUEST:
if (value == null) {
unsetRequest();
} else {
setRequest((TCheckWarmUpCacheAsyncRequest)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case REQUEST:
return getRequest();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case REQUEST:
return isSetRequest();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof check_warm_up_cache_async_args)
return this.equals((check_warm_up_cache_async_args)that);
return false;
}
public boolean equals(check_warm_up_cache_async_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_request = true && this.isSetRequest();
boolean that_present_request = true && that.isSetRequest();
if (this_present_request || that_present_request) {
if (!(this_present_request && that_present_request))
return false;
if (!this.request.equals(that.request))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetRequest()) ? 131071 : 524287);
if (isSetRequest())
hashCode = hashCode * 8191 + request.hashCode();
return hashCode;
}
@Override
public int compareTo(check_warm_up_cache_async_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetRequest(), other.isSetRequest());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRequest()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("check_warm_up_cache_async_args(");
boolean first = true;
sb.append("request:");
if (this.request == null) {
sb.append("null");
} else {
sb.append(this.request);
}
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 (request != null) {
request.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, java.lang.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 check_warm_up_cache_async_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public check_warm_up_cache_async_argsStandardScheme getScheme() {
return new check_warm_up_cache_async_argsStandardScheme();
}
}
private static class check_warm_up_cache_async_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<check_warm_up_cache_async_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, check_warm_up_cache_async_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: // REQUEST
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.request = new TCheckWarmUpCacheAsyncRequest();
struct.request.read(iprot);
struct.setRequestIsSet(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, check_warm_up_cache_async_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.request != null) {
oprot.writeFieldBegin(REQUEST_FIELD_DESC);
struct.request.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class check_warm_up_cache_async_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public check_warm_up_cache_async_argsTupleScheme getScheme() {
return new check_warm_up_cache_async_argsTupleScheme();
}
}
private static class check_warm_up_cache_async_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<check_warm_up_cache_async_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, check_warm_up_cache_async_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetRequest()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetRequest()) {
struct.request.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, check_warm_up_cache_async_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.request = new TCheckWarmUpCacheAsyncRequest();
struct.request.read(iprot);
struct.setRequestIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class check_warm_up_cache_async_result implements org.apache.thrift.TBase<check_warm_up_cache_async_result, check_warm_up_cache_async_result._Fields>, java.io.Serializable, Cloneable, Comparable<check_warm_up_cache_async_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("check_warm_up_cache_async_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new check_warm_up_cache_async_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new check_warm_up_cache_async_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TCheckWarmUpCacheAsyncResponse 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TCheckWarmUpCacheAsyncResponse.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(check_warm_up_cache_async_result.class, metaDataMap);
}
public check_warm_up_cache_async_result() {
}
public check_warm_up_cache_async_result(
TCheckWarmUpCacheAsyncResponse success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public check_warm_up_cache_async_result(check_warm_up_cache_async_result other) {
if (other.isSetSuccess()) {
this.success = new TCheckWarmUpCacheAsyncResponse(other.success);
}
}
public check_warm_up_cache_async_result deepCopy() {
return new check_warm_up_cache_async_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public TCheckWarmUpCacheAsyncResponse getSuccess() {
return this.success;
}
public check_warm_up_cache_async_result setSuccess(@org.apache.thrift.annotation.Nullable TCheckWarmUpCacheAsyncResponse 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((TCheckWarmUpCacheAsyncResponse)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof check_warm_up_cache_async_result)
return this.equals((check_warm_up_cache_async_result)that);
return false;
}
public boolean equals(check_warm_up_cache_async_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(check_warm_up_cache_async_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("check_warm_up_cache_async_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
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, java.lang.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 check_warm_up_cache_async_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public check_warm_up_cache_async_resultStandardScheme getScheme() {
return new check_warm_up_cache_async_resultStandardScheme();
}
}
private static class check_warm_up_cache_async_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<check_warm_up_cache_async_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, check_warm_up_cache_async_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 TCheckWarmUpCacheAsyncResponse();
struct.success.read(iprot);
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, check_warm_up_cache_async_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class check_warm_up_cache_async_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public check_warm_up_cache_async_resultTupleScheme getScheme() {
return new check_warm_up_cache_async_resultTupleScheme();
}
}
private static class check_warm_up_cache_async_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<check_warm_up_cache_async_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, check_warm_up_cache_async_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, check_warm_up_cache_async_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new TCheckWarmUpCacheAsyncResponse();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class sync_load_for_tablets_args implements org.apache.thrift.TBase<sync_load_for_tablets_args, sync_load_for_tablets_args._Fields>, java.io.Serializable, Cloneable, Comparable<sync_load_for_tablets_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sync_load_for_tablets_args");
private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new sync_load_for_tablets_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new sync_load_for_tablets_argsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TSyncLoadForTabletsRequest request; // 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 {
REQUEST((short)1, "request");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // REQUEST
return REQUEST;
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TSyncLoadForTabletsRequest.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sync_load_for_tablets_args.class, metaDataMap);
}
public sync_load_for_tablets_args() {
}
public sync_load_for_tablets_args(
TSyncLoadForTabletsRequest request)
{
this();
this.request = request;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public sync_load_for_tablets_args(sync_load_for_tablets_args other) {
if (other.isSetRequest()) {
this.request = new TSyncLoadForTabletsRequest(other.request);
}
}
public sync_load_for_tablets_args deepCopy() {
return new sync_load_for_tablets_args(this);
}
@Override
public void clear() {
this.request = null;
}
@org.apache.thrift.annotation.Nullable
public TSyncLoadForTabletsRequest getRequest() {
return this.request;
}
public sync_load_for_tablets_args setRequest(@org.apache.thrift.annotation.Nullable TSyncLoadForTabletsRequest request) {
this.request = request;
return this;
}
public void unsetRequest() {
this.request = null;
}
/** Returns true if field request is set (has been assigned a value) and false otherwise */
public boolean isSetRequest() {
return this.request != null;
}
public void setRequestIsSet(boolean value) {
if (!value) {
this.request = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case REQUEST:
if (value == null) {
unsetRequest();
} else {
setRequest((TSyncLoadForTabletsRequest)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case REQUEST:
return getRequest();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case REQUEST:
return isSetRequest();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof sync_load_for_tablets_args)
return this.equals((sync_load_for_tablets_args)that);
return false;
}
public boolean equals(sync_load_for_tablets_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_request = true && this.isSetRequest();
boolean that_present_request = true && that.isSetRequest();
if (this_present_request || that_present_request) {
if (!(this_present_request && that_present_request))
return false;
if (!this.request.equals(that.request))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetRequest()) ? 131071 : 524287);
if (isSetRequest())
hashCode = hashCode * 8191 + request.hashCode();
return hashCode;
}
@Override
public int compareTo(sync_load_for_tablets_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetRequest(), other.isSetRequest());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRequest()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("sync_load_for_tablets_args(");
boolean first = true;
sb.append("request:");
if (this.request == null) {
sb.append("null");
} else {
sb.append(this.request);
}
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 (request != null) {
request.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, java.lang.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 sync_load_for_tablets_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public sync_load_for_tablets_argsStandardScheme getScheme() {
return new sync_load_for_tablets_argsStandardScheme();
}
}
private static class sync_load_for_tablets_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<sync_load_for_tablets_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, sync_load_for_tablets_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: // REQUEST
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.request = new TSyncLoadForTabletsRequest();
struct.request.read(iprot);
struct.setRequestIsSet(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, sync_load_for_tablets_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.request != null) {
oprot.writeFieldBegin(REQUEST_FIELD_DESC);
struct.request.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class sync_load_for_tablets_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public sync_load_for_tablets_argsTupleScheme getScheme() {
return new sync_load_for_tablets_argsTupleScheme();
}
}
private static class sync_load_for_tablets_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<sync_load_for_tablets_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, sync_load_for_tablets_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetRequest()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetRequest()) {
struct.request.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, sync_load_for_tablets_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.request = new TSyncLoadForTabletsRequest();
struct.request.read(iprot);
struct.setRequestIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class sync_load_for_tablets_result implements org.apache.thrift.TBase<sync_load_for_tablets_result, sync_load_for_tablets_result._Fields>, java.io.Serializable, Cloneable, Comparable<sync_load_for_tablets_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sync_load_for_tablets_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new sync_load_for_tablets_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new sync_load_for_tablets_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TSyncLoadForTabletsResponse 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TSyncLoadForTabletsResponse.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sync_load_for_tablets_result.class, metaDataMap);
}
public sync_load_for_tablets_result() {
}
public sync_load_for_tablets_result(
TSyncLoadForTabletsResponse success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public sync_load_for_tablets_result(sync_load_for_tablets_result other) {
if (other.isSetSuccess()) {
this.success = new TSyncLoadForTabletsResponse(other.success);
}
}
public sync_load_for_tablets_result deepCopy() {
return new sync_load_for_tablets_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public TSyncLoadForTabletsResponse getSuccess() {
return this.success;
}
public sync_load_for_tablets_result setSuccess(@org.apache.thrift.annotation.Nullable TSyncLoadForTabletsResponse 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((TSyncLoadForTabletsResponse)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof sync_load_for_tablets_result)
return this.equals((sync_load_for_tablets_result)that);
return false;
}
public boolean equals(sync_load_for_tablets_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(sync_load_for_tablets_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("sync_load_for_tablets_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
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, java.lang.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 sync_load_for_tablets_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public sync_load_for_tablets_resultStandardScheme getScheme() {
return new sync_load_for_tablets_resultStandardScheme();
}
}
private static class sync_load_for_tablets_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<sync_load_for_tablets_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, sync_load_for_tablets_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 TSyncLoadForTabletsResponse();
struct.success.read(iprot);
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, sync_load_for_tablets_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class sync_load_for_tablets_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public sync_load_for_tablets_resultTupleScheme getScheme() {
return new sync_load_for_tablets_resultTupleScheme();
}
}
private static class sync_load_for_tablets_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<sync_load_for_tablets_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, sync_load_for_tablets_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, sync_load_for_tablets_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new TSyncLoadForTabletsResponse();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class get_top_n_hot_partitions_args implements org.apache.thrift.TBase<get_top_n_hot_partitions_args, get_top_n_hot_partitions_args._Fields>, java.io.Serializable, Cloneable, Comparable<get_top_n_hot_partitions_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_top_n_hot_partitions_args");
private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_top_n_hot_partitions_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_top_n_hot_partitions_argsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TGetTopNHotPartitionsRequest request; // 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 {
REQUEST((short)1, "request");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // REQUEST
return REQUEST;
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetTopNHotPartitionsRequest.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_top_n_hot_partitions_args.class, metaDataMap);
}
public get_top_n_hot_partitions_args() {
}
public get_top_n_hot_partitions_args(
TGetTopNHotPartitionsRequest request)
{
this();
this.request = request;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public get_top_n_hot_partitions_args(get_top_n_hot_partitions_args other) {
if (other.isSetRequest()) {
this.request = new TGetTopNHotPartitionsRequest(other.request);
}
}
public get_top_n_hot_partitions_args deepCopy() {
return new get_top_n_hot_partitions_args(this);
}
@Override
public void clear() {
this.request = null;
}
@org.apache.thrift.annotation.Nullable
public TGetTopNHotPartitionsRequest getRequest() {
return this.request;
}
public get_top_n_hot_partitions_args setRequest(@org.apache.thrift.annotation.Nullable TGetTopNHotPartitionsRequest request) {
this.request = request;
return this;
}
public void unsetRequest() {
this.request = null;
}
/** Returns true if field request is set (has been assigned a value) and false otherwise */
public boolean isSetRequest() {
return this.request != null;
}
public void setRequestIsSet(boolean value) {
if (!value) {
this.request = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case REQUEST:
if (value == null) {
unsetRequest();
} else {
setRequest((TGetTopNHotPartitionsRequest)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case REQUEST:
return getRequest();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case REQUEST:
return isSetRequest();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof get_top_n_hot_partitions_args)
return this.equals((get_top_n_hot_partitions_args)that);
return false;
}
public boolean equals(get_top_n_hot_partitions_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_request = true && this.isSetRequest();
boolean that_present_request = true && that.isSetRequest();
if (this_present_request || that_present_request) {
if (!(this_present_request && that_present_request))
return false;
if (!this.request.equals(that.request))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetRequest()) ? 131071 : 524287);
if (isSetRequest())
hashCode = hashCode * 8191 + request.hashCode();
return hashCode;
}
@Override
public int compareTo(get_top_n_hot_partitions_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetRequest(), other.isSetRequest());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRequest()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("get_top_n_hot_partitions_args(");
boolean first = true;
sb.append("request:");
if (this.request == null) {
sb.append("null");
} else {
sb.append(this.request);
}
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 (request != null) {
request.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, java.lang.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 get_top_n_hot_partitions_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_top_n_hot_partitions_argsStandardScheme getScheme() {
return new get_top_n_hot_partitions_argsStandardScheme();
}
}
private static class get_top_n_hot_partitions_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<get_top_n_hot_partitions_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, get_top_n_hot_partitions_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: // REQUEST
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.request = new TGetTopNHotPartitionsRequest();
struct.request.read(iprot);
struct.setRequestIsSet(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, get_top_n_hot_partitions_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.request != null) {
oprot.writeFieldBegin(REQUEST_FIELD_DESC);
struct.request.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class get_top_n_hot_partitions_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_top_n_hot_partitions_argsTupleScheme getScheme() {
return new get_top_n_hot_partitions_argsTupleScheme();
}
}
private static class get_top_n_hot_partitions_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<get_top_n_hot_partitions_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, get_top_n_hot_partitions_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetRequest()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetRequest()) {
struct.request.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, get_top_n_hot_partitions_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.request = new TGetTopNHotPartitionsRequest();
struct.request.read(iprot);
struct.setRequestIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class get_top_n_hot_partitions_result implements org.apache.thrift.TBase<get_top_n_hot_partitions_result, get_top_n_hot_partitions_result._Fields>, java.io.Serializable, Cloneable, Comparable<get_top_n_hot_partitions_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_top_n_hot_partitions_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_top_n_hot_partitions_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_top_n_hot_partitions_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TGetTopNHotPartitionsResponse 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TGetTopNHotPartitionsResponse.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_top_n_hot_partitions_result.class, metaDataMap);
}
public get_top_n_hot_partitions_result() {
}
public get_top_n_hot_partitions_result(
TGetTopNHotPartitionsResponse success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public get_top_n_hot_partitions_result(get_top_n_hot_partitions_result other) {
if (other.isSetSuccess()) {
this.success = new TGetTopNHotPartitionsResponse(other.success);
}
}
public get_top_n_hot_partitions_result deepCopy() {
return new get_top_n_hot_partitions_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public TGetTopNHotPartitionsResponse getSuccess() {
return this.success;
}
public get_top_n_hot_partitions_result setSuccess(@org.apache.thrift.annotation.Nullable TGetTopNHotPartitionsResponse 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((TGetTopNHotPartitionsResponse)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof get_top_n_hot_partitions_result)
return this.equals((get_top_n_hot_partitions_result)that);
return false;
}
public boolean equals(get_top_n_hot_partitions_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(get_top_n_hot_partitions_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("get_top_n_hot_partitions_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
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, java.lang.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 get_top_n_hot_partitions_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_top_n_hot_partitions_resultStandardScheme getScheme() {
return new get_top_n_hot_partitions_resultStandardScheme();
}
}
private static class get_top_n_hot_partitions_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<get_top_n_hot_partitions_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, get_top_n_hot_partitions_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 TGetTopNHotPartitionsResponse();
struct.success.read(iprot);
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, get_top_n_hot_partitions_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class get_top_n_hot_partitions_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_top_n_hot_partitions_resultTupleScheme getScheme() {
return new get_top_n_hot_partitions_resultTupleScheme();
}
}
private static class get_top_n_hot_partitions_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<get_top_n_hot_partitions_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, get_top_n_hot_partitions_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, get_top_n_hot_partitions_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new TGetTopNHotPartitionsResponse();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class warm_up_tablets_args implements org.apache.thrift.TBase<warm_up_tablets_args, warm_up_tablets_args._Fields>, java.io.Serializable, Cloneable, Comparable<warm_up_tablets_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("warm_up_tablets_args");
private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new warm_up_tablets_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new warm_up_tablets_argsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TWarmUpTabletsRequest request; // 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 {
REQUEST((short)1, "request");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // REQUEST
return REQUEST;
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TWarmUpTabletsRequest.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(warm_up_tablets_args.class, metaDataMap);
}
public warm_up_tablets_args() {
}
public warm_up_tablets_args(
TWarmUpTabletsRequest request)
{
this();
this.request = request;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public warm_up_tablets_args(warm_up_tablets_args other) {
if (other.isSetRequest()) {
this.request = new TWarmUpTabletsRequest(other.request);
}
}
public warm_up_tablets_args deepCopy() {
return new warm_up_tablets_args(this);
}
@Override
public void clear() {
this.request = null;
}
@org.apache.thrift.annotation.Nullable
public TWarmUpTabletsRequest getRequest() {
return this.request;
}
public warm_up_tablets_args setRequest(@org.apache.thrift.annotation.Nullable TWarmUpTabletsRequest request) {
this.request = request;
return this;
}
public void unsetRequest() {
this.request = null;
}
/** Returns true if field request is set (has been assigned a value) and false otherwise */
public boolean isSetRequest() {
return this.request != null;
}
public void setRequestIsSet(boolean value) {
if (!value) {
this.request = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case REQUEST:
if (value == null) {
unsetRequest();
} else {
setRequest((TWarmUpTabletsRequest)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case REQUEST:
return getRequest();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case REQUEST:
return isSetRequest();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof warm_up_tablets_args)
return this.equals((warm_up_tablets_args)that);
return false;
}
public boolean equals(warm_up_tablets_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_request = true && this.isSetRequest();
boolean that_present_request = true && that.isSetRequest();
if (this_present_request || that_present_request) {
if (!(this_present_request && that_present_request))
return false;
if (!this.request.equals(that.request))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetRequest()) ? 131071 : 524287);
if (isSetRequest())
hashCode = hashCode * 8191 + request.hashCode();
return hashCode;
}
@Override
public int compareTo(warm_up_tablets_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetRequest(), other.isSetRequest());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRequest()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("warm_up_tablets_args(");
boolean first = true;
sb.append("request:");
if (this.request == null) {
sb.append("null");
} else {
sb.append(this.request);
}
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 (request != null) {
request.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, java.lang.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 warm_up_tablets_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public warm_up_tablets_argsStandardScheme getScheme() {
return new warm_up_tablets_argsStandardScheme();
}
}
private static class warm_up_tablets_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<warm_up_tablets_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, warm_up_tablets_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: // REQUEST
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.request = new TWarmUpTabletsRequest();
struct.request.read(iprot);
struct.setRequestIsSet(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, warm_up_tablets_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.request != null) {
oprot.writeFieldBegin(REQUEST_FIELD_DESC);
struct.request.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class warm_up_tablets_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public warm_up_tablets_argsTupleScheme getScheme() {
return new warm_up_tablets_argsTupleScheme();
}
}
private static class warm_up_tablets_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<warm_up_tablets_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, warm_up_tablets_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetRequest()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetRequest()) {
struct.request.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, warm_up_tablets_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.request = new TWarmUpTabletsRequest();
struct.request.read(iprot);
struct.setRequestIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class warm_up_tablets_result implements org.apache.thrift.TBase<warm_up_tablets_result, warm_up_tablets_result._Fields>, java.io.Serializable, Cloneable, Comparable<warm_up_tablets_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("warm_up_tablets_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new warm_up_tablets_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new warm_up_tablets_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TWarmUpTabletsResponse 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TWarmUpTabletsResponse.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(warm_up_tablets_result.class, metaDataMap);
}
public warm_up_tablets_result() {
}
public warm_up_tablets_result(
TWarmUpTabletsResponse success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public warm_up_tablets_result(warm_up_tablets_result other) {
if (other.isSetSuccess()) {
this.success = new TWarmUpTabletsResponse(other.success);
}
}
public warm_up_tablets_result deepCopy() {
return new warm_up_tablets_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public TWarmUpTabletsResponse getSuccess() {
return this.success;
}
public warm_up_tablets_result setSuccess(@org.apache.thrift.annotation.Nullable TWarmUpTabletsResponse 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((TWarmUpTabletsResponse)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof warm_up_tablets_result)
return this.equals((warm_up_tablets_result)that);
return false;
}
public boolean equals(warm_up_tablets_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(warm_up_tablets_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("warm_up_tablets_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
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, java.lang.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 warm_up_tablets_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public warm_up_tablets_resultStandardScheme getScheme() {
return new warm_up_tablets_resultStandardScheme();
}
}
private static class warm_up_tablets_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<warm_up_tablets_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, warm_up_tablets_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 TWarmUpTabletsResponse();
struct.success.read(iprot);
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, warm_up_tablets_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class warm_up_tablets_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public warm_up_tablets_resultTupleScheme getScheme() {
return new warm_up_tablets_resultTupleScheme();
}
}
private static class warm_up_tablets_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<warm_up_tablets_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, warm_up_tablets_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, warm_up_tablets_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new TWarmUpTabletsResponse();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class ingest_binlog_args implements org.apache.thrift.TBase<ingest_binlog_args, ingest_binlog_args._Fields>, java.io.Serializable, Cloneable, Comparable<ingest_binlog_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ingest_binlog_args");
private static final org.apache.thrift.protocol.TField INGEST_BINLOG_REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("ingest_binlog_request", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ingest_binlog_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ingest_binlog_argsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TIngestBinlogRequest ingest_binlog_request; // 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 {
INGEST_BINLOG_REQUEST((short)1, "ingest_binlog_request");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // INGEST_BINLOG_REQUEST
return INGEST_BINLOG_REQUEST;
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.INGEST_BINLOG_REQUEST, new org.apache.thrift.meta_data.FieldMetaData("ingest_binlog_request", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIngestBinlogRequest.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ingest_binlog_args.class, metaDataMap);
}
public ingest_binlog_args() {
}
public ingest_binlog_args(
TIngestBinlogRequest ingest_binlog_request)
{
this();
this.ingest_binlog_request = ingest_binlog_request;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public ingest_binlog_args(ingest_binlog_args other) {
if (other.isSetIngestBinlogRequest()) {
this.ingest_binlog_request = new TIngestBinlogRequest(other.ingest_binlog_request);
}
}
public ingest_binlog_args deepCopy() {
return new ingest_binlog_args(this);
}
@Override
public void clear() {
this.ingest_binlog_request = null;
}
@org.apache.thrift.annotation.Nullable
public TIngestBinlogRequest getIngestBinlogRequest() {
return this.ingest_binlog_request;
}
public ingest_binlog_args setIngestBinlogRequest(@org.apache.thrift.annotation.Nullable TIngestBinlogRequest ingest_binlog_request) {
this.ingest_binlog_request = ingest_binlog_request;
return this;
}
public void unsetIngestBinlogRequest() {
this.ingest_binlog_request = null;
}
/** Returns true if field ingest_binlog_request is set (has been assigned a value) and false otherwise */
public boolean isSetIngestBinlogRequest() {
return this.ingest_binlog_request != null;
}
public void setIngestBinlogRequestIsSet(boolean value) {
if (!value) {
this.ingest_binlog_request = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case INGEST_BINLOG_REQUEST:
if (value == null) {
unsetIngestBinlogRequest();
} else {
setIngestBinlogRequest((TIngestBinlogRequest)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case INGEST_BINLOG_REQUEST:
return getIngestBinlogRequest();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case INGEST_BINLOG_REQUEST:
return isSetIngestBinlogRequest();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof ingest_binlog_args)
return this.equals((ingest_binlog_args)that);
return false;
}
public boolean equals(ingest_binlog_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_ingest_binlog_request = true && this.isSetIngestBinlogRequest();
boolean that_present_ingest_binlog_request = true && that.isSetIngestBinlogRequest();
if (this_present_ingest_binlog_request || that_present_ingest_binlog_request) {
if (!(this_present_ingest_binlog_request && that_present_ingest_binlog_request))
return false;
if (!this.ingest_binlog_request.equals(that.ingest_binlog_request))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetIngestBinlogRequest()) ? 131071 : 524287);
if (isSetIngestBinlogRequest())
hashCode = hashCode * 8191 + ingest_binlog_request.hashCode();
return hashCode;
}
@Override
public int compareTo(ingest_binlog_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetIngestBinlogRequest(), other.isSetIngestBinlogRequest());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetIngestBinlogRequest()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ingest_binlog_request, other.ingest_binlog_request);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("ingest_binlog_args(");
boolean first = true;
sb.append("ingest_binlog_request:");
if (this.ingest_binlog_request == null) {
sb.append("null");
} else {
sb.append(this.ingest_binlog_request);
}
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 (ingest_binlog_request != null) {
ingest_binlog_request.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, java.lang.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 ingest_binlog_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public ingest_binlog_argsStandardScheme getScheme() {
return new ingest_binlog_argsStandardScheme();
}
}
private static class ingest_binlog_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<ingest_binlog_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, ingest_binlog_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: // INGEST_BINLOG_REQUEST
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.ingest_binlog_request = new TIngestBinlogRequest();
struct.ingest_binlog_request.read(iprot);
struct.setIngestBinlogRequestIsSet(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, ingest_binlog_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.ingest_binlog_request != null) {
oprot.writeFieldBegin(INGEST_BINLOG_REQUEST_FIELD_DESC);
struct.ingest_binlog_request.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class ingest_binlog_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public ingest_binlog_argsTupleScheme getScheme() {
return new ingest_binlog_argsTupleScheme();
}
}
private static class ingest_binlog_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<ingest_binlog_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, ingest_binlog_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetIngestBinlogRequest()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetIngestBinlogRequest()) {
struct.ingest_binlog_request.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, ingest_binlog_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.ingest_binlog_request = new TIngestBinlogRequest();
struct.ingest_binlog_request.read(iprot);
struct.setIngestBinlogRequestIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class ingest_binlog_result implements org.apache.thrift.TBase<ingest_binlog_result, ingest_binlog_result._Fields>, java.io.Serializable, Cloneable, Comparable<ingest_binlog_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ingest_binlog_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ingest_binlog_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ingest_binlog_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TIngestBinlogResult 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TIngestBinlogResult.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ingest_binlog_result.class, metaDataMap);
}
public ingest_binlog_result() {
}
public ingest_binlog_result(
TIngestBinlogResult success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public ingest_binlog_result(ingest_binlog_result other) {
if (other.isSetSuccess()) {
this.success = new TIngestBinlogResult(other.success);
}
}
public ingest_binlog_result deepCopy() {
return new ingest_binlog_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public TIngestBinlogResult getSuccess() {
return this.success;
}
public ingest_binlog_result setSuccess(@org.apache.thrift.annotation.Nullable TIngestBinlogResult 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((TIngestBinlogResult)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof ingest_binlog_result)
return this.equals((ingest_binlog_result)that);
return false;
}
public boolean equals(ingest_binlog_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(ingest_binlog_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("ingest_binlog_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
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, java.lang.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 ingest_binlog_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public ingest_binlog_resultStandardScheme getScheme() {
return new ingest_binlog_resultStandardScheme();
}
}
private static class ingest_binlog_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<ingest_binlog_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, ingest_binlog_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 TIngestBinlogResult();
struct.success.read(iprot);
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, ingest_binlog_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class ingest_binlog_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public ingest_binlog_resultTupleScheme getScheme() {
return new ingest_binlog_resultTupleScheme();
}
}
private static class ingest_binlog_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<ingest_binlog_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, ingest_binlog_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, ingest_binlog_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new TIngestBinlogResult();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class query_ingest_binlog_args implements org.apache.thrift.TBase<query_ingest_binlog_args, query_ingest_binlog_args._Fields>, java.io.Serializable, Cloneable, Comparable<query_ingest_binlog_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("query_ingest_binlog_args");
private static final org.apache.thrift.protocol.TField QUERY_INGEST_BINLOG_REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("query_ingest_binlog_request", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new query_ingest_binlog_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new query_ingest_binlog_argsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TQueryIngestBinlogRequest query_ingest_binlog_request; // 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 {
QUERY_INGEST_BINLOG_REQUEST((short)1, "query_ingest_binlog_request");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // QUERY_INGEST_BINLOG_REQUEST
return QUERY_INGEST_BINLOG_REQUEST;
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.QUERY_INGEST_BINLOG_REQUEST, new org.apache.thrift.meta_data.FieldMetaData("query_ingest_binlog_request", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TQueryIngestBinlogRequest.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(query_ingest_binlog_args.class, metaDataMap);
}
public query_ingest_binlog_args() {
}
public query_ingest_binlog_args(
TQueryIngestBinlogRequest query_ingest_binlog_request)
{
this();
this.query_ingest_binlog_request = query_ingest_binlog_request;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public query_ingest_binlog_args(query_ingest_binlog_args other) {
if (other.isSetQueryIngestBinlogRequest()) {
this.query_ingest_binlog_request = new TQueryIngestBinlogRequest(other.query_ingest_binlog_request);
}
}
public query_ingest_binlog_args deepCopy() {
return new query_ingest_binlog_args(this);
}
@Override
public void clear() {
this.query_ingest_binlog_request = null;
}
@org.apache.thrift.annotation.Nullable
public TQueryIngestBinlogRequest getQueryIngestBinlogRequest() {
return this.query_ingest_binlog_request;
}
public query_ingest_binlog_args setQueryIngestBinlogRequest(@org.apache.thrift.annotation.Nullable TQueryIngestBinlogRequest query_ingest_binlog_request) {
this.query_ingest_binlog_request = query_ingest_binlog_request;
return this;
}
public void unsetQueryIngestBinlogRequest() {
this.query_ingest_binlog_request = null;
}
/** Returns true if field query_ingest_binlog_request is set (has been assigned a value) and false otherwise */
public boolean isSetQueryIngestBinlogRequest() {
return this.query_ingest_binlog_request != null;
}
public void setQueryIngestBinlogRequestIsSet(boolean value) {
if (!value) {
this.query_ingest_binlog_request = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case QUERY_INGEST_BINLOG_REQUEST:
if (value == null) {
unsetQueryIngestBinlogRequest();
} else {
setQueryIngestBinlogRequest((TQueryIngestBinlogRequest)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case QUERY_INGEST_BINLOG_REQUEST:
return getQueryIngestBinlogRequest();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case QUERY_INGEST_BINLOG_REQUEST:
return isSetQueryIngestBinlogRequest();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof query_ingest_binlog_args)
return this.equals((query_ingest_binlog_args)that);
return false;
}
public boolean equals(query_ingest_binlog_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_query_ingest_binlog_request = true && this.isSetQueryIngestBinlogRequest();
boolean that_present_query_ingest_binlog_request = true && that.isSetQueryIngestBinlogRequest();
if (this_present_query_ingest_binlog_request || that_present_query_ingest_binlog_request) {
if (!(this_present_query_ingest_binlog_request && that_present_query_ingest_binlog_request))
return false;
if (!this.query_ingest_binlog_request.equals(that.query_ingest_binlog_request))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetQueryIngestBinlogRequest()) ? 131071 : 524287);
if (isSetQueryIngestBinlogRequest())
hashCode = hashCode * 8191 + query_ingest_binlog_request.hashCode();
return hashCode;
}
@Override
public int compareTo(query_ingest_binlog_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetQueryIngestBinlogRequest(), other.isSetQueryIngestBinlogRequest());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetQueryIngestBinlogRequest()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query_ingest_binlog_request, other.query_ingest_binlog_request);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("query_ingest_binlog_args(");
boolean first = true;
sb.append("query_ingest_binlog_request:");
if (this.query_ingest_binlog_request == null) {
sb.append("null");
} else {
sb.append(this.query_ingest_binlog_request);
}
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 (query_ingest_binlog_request != null) {
query_ingest_binlog_request.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, java.lang.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 query_ingest_binlog_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public query_ingest_binlog_argsStandardScheme getScheme() {
return new query_ingest_binlog_argsStandardScheme();
}
}
private static class query_ingest_binlog_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<query_ingest_binlog_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, query_ingest_binlog_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: // QUERY_INGEST_BINLOG_REQUEST
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.query_ingest_binlog_request = new TQueryIngestBinlogRequest();
struct.query_ingest_binlog_request.read(iprot);
struct.setQueryIngestBinlogRequestIsSet(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, query_ingest_binlog_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.query_ingest_binlog_request != null) {
oprot.writeFieldBegin(QUERY_INGEST_BINLOG_REQUEST_FIELD_DESC);
struct.query_ingest_binlog_request.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class query_ingest_binlog_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public query_ingest_binlog_argsTupleScheme getScheme() {
return new query_ingest_binlog_argsTupleScheme();
}
}
private static class query_ingest_binlog_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<query_ingest_binlog_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, query_ingest_binlog_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetQueryIngestBinlogRequest()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetQueryIngestBinlogRequest()) {
struct.query_ingest_binlog_request.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, query_ingest_binlog_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.query_ingest_binlog_request = new TQueryIngestBinlogRequest();
struct.query_ingest_binlog_request.read(iprot);
struct.setQueryIngestBinlogRequestIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class query_ingest_binlog_result implements org.apache.thrift.TBase<query_ingest_binlog_result, query_ingest_binlog_result._Fields>, java.io.Serializable, Cloneable, Comparable<query_ingest_binlog_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("query_ingest_binlog_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new query_ingest_binlog_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new query_ingest_binlog_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TQueryIngestBinlogResult 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TQueryIngestBinlogResult.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(query_ingest_binlog_result.class, metaDataMap);
}
public query_ingest_binlog_result() {
}
public query_ingest_binlog_result(
TQueryIngestBinlogResult success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public query_ingest_binlog_result(query_ingest_binlog_result other) {
if (other.isSetSuccess()) {
this.success = new TQueryIngestBinlogResult(other.success);
}
}
public query_ingest_binlog_result deepCopy() {
return new query_ingest_binlog_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public TQueryIngestBinlogResult getSuccess() {
return this.success;
}
public query_ingest_binlog_result setSuccess(@org.apache.thrift.annotation.Nullable TQueryIngestBinlogResult 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((TQueryIngestBinlogResult)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof query_ingest_binlog_result)
return this.equals((query_ingest_binlog_result)that);
return false;
}
public boolean equals(query_ingest_binlog_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(query_ingest_binlog_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("query_ingest_binlog_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
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, java.lang.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 query_ingest_binlog_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public query_ingest_binlog_resultStandardScheme getScheme() {
return new query_ingest_binlog_resultStandardScheme();
}
}
private static class query_ingest_binlog_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<query_ingest_binlog_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, query_ingest_binlog_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 TQueryIngestBinlogResult();
struct.success.read(iprot);
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, query_ingest_binlog_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class query_ingest_binlog_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public query_ingest_binlog_resultTupleScheme getScheme() {
return new query_ingest_binlog_resultTupleScheme();
}
}
private static class query_ingest_binlog_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<query_ingest_binlog_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, query_ingest_binlog_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, query_ingest_binlog_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new TQueryIngestBinlogResult();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class publish_topic_info_args implements org.apache.thrift.TBase<publish_topic_info_args, publish_topic_info_args._Fields>, java.io.Serializable, Cloneable, Comparable<publish_topic_info_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("publish_topic_info_args");
private static final org.apache.thrift.protocol.TField TOPIC_REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("topic_request", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new publish_topic_info_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new publish_topic_info_argsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TPublishTopicRequest topic_request; // 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 {
TOPIC_REQUEST((short)1, "topic_request");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // TOPIC_REQUEST
return TOPIC_REQUEST;
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.TOPIC_REQUEST, new org.apache.thrift.meta_data.FieldMetaData("topic_request", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TPublishTopicRequest.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(publish_topic_info_args.class, metaDataMap);
}
public publish_topic_info_args() {
}
public publish_topic_info_args(
TPublishTopicRequest topic_request)
{
this();
this.topic_request = topic_request;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public publish_topic_info_args(publish_topic_info_args other) {
if (other.isSetTopicRequest()) {
this.topic_request = new TPublishTopicRequest(other.topic_request);
}
}
public publish_topic_info_args deepCopy() {
return new publish_topic_info_args(this);
}
@Override
public void clear() {
this.topic_request = null;
}
@org.apache.thrift.annotation.Nullable
public TPublishTopicRequest getTopicRequest() {
return this.topic_request;
}
public publish_topic_info_args setTopicRequest(@org.apache.thrift.annotation.Nullable TPublishTopicRequest topic_request) {
this.topic_request = topic_request;
return this;
}
public void unsetTopicRequest() {
this.topic_request = null;
}
/** Returns true if field topic_request is set (has been assigned a value) and false otherwise */
public boolean isSetTopicRequest() {
return this.topic_request != null;
}
public void setTopicRequestIsSet(boolean value) {
if (!value) {
this.topic_request = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case TOPIC_REQUEST:
if (value == null) {
unsetTopicRequest();
} else {
setTopicRequest((TPublishTopicRequest)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case TOPIC_REQUEST:
return getTopicRequest();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case TOPIC_REQUEST:
return isSetTopicRequest();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof publish_topic_info_args)
return this.equals((publish_topic_info_args)that);
return false;
}
public boolean equals(publish_topic_info_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_topic_request = true && this.isSetTopicRequest();
boolean that_present_topic_request = true && that.isSetTopicRequest();
if (this_present_topic_request || that_present_topic_request) {
if (!(this_present_topic_request && that_present_topic_request))
return false;
if (!this.topic_request.equals(that.topic_request))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetTopicRequest()) ? 131071 : 524287);
if (isSetTopicRequest())
hashCode = hashCode * 8191 + topic_request.hashCode();
return hashCode;
}
@Override
public int compareTo(publish_topic_info_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetTopicRequest(), other.isSetTopicRequest());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTopicRequest()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.topic_request, other.topic_request);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("publish_topic_info_args(");
boolean first = true;
sb.append("topic_request:");
if (this.topic_request == null) {
sb.append("null");
} else {
sb.append(this.topic_request);
}
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 (topic_request != null) {
topic_request.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, java.lang.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 publish_topic_info_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public publish_topic_info_argsStandardScheme getScheme() {
return new publish_topic_info_argsStandardScheme();
}
}
private static class publish_topic_info_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<publish_topic_info_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, publish_topic_info_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: // TOPIC_REQUEST
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.topic_request = new TPublishTopicRequest();
struct.topic_request.read(iprot);
struct.setTopicRequestIsSet(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, publish_topic_info_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.topic_request != null) {
oprot.writeFieldBegin(TOPIC_REQUEST_FIELD_DESC);
struct.topic_request.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class publish_topic_info_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public publish_topic_info_argsTupleScheme getScheme() {
return new publish_topic_info_argsTupleScheme();
}
}
private static class publish_topic_info_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<publish_topic_info_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, publish_topic_info_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetTopicRequest()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetTopicRequest()) {
struct.topic_request.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, publish_topic_info_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.topic_request = new TPublishTopicRequest();
struct.topic_request.read(iprot);
struct.setTopicRequestIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class publish_topic_info_result implements org.apache.thrift.TBase<publish_topic_info_result, publish_topic_info_result._Fields>, java.io.Serializable, Cloneable, Comparable<publish_topic_info_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("publish_topic_info_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new publish_topic_info_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new publish_topic_info_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TPublishTopicResult 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TPublishTopicResult.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(publish_topic_info_result.class, metaDataMap);
}
public publish_topic_info_result() {
}
public publish_topic_info_result(
TPublishTopicResult success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public publish_topic_info_result(publish_topic_info_result other) {
if (other.isSetSuccess()) {
this.success = new TPublishTopicResult(other.success);
}
}
public publish_topic_info_result deepCopy() {
return new publish_topic_info_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public TPublishTopicResult getSuccess() {
return this.success;
}
public publish_topic_info_result setSuccess(@org.apache.thrift.annotation.Nullable TPublishTopicResult 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((TPublishTopicResult)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof publish_topic_info_result)
return this.equals((publish_topic_info_result)that);
return false;
}
public boolean equals(publish_topic_info_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(publish_topic_info_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("publish_topic_info_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
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, java.lang.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 publish_topic_info_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public publish_topic_info_resultStandardScheme getScheme() {
return new publish_topic_info_resultStandardScheme();
}
}
private static class publish_topic_info_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<publish_topic_info_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, publish_topic_info_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 TPublishTopicResult();
struct.success.read(iprot);
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, publish_topic_info_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class publish_topic_info_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public publish_topic_info_resultTupleScheme getScheme() {
return new publish_topic_info_resultTupleScheme();
}
}
private static class publish_topic_info_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<publish_topic_info_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, publish_topic_info_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, publish_topic_info_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new TPublishTopicResult();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class get_realtime_exec_status_args implements org.apache.thrift.TBase<get_realtime_exec_status_args, get_realtime_exec_status_args._Fields>, java.io.Serializable, Cloneable, Comparable<get_realtime_exec_status_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_realtime_exec_status_args");
private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_realtime_exec_status_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_realtime_exec_status_argsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TGetRealtimeExecStatusRequest request; // 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 {
REQUEST((short)1, "request");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // REQUEST
return REQUEST;
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetRealtimeExecStatusRequest.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_realtime_exec_status_args.class, metaDataMap);
}
public get_realtime_exec_status_args() {
}
public get_realtime_exec_status_args(
TGetRealtimeExecStatusRequest request)
{
this();
this.request = request;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public get_realtime_exec_status_args(get_realtime_exec_status_args other) {
if (other.isSetRequest()) {
this.request = new TGetRealtimeExecStatusRequest(other.request);
}
}
public get_realtime_exec_status_args deepCopy() {
return new get_realtime_exec_status_args(this);
}
@Override
public void clear() {
this.request = null;
}
@org.apache.thrift.annotation.Nullable
public TGetRealtimeExecStatusRequest getRequest() {
return this.request;
}
public get_realtime_exec_status_args setRequest(@org.apache.thrift.annotation.Nullable TGetRealtimeExecStatusRequest request) {
this.request = request;
return this;
}
public void unsetRequest() {
this.request = null;
}
/** Returns true if field request is set (has been assigned a value) and false otherwise */
public boolean isSetRequest() {
return this.request != null;
}
public void setRequestIsSet(boolean value) {
if (!value) {
this.request = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case REQUEST:
if (value == null) {
unsetRequest();
} else {
setRequest((TGetRealtimeExecStatusRequest)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case REQUEST:
return getRequest();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case REQUEST:
return isSetRequest();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof get_realtime_exec_status_args)
return this.equals((get_realtime_exec_status_args)that);
return false;
}
public boolean equals(get_realtime_exec_status_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_request = true && this.isSetRequest();
boolean that_present_request = true && that.isSetRequest();
if (this_present_request || that_present_request) {
if (!(this_present_request && that_present_request))
return false;
if (!this.request.equals(that.request))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetRequest()) ? 131071 : 524287);
if (isSetRequest())
hashCode = hashCode * 8191 + request.hashCode();
return hashCode;
}
@Override
public int compareTo(get_realtime_exec_status_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetRequest(), other.isSetRequest());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRequest()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("get_realtime_exec_status_args(");
boolean first = true;
sb.append("request:");
if (this.request == null) {
sb.append("null");
} else {
sb.append(this.request);
}
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 (request != null) {
request.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, java.lang.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 get_realtime_exec_status_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_realtime_exec_status_argsStandardScheme getScheme() {
return new get_realtime_exec_status_argsStandardScheme();
}
}
private static class get_realtime_exec_status_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<get_realtime_exec_status_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, get_realtime_exec_status_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: // REQUEST
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.request = new TGetRealtimeExecStatusRequest();
struct.request.read(iprot);
struct.setRequestIsSet(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, get_realtime_exec_status_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.request != null) {
oprot.writeFieldBegin(REQUEST_FIELD_DESC);
struct.request.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class get_realtime_exec_status_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_realtime_exec_status_argsTupleScheme getScheme() {
return new get_realtime_exec_status_argsTupleScheme();
}
}
private static class get_realtime_exec_status_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<get_realtime_exec_status_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, get_realtime_exec_status_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetRequest()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetRequest()) {
struct.request.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, get_realtime_exec_status_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.request = new TGetRealtimeExecStatusRequest();
struct.request.read(iprot);
struct.setRequestIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class get_realtime_exec_status_result implements org.apache.thrift.TBase<get_realtime_exec_status_result, get_realtime_exec_status_result._Fields>, java.io.Serializable, Cloneable, Comparable<get_realtime_exec_status_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_realtime_exec_status_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_realtime_exec_status_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_realtime_exec_status_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TGetRealtimeExecStatusResponse 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TGetRealtimeExecStatusResponse.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_realtime_exec_status_result.class, metaDataMap);
}
public get_realtime_exec_status_result() {
}
public get_realtime_exec_status_result(
TGetRealtimeExecStatusResponse success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public get_realtime_exec_status_result(get_realtime_exec_status_result other) {
if (other.isSetSuccess()) {
this.success = new TGetRealtimeExecStatusResponse(other.success);
}
}
public get_realtime_exec_status_result deepCopy() {
return new get_realtime_exec_status_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public TGetRealtimeExecStatusResponse getSuccess() {
return this.success;
}
public get_realtime_exec_status_result setSuccess(@org.apache.thrift.annotation.Nullable TGetRealtimeExecStatusResponse 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((TGetRealtimeExecStatusResponse)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof get_realtime_exec_status_result)
return this.equals((get_realtime_exec_status_result)that);
return false;
}
public boolean equals(get_realtime_exec_status_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(get_realtime_exec_status_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("get_realtime_exec_status_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
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, java.lang.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 get_realtime_exec_status_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_realtime_exec_status_resultStandardScheme getScheme() {
return new get_realtime_exec_status_resultStandardScheme();
}
}
private static class get_realtime_exec_status_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<get_realtime_exec_status_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, get_realtime_exec_status_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 TGetRealtimeExecStatusResponse();
struct.success.read(iprot);
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, get_realtime_exec_status_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class get_realtime_exec_status_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_realtime_exec_status_resultTupleScheme getScheme() {
return new get_realtime_exec_status_resultTupleScheme();
}
}
private static class get_realtime_exec_status_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<get_realtime_exec_status_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, get_realtime_exec_status_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, get_realtime_exec_status_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new TGetRealtimeExecStatusResponse();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class get_dictionary_status_args implements org.apache.thrift.TBase<get_dictionary_status_args, get_dictionary_status_args._Fields>, java.io.Serializable, Cloneable, Comparable<get_dictionary_status_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_dictionary_status_args");
private static final org.apache.thrift.protocol.TField DICTIONARY_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("dictionary_ids", org.apache.thrift.protocol.TType.LIST, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_dictionary_status_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_dictionary_status_argsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.Long> dictionary_ids; // 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 {
DICTIONARY_IDS((short)1, "dictionary_ids");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // DICTIONARY_IDS
return DICTIONARY_IDS;
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.DICTIONARY_IDS, new org.apache.thrift.meta_data.FieldMetaData("dictionary_ids", 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 = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_dictionary_status_args.class, metaDataMap);
}
public get_dictionary_status_args() {
}
public get_dictionary_status_args(
java.util.List<java.lang.Long> dictionary_ids)
{
this();
this.dictionary_ids = dictionary_ids;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public get_dictionary_status_args(get_dictionary_status_args other) {
if (other.isSetDictionaryIds()) {
java.util.List<java.lang.Long> __this__dictionary_ids = new java.util.ArrayList<java.lang.Long>(other.dictionary_ids);
this.dictionary_ids = __this__dictionary_ids;
}
}
public get_dictionary_status_args deepCopy() {
return new get_dictionary_status_args(this);
}
@Override
public void clear() {
this.dictionary_ids = null;
}
public int getDictionaryIdsSize() {
return (this.dictionary_ids == null) ? 0 : this.dictionary_ids.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<java.lang.Long> getDictionaryIdsIterator() {
return (this.dictionary_ids == null) ? null : this.dictionary_ids.iterator();
}
public void addToDictionaryIds(long elem) {
if (this.dictionary_ids == null) {
this.dictionary_ids = new java.util.ArrayList<java.lang.Long>();
}
this.dictionary_ids.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<java.lang.Long> getDictionaryIds() {
return this.dictionary_ids;
}
public get_dictionary_status_args setDictionaryIds(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.Long> dictionary_ids) {
this.dictionary_ids = dictionary_ids;
return this;
}
public void unsetDictionaryIds() {
this.dictionary_ids = null;
}
/** Returns true if field dictionary_ids is set (has been assigned a value) and false otherwise */
public boolean isSetDictionaryIds() {
return this.dictionary_ids != null;
}
public void setDictionaryIdsIsSet(boolean value) {
if (!value) {
this.dictionary_ids = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case DICTIONARY_IDS:
if (value == null) {
unsetDictionaryIds();
} else {
setDictionaryIds((java.util.List<java.lang.Long>)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case DICTIONARY_IDS:
return getDictionaryIds();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case DICTIONARY_IDS:
return isSetDictionaryIds();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof get_dictionary_status_args)
return this.equals((get_dictionary_status_args)that);
return false;
}
public boolean equals(get_dictionary_status_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_dictionary_ids = true && this.isSetDictionaryIds();
boolean that_present_dictionary_ids = true && that.isSetDictionaryIds();
if (this_present_dictionary_ids || that_present_dictionary_ids) {
if (!(this_present_dictionary_ids && that_present_dictionary_ids))
return false;
if (!this.dictionary_ids.equals(that.dictionary_ids))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetDictionaryIds()) ? 131071 : 524287);
if (isSetDictionaryIds())
hashCode = hashCode * 8191 + dictionary_ids.hashCode();
return hashCode;
}
@Override
public int compareTo(get_dictionary_status_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetDictionaryIds(), other.isSetDictionaryIds());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetDictionaryIds()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dictionary_ids, other.dictionary_ids);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("get_dictionary_status_args(");
boolean first = true;
sb.append("dictionary_ids:");
if (this.dictionary_ids == null) {
sb.append("null");
} else {
sb.append(this.dictionary_ids);
}
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, java.lang.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 get_dictionary_status_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_dictionary_status_argsStandardScheme getScheme() {
return new get_dictionary_status_argsStandardScheme();
}
}
private static class get_dictionary_status_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<get_dictionary_status_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, get_dictionary_status_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: // DICTIONARY_IDS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list222 = iprot.readListBegin();
struct.dictionary_ids = new java.util.ArrayList<java.lang.Long>(_list222.size);
long _elem223;
for (int _i224 = 0; _i224 < _list222.size; ++_i224)
{
_elem223 = iprot.readI64();
struct.dictionary_ids.add(_elem223);
}
iprot.readListEnd();
}
struct.setDictionaryIdsIsSet(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, get_dictionary_status_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.dictionary_ids != null) {
oprot.writeFieldBegin(DICTIONARY_IDS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.dictionary_ids.size()));
for (long _iter225 : struct.dictionary_ids)
{
oprot.writeI64(_iter225);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class get_dictionary_status_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_dictionary_status_argsTupleScheme getScheme() {
return new get_dictionary_status_argsTupleScheme();
}
}
private static class get_dictionary_status_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<get_dictionary_status_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, get_dictionary_status_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetDictionaryIds()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetDictionaryIds()) {
{
oprot.writeI32(struct.dictionary_ids.size());
for (long _iter226 : struct.dictionary_ids)
{
oprot.writeI64(_iter226);
}
}
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, get_dictionary_status_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list227 = iprot.readListBegin(org.apache.thrift.protocol.TType.I64);
struct.dictionary_ids = new java.util.ArrayList<java.lang.Long>(_list227.size);
long _elem228;
for (int _i229 = 0; _i229 < _list227.size; ++_i229)
{
_elem228 = iprot.readI64();
struct.dictionary_ids.add(_elem228);
}
}
struct.setDictionaryIdsIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class get_dictionary_status_result implements org.apache.thrift.TBase<get_dictionary_status_result, get_dictionary_status_result._Fields>, java.io.Serializable, Cloneable, Comparable<get_dictionary_status_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_dictionary_status_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_dictionary_status_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_dictionary_status_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TDictionaryStatusList 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TDictionaryStatusList.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_dictionary_status_result.class, metaDataMap);
}
public get_dictionary_status_result() {
}
public get_dictionary_status_result(
TDictionaryStatusList success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public get_dictionary_status_result(get_dictionary_status_result other) {
if (other.isSetSuccess()) {
this.success = new TDictionaryStatusList(other.success);
}
}
public get_dictionary_status_result deepCopy() {
return new get_dictionary_status_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public TDictionaryStatusList getSuccess() {
return this.success;
}
public get_dictionary_status_result setSuccess(@org.apache.thrift.annotation.Nullable TDictionaryStatusList 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((TDictionaryStatusList)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof get_dictionary_status_result)
return this.equals((get_dictionary_status_result)that);
return false;
}
public boolean equals(get_dictionary_status_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(get_dictionary_status_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("get_dictionary_status_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
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, java.lang.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 get_dictionary_status_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_dictionary_status_resultStandardScheme getScheme() {
return new get_dictionary_status_resultStandardScheme();
}
}
private static class get_dictionary_status_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<get_dictionary_status_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, get_dictionary_status_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 TDictionaryStatusList();
struct.success.read(iprot);
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, get_dictionary_status_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class get_dictionary_status_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public get_dictionary_status_resultTupleScheme getScheme() {
return new get_dictionary_status_resultTupleScheme();
}
}
private static class get_dictionary_status_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<get_dictionary_status_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, get_dictionary_status_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, get_dictionary_status_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new TDictionaryStatusList();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class test_storage_connectivity_args implements org.apache.thrift.TBase<test_storage_connectivity_args, test_storage_connectivity_args._Fields>, java.io.Serializable, Cloneable, Comparable<test_storage_connectivity_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("test_storage_connectivity_args");
private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new test_storage_connectivity_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new test_storage_connectivity_argsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TTestStorageConnectivityRequest request; // 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 {
REQUEST((short)1, "request");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // REQUEST
return REQUEST;
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTestStorageConnectivityRequest.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(test_storage_connectivity_args.class, metaDataMap);
}
public test_storage_connectivity_args() {
}
public test_storage_connectivity_args(
TTestStorageConnectivityRequest request)
{
this();
this.request = request;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public test_storage_connectivity_args(test_storage_connectivity_args other) {
if (other.isSetRequest()) {
this.request = new TTestStorageConnectivityRequest(other.request);
}
}
public test_storage_connectivity_args deepCopy() {
return new test_storage_connectivity_args(this);
}
@Override
public void clear() {
this.request = null;
}
@org.apache.thrift.annotation.Nullable
public TTestStorageConnectivityRequest getRequest() {
return this.request;
}
public test_storage_connectivity_args setRequest(@org.apache.thrift.annotation.Nullable TTestStorageConnectivityRequest request) {
this.request = request;
return this;
}
public void unsetRequest() {
this.request = null;
}
/** Returns true if field request is set (has been assigned a value) and false otherwise */
public boolean isSetRequest() {
return this.request != null;
}
public void setRequestIsSet(boolean value) {
if (!value) {
this.request = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case REQUEST:
if (value == null) {
unsetRequest();
} else {
setRequest((TTestStorageConnectivityRequest)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case REQUEST:
return getRequest();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case REQUEST:
return isSetRequest();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof test_storage_connectivity_args)
return this.equals((test_storage_connectivity_args)that);
return false;
}
public boolean equals(test_storage_connectivity_args that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_request = true && this.isSetRequest();
boolean that_present_request = true && that.isSetRequest();
if (this_present_request || that_present_request) {
if (!(this_present_request && that_present_request))
return false;
if (!this.request.equals(that.request))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetRequest()) ? 131071 : 524287);
if (isSetRequest())
hashCode = hashCode * 8191 + request.hashCode();
return hashCode;
}
@Override
public int compareTo(test_storage_connectivity_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetRequest(), other.isSetRequest());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRequest()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("test_storage_connectivity_args(");
boolean first = true;
sb.append("request:");
if (this.request == null) {
sb.append("null");
} else {
sb.append(this.request);
}
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 (request != null) {
request.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, java.lang.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 test_storage_connectivity_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public test_storage_connectivity_argsStandardScheme getScheme() {
return new test_storage_connectivity_argsStandardScheme();
}
}
private static class test_storage_connectivity_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<test_storage_connectivity_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, test_storage_connectivity_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: // REQUEST
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.request = new TTestStorageConnectivityRequest();
struct.request.read(iprot);
struct.setRequestIsSet(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, test_storage_connectivity_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.request != null) {
oprot.writeFieldBegin(REQUEST_FIELD_DESC);
struct.request.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class test_storage_connectivity_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public test_storage_connectivity_argsTupleScheme getScheme() {
return new test_storage_connectivity_argsTupleScheme();
}
}
private static class test_storage_connectivity_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<test_storage_connectivity_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, test_storage_connectivity_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetRequest()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetRequest()) {
struct.request.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, test_storage_connectivity_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.request = new TTestStorageConnectivityRequest();
struct.request.read(iprot);
struct.setRequestIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
public static class test_storage_connectivity_result implements org.apache.thrift.TBase<test_storage_connectivity_result, test_storage_connectivity_result._Fields>, java.io.Serializable, Cloneable, Comparable<test_storage_connectivity_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("test_storage_connectivity_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new test_storage_connectivity_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new test_storage_connectivity_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TTestStorageConnectivityResponse 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 java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TTestStorageConnectivityResponse.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(test_storage_connectivity_result.class, metaDataMap);
}
public test_storage_connectivity_result() {
}
public test_storage_connectivity_result(
TTestStorageConnectivityResponse success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public test_storage_connectivity_result(test_storage_connectivity_result other) {
if (other.isSetSuccess()) {
this.success = new TTestStorageConnectivityResponse(other.success);
}
}
public test_storage_connectivity_result deepCopy() {
return new test_storage_connectivity_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public TTestStorageConnectivityResponse getSuccess() {
return this.success;
}
public test_storage_connectivity_result setSuccess(@org.apache.thrift.annotation.Nullable TTestStorageConnectivityResponse 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((TTestStorageConnectivityResponse)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof test_storage_connectivity_result)
return this.equals((test_storage_connectivity_result)that);
return false;
}
public boolean equals(test_storage_connectivity_result that) {
if (that == null)
return false;
if (this == that)
return true;
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() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess())
hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(test_storage_connectivity_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("test_storage_connectivity_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
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, java.lang.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 test_storage_connectivity_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public test_storage_connectivity_resultStandardScheme getScheme() {
return new test_storage_connectivity_resultStandardScheme();
}
}
private static class test_storage_connectivity_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<test_storage_connectivity_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, test_storage_connectivity_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 TTestStorageConnectivityResponse();
struct.success.read(iprot);
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, test_storage_connectivity_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();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class test_storage_connectivity_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public test_storage_connectivity_resultTupleScheme getScheme() {
return new test_storage_connectivity_resultTupleScheme();
}
}
private static class test_storage_connectivity_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<test_storage_connectivity_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, test_storage_connectivity_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, test_storage_connectivity_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = new TTestStorageConnectivityResponse();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
}