Interface InvertedIndex.DocumentMapper<DOCUMENT_TYPE,​KEY_TYPE>

  • Type Parameters:
    DOCUMENT_TYPE - the type of the documents to index.
    KEY_TYPE - the type of the key that will be returned (usually a smaller abstraction fragment of the document).
    All Known Implementing Classes:
    SparseVectorDocumentMapper
    Enclosing class:
    InvertedIndex<DOCUMENT_TYPE,​KEY_TYPE>

    public static interface InvertedIndex.DocumentMapper<DOCUMENT_TYPE,​KEY_TYPE>
    Mapper that maps a document to its keys.
    • Method Detail

      • mapDocument

        java.util.Set<KEY_TYPE> mapDocument​(DOCUMENT_TYPE doc)
        Maps the document into its smaller parts.
        Parameters:
        doc - the document to map.
        Returns:
        a set of keys that this document consists of.