Class FSOrderedMapFile.MapFileInMemory<IK extends org.apache.hadoop.io.Writable,​IV extends org.apache.hadoop.io.Writable>

  • 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • 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
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode, isEmpty, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
    • 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
    • Method Detail

      • 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.TreeMap<IK extends org.apache.hadoop.io.Writable,​IV extends org.apache.hadoop.io.Writable>