org.terrier.structures
Class FSOMapFileLexicon.MapFileLexiconIterator

java.lang.Object
  extended by org.terrier.structures.FSOMapFileLexicon.MapFileLexiconIterator
All Implemented Interfaces:
java.io.Closeable, java.util.Iterator<java.util.Map.Entry<java.lang.String,LexiconEntry>>
Enclosing class:
FSOMapFileLexicon

public static class FSOMapFileLexicon.MapFileLexiconIterator
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 Summary
protected  java.util.Iterator<java.util.Map.Entry<org.apache.hadoop.io.Text,LexiconEntry>> parent
           
 
Constructor Summary
FSOMapFileLexicon.MapFileLexiconIterator(java.util.Iterator<java.util.Map.Entry<org.apache.hadoop.io.Text,LexiconEntry>> _parent)
          Construct an instance of the class with
FSOMapFileLexicon.MapFileLexiconIterator(java.lang.String filename, FixedSizeWriteableFactory<org.apache.hadoop.io.Text> keyFactory, FixedSizeWriteableFactory<LexiconEntry> valueFactory)
          Construct an instance of the class with
FSOMapFileLexicon.MapFileLexiconIterator(java.lang.String structureName, Index index)
          Construct an instance of the class with
FSOMapFileLexicon.MapFileLexiconIterator(java.lang.String structureName, java.lang.String path, java.lang.String prefix, FixedSizeWriteableFactory<org.apache.hadoop.io.Text> keyFactory, FixedSizeWriteableFactory<LexiconEntry> valueFactory)
          Construct an instance of the class with
 
Method Summary
 void close()
          
 boolean hasNext()
          
 java.util.Map.Entry<java.lang.String,LexiconEntry> next()
          
 void remove()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected java.util.Iterator<java.util.Map.Entry<org.apache.hadoop.io.Text,LexiconEntry>> parent
Constructor Detail

FSOMapFileLexicon.MapFileLexiconIterator

public FSOMapFileLexicon.MapFileLexiconIterator(java.lang.String structureName,
                                                Index index)
                                         throws java.io.IOException
Construct an instance of the class with

Parameters:
structureName -
index -
Throws:
java.io.IOException

FSOMapFileLexicon.MapFileLexiconIterator

public FSOMapFileLexicon.MapFileLexiconIterator(java.lang.String structureName,
                                                java.lang.String path,
                                                java.lang.String prefix,
                                                FixedSizeWriteableFactory<org.apache.hadoop.io.Text> 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

FSOMapFileLexicon.MapFileLexiconIterator

public FSOMapFileLexicon.MapFileLexiconIterator(java.lang.String filename,
                                                FixedSizeWriteableFactory<org.apache.hadoop.io.Text> keyFactory,
                                                FixedSizeWriteableFactory<LexiconEntry> valueFactory)
                                         throws java.io.IOException
Construct an instance of the class with

Parameters:
filename -
keyFactory -
valueFactory -
Throws:
java.io.IOException

FSOMapFileLexicon.MapFileLexiconIterator

public FSOMapFileLexicon.MapFileLexiconIterator(java.util.Iterator<java.util.Map.Entry<org.apache.hadoop.io.Text,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<java.util.Map.Entry<java.lang.String,LexiconEntry>>

next

public java.util.Map.Entry<java.lang.String,LexiconEntry> next()

Specified by:
next in interface java.util.Iterator<java.util.Map.Entry<java.lang.String,LexiconEntry>>

remove

public void remove()

Specified by:
remove in interface java.util.Iterator<java.util.Map.Entry<java.lang.String,LexiconEntry>>

close

public void close()
           throws java.io.IOException

Specified by:
close in interface java.io.Closeable
Throws:
java.io.IOException


Terrier 3.5. Copyright © 2004-2011 University of Glasgow