Class FSOMapFileLexiconGeneric.MapFileLexiconEntryIterator<T extends org.apache.hadoop.io.WritableComparable<?>>

    • Field Detail

      • internalIterator

        protected java.util.Iterator<java.util.Map.Entry<T extends org.apache.hadoop.io.WritableComparable<?>,​LexiconEntry>> internalIterator
    • Constructor Detail

      • MapFileLexiconEntryIterator

        public MapFileLexiconEntryIterator​(java.lang.String structureName,
                                           IndexOnDisk index)
                                    throws java.io.IOException
        Construct an instance of the class with
        Parameters:
        structureName -
        index -
        Throws:
        java.io.IOException
      • MapFileLexiconEntryIterator

        public MapFileLexiconEntryIterator​(java.lang.String structureName,
                                           java.lang.String path,
                                           java.lang.String prefix,
                                           FixedSizeWriteableFactory<T> keyFactory,
                                           FixedSizeWriteableFactory<LexiconEntry> valueFactory)
                                    throws java.io.IOException
        Construct an instance of the class with
        Parameters:
        structureName -
        path -
        prefix -
        keyFactory -
        valueFactory -
        Throws:
        java.io.IOException
      • MapFileLexiconEntryIterator

        public MapFileLexiconEntryIterator​(java.lang.String filename,
                                           FixedSizeWriteableFactory<T> keyFactory,
                                           FixedSizeWriteableFactory<LexiconEntry> valueFactory)
                                    throws java.io.IOException
        Construct an instance of the class with
        Parameters:
        filename -
        keyFactory -
        valueFactory -
        Throws:
        java.io.IOException
      • MapFileLexiconEntryIterator

        public MapFileLexiconEntryIterator​(java.util.Iterator<java.util.Map.Entry<T,​LexiconEntry>> _internalIterator)
        Construct an instance of the class with
        Parameters:
        _internalIterator -
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<T extends org.apache.hadoop.io.WritableComparable<?>>
      • next

        public LexiconEntry next()
        Specified by:
        next in interface java.util.Iterator<T extends org.apache.hadoop.io.WritableComparable<?>>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<T extends org.apache.hadoop.io.WritableComparable<?>>
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • skip

        public void skip​(int numEntries)
                  throws java.io.IOException
        Specified by:
        skip in interface Skipable
        Throws:
        java.io.IOException