public void writeTo(Output output, BitClientHandshake message) throws IOException { if(message.rpcVersion != 0) output.writeInt32(1, message.rpcVersion, false); if(message.channel != null) output.writeEnum(2, message.channel.number, false); }
public void writeTo(Output output, ConvertSupport message) throws IOException { if(message.from == null) throw new UninitializedMessageException(message); output.writeEnum(1, message.from.number, false); if(message.to == null) throw new UninitializedMessageException(message); output.writeEnum(2, message.to.number, false); }
public void writeTo(Output output, RpcHeader message) throws IOException { if(message.mode != null) output.writeEnum(1, message.mode.number, false); if(message.coordinationId != 0) output.writeInt32(2, message.coordinationId, false); if(message.rpcType != 0) output.writeInt32(3, message.rpcType, false); }
public void writeTo(Output output, SaslMessage message) throws IOException { if(message.mechanism != null) output.writeString(1, message.mechanism, false); if(message.data != null) output.writeBytes(2, message.data, false); if(message.status != null) output.writeEnum(3, message.status.number, false); }
public void writeTo(Output output, GetQueryPlanFragments message) throws IOException { if(message.query == null) throw new UninitializedMessageException(message); output.writeString(1, message.query, false); if(message.type != null) output.writeEnum(2, message.type.number, false); if(message.splitPlan != null && message.splitPlan != DEFAULT_SPLIT_PLAN) output.writeBool(3, message.splitPlan, false); }
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserProtos.ConvertSupport message) throws java.io.IOException { if(message.hasFrom()) output.writeEnum(1, message.getFrom().getNumber(), false); if(message.hasTo()) output.writeEnum(2, message.getTo().getNumber(), false); } public boolean isInitialized(org.apache.drill.exec.proto.UserProtos.ConvertSupport message)
public void writeTo(Output output, GetServerMetaResp message) throws IOException { if(message.status != null) output.writeEnum(1, message.status.number, false); if(message.serverMeta != null) output.writeObject(2, message.serverMeta, ServerMeta.getSchema(), false); if(message.error != null) output.writeObject(3, message.error, DrillPBError.getSchema(), false); }
public void writeTo(Output output, CreatePreparedStatementResp message) throws IOException { if(message.status != null) output.writeEnum(1, message.status.number, false); if(message.preparedStatement != null) output.writeObject(2, message.preparedStatement, PreparedStatement.getSchema(), false); if(message.error != null) output.writeObject(3, message.error, DrillPBError.getSchema(), false); }
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.BitData.BitClientHandshake message) throws java.io.IOException { if(message.hasRpcVersion()) output.writeInt32(1, message.getRpcVersion(), false); if(message.hasChannel()) output.writeEnum(2, message.getChannel().getNumber(), false); } public boolean isInitialized(org.apache.drill.exec.proto.BitData.BitClientHandshake message)
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserBitShared.SaslMessage message) throws java.io.IOException { if(message.hasMechanism()) output.writeString(1, message.getMechanism(), false); if(message.hasData()) output.writeByteArray(2, message.getData().toByteArray(), false); if(message.hasStatus()) output.writeEnum(3, message.getStatus().getNumber(), false); } public boolean isInitialized(org.apache.drill.exec.proto.UserBitShared.SaslMessage message)
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserProtos.GetCatalogsResp message) throws java.io.IOException { if(message.hasStatus()) output.writeEnum(1, message.getStatus().getNumber(), false); for(org.apache.drill.exec.proto.UserProtos.CatalogMetadata catalogs : message.getCatalogsList()) output.writeObject(2, catalogs, org.apache.drill.exec.proto.SchemaUserProtos.CatalogMetadata.WRITE, true); if(message.hasError()) output.writeObject(3, message.getError(), org.apache.drill.exec.proto.SchemaUserBitShared.DrillPBError.WRITE, false); } public boolean isInitialized(org.apache.drill.exec.proto.UserProtos.GetCatalogsResp message)
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserProtos.GetSchemasResp message) throws java.io.IOException { if(message.hasStatus()) output.writeEnum(1, message.getStatus().getNumber(), false); for(org.apache.drill.exec.proto.UserProtos.SchemaMetadata schemas : message.getSchemasList()) output.writeObject(2, schemas, org.apache.drill.exec.proto.SchemaUserProtos.SchemaMetadata.WRITE, true); if(message.hasError()) output.writeObject(3, message.getError(), org.apache.drill.exec.proto.SchemaUserBitShared.DrillPBError.WRITE, false); } public boolean isInitialized(org.apache.drill.exec.proto.UserProtos.GetSchemasResp message)
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserBitShared.QueryResult message) throws java.io.IOException { if(message.hasQueryState()) output.writeEnum(1, message.getQueryState().getNumber(), false); if(message.hasQueryId()) output.writeObject(2, message.getQueryId(), org.apache.drill.exec.proto.SchemaUserBitShared.QueryId.WRITE, false); for(org.apache.drill.exec.proto.UserBitShared.DrillPBError error : message.getErrorList()) output.writeObject(3, error, org.apache.drill.exec.proto.SchemaUserBitShared.DrillPBError.WRITE, true); } public boolean isInitialized(org.apache.drill.exec.proto.UserBitShared.QueryResult message)
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserProtos.GetColumnsResp message) throws java.io.IOException { if(message.hasStatus()) output.writeEnum(1, message.getStatus().getNumber(), false); for(org.apache.drill.exec.proto.UserProtos.ColumnMetadata columns : message.getColumnsList()) output.writeObject(2, columns, org.apache.drill.exec.proto.SchemaUserProtos.ColumnMetadata.WRITE, true); if(message.hasError()) output.writeObject(3, message.getError(), org.apache.drill.exec.proto.SchemaUserBitShared.DrillPBError.WRITE, false); } public boolean isInitialized(org.apache.drill.exec.proto.UserProtos.GetColumnsResp message)
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments message) throws java.io.IOException { if(message.hasQuery()) output.writeString(1, message.getQuery(), false); if(message.hasType()) output.writeEnum(2, message.getType().getNumber(), false); if(message.hasSplitPlan()) output.writeBool(3, message.getSplitPlan(), false); } public boolean isInitialized(org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments message)
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader message) throws java.io.IOException { if(message.hasMode()) output.writeEnum(1, message.getMode().getNumber(), false); if(message.hasCoordinationId()) output.writeInt32(2, message.getCoordinationId(), false); if(message.hasRpcType()) output.writeInt32(3, message.getRpcType(), false); } public boolean isInitialized(org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader message)
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserProtos.GetServerMetaResp message) throws java.io.IOException { if(message.hasStatus()) output.writeEnum(1, message.getStatus().getNumber(), false); if(message.hasServerMeta()) output.writeObject(2, message.getServerMeta(), org.apache.drill.exec.proto.SchemaUserProtos.ServerMeta.WRITE, false); if(message.hasError()) output.writeObject(3, message.getError(), org.apache.drill.exec.proto.SchemaUserBitShared.DrillPBError.WRITE, false); } public boolean isInitialized(org.apache.drill.exec.proto.UserProtos.GetServerMetaResp message)
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserBitShared.NamePart message) throws java.io.IOException { if(message.hasType()) output.writeEnum(1, message.getType().getNumber(), false); if(message.hasName()) output.writeString(2, message.getName(), false); if(message.hasChild()) output.writeObject(3, message.getChild(), org.apache.drill.exec.proto.SchemaUserBitShared.NamePart.WRITE, false); } public boolean isInitialized(org.apache.drill.exec.proto.UserBitShared.NamePart message)
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserProtos.QueryPlanFragments message) throws java.io.IOException { if(message.hasStatus()) output.writeEnum(1, message.getStatus().getNumber(), false); if(message.hasQueryId()) output.writeObject(2, message.getQueryId(), org.apache.drill.exec.proto.SchemaUserBitShared.QueryId.WRITE, false); for(org.apache.drill.exec.proto.BitControl.PlanFragment fragments : message.getFragmentsList()) output.writeObject(3, fragments, org.apache.drill.exec.proto.SchemaBitControl.PlanFragment.WRITE, true); if(message.hasError()) output.writeObject(4, message.getError(), org.apache.drill.exec.proto.SchemaUserBitShared.DrillPBError.WRITE, false); } public boolean isInitialized(org.apache.drill.exec.proto.UserProtos.QueryPlanFragments message)
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.BitControl.BitControlHandshake message) throws java.io.IOException { if(message.hasRpcVersion()) output.writeInt32(1, message.getRpcVersion(), false); if(message.hasChannel()) output.writeEnum(2, message.getChannel().getNumber(), false); if(message.hasEndpoint()) output.writeObject(3, message.getEndpoint(), org.apache.drill.exec.proto.SchemaCoordinationProtos.DrillbitEndpoint.WRITE, false); for(String authenticationMechanisms : message.getAuthenticationMechanismsList()) output.writeString(4, authenticationMechanisms, true); } public boolean isInitialized(org.apache.drill.exec.proto.BitControl.BitControlHandshake message)