@Override
  public void toData(DataOutput out,
      SerializationContext context) throws IOException {
    context.getSerializer().writeObject(key, out);
    context.getSerializer().writeObject(value, out);
  }
Returns key values as Object[] with key as the first and value as the last element of the
array.

@return Object[] key, value pair
geode-core/src/main/java/org/apache/geode/cache/query/internal/CqEntry.java