You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by ja...@apache.org on 2016/01/20 16:31:14 UTC
[6/6] drill git commit: DRILL-4288: Removes obsolete
protobuf-generated files
DRILL-4288: Removes obsolete protobuf-generated files
This closes #332.
Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/9cc7e116
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/9cc7e116
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/9cc7e116
Branch: refs/heads/master
Commit: 9cc7e116fe6e315eeb8c7bc4ca2cfcb2b8ad7556
Parents: 06e93e6
Author: Laurent Goujon <la...@dremio.com>
Authored: Tue Jan 19 17:03:27 2016 -0800
Committer: Jacques Nadeau <ja...@apache.org>
Committed: Wed Jan 20 07:30:36 2016 -0800
----------------------------------------------------------------------
.../drill/exec/proto/BitControlHandshake.java | 206 --------
.../org/apache/drill/exec/proto/BitStatus.java | 174 -------
.../apache/drill/exec/proto/FragmentStatus.java | 187 --------
.../apache/drill/exec/proto/PlanFragment.java | 466 -------------------
.../org/apache/drill/exec/proto/RpcType.java | 65 ---
.../drill/exec/proto/WorkQueueStatus.java | 206 --------
6 files changed, 1304 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/drill/blob/9cc7e116/protocol/org/apache/drill/exec/proto/BitControlHandshake.java
----------------------------------------------------------------------
diff --git a/protocol/org/apache/drill/exec/proto/BitControlHandshake.java b/protocol/org/apache/drill/exec/proto/BitControlHandshake.java
deleted file mode 100644
index 7a12e1e..0000000
--- a/protocol/org/apache/drill/exec/proto/BitControlHandshake.java
+++ /dev/null
@@ -1,206 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by http://code.google.com/p/protostuff/ ... DO NOT EDIT!
-// Generated from BitControl.Proto
-
-package org.apache.drill.exec.proto;
-
-import java.io.Externalizable;
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-
-import com.dyuproject.protostuff.GraphIOUtil;
-import com.dyuproject.protostuff.Input;
-import com.dyuproject.protostuff.Message;
-import com.dyuproject.protostuff.Output;
-import com.dyuproject.protostuff.Schema;
-
-public final class BitControlHandshake implements Externalizable, Message<BitControlHandshake>, Schema<BitControlHandshake>
-{
-
- public static Schema<BitControlHandshake> getSchema()
- {
- return DEFAULT_INSTANCE;
- }
-
- public static BitControlHandshake getDefaultInstance()
- {
- return DEFAULT_INSTANCE;
- }
-
- static final BitControlHandshake DEFAULT_INSTANCE = new BitControlHandshake();
-
-
- private Integer rpcVersion;
- private RpcChannel channel;
- private DrillbitEndpoint endpoint;
-
- public BitControlHandshake()
- {
-
- }
-
- // getters and setters
-
- // rpcVersion
-
- public Integer getRpcVersion()
- {
- return rpcVersion;
- }
-
- public void setRpcVersion(Integer rpcVersion)
- {
- this.rpcVersion = rpcVersion;
- }
-
- // channel
-
- public RpcChannel getChannel()
- {
- return channel == null ? RpcChannel.BIT_CONTROL : channel;
- }
-
- public void setChannel(RpcChannel channel)
- {
- this.channel = channel;
- }
-
- // endpoint
-
- public DrillbitEndpoint getEndpoint()
- {
- return endpoint;
- }
-
- public void setEndpoint(DrillbitEndpoint endpoint)
- {
- this.endpoint = endpoint;
- }
-
- // java serialization
-
- public void readExternal(ObjectInput in) throws IOException
- {
- GraphIOUtil.mergeDelimitedFrom(in, this, this);
- }
-
- public void writeExternal(ObjectOutput out) throws IOException
- {
- GraphIOUtil.writeDelimitedTo(out, this, this);
- }
-
- // message method
-
- public Schema<BitControlHandshake> cachedSchema()
- {
- return DEFAULT_INSTANCE;
- }
-
- // schema methods
-
- public BitControlHandshake newMessage()
- {
- return new BitControlHandshake();
- }
-
- public Class<BitControlHandshake> typeClass()
- {
- return BitControlHandshake.class;
- }
-
- public String messageName()
- {
- return BitControlHandshake.class.getSimpleName();
- }
-
- public String messageFullName()
- {
- return BitControlHandshake.class.getName();
- }
-
- public boolean isInitialized(BitControlHandshake message)
- {
- return true;
- }
-
- public void mergeFrom(Input input, BitControlHandshake message) throws IOException
- {
- for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this))
- {
- switch(number)
- {
- case 0:
- return;
- case 1:
- message.rpcVersion = input.readInt32();
- break;
- case 2:
- message.channel = RpcChannel.valueOf(input.readEnum());
- break;
- case 3:
- message.endpoint = input.mergeObject(message.endpoint, DrillbitEndpoint.getSchema());
- break;
-
- default:
- input.handleUnknownField(number, this);
- }
- }
- }
-
-
- public void writeTo(Output output, BitControlHandshake message) throws IOException
- {
- if(message.rpcVersion != null)
- output.writeInt32(1, message.rpcVersion, false);
-
- if(message.channel != null)
- output.writeEnum(2, message.channel.number, false);
-
- if(message.endpoint != null)
- output.writeObject(3, message.endpoint, DrillbitEndpoint.getSchema(), false);
-
- }
-
- public String getFieldName(int number)
- {
- switch(number)
- {
- case 1: return "rpcVersion";
- case 2: return "channel";
- case 3: return "endpoint";
- default: return null;
- }
- }
-
- public int getFieldNumber(String name)
- {
- final Integer number = __fieldMap.get(name);
- return number == null ? 0 : number.intValue();
- }
-
- private static final java.util.HashMap<String,Integer> __fieldMap = new java.util.HashMap<String,Integer>();
- static
- {
- __fieldMap.put("rpcVersion", 1);
- __fieldMap.put("channel", 2);
- __fieldMap.put("endpoint", 3);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/drill/blob/9cc7e116/protocol/org/apache/drill/exec/proto/BitStatus.java
----------------------------------------------------------------------
diff --git a/protocol/org/apache/drill/exec/proto/BitStatus.java b/protocol/org/apache/drill/exec/proto/BitStatus.java
deleted file mode 100644
index c83cc09..0000000
--- a/protocol/org/apache/drill/exec/proto/BitStatus.java
+++ /dev/null
@@ -1,174 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by http://code.google.com/p/protostuff/ ... DO NOT EDIT!
-// Generated from BitControl.Proto
-
-package org.apache.drill.exec.proto;
-
-import java.io.Externalizable;
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import java.util.ArrayList;
-import java.util.List;
-
-import com.dyuproject.protostuff.GraphIOUtil;
-import com.dyuproject.protostuff.Input;
-import com.dyuproject.protostuff.Message;
-import com.dyuproject.protostuff.Output;
-import com.dyuproject.protostuff.Schema;
-
-public final class BitStatus implements Externalizable, Message<BitStatus>, Schema<BitStatus>
-{
-
- public static Schema<BitStatus> getSchema()
- {
- return DEFAULT_INSTANCE;
- }
-
- public static BitStatus getDefaultInstance()
- {
- return DEFAULT_INSTANCE;
- }
-
- static final BitStatus DEFAULT_INSTANCE = new BitStatus();
-
-
- private List<FragmentStatus> fragmentStatus;
-
- public BitStatus()
- {
-
- }
-
- // getters and setters
-
- // fragmentStatus
-
- public List<FragmentStatus> getFragmentStatusList()
- {
- return fragmentStatus;
- }
-
- public void setFragmentStatusList(List<FragmentStatus> fragmentStatus)
- {
- this.fragmentStatus = fragmentStatus;
- }
-
- // java serialization
-
- public void readExternal(ObjectInput in) throws IOException
- {
- GraphIOUtil.mergeDelimitedFrom(in, this, this);
- }
-
- public void writeExternal(ObjectOutput out) throws IOException
- {
- GraphIOUtil.writeDelimitedTo(out, this, this);
- }
-
- // message method
-
- public Schema<BitStatus> cachedSchema()
- {
- return DEFAULT_INSTANCE;
- }
-
- // schema methods
-
- public BitStatus newMessage()
- {
- return new BitStatus();
- }
-
- public Class<BitStatus> typeClass()
- {
- return BitStatus.class;
- }
-
- public String messageName()
- {
- return BitStatus.class.getSimpleName();
- }
-
- public String messageFullName()
- {
- return BitStatus.class.getName();
- }
-
- public boolean isInitialized(BitStatus message)
- {
- return true;
- }
-
- public void mergeFrom(Input input, BitStatus message) throws IOException
- {
- for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this))
- {
- switch(number)
- {
- case 0:
- return;
- case 1:
- if(message.fragmentStatus == null)
- message.fragmentStatus = new ArrayList<FragmentStatus>();
- message.fragmentStatus.add(input.mergeObject(null, FragmentStatus.getSchema()));
- break;
-
- default:
- input.handleUnknownField(number, this);
- }
- }
- }
-
-
- public void writeTo(Output output, BitStatus message) throws IOException
- {
- if(message.fragmentStatus != null)
- {
- for(FragmentStatus fragmentStatus : message.fragmentStatus)
- {
- if(fragmentStatus != null)
- output.writeObject(1, fragmentStatus, FragmentStatus.getSchema(), true);
- }
- }
-
- }
-
- public String getFieldName(int number)
- {
- switch(number)
- {
- case 1: return "fragmentStatus";
- default: return null;
- }
- }
-
- public int getFieldNumber(String name)
- {
- final Integer number = __fieldMap.get(name);
- return number == null ? 0 : number.intValue();
- }
-
- private static final java.util.HashMap<String,Integer> __fieldMap = new java.util.HashMap<String,Integer>();
- static
- {
- __fieldMap.put("fragmentStatus", 1);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/drill/blob/9cc7e116/protocol/org/apache/drill/exec/proto/FragmentStatus.java
----------------------------------------------------------------------
diff --git a/protocol/org/apache/drill/exec/proto/FragmentStatus.java b/protocol/org/apache/drill/exec/proto/FragmentStatus.java
deleted file mode 100644
index 3873c20..0000000
--- a/protocol/org/apache/drill/exec/proto/FragmentStatus.java
+++ /dev/null
@@ -1,187 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by http://code.google.com/p/protostuff/ ... DO NOT EDIT!
-// Generated from BitControl.Proto
-
-package org.apache.drill.exec.proto;
-
-import java.io.Externalizable;
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-
-import com.dyuproject.protostuff.GraphIOUtil;
-import com.dyuproject.protostuff.Input;
-import com.dyuproject.protostuff.Message;
-import com.dyuproject.protostuff.Output;
-import com.dyuproject.protostuff.Schema;
-
-public final class FragmentStatus implements Externalizable, Message<FragmentStatus>, Schema<FragmentStatus>
-{
-
- public static Schema<FragmentStatus> getSchema()
- {
- return DEFAULT_INSTANCE;
- }
-
- public static FragmentStatus getDefaultInstance()
- {
- return DEFAULT_INSTANCE;
- }
-
- static final FragmentStatus DEFAULT_INSTANCE = new FragmentStatus();
-
-
- private MinorFragmentProfile profile;
- private FragmentHandle handle;
-
- public FragmentStatus()
- {
-
- }
-
- // getters and setters
-
- // profile
-
- public MinorFragmentProfile getProfile()
- {
- return profile;
- }
-
- public void setProfile(MinorFragmentProfile profile)
- {
- this.profile = profile;
- }
-
- // handle
-
- public FragmentHandle getHandle()
- {
- return handle;
- }
-
- public void setHandle(FragmentHandle handle)
- {
- this.handle = handle;
- }
-
- // java serialization
-
- public void readExternal(ObjectInput in) throws IOException
- {
- GraphIOUtil.mergeDelimitedFrom(in, this, this);
- }
-
- public void writeExternal(ObjectOutput out) throws IOException
- {
- GraphIOUtil.writeDelimitedTo(out, this, this);
- }
-
- // message method
-
- public Schema<FragmentStatus> cachedSchema()
- {
- return DEFAULT_INSTANCE;
- }
-
- // schema methods
-
- public FragmentStatus newMessage()
- {
- return new FragmentStatus();
- }
-
- public Class<FragmentStatus> typeClass()
- {
- return FragmentStatus.class;
- }
-
- public String messageName()
- {
- return FragmentStatus.class.getSimpleName();
- }
-
- public String messageFullName()
- {
- return FragmentStatus.class.getName();
- }
-
- public boolean isInitialized(FragmentStatus message)
- {
- return true;
- }
-
- public void mergeFrom(Input input, FragmentStatus message) throws IOException
- {
- for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this))
- {
- switch(number)
- {
- case 0:
- return;
- case 1:
- message.profile = input.mergeObject(message.profile, MinorFragmentProfile.getSchema());
- break;
-
- case 2:
- message.handle = input.mergeObject(message.handle, FragmentHandle.getSchema());
- break;
-
- default:
- input.handleUnknownField(number, this);
- }
- }
- }
-
-
- public void writeTo(Output output, FragmentStatus message) throws IOException
- {
- if(message.profile != null)
- output.writeObject(1, message.profile, MinorFragmentProfile.getSchema(), false);
-
-
- if(message.handle != null)
- output.writeObject(2, message.handle, FragmentHandle.getSchema(), false);
-
- }
-
- public String getFieldName(int number)
- {
- switch(number)
- {
- case 1: return "profile";
- case 2: return "handle";
- default: return null;
- }
- }
-
- public int getFieldNumber(String name)
- {
- final Integer number = __fieldMap.get(name);
- return number == null ? 0 : number.intValue();
- }
-
- private static final java.util.HashMap<String,Integer> __fieldMap = new java.util.HashMap<String,Integer>();
- static
- {
- __fieldMap.put("profile", 1);
- __fieldMap.put("handle", 2);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/drill/blob/9cc7e116/protocol/org/apache/drill/exec/proto/PlanFragment.java
----------------------------------------------------------------------
diff --git a/protocol/org/apache/drill/exec/proto/PlanFragment.java b/protocol/org/apache/drill/exec/proto/PlanFragment.java
deleted file mode 100644
index 04cb8a9..0000000
--- a/protocol/org/apache/drill/exec/proto/PlanFragment.java
+++ /dev/null
@@ -1,466 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by http://code.google.com/p/protostuff/ ... DO NOT EDIT!
-// Generated from BitControl.Proto
-
-package org.apache.drill.exec.proto;
-
-import java.io.Externalizable;
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-
-import com.dyuproject.protostuff.GraphIOUtil;
-import com.dyuproject.protostuff.Input;
-import com.dyuproject.protostuff.Message;
-import com.dyuproject.protostuff.Output;
-import com.dyuproject.protostuff.Schema;
-
-public final class PlanFragment implements Externalizable, Message<PlanFragment>, Schema<PlanFragment>
-{
-
- public static Schema<PlanFragment> getSchema()
- {
- return DEFAULT_INSTANCE;
- }
-
- public static PlanFragment getDefaultInstance()
- {
- return DEFAULT_INSTANCE;
- }
-
- static final PlanFragment DEFAULT_INSTANCE = new PlanFragment();
-
- static final Long DEFAULT_MEM_INITIAL = new Long(20000000l);
- static final Long DEFAULT_MEM_MAX = new Long(2000000000l);
-
- private FragmentHandle handle;
- private Float networkCost;
- private Float cpuCost;
- private Float diskCost;
- private Float memoryCost;
- private String fragmentJson;
- private Boolean leafFragment;
- private DrillbitEndpoint assignment;
- private DrillbitEndpoint foreman;
- private Long memInitial = DEFAULT_MEM_INITIAL;
- private Long memMax = DEFAULT_MEM_MAX;
- private Long queryStartTime;
- private UserCredentials credentials;
- private Integer timeZone;
- private String optionsJson;
-
- public PlanFragment()
- {
-
- }
-
- // getters and setters
-
- // handle
-
- public FragmentHandle getHandle()
- {
- return handle;
- }
-
- public void setHandle(FragmentHandle handle)
- {
- this.handle = handle;
- }
-
- // networkCost
-
- public Float getNetworkCost()
- {
- return networkCost;
- }
-
- public void setNetworkCost(Float networkCost)
- {
- this.networkCost = networkCost;
- }
-
- // cpuCost
-
- public Float getCpuCost()
- {
- return cpuCost;
- }
-
- public void setCpuCost(Float cpuCost)
- {
- this.cpuCost = cpuCost;
- }
-
- // diskCost
-
- public Float getDiskCost()
- {
- return diskCost;
- }
-
- public void setDiskCost(Float diskCost)
- {
- this.diskCost = diskCost;
- }
-
- // memoryCost
-
- public Float getMemoryCost()
- {
- return memoryCost;
- }
-
- public void setMemoryCost(Float memoryCost)
- {
- this.memoryCost = memoryCost;
- }
-
- // fragmentJson
-
- public String getFragmentJson()
- {
- return fragmentJson;
- }
-
- public void setFragmentJson(String fragmentJson)
- {
- this.fragmentJson = fragmentJson;
- }
-
- // leafFragment
-
- public Boolean getLeafFragment()
- {
- return leafFragment;
- }
-
- public void setLeafFragment(Boolean leafFragment)
- {
- this.leafFragment = leafFragment;
- }
-
- // assignment
-
- public DrillbitEndpoint getAssignment()
- {
- return assignment;
- }
-
- public void setAssignment(DrillbitEndpoint assignment)
- {
- this.assignment = assignment;
- }
-
- // foreman
-
- public DrillbitEndpoint getForeman()
- {
- return foreman;
- }
-
- public void setForeman(DrillbitEndpoint foreman)
- {
- this.foreman = foreman;
- }
-
- // memInitial
-
- public Long getMemInitial()
- {
- return memInitial;
- }
-
- public void setMemInitial(Long memInitial)
- {
- this.memInitial = memInitial;
- }
-
- // memMax
-
- public Long getMemMax()
- {
- return memMax;
- }
-
- public void setMemMax(Long memMax)
- {
- this.memMax = memMax;
- }
-
- // queryStartTime
-
- public Long getQueryStartTime()
- {
- return queryStartTime;
- }
-
- public void setQueryStartTime(Long queryStartTime)
- {
- this.queryStartTime = queryStartTime;
- }
-
- // credentials
-
- public UserCredentials getCredentials()
- {
- return credentials;
- }
-
- public void setCredentials(UserCredentials credentials)
- {
- this.credentials = credentials;
- }
-
- // timeZone
-
- public Integer getTimeZone()
- {
- return timeZone;
- }
-
- public void setTimeZone(Integer timeZone)
- {
- this.timeZone = timeZone;
- }
-
- // optionsJson
-
- public String getOptionsJson()
- {
- return optionsJson;
- }
-
- public void setOptionsJson(String optionsJson)
- {
- this.optionsJson = optionsJson;
- }
-
- // java serialization
-
- public void readExternal(ObjectInput in) throws IOException
- {
- GraphIOUtil.mergeDelimitedFrom(in, this, this);
- }
-
- public void writeExternal(ObjectOutput out) throws IOException
- {
- GraphIOUtil.writeDelimitedTo(out, this, this);
- }
-
- // message method
-
- public Schema<PlanFragment> cachedSchema()
- {
- return DEFAULT_INSTANCE;
- }
-
- // schema methods
-
- public PlanFragment newMessage()
- {
- return new PlanFragment();
- }
-
- public Class<PlanFragment> typeClass()
- {
- return PlanFragment.class;
- }
-
- public String messageName()
- {
- return PlanFragment.class.getSimpleName();
- }
-
- public String messageFullName()
- {
- return PlanFragment.class.getName();
- }
-
- public boolean isInitialized(PlanFragment message)
- {
- return true;
- }
-
- public void mergeFrom(Input input, PlanFragment message) throws IOException
- {
- for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this))
- {
- switch(number)
- {
- case 0:
- return;
- case 1:
- message.handle = input.mergeObject(message.handle, FragmentHandle.getSchema());
- break;
-
- case 4:
- message.networkCost = input.readFloat();
- break;
- case 5:
- message.cpuCost = input.readFloat();
- break;
- case 6:
- message.diskCost = input.readFloat();
- break;
- case 7:
- message.memoryCost = input.readFloat();
- break;
- case 8:
- message.fragmentJson = input.readString();
- break;
- case 9:
- message.leafFragment = input.readBool();
- break;
- case 10:
- message.assignment = input.mergeObject(message.assignment, DrillbitEndpoint.getSchema());
- break;
-
- case 11:
- message.foreman = input.mergeObject(message.foreman, DrillbitEndpoint.getSchema());
- break;
-
- case 12:
- message.memInitial = input.readInt64();
- break;
- case 13:
- message.memMax = input.readInt64();
- break;
- case 14:
- message.queryStartTime = input.readInt64();
- break;
- case 15:
- message.credentials = input.mergeObject(message.credentials, UserCredentials.getSchema());
- break;
-
- case 16:
- message.timeZone = input.readInt32();
- break;
- case 17:
- message.optionsJson = input.readString();
- break;
- default:
- input.handleUnknownField(number, this);
- }
- }
- }
-
-
- public void writeTo(Output output, PlanFragment message) throws IOException
- {
- if(message.handle != null)
- output.writeObject(1, message.handle, FragmentHandle.getSchema(), false);
-
-
- if(message.networkCost != null)
- output.writeFloat(4, message.networkCost, false);
-
- if(message.cpuCost != null)
- output.writeFloat(5, message.cpuCost, false);
-
- if(message.diskCost != null)
- output.writeFloat(6, message.diskCost, false);
-
- if(message.memoryCost != null)
- output.writeFloat(7, message.memoryCost, false);
-
- if(message.fragmentJson != null)
- output.writeString(8, message.fragmentJson, false);
-
- if(message.leafFragment != null)
- output.writeBool(9, message.leafFragment, false);
-
- if(message.assignment != null)
- output.writeObject(10, message.assignment, DrillbitEndpoint.getSchema(), false);
-
-
- if(message.foreman != null)
- output.writeObject(11, message.foreman, DrillbitEndpoint.getSchema(), false);
-
-
- if(message.memInitial != null && message.memInitial != DEFAULT_MEM_INITIAL)
- output.writeInt64(12, message.memInitial, false);
-
- if(message.memMax != null && message.memMax != DEFAULT_MEM_MAX)
- output.writeInt64(13, message.memMax, false);
-
- if(message.queryStartTime != null)
- output.writeInt64(14, message.queryStartTime, false);
-
- if(message.credentials != null)
- output.writeObject(15, message.credentials, UserCredentials.getSchema(), false);
-
-
- if(message.timeZone != null)
- output.writeInt32(16, message.timeZone, false);
-
- if(message.optionsJson != null)
- output.writeString(17, message.optionsJson, false);
- }
-
- public String getFieldName(int number)
- {
- switch(number)
- {
- case 1: return "handle";
- case 4: return "networkCost";
- case 5: return "cpuCost";
- case 6: return "diskCost";
- case 7: return "memoryCost";
- case 8: return "fragmentJson";
- case 9: return "leafFragment";
- case 10: return "assignment";
- case 11: return "foreman";
- case 12: return "memInitial";
- case 13: return "memMax";
- case 14: return "queryStartTime";
- case 15: return "credentials";
- case 16: return "timeZone";
- case 17: return "optionsJson";
- default: return null;
- }
- }
-
- public int getFieldNumber(String name)
- {
- final Integer number = __fieldMap.get(name);
- return number == null ? 0 : number.intValue();
- }
-
- private static final java.util.HashMap<String,Integer> __fieldMap = new java.util.HashMap<String,Integer>();
- static
- {
- __fieldMap.put("handle", 1);
- __fieldMap.put("networkCost", 4);
- __fieldMap.put("cpuCost", 5);
- __fieldMap.put("diskCost", 6);
- __fieldMap.put("memoryCost", 7);
- __fieldMap.put("fragmentJson", 8);
- __fieldMap.put("leafFragment", 9);
- __fieldMap.put("assignment", 10);
- __fieldMap.put("foreman", 11);
- __fieldMap.put("memInitial", 12);
- __fieldMap.put("memMax", 13);
- __fieldMap.put("queryStartTime", 14);
- __fieldMap.put("credentials", 15);
- __fieldMap.put("timeZone", 16);
- __fieldMap.put("optionsJson", 17);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/drill/blob/9cc7e116/protocol/org/apache/drill/exec/proto/RpcType.java
----------------------------------------------------------------------
diff --git a/protocol/org/apache/drill/exec/proto/RpcType.java b/protocol/org/apache/drill/exec/proto/RpcType.java
deleted file mode 100644
index 48e5b2a..0000000
--- a/protocol/org/apache/drill/exec/proto/RpcType.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by http://code.google.com/p/protostuff/ ... DO NOT EDIT!
-// Generated from BitControl.Proto
-
-package org.apache.drill.exec.proto;
-
-public enum RpcType implements com.dyuproject.protostuff.EnumLite<RpcType>
-{
- HANDSHAKE(0),
- ACK(1),
- GOODBYE(2),
- REQ_INIATILIZE_FRAGMENT(3),
- REQ_CANCEL_FRAGMENT(6),
- REQ_FRAGMENT_STATUS(7),
- REQ_BIT_STATUS(8),
- RESP_FRAGMENT_HANDLE(9),
- RESP_FRAGMENT_STATUS(10),
- RESP_BIT_STATUS(11);
-
- public final int number;
-
- private RpcType (int number)
- {
- this.number = number;
- }
-
- public int getNumber()
- {
- return number;
- }
-
- public static RpcType valueOf(int number)
- {
- switch(number)
- {
- case 0: return HANDSHAKE;
- case 1: return ACK;
- case 2: return GOODBYE;
- case 3: return REQ_INIATILIZE_FRAGMENT;
- case 6: return REQ_CANCEL_FRAGMENT;
- case 7: return REQ_FRAGMENT_STATUS;
- case 8: return REQ_BIT_STATUS;
- case 9: return RESP_FRAGMENT_HANDLE;
- case 10: return RESP_FRAGMENT_STATUS;
- case 11: return RESP_BIT_STATUS;
- default: return null;
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/drill/blob/9cc7e116/protocol/org/apache/drill/exec/proto/WorkQueueStatus.java
----------------------------------------------------------------------
diff --git a/protocol/org/apache/drill/exec/proto/WorkQueueStatus.java b/protocol/org/apache/drill/exec/proto/WorkQueueStatus.java
deleted file mode 100644
index 1c96bd5..0000000
--- a/protocol/org/apache/drill/exec/proto/WorkQueueStatus.java
+++ /dev/null
@@ -1,206 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by http://code.google.com/p/protostuff/ ... DO NOT EDIT!
-// Generated from BitControl.Proto
-
-package org.apache.drill.exec.proto;
-
-import java.io.Externalizable;
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-
-import com.dyuproject.protostuff.GraphIOUtil;
-import com.dyuproject.protostuff.Input;
-import com.dyuproject.protostuff.Message;
-import com.dyuproject.protostuff.Output;
-import com.dyuproject.protostuff.Schema;
-
-public final class WorkQueueStatus implements Externalizable, Message<WorkQueueStatus>, Schema<WorkQueueStatus>
-{
-
- public static Schema<WorkQueueStatus> getSchema()
- {
- return DEFAULT_INSTANCE;
- }
-
- public static WorkQueueStatus getDefaultInstance()
- {
- return DEFAULT_INSTANCE;
- }
-
- static final WorkQueueStatus DEFAULT_INSTANCE = new WorkQueueStatus();
-
-
- private DrillbitEndpoint endpoint;
- private Integer queueLength;
- private Long reportTime;
-
- public WorkQueueStatus()
- {
-
- }
-
- // getters and setters
-
- // endpoint
-
- public DrillbitEndpoint getEndpoint()
- {
- return endpoint;
- }
-
- public void setEndpoint(DrillbitEndpoint endpoint)
- {
- this.endpoint = endpoint;
- }
-
- // queueLength
-
- public Integer getQueueLength()
- {
- return queueLength;
- }
-
- public void setQueueLength(Integer queueLength)
- {
- this.queueLength = queueLength;
- }
-
- // reportTime
-
- public Long getReportTime()
- {
- return reportTime;
- }
-
- public void setReportTime(Long reportTime)
- {
- this.reportTime = reportTime;
- }
-
- // java serialization
-
- public void readExternal(ObjectInput in) throws IOException
- {
- GraphIOUtil.mergeDelimitedFrom(in, this, this);
- }
-
- public void writeExternal(ObjectOutput out) throws IOException
- {
- GraphIOUtil.writeDelimitedTo(out, this, this);
- }
-
- // message method
-
- public Schema<WorkQueueStatus> cachedSchema()
- {
- return DEFAULT_INSTANCE;
- }
-
- // schema methods
-
- public WorkQueueStatus newMessage()
- {
- return new WorkQueueStatus();
- }
-
- public Class<WorkQueueStatus> typeClass()
- {
- return WorkQueueStatus.class;
- }
-
- public String messageName()
- {
- return WorkQueueStatus.class.getSimpleName();
- }
-
- public String messageFullName()
- {
- return WorkQueueStatus.class.getName();
- }
-
- public boolean isInitialized(WorkQueueStatus message)
- {
- return true;
- }
-
- public void mergeFrom(Input input, WorkQueueStatus message) throws IOException
- {
- for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this))
- {
- switch(number)
- {
- case 0:
- return;
- case 1:
- message.endpoint = input.mergeObject(message.endpoint, DrillbitEndpoint.getSchema());
- break;
-
- case 2:
- message.queueLength = input.readInt32();
- break;
- case 3:
- message.reportTime = input.readInt64();
- break;
- default:
- input.handleUnknownField(number, this);
- }
- }
- }
-
-
- public void writeTo(Output output, WorkQueueStatus message) throws IOException
- {
- if(message.endpoint != null)
- output.writeObject(1, message.endpoint, DrillbitEndpoint.getSchema(), false);
-
-
- if(message.queueLength != null)
- output.writeInt32(2, message.queueLength, false);
-
- if(message.reportTime != null)
- output.writeInt64(3, message.reportTime, false);
- }
-
- public String getFieldName(int number)
- {
- switch(number)
- {
- case 1: return "endpoint";
- case 2: return "queueLength";
- case 3: return "reportTime";
- default: return null;
- }
- }
-
- public int getFieldNumber(String name)
- {
- final Integer number = __fieldMap.get(name);
- return number == null ? 0 : number.intValue();
- }
-
- private static final java.util.HashMap<String,Integer> __fieldMap = new java.util.HashMap<String,Integer>();
- static
- {
- __fieldMap.put("endpoint", 1);
- __fieldMap.put("queueLength", 2);
- __fieldMap.put("reportTime", 3);
- }
-
-}