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
Afficher le fichier Open project: paulirwin/lucene.net

Protected Properties

Свойство Type Description
dateFormat DateFormat
termAtt CharTermAttribute

Méthodes publiques

Méthode 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 méthode

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

DateRecognizerSinkFilter() public méthode

public DateRecognizerSinkFilter ( DateFormat dateFormat ) : System
dateFormat DateFormat
Résultat System

accept() public méthode

public accept ( AttributeSource source ) : bool
source AttributeSource
Résultat bool

Property Details

dateFormat protected_oe property

protected DateFormat dateFormat
Résultat DateFormat

termAtt protected_oe property

protected CharTermAttribute termAtt
Résultat CharTermAttribute