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 void writeTo(Output output, BitToUserHandshake message) throws IOException {
    if (message.rpcVersion != 0) output.writeInt32(2, message.rpcVersion, false);

    if (message.status != null) output.writeEnum(3, message.status.number, false);

    if (message.errorId != null) output.writeString(4, message.errorId, false);

    if (message.errorMessage != null) output.writeString(5, message.errorMessage, false);
  }
Exemple #3
0
        public void writeTo(Output output, Interval message) throws IOException {
          if (message.lowerincluded != null) output.writeBool(1, message.lowerincluded, false);

          if (message.upperincluded != null) output.writeBool(2, message.upperincluded, false);

          if (message.lowerunbounded != null) output.writeBool(3, message.lowerunbounded, false);

          if (message.upperunbounded != null) output.writeBool(4, message.upperunbounded, false);
        }
  public void writeTo(Output output, UserToBitHandshake message) throws IOException {
    if (message.channel != null) output.writeEnum(1, message.channel.number, false);

    if (message.supportListening != null) output.writeBool(2, message.supportListening, false);

    if (message.rpcVersion != 0) output.writeInt32(3, message.rpcVersion, false);

    if (message.credentials != null)
      output.writeObject(4, message.credentials, UserCredentials.getSchema(), false);

    if (message.properties != null)
      output.writeObject(5, message.properties, UserProperties.getSchema(), false);

    if (message.supportComplexTypes != null
        && message.supportComplexTypes != DEFAULT_SUPPORT_COMPLEX_TYPES)
      output.writeBool(6, message.supportComplexTypes, false);

    if (message.supportTimeout != null && message.supportTimeout != DEFAULT_SUPPORT_TIMEOUT)
      output.writeBool(7, message.supportTimeout, false);

    if (message.clientInfos != null)
      output.writeObject(8, message.clientInfos, RpcEndpointInfos.getSchema(), false);
  }
  public void writeTo(Output output, FragmentRecordBatch message) throws IOException {
    if (message.handle != null)
      output.writeObject(1, message.handle, FragmentHandle.getSchema(), false);

    if (message.sendingMajorFragmentId != 0)
      output.writeInt32(2, message.sendingMajorFragmentId, false);

    if (message.sendingMinorFragmentId != 0)
      output.writeInt32(3, message.sendingMinorFragmentId, false);

    if (message.def != null) output.writeObject(4, message.def, RecordBatchDef.getSchema(), false);

    if (message.isLastBatch != null) output.writeBool(5, message.isLastBatch, false);

    if (message.isOutOfMemory != null && message.isOutOfMemory != DEFAULT_IS_OUT_OF_MEMORY)
      output.writeBool(6, message.isOutOfMemory, false);
  }
Exemple #6
0
        public void writeTo(Output output, DVTEXT message) throws IOException {
          if (message.value == null) throw new UninitializedMessageException(message);
          output.writeString(1, message.value, false);

          if (message.hyperlink != null)
            output.writeObject(2, message.hyperlink, DVURI.getSchema(), false);

          if (message.formatting != null) output.writeString(3, message.formatting, false);

          if (message.mappings != null) {
            for (TERMMAPPING mappings : message.mappings) {
              if (mappings != null) output.writeObject(4, mappings, TERMMAPPING.getSchema(), true);
            }
          }

          if (message.language != null)
            output.writeObject(5, message.language, CODEPHRASE.getSchema(), false);

          if (message.encoding != null)
            output.writeObject(6, message.encoding, CODEPHRASE.getSchema(), false);
        }
 public void writeTo(Output output, OBJECTVERSIONID message) throws IOException {
   if (message.value == null) throw new UninitializedMessageException(message);
   output.writeString(1, message.value, false);
 }