code: @Override
    public void writeExternal(ObjectOutput out) throws IOException {
      super.writeExternal(out);
      out.writeObject(knnDistance);
    }
docs: Calls the super method and writes the knn distance of this entry to the
  specified stream.