org.apache.lucene.analysis.util

Class CharArrayMap<V>

  • All Implemented Interfaces:
    Map<Object,V>

    Deprecated. 
    This class moved to Lucene-Core module: CharArrayMap

    @Deprecated
    public class CharArrayMap<V>
    extends CharArrayMap<V>
    A simple class that stores key Strings as char[]'s in a hash table. Note that this is not a general purpose class. For example, it cannot remove items from the map, nor does it resize its hash table to be smaller, etc. It is designed to be quick to retrieve items by char[] keys without the necessity of converting to a String first.
    • Constructor Detail

      • CharArrayMap

        public CharArrayMap(int startSize,
                            boolean ignoreCase)
        Deprecated. 
        Create map with enough capacity to hold startSize terms
        Parameters:
        startSize - the initial capacity
        ignoreCase - false if and only if the set should be case sensitive otherwise true.
      • CharArrayMap

        public CharArrayMap(Map<?,? extends V> c,
                            boolean ignoreCase)
        Deprecated. 
        Creates a map from the mappings in another map.
        Parameters:
        c - a map whose mappings to be copied
        ignoreCase - false if and only if the set should be case sensitive otherwise true.