Class FSOMapFileLexiconGeneric.MapFileLexiconIterator<T1,​T2 extends org.apache.hadoop.io.WritableComparable<?>>

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.util.Iterator<java.util.Map.Entry<java.lang.String,​LexiconEntry>>
    Direct Known Subclasses:
    FSOMapFileLexicon.MapFileLexiconIterator
    Enclosing class:
    FSOMapFileLexiconGeneric<K1,​K2 extends org.apache.hadoop.io.WritableComparable>

    public abstract static class FSOMapFileLexiconGeneric.MapFileLexiconIterator<T1,​T2 extends org.apache.hadoop.io.WritableComparable<?>>
    extends java.lang.Object
    implements java.util.Iterator<java.util.Map.Entry<java.lang.String,​LexiconEntry>>, java.io.Closeable
    An iterator over the lexicon
    • Field Detail

      • parent

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

      • MapFileLexiconIterator

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

        public MapFileLexiconIterator​(java.lang.String structureName,
                                      java.lang.String path,
                                      java.lang.String prefix,
                                      FixedSizeWriteableFactory<T2> 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
      • MapFileLexiconIterator

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

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

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<T1>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<T1>
      • 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