org.terrier.structures.collections
Class FSOrderedMapFile.MapFileInMemory<IK extends org.apache.hadoop.io.Writable,IV extends org.apache.hadoop.io.Writable>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<IK,IV>
org.terrier.structures.collections.FSOrderedMapFile.MapFileInMemory<IK,IV>
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<IK,IV>
- Enclosing class:
- FSOrderedMapFile<K extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable>
public static class FSOrderedMapFile.MapFileInMemory<IK extends org.apache.hadoop.io.Writable,IV extends org.apache.hadoop.io.Writable>
- extends java.util.HashMap<IK,IV>
- implements java.util.Map<IK,IV>
MapFileInMemory class
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Method Summary |
void |
clear()
|
Methods inherited from class java.util.HashMap |
clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
FSOrderedMapFile.MapFileInMemory
public FSOrderedMapFile.MapFileInMemory(java.lang.String filename,
FixedSizeWriteableFactory<IK> _keyFactory,
FixedSizeWriteableFactory<IV> _valueFactory)
throws java.io.IOException
- constructor
- Parameters:
filename
- _keyFactory
- _valueFactory
-
- Throws:
java.io.IOException
FSOrderedMapFile.MapFileInMemory
public FSOrderedMapFile.MapFileInMemory(java.io.DataInputStream dataInputStream,
int length,
FixedSizeWriteableFactory<IK> keyfactory,
FixedSizeWriteableFactory<IV> valuefactory)
throws java.io.IOException
- constructor
- Parameters:
dataInputStream
- length
- keyfactory
- valuefactory
-
- Throws:
java.io.IOException
clear
public void clear()
- Specified by:
clear
in interface java.util.Map<IK extends org.apache.hadoop.io.Writable,IV extends org.apache.hadoop.io.Writable>
- Overrides:
clear
in class java.util.HashMap<IK extends org.apache.hadoop.io.Writable,IV extends org.apache.hadoop.io.Writable>
Terrier 3.5. Copyright © 2004-2011 University of Glasgow