/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/index/params/ |
H A D | FacetParamsMissingPropertyException.java | 29 public FacetParamsMissingPropertyException(String key) { argument 30 super("Property with key \"" + key + "\" not found");
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/ |
H A D | AttributeReflector.java | 27 * passing the class name of the {@link Attribute}, a key and the actual value. 30 * as attribute class, {@code "term"} as key and the actual value as a String. 32 public void reflect(Class<? extends Attribute> attClass, String key, Object value); argument
|
H A D | DoubleBarrelLRUCache.java | 31 * entry, it's promoted to primary (<b>NOTE</b>: the key is 47 /** Object providing clone(); the key class must subclass this. */ 67 public V get(K key) { argument 79 V result = primary.get(key); 82 result = secondary.get(key); 85 put((K) key.clone(), result); 91 public void put(K key, V value) { argument 101 primary.put(key, value);
|
H A D | MapOfSets.java | 49 * Adds val to the Set associated with key in the Map. If key is not 51 * @return the size of the Set associated with key once val is added to it. 53 public int put(K key, V val) { argument 55 if (theMap.containsKey(key)) { 56 theSet = theMap.get(key); 59 theMap.put(key, theSet); 65 * Adds multiple vals to the Set associated with key in the Map. 66 * If key is not 68 * @return the size of the Set associated with key onc 70 putAll(K key, Collection<? extends V> vals) argument [all...] |
H A D | WeakIdentityMap.java | 30 * Useful for caches that need to key off of a {@code ==} comparison 70 public boolean containsKey(Object key) { argument 72 return backingStore.containsKey(new IdentityWeakReference(key, null)); 75 public V get(Object key) { argument 77 return backingStore.get(new IdentityWeakReference(key, null)); 80 public V put(K key, V value) { argument 82 return backingStore.put(new IdentityWeakReference(key, queue), value); 89 public V remove(Object key) { argument 91 return backingStore.remove(new IdentityWeakReference(key, null)); 133 // we keep a hard reference to our NULL key, s [all...] |
/lucene-3.6.0/solr/solrj/src/test/org/apache/solr/common/util/ |
H A D | DOMUtilTest.java | 50 private void assertTypeAndValue( NamedList<Object> namedList, String key, Object value ) throws Exception { argument 51 Object v = namedList.get( key ); 53 assertEquals( key, v.getClass().getSimpleName() ); 55 namedList.remove( key );
|
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/lru/ |
H A D | NameHashIntCacheLRU.java | 25 * It uses as key, hash of the path instead of the path. 38 Object key(CategoryPath name) { method in class:NameHashIntCacheLRU 43 Object key(CategoryPath name, int prefixLen) { method in class:NameHashIntCacheLRU
|
H A D | NameIntCacheLRU.java | 62 Integer res = cache.get(key(name)); 76 Object key(CategoryPath name) { method in class:NameIntCacheLRU 84 Object key(CategoryPath name, int prefixLen) { method in class:NameIntCacheLRU 97 cache.put(key(name), val); 102 cache.put(key(name, prefixLen), val);
|
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/messages/ |
H A D | MessageImpl.java | 32 private String key; field in class:MessageImpl 36 public MessageImpl(String key) { argument 37 this.key = key; 41 public MessageImpl(String key, Object... args) { argument 42 this(key); 51 return this.key;
|
H A D | NLS.java | 57 public static String getLocalizedMessage(String key) { argument 58 return getLocalizedMessage(key, Locale.getDefault()); 61 public static String getLocalizedMessage(String key, Locale locale) { argument 62 Object message = getResourceBundleObject(key, locale); 64 return "Message with key:" + key + " and locale: " + locale 70 public static String getLocalizedMessage(String key, Locale locale, argument 72 String str = getLocalizedMessage(key, locale); 81 public static String getLocalizedMessage(String key, Object... args) { argument 82 return getLocalizedMessage(key, Local 172 validateMessage(String key, Class<? extends NLS> clazz) argument [all...] |
/lucene-3.6.0/solr/core/src/test/org/apache/solr/core/ |
H A D | TestJmxIntegration.java | 165 private ObjectName getObjectName(String key, SolrInfoMBean infoBean) argument 168 map.put("type", key);
|
/lucene-3.6.0/lucene/contrib/grouping/src/java/org/apache/lucene/search/grouping/ |
H A D | SentinelIntSet.java | 56 public int hash(int key) { argument 57 return key; 62 /** returns the slot for this key */ 63 public int getSlot(int key) { argument 64 assert key != emptyVal; 65 int h = hash(key); 67 if (keys[s] == key || keys[s]== emptyVal) return s; 72 } while (keys[s] != key && keys[s] != emptyVal); 76 /** returns the slot for this key, or -slot-1 if not found */ 77 public int find(int key) { argument 92 exists(int key) argument 96 put(int key) argument [all...] |
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/config/ |
H A D | AbstractQueryConfig.java | 31 * Each configuration is is a key->value pair. The key should be an unique 48 * Returns the value held by the given key. 52 * @param key the key, cannot be <code>null</code> 54 * @return the value held by the given key 57 public <T> T get(ConfigurationKey<T> key) { argument 59 if (key == null) { 60 throw new IllegalArgumentException("key cannot be null!"); 63 return (T) this.configMap.get(key); 79 get(ConfigurationKey<T> key, T defaultValue) argument 100 has(ConfigurationKey<T> key) argument 117 set(ConfigurationKey<T> key, T value) argument 157 unset(ConfigurationKey<T> key) argument [all...] |
/lucene-3.6.0/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/ |
H A D | DIHCache.java | 67 * Adds a document. If a document already exists with the same key, both 69 * update a key's documents, first call delete(Object key). 79 * in key, then insertion, order. 87 * match the given key in insertion order. 90 public Iterator<Map<String,Object>> iterator(Object key); argument 94 * Delete all documents associated with the given key 97 * @param key 99 public void delete(Object key); argument
|
H A D | DIHWriter.java | 71 * @param key 73 public void deleteDoc(Object key); argument
|
H A D | SortedMapBackedCache.java | 53 "The primary key must have exactly 1 element."); 85 public void delete(Object key) { argument 88 theMap.remove(key); 115 public Iterator<Map<String,Object>> iterator(Object key) { argument 117 List<Map<String,Object>> val = theMap.get(key);
|
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/ext/ |
H A D | Extensions.java | 26 * {@link ParserExtension} instances with extension keys. An extension key is a 30 * extension key from the field identifier. 32 * In addition to the key to extension mapping this class also defines the field 34 * extension to split the actual field name and extension key by calling 35 * {@link #splitExtensionField(String, String)}. To change the order or the key 70 * Adds a new {@link ParserExtension} instance associated with the given key. 72 * @param key 73 * the parser extension key 77 public void add(String key, ParserExtension extension) { argument 78 this.extensions.put(key, extensio 90 getExtension(String key) argument [all...] |
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/fst/ |
H A D | FSTCompletionLookup.java | 236 public List<LookupResult> lookup(CharSequence key, boolean higherWeightsFirst, int num) { argument 239 completions = higherWeightsCompletion.lookup(key, num); 241 completions = normalCompletion.lookup(key, num); 254 public Object get(CharSequence key) { argument 255 final int bucket = normalCompletion.getBucket(key);
|
H A D | FSTCompletion.java | 42 * A single completion for a given key. 48 Completion(BytesRef key, int bucket) { argument 49 this.utf8 = BytesRef.deepCopyOf(key); 168 // Get the UTF-8 bytes representation of the input key. 175 // Descend into the automaton using the key as prefix. 194 * Lookup suggestions to <code>key</code>. 196 * @param key 203 public List<Completion> lookup(CharSequence key, int num) { argument 204 if (key.length() == 0 || automaton == null) { 209 BytesRef keyUtf8 = new BytesRef(key); 231 lookupSortedAlphabetically(BytesRef key, int num) argument 253 lookupSortedByWeight(BytesRef key, int num, boolean collectAll) argument 304 checkExistingAndReorder(ArrayList<Completion> list, BytesRef key) argument 392 getBucket(CharSequence key) argument [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/stempel/src/java/org/egothor/stemmer/ |
H A D | MultiTrie.java | 102 * Return the element that is stored in a cell associated with the given key. 104 * @param key the key to the cell holding the desired element 108 public CharSequence getFully(CharSequence key) { argument 111 CharSequence r = tries.get(i).getFully(key); 122 * key. 124 * @param key the key associated with the desired element 128 public CharSequence getLastOnPath(CharSequence key) { argument 131 CharSequence r = tries.get(i).getLastOnPath(key); 166 add(CharSequence key, CharSequence cmd) argument [all...] |
H A D | MultiTrie2.java | 92 * Return the element that is stored in a cell associated with the given key. 94 * @param key the key to the cell holding the desired element 98 public CharSequence getFully(CharSequence key) { argument 101 CharSequence lastkey = key; 114 // key=key.substring(lengthPP(r)); 118 key = skip(key, lengthPP(p[i - 1])); 120 key 140 getLastOnPath(CharSequence key) argument 197 add(CharSequence key, CharSequence cmd) argument [all...] |
/lucene-3.6.0/solr/solrj/src/java/org/apache/noggit/ |
H A D | ObjectBuilder.java | 110 public void addKeyVal(Object map, Object key, Object val) throws IOException { argument 111 Object prev = ((Map)map).put(key,val); 125 Object key = getKey(); 128 addKeyVal(m, key, val);
|
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/ |
H A D | TotalFacetCountsCache.java | 93 // create the key 94 TFCKey key = new TFCKey(indexReader, taxonomy, facetIndexingParams); 97 TotalFacetCounts tfc = cache.get(key); 99 markRecentlyUsed(key); 102 return computeAndCache(key, clCache); 106 * Mark key as it as recently used. 124 * of the same 'key' in lruKeys, but this is handled by the loop in trimCache(), 125 * where an attempt to remove the same key twice is a no-op. 128 private void markRecentlyUsed(TFCKey key) { argument 129 lruKeys.remove(key); 152 computeAndCache(TFCKey key, CategoryListCache clCache) argument [all...] |
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/util/collections/ |
H A D | IntHashSet.java | 214 * @param key 217 * value which is being mapped using the given key 219 private void prvt_add(int key) { argument 221 int hashIndex = calcBaseHashIndex(key); 228 keys[objectIndex] = key; 242 * @param key 244 protected int calcBaseHashIndex(int key) { argument 245 return key & hashFactor; 274 * Checks if a given key exists in the map. 278 * @return true if the key exist 290 find(int key) argument 323 findForRemove(int key, int baseHashIndex) argument [all...] |
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/ |
H A D | Lookup.java | 40 public final CharSequence key; field in class:Lookup.LookupResult 43 public LookupResult(CharSequence key, long value) { argument 44 this.key = key; 50 return key + "/" + value; 55 return CHARSEQUENCE_COMPARATOR.compare(key, o.key); 135 * Look up a key and return possible completion for this key. 136 * @param key looku 142 lookup(CharSequence key, boolean onlyMorePopular, int num) argument [all...] |