Searched defs:format (Results 1 - 21 of 21) sorted by relevance

/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/
H A DNumberDateFormat.java29 * uses the given {@link DateFormat} to parse and format dates, but before, it
41 * @param dateFormat {@link DateFormat} used to parse and format dates
48 public StringBuffer format(double number, StringBuffer toAppendTo, method in class:NumberDateFormat
50 return dateFormat.format(new Date((long) number), toAppendTo, pos);
54 public StringBuffer format(long number, StringBuffer toAppendTo, method in class:NumberDateFormat
56 return dateFormat.format(new Date(number), toAppendTo, pos);
66 public StringBuffer format(Object number, StringBuffer toAppendTo, method in class:NumberDateFormat
68 return dateFormat.format(number, toAppendTo, pos);
H A DNumericConfig.java36 private NumberFormat format; field in class:NumericConfig
45 * @param format
55 public NumericConfig(int precisionStep, NumberFormat format, argument
58 setNumberFormat(format);
94 return format;
125 * @param format
129 public void setNumberFormat(NumberFormat format) { argument
131 if (format == null) {
132 throw new IllegalArgumentException("format cannot be null!");
135 this.format
[all...]
/lucene-3.6.0/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/
H A DDateFormatTransformer.java87 private Date process(Object value, String format, Locale locale) throws ParseException { argument
92 SimpleDateFormat fmt = fmtCache.get(format);
94 fmt = new SimpleDateFormat(format, locale);
95 fmtCache.put(format, fmt);
/lucene-3.6.0/lucene/contrib/misc/src/test/org/apache/lucene/index/
H A DTestPKIndexSplitter.java35 NumberFormat format = new DecimalFormat("000000000");
41 Document doc = createDocument(x, "1", 3, format);
46 Document doc = createDocument(x, "2", 3, format);
52 final Term midTerm = new Term("id", format.format(11));
61 w.deleteDocuments(new Term("id", format.format(2)));
101 int numFields, NumberFormat format) {
104 String id = format.format(
100 createDocument(int n, String indexName, int numFields, NumberFormat format) argument
[all...]
/lucene-3.6.0/solr/contrib/dataimporthandler-extras/src/java/org/apache/solr/handler/dataimport/
H A DTikaEntityProcessor.java62 private String format = "text"; field in class:TikaEntityProcessor
86 format = context.getResolvedEntityAttribute("format");
87 if(format == null)
88 format = "text";
89 if (!"html".equals(format) && !"xml".equals(format) && !"text".equals(format)&& !"none".equals(format) )
90 throw new DataImportHandlerException(SEVERE, "'format' ca
[all...]
/lucene-3.6.0/lucene/contrib/analyzers/kuromoji/src/tools/java/org/apache/lucene/analysis/ja/util/
H A DDictionaryBuilder.java30 public static void build(DictionaryFormat format, argument
36 TokenInfoDictionaryBuilder tokenInfoBuilder = new TokenInfoDictionaryBuilder(format, encoding, normalizeEntry);
59 DictionaryFormat format;
61 format = DictionaryFormat.IPADIC;
63 format = DictionaryFormat.UNIDIC;
65 System.err.println("Illegal format " + args[0] + " using unidic instead");
66 format = DictionaryFormat.IPADIC;
76 System.out.println("dictionary format: " + format);
82 DictionaryBuilder.build(format, inputDirnam
[all...]
H A DTokenInfoDictionaryBuilder.java55 private DictionaryFormat format = DictionaryFormat.IPADIC; field in class:TokenInfoDictionaryBuilder
57 public TokenInfoDictionaryBuilder(DictionaryFormat format, String encoding, boolean normalizeEntries) { argument
58 this.format = format;
199 if (this.format == DictionaryFormat.IPADIC) {
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/
H A DFormat.java50 public static String format(int numFracDigits, float f, String col) { method in class:Format
51 String res = padd + numFormat[numFracDigits].format(f);
55 public static String format(int numFracDigits, double f, String col) { method in class:Format
56 String res = padd + numFormat[numFracDigits].format(f);
68 String res = numFormat[numFracDigits].format(f) + padd;
73 String res = numFormat[numFracDigits].format(f) + padd;
83 public static String format(int n, String col) { method in class:Format
94 public static String format(String s, String col) { method in class:Format
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/quality/utils/
H A DSubmissionReport.java73 format(docName,20) + sep +
74 format(""+i,7) + sep +
75 nf.format(sd[i].score) + sep +
88 private String format(String s, int minLen) { method in class:SubmissionReport
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/
H A DNumericQueryNode.java93 return escaper.escape(NumberFormat.getNumberInstance().format(this.value),
108 * @param format the {@link NumberFormat} used to convert the value to {@link String}
110 public void setNumberFormat(NumberFormat format) { argument
111 this.numberFormat = format;
144 + numberFormat.format(value) + "'/>";
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/document/
H A DDateTools.java64 //indexed by format length
70 arr[resolution.formatLen] = (SimpleDateFormat)resolution.format.clone();
85 * @return a string in format <code>yyyyMMddHHmmssSSS</code> or shorter,
98 * @return a string in format <code>yyyyMMddHHmmssSSS</code> or shorter,
103 return TL_FORMATS.get()[resolution.formatLen].format(date);
114 * expected format
128 * expected format
195 final SimpleDateFormat format;//should be cloned before use, since it's not threadsafe field in class:DateTools.Resolution
201 this.format = new SimpleDateFormat("yyyyMMddHHmmssSSS".substring(0,formatLen),Locale.US);
202 this.format
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DSegmentTermEnum.java36 private int format; field in class:SegmentTermEnum
53 // original-format file, without explicit format version number
54 format = 0;
61 // we have a format version number
62 format = firstInt;
64 // check that it is a format we can understand
65 if (format < TermInfosWriter.FORMAT_CURRENT)
66 throw new IndexFormatTooNewException(input, format, -1, TermInfosWriter.FORMAT_CURRENT);
70 if(format
[all...]
H A DFieldInfos.java41 // First used in 2.9; prior to 2.9 there was no format header
47 // whenever you add a new format, make it 1 smaller (negative version logic)!
59 private int format; field in class:FieldInfos
76 if (format == FORMAT_PRE) {
78 // format) may be 2.3.2 (pre-utf8) or 2.4.x (utf8)
317 // This is a real format
318 format = firstInt;
320 format = FORMAT_PRE;
323 if (format != FORMAT_PRE && format !
[all...]
H A DCheckIndex.java137 /** True if segment is compound file format. */
157 * format. */
371 int format = 0;
373 format = input.readInt();
388 if (format == SegmentInfos.FORMAT)
390 if (format == SegmentInfos.FORMAT_LOCKLESS)
392 else if (format == SegmentInfos.FORMAT_SINGLE_NORM_FILE)
394 else if (format == SegmentInfos.FORMAT_SHARED_DOC_STORE)
397 if (format == SegmentInfos.FORMAT_CHECKSUM)
399 else if (format
842 testStoredFields(SegmentInfo info, SegmentReader reader, NumberFormat format) argument
880 testTermVectors(SegmentInfo info, SegmentReader reader, NumberFormat format) argument
[all...]
H A DFieldsReader.java61 private final int format; field in class:FieldsReader
79 return new FieldsReader(fieldInfos, numTotalDocs, size, format, formatSize, docStoreOffset, cloneableFieldsStream, cloneableIndexStream);
91 int format = idxStream.readInt();
92 if (format < FieldsWriter.FORMAT_LUCENE_3_0_NO_COMPRESSED_FIELDS) {
103 private FieldsReader(FieldInfos fieldInfos, int numTotalDocs, int size, int format, int formatSize, argument
108 this.format = format;
135 // First version of fdx did not include a format
140 format = 0;
142 format
[all...]
H A DSegmentInfo.java101 // format expected is "x.y" - "2.x" for pre-3.0 indexes, and specific versions
165 * @param format format of the segments info file
168 SegmentInfo(Directory dir, int format, IndexInput input) throws IOException { argument
170 if (format <= SegmentInfos.FORMAT_3_1) {
175 if (format <= SegmentInfos.FORMAT_LOCKLESS) {
177 if (format <= SegmentInfos.FORMAT_SHARED_DOC_STORE) {
191 if (format <= SegmentInfos.FORMAT_SINGLE_NORM_FILE) {
207 if (format <= SegmentInfos.FORMAT_DEL_COUNT) {
212 if (format <
[all...]
H A DTermVectorsReader.java32 // NOTE: if you make a new format, it must be larger than
33 // the current format
42 // NOTE: always change this if you switch to a new format!
63 private final int format; field in class:TermVectorsReader
82 format = checkValidFormat(idxName, tvx);
90 assert format == tvdFormat;
91 assert format == tvfFormat;
93 if (format >= FORMAT_VERSION2) {
137 if (format < FORMAT_VERSION2)
144 return format >
[all...]
H A DSegmentInfos.java51 /** The file format version, a negative number. */
55 /** This format adds details used for lockless commits. It differs
56 * slightly from the previous format in that file names
66 /** This format adds a "hasSingleNormFile" flag into each segment info.
72 /** This format allows multiple segments to share a single
76 /** This format adds a checksum at the end of the file to
80 /** This format adds the deletion count for each segment.
84 /** This format adds the boolean hasProx to record if any
89 /** This format adds optional commit userData (String) storage. */
92 /** This format add
122 private int format; field in class:SegmentInfos
135 setFormat(int format) argument
[all...]
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/quality/
H A DQualityStats.java149 logger.println(prefix+format("Search Seconds: ",M)+
150 fracFormat(nf.format((double)searchTime/1000)));
151 logger.println(prefix+format("DocName Seconds: ",M)+
152 fracFormat(nf.format((double)docNamesExtractTime/1000)));
153 logger.println(prefix+format("Num Points: ",M)+
154 fracFormat(nf.format(numPoints)));
155 logger.println(prefix+format("Num Good Points: ",M)+
156 fracFormat(nf.format(numGoodPoints)));
157 logger.println(prefix+format("Max Good Points: ",M)+
158 fracFormat(nf.format(maxGoodPoint
175 private String format(String s, int minLen) { method in class:QualityStats
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/schema/
H A DDateField.java58 * This format was derived to be standards compliant (ISO 8601) and is a more
72 * are indexed in the correct canonical format.
77 * datetime (in the format specified above) or the literal string "NOW",
121 // The XML (external) date format will sort correctly, except if
124 // format.
135 * Parses a String which may be a date (in the standard format)
225 * Only the <tt>format(Date)</tt> can be used safely.
235 * Thread safe method that can be used by subclasses to format a Date
239 return fmtThreadLocal.get().format(d);
246 return fmtThreadLocal.get().format(
364 public StringBuffer format(Date d, StringBuffer toAppendTo, method in class:DateField.ISO8601CanonicalDateFormat
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/
H A DGrouping.java140 gc.format = defaultFormat;
145 gc.format = Grouping.Format.simple;
148 if (gc.format == Grouping.Format.simple) {
168 gc.format = defaultFormat;
172 gc.format = Grouping.Format.simple;
174 if (gc.format == Grouping.Format.simple) {
325 logger.warn(String.format("The grouping cache is active, but not used because it exceeded the max cache limit of %d percent", maxDocsPercentageToCache));
452 public Format format; field in class:Grouping.Command
453 public boolean main; // use as the main result in simple format (grouped.main=true param)
540 if (format
[all...]

Completed in 83 milliseconds