Searched defs:values (Results 1 - 25 of 40) sorted by relevance

12

/lucene-3.6.0/lucene/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/
H A DFieldSettings.java89 Collection<FieldSetting> values() { method in class:FieldSettings
90 return fieldSettings.values();
/lucene-3.6.0/lucene/contrib/spellchecker/src/test/org/apache/lucene/search/suggest/
H A DAverage.java54 static Average from(List<Double> values) argument
59 for (double l : values)
65 double avg = sum / (double) values.size();
67 (sum / (double) values.size()),
68 Math.sqrt(sumSquares / (double) values.size() - avg * avg));
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/hyphenation/
H A DPatternConsumer.java51 * @param values interletter values expressed as a string of digit characters.
53 void addPattern(String pattern, String values); argument
/lucene-3.6.0/solr/core/src/java/org/apache/solr/internal/csv/
H A DCSVUtils.java42 * Converts an array of string values into a single CSV line. All
43 * <code>null</code> values are converted to the string <code>"null"</code>,
47 * @param values the value array
51 public static String printLine(String[] values, CSVStrategy strategy) { argument
56 // check for null values an "null" as strings and convert them
58 for (int i = 0; i < values.length; i++) {
59 if (values[i] == null) {
60 values[i] = "null";
61 } else if (values[i].equals("null")) {
62 values[
[all...]
H A DCSVPrinter.java25 * Print values as a comma separated list.
29 /** The place that the values get written. */
39 * Create a printer that will print values to the given
71 * Print a single line of comma separated values.
72 * The values will be quoted if needed. Quotes and
75 * @param values values to be outputted.
77 public void println(String[] values) throws IOException { argument
78 for (int i = 0; i < values.length; i++) {
79 print(values[
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/packed/
H A DDirect16.java27 * Direct wrapping of 16 bit values to a backing array of shorts.
33 private short[] values; field in class:Direct16
38 values = new short[valueCount];
43 short[] values = new short[valueCount];
45 values[i] = in.readShort();
56 this.values = values;
60 * Creates an array backed by the given values.
62 * Note: The values are used directly, so changes to the values wil
66 Direct16(short[] values) argument
[all...]
H A DDirect32.java27 * Direct wrapping of 32 bit values to a backing array of ints.
33 private int[] values; field in class:Direct32
38 values = new int[valueCount];
43 int[] values = new int[valueCount];
45 values[i] = in.readInt();
52 this.values = values;
56 * Creates an array backed by the given values.
58 * Note: The values are used directly, so changes to the given values wil
62 Direct32(int[] values) argument
[all...]
H A DDirect64.java27 * Direct wrapping of 32 bit values to a backing array of ints.
33 private long[] values; field in class:Direct64
38 values = new long[valueCount];
43 long[] values = new long[valueCount];
45 values[i] = in.readLong();
48 this.values = values;
52 * Creates an array backed by the given values.
54 * Note: The values are used directly, so changes to the given values wil
58 Direct64(long[] values) argument
[all...]
H A DDirect8.java27 * Direct wrapping of 8 bit values to a backing array of bytes.
33 private byte[] values; field in class:Direct8
38 values = new byte[valueCount];
44 byte[] values = new byte[valueCount];
46 values[i] = in.readByte();
57 this.values = values;
61 * Creates an array backed by the given values.
63 * Note: The values are used directly, so changes to the given values wil
67 Direct8(byte[] values) argument
[all...]
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/
H A DTestTermScorer.java37 protected String[] values = new String[] {"all", "dogs dogs", "like", field in class:TestTermScorer
48 for (int i = 0; i < values.length; i++) {
51 .add(newField(FIELD, values[i], Field.Store.YES,
79 // other values
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/
H A DTestTermScorer.java37 protected String[] values = new String[] {"all", "dogs dogs", "like", field in class:TestTermScorer
48 for (int i = 0; i < values.length; i++) {
51 .add(newField(FIELD, values[i], Field.Store.YES,
79 // other values
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/function/
H A DValueSourceScorer.java31 protected final DocValues values; field in class:ValueSourceScorer
34 protected ValueSourceScorer(IndexReader reader, DocValues values) { argument
38 this.values = values;
99 return values.floatVal(doc);
103 return values.explain(doc);
/lucene-3.6.0/lucene/contrib/highlighter/src/java/org/apache/lucene/search/vectorhighlight/
H A DBaseFragmentsBuilder.java109 Field[] values = getFields( reader, docId, fieldName );
110 if( values.length == 0 ) return null;
115 fragments.add( makeFragment( buffer, nextValueIndex, values, fragInfo, preTags, postTags, encoder ) );
133 protected String makeFragment( StringBuilder buffer, int[] index, String[] values, WeightedFragInfo fragInfo ){ argument
135 return makeFragment( fragInfo, getFragmentSource( buffer, index, values, s, fragInfo.endOffset ), s,
157 protected String makeFragment( StringBuilder buffer, int[] index, Field[] values, WeightedFragInfo fragInfo, argument
162 String src = getFragmentSourceMSO( buffer, index, values, s, fragInfo.getEndOffset(), modifiedStartOffset );
178 protected String getFragmentSourceMSO( StringBuilder buffer, int[] index, Field[] values, argument
180 while( buffer.length() < endOffset && index[0] < values.length ){
181 buffer.append( values[inde
197 getFragmentSource( StringBuilder buffer, int[] index, String[] values, int startOffset, int endOffset ) argument
208 getFragmentSource( StringBuilder buffer, int[] index, Field[] values, int startOffset, int endOffset ) argument
[all...]
/lucene-3.6.0/lucene/contrib/join/src/test/org/apache/lucene/search/
H A DTestBlockJoin.java309 final String[] values = fields[fieldID] = new String[valueCount];
311 values[i] = _TestUtil.randomRealisticUnicodeString(random);
312 //values[i] = _TestUtil.randomSimpleString(random);
319 private Term randomParentTerm(String[] values) { argument
320 return new Term("parent0", values[random.nextInt(values.length)]);
323 private Term randomChildTerm(String[] values) { argument
324 return new Term("child0", values[random.nextInt(values.length)]);
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/
H A DPathQueryNode.java35 * List values = ArrayList();
36 * values.add(new PathQueryNode.QueryText("company", 1, 7));
37 * values.add(new PathQueryNode.QueryText("USA", 9, 12));
38 * values.add(new PathQueryNode.QueryText("California", 14, 23));
39 * QueryNode q = new PathQueryNode(values);
109 private List<QueryText> values = null; field in class:PathQueryNode
116 this.values = pathElements;
130 return values;
137 this.values = elements;
146 return values
[all...]
/lucene-3.6.0/lucene/contrib/spatial/src/java/org/apache/lucene/spatial/tier/
H A DDistanceFieldComparatorSource.java63 private double[] values; field in class:DistanceFieldComparatorSource.DistanceScoreDocLookupComparator
68 values = new double[numHits];
74 double a = values[slot1];
75 double b = values[slot2];
102 values[slot] = distanceFilter.getDistance(doc + offset);
107 this.bottom = values[slot];
121 return values[slot];
/lucene-3.6.0/solr/core/src/java/org/apache/solr/response/
H A DSolrQueryResponse.java63 * Container for user defined values
69 protected NamedList values = new SimpleOrderedMap(); field in class:SolrQueryResponse
100 public NamedList getValues() { return values; }
107 values=nameValuePairs;
130 * Appends a named value to the list of named values to be returned.
136 values.add(name,val);
193 SimpleOrderedMap<Object> header = (SimpleOrderedMap<Object>) values.get("responseHeader");
/lucene-3.6.0/solr/core/src/test/org/apache/solr/search/function/
H A DTestFunctionQuery.java65 void createIndex(String field, float... values) { argument
67 for (float val : values) {
212 // make sure the values were cached
240 // make random values
264 answers[j*2+1] = 1; // the default values
360 // test ability to parse multiple values
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/common/
H A DSolrDocument.java123 // Add the values to the collection
141 // Get the field values
158 * Get the value or collection of values for a given field.
165 * Get a collection of values for a given field name
220 public Collection<Collection<Object>> values() {throw new UnsupportedOperationException();}
249 public Collection<Object> values() {throw new UnsupportedOperationException();}
301 public Collection<Object> values() { method in class:SolrDocument
302 return _fields.values();
H A DSolrInputDocument.java29 * a Lucene Document. Like the SolrDocument, the field values should
87 /** Get all the values for a field.
159 // Get the field values
168 return _fields.values().iterator();
230 public Collection<SolrInputField> values() { method in class:SolrInputDocument
231 return _fields.values();
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/util/collections/
H A DArrayHashMap.java30 * The pre allocated arrays (for keys, values) are at length of capacity + 1,
116 /** Implements an Iterator, used for iteration over the map's values. */
128 return (V) values[iterator.next()];
177 /** Holds the values. */
178 Object[] values; field in class:ArrayHashMap
202 values = new Object[arrayLength];
234 values[objectIndex] = value;
345 return (V) values[find(key)];
361 newmap.prvt_put((K) keys[index], (V) values[index]);
368 values
[all...]
H A DFloatToObjectMap.java32 * The pre allocated arrays (for keys, values) are at length of capacity + 1,
126 * map's values.
139 return (T) values[iterator.next()];
196 * This array holds the values
198 Object[] values; field in class:FloatToObjectMap
226 this.values = new Object[arrayLength];
265 values[objectIndex] = e;
410 return (T) values[find(key)];
427 that.prvt_put(this.keys[index], (T) this.values[index]);
434 this.values
[all...]
H A DIntToDoubleMap.java29 * The pre allocated arrays (for keys, values) are at length of capacity + 1,
125 * map's values.
137 return values[iterator.next()];
194 * This array holds the values
196 double[] values; field in class:IntToDoubleMap
224 this.values = new double[arrayLength];
233 this.values[0] = GROUND;
265 values[objectIndex] = v;
410 return values[find(key)];
426 that.prvt_put(this.keys[index], this.values[inde
[all...]
H A DIntToIntMap.java29 * The pre allocated arrays (for keys, values) are at length of capacity + 1,
123 * Implements an IntIterator used for iteration over the map's values.
135 return values[iterator.next()];
192 * This array holds the values
194 int[] values; field in class:IntToIntMap
222 this.values = new int[arrayLength];
226 this.values[0] = GROUD;
263 values[objectIndex] = e;
407 return values[find(key)];
423 that.prvt_put(this.keys[index], this.values[inde
[all...]
H A DIntToObjectMap.java31 * The pre allocated arrays (for keys, values) are at length of capacity + 1,
125 * map's values.
138 return (T) values[iterator.next()];
195 * This array holds the values
197 Object[] values; field in class:IntToObjectMap
225 this.values = new Object[arrayLength];
264 values[objectIndex] = e;
410 return (T) values[find(key)];
427 that.prvt_put(this.keys[index], (T) this.values[index]);
434 this.values
[all...]

Completed in 3212 milliseconds

12