Class JarFileContentsIndexCreator

    • Field Detail

      • FLD_CLASSNAMES

        public static final IndexerField FLD_CLASSNAMES
      • FLD_CLASSNAMES_KW

        public static final IndexerField FLD_CLASSNAMES_KW
        NexusAnalyzer makes exception with this field only, to keep backward compatibility with old consumers of nexus-indexer. This field is here for "backward" compat only! The order is important too! FLD_CLASSNAMES must be registered BEFORE FLD_CLASSNAMES_KW!
    • Constructor Detail

      • JarFileContentsIndexCreator

        public JarFileContentsIndexCreator()
    • Method Detail

      • populateArtifactInfo

        public void populateArtifactInfo​(ArtifactContext artifactContext)
                                  throws java.io.IOException
        Description copied from interface: IndexCreator
        Populate an ArtifactContext with information about corresponding artifact.
        Specified by:
        populateArtifactInfo in interface IndexCreator
        Throws:
        java.io.IOException
      • updateDocument

        public void updateDocument​(ArtifactInfo ai,
                                   org.apache.lucene.document.Document doc)
        Description copied from interface: IndexCreator
        Update Lucene Document from a given ArtifactInfo.
        Specified by:
        updateDocument in interface IndexCreator
      • updateArtifactInfo

        public boolean updateArtifactInfo​(org.apache.lucene.document.Document doc,
                                          ArtifactInfo artifactInfo)
        Description copied from interface: IndexCreator
        Update an ArtifactInfo from given Lucene Document.
        Specified by:
        updateArtifactInfo in interface IndexCreator
        Returns:
        true is artifact info has been updated
      • updateArtifactInfo

        private void updateArtifactInfo​(ArtifactInfo ai,
                                        java.io.File f)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • updateArtifactInfo

        private void updateArtifactInfo​(ArtifactInfo ai,
                                        java.io.File f,
                                        java.lang.String strippedPrefix)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getIndexerFields

        public java.util.Collection<IndexerField> getIndexerFields()
        Description copied from interface: IndexCreator
        Returns the indexer fields that this IndexCreator introduces to index.
        Specified by:
        getIndexerFields in interface IndexCreator
        Returns: