Searched defs:resolution (Results 1 - 7 of 7) sorted by relevance

/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/document/
H A DDateTools.java36 * <P>This class also helps you to limit the resolution of your dates. Do not
37 * save dates with a finer resolution than you really need, as then
41 * in this class take slightly more space, unless your selected resolution
69 for (Resolution resolution : Resolution.values()) {
70 arr[resolution.formatLen] = (SimpleDateFormat)resolution.format.clone();
83 * @param resolution the desired resolution, see
86 * depending on <code>resolution</code>; using GMT as timezone
88 public static String dateToString(Date date, Resolution resolution) { argument
101 timeToString(long time, Resolution resolution) argument
147 round(Date date, Resolution resolution) argument
162 round(long time, Resolution resolution) argument
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DTimeLimitingCollector.java246 private volatile long resolution; field in class:TimeLimitingCollector.TimerThread
249 public TimerThread(long resolution, Counter counter) { argument
251 this.resolution = resolution;
264 counter.addAndGet(resolution);
266 Thread.sleep( resolution );
288 * Return the timer resolution.
292 return resolution;
296 * Set the timer resolution.
297 * The default timer resolution i
309 setResolution(long resolution) argument
[all...]
/lucene-3.6.0/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/precedence/
H A DTestPrecedenceQueryParser.java424 // Don't set any date resolution and verify if DateField is used
429 // set a field specific date resolution
437 // set default date resolution to MILLISECOND
440 // set second field specific date resolution
444 // for this field no field specific date resolution has been set,
445 // so verify if the default resolution is used
458 private String getDate(String s, DateTools.Resolution resolution) argument
461 return getDate(df.parse(s), resolution);
465 private String getDate(Date d, DateTools.Resolution resolution) argument
467 if (resolution
484 assertDateRangeQueryEquals(PrecedenceQueryParser qp, String field, String startDate, String endDate, Date endDateInclusive, DateTools.Resolution resolution) argument
[all...]
/lucene-3.6.0/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/standard/
H A DTestQPHelper.java694 private String getDate(String s, DateTools.Resolution resolution) argument
697 return getDate(df.parse(s), resolution);
701 private String getDate(Date d, DateTools.Resolution resolution) argument
703 if (resolution == null) {
706 return DateTools.dateToString(d, resolution);
757 // Don't set any date resolution and verify if DateField is used
763 // set a field specific date resolution
771 // set default date resolution to MILLISECOND
774 // set second field specific date resolution
778 // for this field no field specific date resolution ha
792 assertDateRangeQueryEquals(StandardQueryParser qp, String field, String startDate, String endDate, Date endDateInclusive, DateTools.Resolution resolution) argument
[all...]
H A DTestQueryParserWrapper.java682 private String getDate(String s, DateTools.Resolution resolution) argument
685 return getDate(df.parse(s), resolution);
689 private String getDate(Date d, DateTools.Resolution resolution) argument
691 if (resolution == null) {
694 return DateTools.dateToString(d, resolution);
738 // Don't set any date resolution and verify if DateField is used
742 // set a field specific date resolution
749 // set default date resolution to MILLISECOND
752 // set second field specific date resolution
755 // for this field no field specific date resolution ha
768 assertDateRangeQueryEquals(QueryParserWrapper qp, String field, String startDate, String endDate, Date endDateInclusive, DateTools.Resolution resolution) argument
[all...]
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/queryParser/
H A DQueryParserTestBase.java596 private String getDate(String s, DateTools.Resolution resolution) throws Exception { argument
598 return getDate(df.parse(s), resolution);
602 private String getDate(Date d, DateTools.Resolution resolution) throws Exception { argument
603 if (resolution == null) {
606 return DateTools.dateToString(d, resolution);
648 // Don't set any date resolution and verify if DateField is used
652 // set a field specific date resolution
659 // set default date resolution to MILLISECOND
662 // set second field specific date resolution
665 // for this field no field specific date resolution ha
678 assertDateRangeQueryEquals(QueryParser qp, String field, String startDate, String endDate, Date endDateInclusive, DateTools.Resolution resolution) argument
[all...]
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/queryParser/
H A DQueryParserTestBase.java588 private String getDate(String s, DateTools.Resolution resolution) throws Exception { argument
590 return getDate(df.parse(s), resolution);
594 private String getDate(Date d, DateTools.Resolution resolution) throws Exception { argument
595 if (resolution == null) {
598 return DateTools.dateToString(d, resolution);
640 // Don't set any date resolution and verify if DateField is used
644 // set a field specific date resolution
651 // set default date resolution to MILLISECOND
654 // set second field specific date resolution
657 // for this field no field specific date resolution ha
670 assertDateRangeQueryEquals(QueryParser qp, String field, String startDate, String endDate, Date endDateInclusive, DateTools.Resolution resolution) argument
[all...]

Completed in 2785 milliseconds