Class DateRecognizerSinkFilter
Attempts to parse the ToString() as a Date using either the
Inherited Members
Namespace: Lucene.Net.Analysis.Sinks
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class DateRecognizerSinkFilter : TeeSinkTokenFilter.SinkFilter
Constructors
| Improve this Doc View SourceDateRecognizerSinkFilter()
Creates a new instance of DateRecognizerSinkFilter using the current culture and
Declaration
public DateRecognizerSinkFilter()
DateRecognizerSinkFilter(IFormatProvider)
Creates a new instance of DateRecognizerSinkFilter using the supplied culture and
Declaration
public DateRecognizerSinkFilter(IFormatProvider culture)
Parameters
Type | Name | Description |
---|---|---|
IFormatProvider | culture | An object that supplies culture-specific format information |
DateRecognizerSinkFilter(IFormatProvider, DateTimeStyles)
Creates a new instance of DateRecognizerSinkFilter using the supplied culture and
Declaration
public DateRecognizerSinkFilter(IFormatProvider culture, DateTimeStyles style)
Parameters
Type | Name | Description |
---|---|---|
IFormatProvider | culture | An object that supplies culture-specific format information |
DateTimeStyles | style | A bitwise combination of enumeration values that indicates the permitted format of s.
A typical value to specify is |
DateRecognizerSinkFilter(String)
Creates a new instance of DateRecognizerSinkFilter using the current culture and
Declaration
public DateRecognizerSinkFilter(string format)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | The allowable format of the ToString(). If supplied, it must match the format of the date exactly to get a match. |
DateRecognizerSinkFilter(String, IFormatProvider)
Creates a new instance of DateRecognizerSinkFilter using the supplied format, culture and
Declaration
public DateRecognizerSinkFilter(string format, IFormatProvider culture)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | The allowable format of the ToString(). If supplied, it must match the format of the date exactly to get a match. |
IFormatProvider | culture | An object that supplies culture-specific format information |
DateRecognizerSinkFilter(String, IFormatProvider, DateTimeStyles)
Creates a new instance of DateRecognizerSinkFilter using the supplied format, culture and
Declaration
public DateRecognizerSinkFilter(string format, IFormatProvider culture, DateTimeStyles style)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | The allowable format of the ToString(). If supplied, it must match the format of the date exactly to get a match. |
IFormatProvider | culture | An object that supplies culture-specific format information |
DateTimeStyles | style | A bitwise combination of enumeration values that indicates the permitted format of s.
A typical value to specify is |
DateRecognizerSinkFilter(String[])
Creates a new instance of DateRecognizerSinkFilter using the current culture and
Declaration
public DateRecognizerSinkFilter(string[] formats)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | formats | An array of allowable formats of the ToString(). If supplied, one of them must match the format of the date exactly to get a match. |
DateRecognizerSinkFilter(String[], IFormatProvider)
Creates a new instance of DateRecognizerSinkFilter using the supplied formats, culture and
Declaration
public DateRecognizerSinkFilter(string[] formats, IFormatProvider culture)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | formats | An array of allowable formats of the ToString(). If supplied, one of them must match the format of the date exactly to get a match. |
IFormatProvider | culture | An object that supplies culture-specific format information |
DateRecognizerSinkFilter(String[], IFormatProvider, DateTimeStyles)
Creates a new instance of DateRecognizerSinkFilter using the supplied formats, culture and
Declaration
public DateRecognizerSinkFilter(string[] formats, IFormatProvider culture, DateTimeStyles style)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | formats | An array of allowable formats of the ToString(). If supplied, one of them must match the format of the date exactly to get a match. |
IFormatProvider | culture | An object that supplies culture-specific format information |
DateTimeStyles | style | A bitwise combination of enumeration values that indicates the permitted format of s.
A typical value to specify is |
Fields
| Improve this Doc View Sourcem_culture
Declaration
protected IFormatProvider m_culture
Field Value
Type | Description |
---|---|
IFormatProvider |
m_formats
Declaration
protected string[] m_formats
Field Value
Type | Description |
---|---|
System.String[] |
m_style
Declaration
protected DateTimeStyles m_style
Field Value
Type | Description |
---|---|
DateTimeStyles |
m_termAtt
Declaration
protected ICharTermAttribute m_termAtt
Field Value
Type | Description |
---|---|
ICharTermAttribute |
Methods
| Improve this Doc View SourceAccept(AttributeSource)
Declaration
public override bool Accept(AttributeSource source)
Parameters
Type | Name | Description |
---|---|---|
AttributeSource | source |
Returns
Type | Description |
---|---|
System.Boolean |