Class FSArrayFile.ArrayFileIterator<V extends org.apache.hadoop.io.Writable>

  • Type Parameters:
    V -
    All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.util.Iterator<V>, Skipable
    Direct Known Subclasses:
    FSADocumentIndex.FSADocumentIndexIterator
    Enclosing class:
    FSArrayFile<V extends org.apache.hadoop.io.Writable>

    public static class FSArrayFile.ArrayFileIterator<V extends org.apache.hadoop.io.Writable>
    extends java.lang.Object
    implements java.util.Iterator<V>, java.io.Closeable, Skipable
    ArrayFileIterator class
    • Constructor Detail

      • ArrayFileIterator

        public ArrayFileIterator​(IndexOnDisk index,
                                 java.lang.String structureName)
                          throws java.io.IOException
        constructor
        Parameters:
        index -
        structureName -
        Throws:
        java.io.IOException
      • ArrayFileIterator

        public ArrayFileIterator​(java.lang.String filename,
                                 FixedSizeWriteableFactory<V> _valueFactory)
                          throws java.io.IOException
        constructor
        Parameters:
        filename -
        _valueFactory -
        Throws:
        java.io.IOException
    • Method Detail

      • skip

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

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

        public V next()
        Specified by:
        next in interface java.util.Iterator<V extends org.apache.hadoop.io.Writable>
      • remove

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

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable