Searched refs:name (Results 1 - 25 of 438) sorted by relevance

1234567891011>>

/lucene-3.6.0/solr/core/src/java/org/apache/solr/internal/csv/writer/
H A DCSVField.java29 private String name; field in class:CSVField
41 * @param name the name of the field
43 public CSVField(String name) { argument
44 setName(name);
48 * @param name the name of the field
51 public CSVField(String name, int size) { argument
52 setName(name);
57 * @return the name o
67 setName(String name) argument
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/
H A DParameter.java36 private String name; field in class:Parameter
38 protected Parameter(String name) { argument
40 this.name = name;
41 String key = makeKey(name);
44 throw new IllegalArgumentException("Parameter name " + key + " already used!");
49 private String makeKey(String name){ argument
50 return getClass() + " " + name;
55 return name;
66 Object par = allParameters.get(makeKey(name));
[all...]
/lucene-3.6.0/solr/client/ruby/flare/vendor/plugins/engines/lib/engines/
H A Ddeprecated_config_support.rb39 def default_constant(name, value)
40 if !(name.is_a?(String) or name.is_a?(Symbol))
41 raise "Cannot use a #{name.class.name} ['#{name}'] object as a constant name"
43 if !self.const_defined?(name)
44 self.class_eval("#{name} = #{value.inspect}")
116 def _handle_config(name, valu
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/store/
H A DFileSwitchDirectory.java118 public static String getExtension(String name) { argument
119 int i = name.lastIndexOf('.');
123 return name.substring(i+1, name.length());
126 private Directory getDirectory(String name) { argument
127 String ext = getExtension(name);
136 public boolean fileExists(String name) throws IOException { argument
137 return getDirectory(name).fileExists(name);
141 public long fileModified(String name) throw argument
149 touchFile(String name) argument
154 deleteFile(String name) argument
159 fileLength(String name) argument
164 createOutput(String name) argument
170 sync(String name) argument
190 openInput(String name) argument
[all...]
H A DNRTCachingDirectory.java120 public Lock makeLock(String name) { argument
121 return delegate.makeLock(name);
125 public void clearLock(String name) throws IOException { argument
126 delegate.clearLock(name);
168 public synchronized boolean fileExists(String name) throws IOException { argument
169 return cache.fileExists(name) || delegate.fileExists(name);
173 public synchronized long fileModified(String name) throws IOException { argument
174 if (cache.fileExists(name)) {
175 return cache.fileModified(name);
185 touchFile(String name) argument
194 deleteFile(String name) argument
207 fileLength(String name) argument
220 createOutput(String name) argument
256 openInput(String name) argument
271 openInput(String name, int bufferSize) argument
313 doCacheWrite(String name) argument
[all...]
H A DDirectory.java61 /** Returns true iff a file with the given name exists. */
62 public abstract boolean fileExists(String name) argument
68 public abstract long fileModified(String name) argument
76 public abstract void touchFile(String name) argument
80 public abstract void deleteFile(String name) argument
91 * @param name the name of the file for which to return the length.
96 public abstract long fileLength(String name) throws IOException; argument
99 /** Creates a new, empty file in the directory with the given name.
101 public abstract IndexOutput createOutput(String name) argument
114 sync(String name) argument
134 openInput(String name) argument
144 openInput(String name, int bufferSize) argument
151 makeLock(String name) argument
160 clearLock(String name) argument
[all...]
H A DRAMDirectory.java121 for (String name : fileNames) names.add(name);
127 public final boolean fileExists(String name) { argument
129 return fileMap.containsKey(name);
136 public final long fileModified(String name) throws IOException { argument
138 RAMFile file = fileMap.get(name);
140 throw new FileNotFoundException(name);
151 public void touchFile(String name) throws IOException { argument
153 RAMFile file = fileMap.get(name);
155 throw new FileNotFoundException(name);
175 fileLength(String name) argument
197 deleteFile(String name) argument
210 createOutput(String name) argument
233 openInput(String name) argument
[all...]
/lucene-3.6.0/solr/client/ruby/flare/vendor/plugins/engines/lib/engines/rails_extensions/
H A Dactive_record.rb6 # in the prefix/suffix, so any table name set via ActiveRecord::Base#set_table_name,
11 # This method is useful for determining the actual name (including prefix and
14 def wrapped_table_name(name)
15 table_name_prefix + name + table_name_suffix
H A Drouting.rb67 def from_plugin(name)
70 path = Engines.find_plugin_path(name)
71 routes_path = File.join(path, name.to_s, "routes.rb")
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/lru/
H A DNameHashIntCacheLRU.java23 * An an LRU cache of mapping from name to int.
38 Object key(CategoryPath name) { argument
39 return new Long(name.longHashCode());
43 Object key(CategoryPath name, int prefixLen) { argument
44 return new Long(name.longHashCode(prefixLen));
/lucene-3.6.0/solr/contrib/clustering/src/java/org/apache/solr/handler/clustering/
H A DClusteringEngine.java27 private String name; field in class:ClusteringEngine
28 public static final String ENGINE_NAME = "name";
32 name = (String) config.get(ENGINE_NAME);
34 return name;
38 return name;
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/document/
H A DDocument.java27 * A Document is a set of fields. Each field has a name and a textual value.
80 * the same name. In this case, if the fields are indexed, their text is
93 * <p>Removes field with the specified name from the document.
94 * If multiple fields exist with this name, this method removes the first field that has been added.
95 * If there is no field with the specified name, the document remains unchanged.</p>
102 public final void removeField(String name) { argument
106 if (field.name().equals(name)) {
114 * <p>Removes all fields with the given name from the document.
115 * If there is no field with the specified name, th
122 removeFields(String name) argument
142 getField(String name) argument
151 getFieldable(String name) argument
166 get(String name) argument
200 getFields(String name) argument
225 getFieldables(String name) argument
251 getValues(String name) argument
275 getBinaryValues(String name) argument
297 getBinaryValue(String name) argument
[all...]
H A DField.java30 A field is a section of a Document. Each field has two parts, a name and a
340 * Create a field by specifying its name, value and how it will
343 * @param name The name of the field
348 * @throws NullPointerException if name or value is <code>null</code>
351 public Field(String name, String value, Store store, Index index) { argument
352 this(name, value, store, index, TermVector.NO);
356 * Create a field by specifying its name, value and how it will
359 * @param name The name o
372 Field(String name, String value, Store store, Index index, TermVector termVector) argument
394 Field(String name, boolean internName, String value, Store store, Index index, TermVector termVector) argument
438 Field(String name, Reader reader) argument
453 Field(String name, Reader reader, TermVector termVector) argument
483 Field(String name, TokenStream tokenStream) argument
499 Field(String name, TokenStream tokenStream, TermVector termVector) argument
530 Field(String name, byte[] value, Store store) argument
544 Field(String name, byte[] value) argument
560 Field(String name, byte[] value, int offset, int length, Store store) argument
576 Field(String name, byte[] value, int offset, int length) argument
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/analysis/
H A DBaseCharFilterFactory.java46 protected int getInt(String name) { argument
47 return getInt(name,-1,false);
50 protected int getInt(String name, int defaultVal) { argument
51 return getInt(name,defaultVal,true);
54 protected int getInt(String name, int defaultVal, boolean useDefault) { argument
55 String s = args.get(name);
58 throw new RuntimeException("Configuration Error: missing parameter '" + name + "'");
/lucene-3.6.0/solr/core/src/java/org/apache/solr/response/
H A DTextResponseWriter.java97 public abstract void writeNamedList(String name, NamedList val) throws IOException; argument
99 public void writeVal(String name, Object val) throws IOException { argument
106 writeNull(name);
108 writeStr(name, val.toString(), true);
111 writeInt(name, val.toString());
113 writeBool(name, val.toString());
115 writeLong(name, val.toString());
117 writeDate(name,(Date)val);
121 writeFloat(name, ((Float)val).floatValue());
123 writeDouble(name, ((Doubl
158 writeDoc(String name, Document doc, Set<String> returnFields, float score, boolean includeScore) argument
163 writeSolrDocument(String name, SolrDocument doc, Set<String> returnFields, Map pseudoFields) argument
165 writeDocList(String name, DocList ids, Set<String> fields, Map otherFields) argument
170 writeSolrDocumentList(String name, SolrDocumentList docs, Set<String> fields, Map otherFields) argument
172 writeStr(String name, String val, boolean needsEscaping) argument
174 writeMap(String name, Map val, boolean excludeOuter, boolean isFirstVal) argument
176 writeArray(String name, Object[] val) argument
178 writeArray(String name, Iterator val) argument
180 writeNull(String name) argument
183 writeInt(String name, String val) argument
185 writeInt(String name, int val) argument
190 writeLong(String name, String val) argument
192 writeLong(String name, long val) argument
197 writeBool(String name, String val) argument
199 writeBool(String name, boolean val) argument
204 writeFloat(String name, String val) argument
206 writeFloat(String name, float val) argument
218 writeDouble(String name, String val) argument
220 writeDouble(String name, double val) argument
231 writeDate(String name, Date val) argument
236 writeDate(String name, String val) argument
238 writeShort(String name, String val) argument
240 writeShort(String name, short val) argument
244 writeByte(String name, String s) argument
246 writeByte(String name, byte val) argument
[all...]
/lucene-3.6.0/solr/client/ruby/flare/vendor/plugins/engines/generators/plugin_migration/
H A Dplugin_migration_generator.rb43 plugin_names.map do |name|
44 Rails.plugins[name] ? Rails.plugins[name] : raise("Cannot find the plugin '#{name}'")
53 @current_versions[plugin.name] = Engines::PluginMigrator.current_version(plugin)
59 @new_versions[plugin.name] = plugin.latest_migration
63 @plugins_to_migrate.map { |p| p.name }.each do |name|
64 @plugins_to_migrate.delete(Rails.plugins[name]) if @current_versions[name]
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/core/
H A DCoreDescriptor.java29 protected String name; field in class:CoreDescriptor
38 public CoreDescriptor(CoreContainer coreContainer, String name, String instanceDir) { argument
40 this.name = name;
41 if (name == null) {
42 throw new RuntimeException("Core needs a name");
57 this.name = descr.name;
64 implicitProperties.setProperty("solr.core.name", name);
122 setConfigName(String name) argument
134 setSchemaName(String name) argument
[all...]
/lucene-3.6.0/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/
H A DVariableResolver.java39 * Resolves a given value with a name
41 * @param name the String to be resolved
42 * @return an Object which is the result of evaluation of given name
44 public abstract Object resolve(String name); argument
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/util/
H A DTestRamUsageEstimator.java40 String name = "name"; field in class:TestRamUsageEstimator.Holder
46 Holder(String name, long field1) { argument
47 this.name = name;
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/snowball/
H A DSnowballAnalyzer.java33 * Available stemmers are listed in org.tartarus.snowball.ext. The name of a
34 * stemmer is the part of the class name before "Stemmer", e.g., the stemmer in
48 private String name; field in class:SnowballAnalyzer
53 public SnowballAnalyzer(Version matchVersion, String name) { argument
54 this.name = name;
63 public SnowballAnalyzer(Version matchVersion, String name, String[] stopWords) { argument
64 this(matchVersion, name);
69 public SnowballAnalyzer(Version matchVersion, String name, Set<?> stopWords) { argument
70 this(matchVersion, name);
[all...]
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/store/
H A DMockDirectoryWrapper.java141 public void sync(String name) throws IOException { argument
146 unSyncedFiles.remove(name);
147 delegate.sync(name);
215 String name = it.next();
220 deleteFile(name, true);
224 long length = fileLength(name);
227 IndexOutput out = delegate.createOutput(name);
248 IndexInput in = delegate.openInput(name);
254 deleteFile(name, true);
256 final IndexOutput out = delegate.createOutput(name);
351 deleteFile(String name) argument
358 fillOpenTrace(IOException ioe, String name, boolean input) argument
377 deleteFile(String name, boolean forced) argument
409 createOutput(String name) argument
463 addFileHandle(Closeable c, String name, boolean input) argument
482 openInput(String name) argument
612 removeOpenFile(Closeable c, String name) argument
628 removeIndexOutput(IndexOutput out, String name) argument
633 removeIndexInput(IndexInput in, String name) argument
713 fileExists(String name) argument
719 fileModified(String name) argument
728 touchFile(String name) argument
734 fileLength(String name) argument
740 makeLock(String name) argument
746 clearLock(String name) argument
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DIndexFileNameFilter.java50 public boolean accept(File dir, String name) { argument
51 int i = name.lastIndexOf('.');
53 String extension = name.substring(1+i);
64 if (name.equals(IndexFileNames.DELETABLE)) return true;
65 else if (name.startsWith(IndexFileNames.SEGMENTS)) return true;
76 public boolean isCFSFile(String name) { argument
77 int i = name.lastIndexOf('.');
79 String extension = name.substring(1+i);
/lucene-3.6.0/solr/client/ruby/solr-ruby/lib/solr/
H A Ddocument.rb39 fields.each_pair do |name,value|
41 value.each {|v| @fields << Solr::Field.new(name => v)}
43 @fields << Solr::Field.new(name => value)
54 # doc['name']
55 def [](name)
56 field = @fields.find {|f| f.name == name.to_s}
62 def []=(name,value)
63 @fields << Solr::Field.new(name => value)
/lucene-3.6.0/solr/client/ruby/solr-ruby/test/unit/
H A Dmodify_document_test.rb19 request = Solr::Request::ModifyDocument.new(:id => 10, :overwrite => {:name => ['val1', 'val2'], :copyfield => nil})
22 assert_match /name\:OVERWRITE/, request.handler
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/
H A DSetPropTask.java28 * <br>Takes mandatory param: "name,value" pair.
37 private String name; field in class:SetPropTask
42 if (name==null || value==null) {
43 throw new Exception(getName()+" - undefined name or value: name="+name+" value="+value);
45 getRunData().getConfig().set(name,value);
50 * Set the params (property name and value).
51 * @param params property name and value separated by ','.
57 name
[all...]

Completed in 4451 milliseconds

1234567891011>>