Exemplo n.º 1
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, 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);
  }
Exemplo n.º 3
0
  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);
  }