Interface Document


public interface Document
A representation of a single document for clustering. The document must provide named fields to a clustering algorithm. The fields are only required once, so any content may be cleared after the visitor returns.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    An implementation of this method must present fieldConsumer with each field's name and its corresponding value.
  • Method Details

    • visitFields

      void visitFields(BiConsumer<String,String> fieldConsumer)
      An implementation of this method must present fieldConsumer with each field's name and its corresponding value. The same field can be presented more than once if it has multiple values.