|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList<V> org.terrier.structures.collections.FSArrayFile<V> org.terrier.structures.collections.FSArrayFileInMem<V>
V
- Type of Writablepublic class FSArrayFileInMem<V extends org.apache.hadoop.io.Writable>
Version of FSArrayFile that keeps the file contents in memory, and decodes the bytes into object as required.
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.collections.FSArrayFile |
---|
dataFile, dataFilename, entrySize, numberOfEntries, USUAL_EXTENSION, valueFactory |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
FSArrayFileInMem(java.lang.String filename,
boolean updateable,
FixedSizeWriteableFactory<V> factory)
constructor |
Method Summary | |
---|---|
V |
get(int entryNumber)
|
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 java.util.List |
---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Constructor Detail |
---|
public FSArrayFileInMem(java.lang.String filename, boolean updateable, FixedSizeWriteableFactory<V> factory) throws java.io.IOException
filename
- updateable
- factory
-
java.io.IOException
Method Detail |
---|
public V get(int entryNumber)
get
in interface java.util.List<V extends org.apache.hadoop.io.Writable>
get
in class FSArrayFile<V extends org.apache.hadoop.io.Writable>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |