Class FSOMapFileLexiconUtilities


  • public class FSOMapFileLexiconUtilities
    extends java.lang.Object
    • Field Detail

      • logger

        public static final org.slf4j.Logger logger
    • Constructor Detail

      • FSOMapFileLexiconUtilities

        public FSOMapFileLexiconUtilities()
    • Method Detail

      • optimise

        public static void optimise​(java.lang.String structureName,
                                    IndexOnDisk index,
                                    LexiconBuilder.CollectionStatisticsCounter statsCounter,
                                    int numEntries)
                             throws java.io.IOException
        optimise
        Parameters:
        structureName -
        index -
        statsCounter -
        numEntries -
        Throws:
        java.io.IOException
      • optimise

        public static void optimise​(java.lang.String structureName,
                                    IndexOnDisk index,
                                    LexiconBuilder.CollectionStatisticsCounter statsCounter)
                             throws java.io.IOException
        Does two things to a FSOMapFileLexicon: adds the termid lookup file (if required), and also creates the lexicon has file.
        Parameters:
        structureName - - name of the index structure that this FSOMapFileLexicon represents
        index - - the index that the index belongs
        Throws:
        java.io.IOException - if an IO problem occurs