C# Class org.apache.lucene.analysis.sinks.DateRecognizerSinkFilter

Attempts to parse the CharTermAttribute#buffer() as a Date using a java.text.DateFormat. If the value is a Date, it will add it to the sink.

Inheritance: TeeSinkTokenFilter.SinkFilter
显示文件 Open project: paulirwin/lucene.net

Protected Properties

Property Type Description
dateFormat DateFormat
termAtt CharTermAttribute

Public Methods

Method Description
DateRecognizerSinkFilter ( ) : System

Uses {@link java.text.DateFormat#getDateInstance(int, Locale) DateFormat#getDateInstance(DateFormat.DEFAULT, Locale.ROOT)} as the java.text.DateFormat object.

DateRecognizerSinkFilter ( DateFormat dateFormat ) : System
accept ( AttributeSource source ) : bool

Method Details

DateRecognizerSinkFilter() public method

Uses {@link java.text.DateFormat#getDateInstance(int, Locale) DateFormat#getDateInstance(DateFormat.DEFAULT, Locale.ROOT)} as the java.text.DateFormat object.
public DateRecognizerSinkFilter ( ) : System
return System

DateRecognizerSinkFilter() public method

public DateRecognizerSinkFilter ( DateFormat dateFormat ) : System
dateFormat DateFormat
return System

accept() public method

public accept ( AttributeSource source ) : bool
source AttributeSource
return bool

Property Details

dateFormat protected_oe property

protected DateFormat dateFormat
return DateFormat

termAtt protected_oe property

protected CharTermAttribute termAtt
return CharTermAttribute