Package org.terrier.structures
Class FSADocumentIndexInMemFields
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<V>
-
- org.terrier.structures.collections.FSArrayFile<V>
-
- org.terrier.structures.collections.FSArrayFileInMem<DocumentIndexEntry>
-
- org.terrier.structures.FSADocumentIndexInMem
-
- org.terrier.structures.FSADocumentIndexInMemFields
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Iterable<DocumentIndexEntry>
,java.util.Collection<DocumentIndexEntry>
,java.util.List<DocumentIndexEntry>
,DocumentIndex
,FieldDocumentIndex
public class FSADocumentIndexInMemFields extends FSADocumentIndexInMem implements FieldDocumentIndex
A version of FSADocumentIndexInMem for indices with fields.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.terrier.structures.collections.FSArrayFile
FSArrayFile.ArrayFileIterator<V extends org.apache.hadoop.io.Writable>, FSArrayFile.ArrayFileWriter
-
-
Field Summary
-
Fields inherited from class org.terrier.structures.FSADocumentIndexInMem
docLengths, lastDocid, lastEntry
-
Fields inherited from class org.terrier.structures.collections.FSArrayFile
dataFile, dataFilename, entrySize, numberOfEntries, USUAL_EXTENSION, valueFactory
-
-
Constructor Summary
Constructors Constructor Description FSADocumentIndexInMemFields(IndexOnDisk index, java.lang.String structureName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
getFieldLengths(int docid)
Get the length of each field-
Methods inherited from class org.terrier.structures.FSADocumentIndexInMem
getDocumentEntry, getDocumentLength, getNumberOfDocuments
-
Methods inherited from class org.terrier.structures.collections.FSArrayFileInMem
get
-
Methods inherited from class org.terrier.structures.collections.FSArrayFile
close, iterator, size, writeFSArrayFile
-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.terrier.structures.DocumentIndex
getDocumentEntry, getDocumentLength, getNumberOfDocuments
-
-
-
-
Constructor Detail
-
FSADocumentIndexInMemFields
public FSADocumentIndexInMemFields(IndexOnDisk index, java.lang.String structureName) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getFieldLengths
public int[] getFieldLengths(int docid)
Get the length of each field- Specified by:
getFieldLengths
in interfaceFieldDocumentIndex
-
-