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.TreeMap<IK,IV>
-
- org.terrier.structures.collections.FSOrderedMapFile.MapFileInMemory<IK,IV>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<IK,IV>
,java.util.NavigableMap<IK,IV>
,java.util.SortedMap<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.TreeMap<IK,IV> implements java.util.Map<IK,IV>
MapFileInMemory class- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MapFileInMemory(java.io.DataInputStream dataInputStream, int length, FixedSizeWriteableFactory<IK> keyfactory, FixedSizeWriteableFactory<IV> valuefactory)
constructorMapFileInMemory(java.lang.String filename, FixedSizeWriteableFactory<IK> _keyFactory, FixedSizeWriteableFactory<IV> _valueFactory)
constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
-
Methods inherited from class java.util.TreeMap
ceilingEntry, ceilingKey, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, values
-
-
-
-
Constructor Detail
-
MapFileInMemory
public MapFileInMemory(java.lang.String filename, FixedSizeWriteableFactory<IK> _keyFactory, FixedSizeWriteableFactory<IV> _valueFactory) throws java.io.IOException
constructor- Parameters:
filename
-_keyFactory
-_valueFactory
-- Throws:
java.io.IOException
-
MapFileInMemory
public 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
-
-