Searched refs:number (Results 1 - 25 of 34) sorted by relevance

12

/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/util/
H A DVint8.java26 * Variable-length encoding of 32-bit integers, into 8-bit bytes. A number is encoded as follows:
28 * <li>If it is less than 127 and non-negative (i.e., if the number uses only 7 bits), it is encoded as
49 * positive numbers or any negative number.
61 * is initially set by the caller, and returned after decoding, incremented by the number
85 * Returns the number of bytes needed to encode {@code number}.
86 * @param number The number whose encoded length is needed.
87 * @return The number of bytes needed to encode {@code number}
89 bytesNeeded(int number) argument
114 encode(int number, OutputStream out) argument
147 encode(int number, byte[] dest, int start) argument
[all...]
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/
H A DNumericQueryNodeProcessor.java88 Number number;
91 number = numberFormat.parse(fieldNode.getTextAsString());
102 number = number.longValue();
105 number = number.intValue();
108 number = number.doubleValue();
111 number = number
[all...]
/lucene-3.6.0/solr/solrj/src/java/org/apache/noggit/
H A DTextWriter.java37 public abstract void write(long number); argument
39 public abstract void write(double number); argument
H A DJSONWriter.java69 public void write(long number) { argument
70 JSONUtil.writeNumber(number,out);
73 public void write(double number) { argument
74 JSONUtil.writeNumber(number,out);
H A DJSONUtil.java46 public static void writeNumber(long number, CharArr out) { argument
47 out.write(Long.toString(number));
50 public static void writeNumber(double number, CharArr out) { argument
51 out.write(Double.toString(number));
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/
H A DNumberDateFormat.java48 public StringBuffer format(double number, StringBuffer toAppendTo, argument
50 return dateFormat.format(new Date((long) number), toAppendTo, pos);
54 public StringBuffer format(long number, StringBuffer toAppendTo, argument
56 return dateFormat.format(new Date(number), toAppendTo, pos);
66 public StringBuffer format(Object number, StringBuffer toAppendTo, argument
68 return dateFormat.format(number, toAppendTo, pos);
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/
H A DNumericRangeQueryNode.java55 private static NumericField.DataType getNumericDataType(Number number) throws QueryNodeException { argument
57 if (number instanceof Long) {
59 } else if (number instanceof Integer) {
61 } else if (number instanceof Double) {
63 } else if (number instanceof Float) {
69 number.getClass()));
/lucene-3.6.0/solr/core/src/test/org/apache/solr/schema/
H A DNumericFieldsTest.java34 public static SolrInputDocument getDoc(String id, Integer number, String date) { argument
43 doc.addField(t, number);
44 doc.addField(t + "_last", number);
45 doc.addField(t + "_first", number);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DFieldInfo.java29 public final int number; field in class:FieldInfo
58 number = nu;
75 return new FieldInfo(name, isIndexed, number, storeTermVector,
H A DSegmentNorms.java52 private int number; field in class:SegmentNorms
59 public SegmentNorms(IndexInput in, int number, long normSeek, SegmentReader owner) { argument
61 this.number = number;
243 si.advanceNormGen(this.number);
244 final String normFileName = si.getNormFileName(this.number);
H A DTermVectorsReader.java212 * @return The number of documents in the reader
235 int number = 0;
239 number = tvd.readVInt();
241 number += tvd.readVInt();
243 if (number == fieldNumber)
273 * @param docNum The document number to retrieve the vector for
289 int number = 0;
294 number = tvd.readVInt();
296 number += tvd.readVInt();
298 fields[i] = fieldInfos.fieldName(number);
[all...]
H A DFormatPostingsDocsWriter.java123 parent.termsOut.add(fieldInfo.number,
H A DSegmentInfo.java49 public int docCount; // number of docs in seg
491 * @param number field index
493 public String getNormFileName(int number) throws IOException { argument
498 gen = normGen[number];
501 if (hasSeparateNorms(number)) {
503 return IndexFileNames.fileNameFromGeneration(name, "s" + number, gen);
512 return IndexFileNames.fileNameFromGeneration(name, "f" + number, WITHOUT_GEN);
/lucene-3.6.0/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/standard/
H A DTestNumericQueryParser.java236 Number number = RANDOM_NUMBER_MAP.get(fieldName);
240 number = -number.longValue();
243 number = -number.doubleValue();
246 number = -number.floatValue();
249 number = -number.intValue();
256 return number;
484 numberToString(Number number) argument
489 normalizeNumber(Number number) argument
[all...]
/lucene-3.6.0/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/
H A DThreadedEntityProcessorWrapper.java45 final private int number; field in class:ThreadedEntityProcessorWrapper
56 this.number = num;
76 return number;
H A DFileListEntityProcessor.java188 Number number = (Number) o;
189 return number.longValue();
/lucene-3.6.0/solr/core/src/test/org/apache/solr/util/
H A DTestUtils.java124 double number = 1.234;
125 String sortable = NumberUtils.double2sortableStr( number );
126 assertEquals( number, NumberUtils.SortableStr2double(sortable), 0.001);
/lucene-3.6.0/lucene/contrib/facet/src/test/org/apache/lucene/facet/
H A DFacetTestUtils.java58 public static Directory[][] createIndexTaxonomyDirs(int number) throws IOException { argument
59 Directory[][] dirs = new Directory[number][2];
60 for (int i = 0; i < number; i++) {
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/standard/
H A DStandardTokenizerImpl.java32 * <li>&lt;NUM&gt;: A number</li>
691 /** number of newlines encountered up to the start of the matched text */
694 /** the number of characters up to the start of the matched text */
698 * the number of characters from the last newline up to the start of the
965 * @param number the number of characters to be read again.
966 * This number must not be greater than yylength()!
968 public void yypushback(int number) { argument
969 if ( number > yylength() )
972 zzMarkedPos -= number;
[all...]
H A DClassicTokenizerImpl.java325 /** number of newlines encountered up to the start of the matched text */
328 /** the number of characters up to the start of the matched text */
332 * the number of characters from the last newline up to the start of the
594 * @param number the number of characters to be read again.
595 * This number must not be greater than yylength()!
597 public void yypushback(int number) { argument
598 if ( number > yylength() )
601 zzMarkedPos -= number;
H A DUAX29URLEmailTokenizerImpl.java33 * <li>&lt;NUM&gt;: A number</li>
3754 /** number of newlines encountered up to the start of the matched text */
3757 /** the number of characters up to the start of the matched text */
3761 * the number of characters from the last newline up to the start of the
4032 * @param number the number of characters to be read again.
4033 * This number must not be greater than yylength()!
4035 public void yypushback(int number) { argument
4036 if ( number > yylength() )
4039 zzMarkedPos -= number;
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/standard/std31/
H A DStandardTokenizerImpl31.java672 /** number of newlines encountered up to the start of the matched text */
675 /** the number of characters up to the start of the matched text */
679 * the number of characters from the last newline up to the start of the
946 * @param number the number of characters to be read again.
947 * This number must not be greater than yylength()!
949 public void yypushback(int number) { argument
950 if ( number > yylength() )
953 zzMarkedPos -= number;
H A DUAX29URLEmailTokenizerImpl31.java3243 /** number of newlines encountered up to the start of the matched text */
3246 /** the number of characters up to the start of the matched text */
3250 * the number of characters from the last newline up to the start of the
3521 * @param number the number of characters to be read again.
3522 * This number must not be greater than yylength()!
3524 public void yypushback(int number) { argument
3525 if ( number > yylength() )
3528 zzMarkedPos -= number;
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/standard/std34/
H A DUAX29URLEmailTokenizerImpl34.java3319 /** number of newlines encountered up to the start of the matched text */
3322 /** the number of characters up to the start of the matched text */
3326 * the number of characters from the last newline up to the start of the
3597 * @param number the number of characters to be read again.
3598 * This number must not be greater than yylength()!
3600 public void yypushback(int number) { argument
3601 if ( number > yylength() )
3604 zzMarkedPos -= number;
/lucene-3.6.0/lucene/contrib/highlighter/src/java/org/apache/lucene/search/vectorhighlight/
H A DFieldPhraseList.java35 * create a FieldPhraseList that has no limit on the number of phrases to analyze
119 public WeightedPhraseInfo( LinkedList<TermInfo> terms, float boost, int number ){
121 this.seqnum = number;

Completed in 305 milliseconds

12