Class FSOMapFileLexiconOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class FSOMapFileLexiconOutputStream
    extends FSOMapFileLexiconOutputStreamGeneric<java.lang.String,​org.apache.hadoop.io.Text>
    A LexiconOutputStream for FSOMapFileLexicon. Writes to a FSOrderedMapFile.
    Since:
    3.0
    Author:
    Craig Macdonald
    • Constructor Detail

      • FSOMapFileLexiconOutputStream

        public FSOMapFileLexiconOutputStream​(IndexOnDisk _index,
                                             java.lang.String _structureName,
                                             java.lang.Class<? extends FixedSizeWriteableFactory<LexiconEntry>> valueFactoryClass)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • FSOMapFileLexiconOutputStream

        public FSOMapFileLexiconOutputStream​(IndexOnDisk _index,
                                             java.lang.String _structureName,
                                             FixedSizeWriteableFactory<org.apache.hadoop.io.Text> _keyFactory,
                                             java.lang.String valueFactoryClassName)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • FSOMapFileLexiconOutputStream

        public FSOMapFileLexiconOutputStream​(java.lang.String filename,
                                             FixedSizeWriteableFactory<org.apache.hadoop.io.Text> _keyFactory)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • FSOMapFileLexiconOutputStream

        public FSOMapFileLexiconOutputStream​(java.lang.String path,
                                             java.lang.String prefix,
                                             java.lang.String _structureName,
                                             FixedSizeWriteableFactory<org.apache.hadoop.io.Text> _keyFactory)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • close

        public void close()
        Description copied from class: LexiconOutputStream
        Closes the lexicon stream. IOException if an I/O error occurs while closing the stream.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class FSOMapFileLexiconOutputStreamGeneric<java.lang.String,​org.apache.hadoop.io.Text>
      • addLexiconToIndex

        public static void addLexiconToIndex​(IndexOnDisk index,
                                             java.lang.String structureName,
                                             java.lang.String leValueClassname)
        Adds Lexicon to index
        Parameters:
        index -
        structureName -
        leValueClassname -