本文整理汇总了C#中Lucene.Net.Util.AttributeSource类的典型用法代码示例。如果您正苦于以下问题:C# Lucene.Net.Util.AttributeSource类的具体用法?C# Lucene.Net.Util.AttributeSource怎么用?C# Lucene.Net.Util.AttributeSource使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Lucene.Net.Util.AttributeSource类属于命名空间,在下文中一共展示了Lucene.Net.Util.AttributeSource类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Attributes
/// <summary>
/// Returns the related attributes. </summary>
public virtual AttributeSource Attributes()
{
if (Atts == null)
{
Atts = new AttributeSource();
}
return Atts;
}
示例2: Reset
/// <summary>
/// Re-initialize the state
/// </summary>
internal void Reset()
{
Position_Renamed = 0;
Length_Renamed = 0;
NumOverlap_Renamed = 0;
Offset_Renamed = 0;
MaxTermFrequency_Renamed = 0;
UniqueTermCount_Renamed = 0;
Boost_Renamed = 1.0f;
AttributeSource_Renamed = null;
}
示例3: CharTokenizer
public CharTokenizer(AttributeSource source, System.IO.TextReader input)
: base(source, input)
{
offsetAtt = (OffsetAttribute) AddAttribute(typeof(OffsetAttribute));
termAtt = (TermAttribute) AddAttribute(typeof(TermAttribute));
}
示例4: WhitespaceTokenizer
/// <summary>Construct a new WhitespaceTokenizer using a given {@link AttributeSource}. </summary>
public WhitespaceTokenizer(AttributeSource source, System.IO.TextReader in_Renamed):base(source, in_Renamed)
{
}
示例5: TokenStream
/// <summary> A TokenStream that uses the same attributes as the supplied one.</summary>
protected internal TokenStream(AttributeSource input):base(input)
{
InitBlock();
tokenWrapper = InitTokenWrapper(input);
Check();
}
示例6: GetTermsEnum
public override TermsEnum GetTermsEnum(Terms terms, AttributeSource atts)
{
return new TermRangeTermsEnumAnonymousInnerClassHelper(this, terms.Iterator(null), new BytesRef("2"), new BytesRef("7"));
}
示例7: Accept
public override bool Accept(AttributeSource a)
{
bool b = (a != null && count % modCount == 0);
count++;
return b;
}
示例8: Accept
public override bool Accept(AttributeSource source)
{
return true;
}
示例9: WhitespaceTokenizer
/// <summary>Construct a new WhitespaceTokenizer using a given <see cref="AttributeSource" />. </summary>
public WhitespaceTokenizer(AttributeSource source, System.IO.TextReader @in)
: base(source, @in)
{
}
示例10: StandardTokenizer
/// <summary> Creates a new StandardTokenizer with a given {@link AttributeSource}. </summary>
public StandardTokenizer(AttributeSource source, System.IO.TextReader input, bool replaceInvalidAcronym)
: base(source)
{
InitBlock();
this.scanner = new StandardTokenizerImpl(input);
Init(input, replaceInvalidAcronym);
}
示例11: KeywordTokenizer
public KeywordTokenizer(AttributeSource source, System.IO.TextReader input, int bufferSize)
: base(source, input)
{
Init(bufferSize);
}
示例12: LowerCaseTokenizer
/// <summary>Construct a new LowerCaseTokenizer using a given {@link AttributeSource}. </summary>
public LowerCaseTokenizer(AttributeSource source, System.IO.TextReader in_Renamed):base(source, in_Renamed)
{
}
示例13: Accept
/*private*/
internal bool Accept(AttributeSource source)
{
return filter.Accept(source);
}
示例14: CharTokenizer
protected CharTokenizer(AttributeSource source, System.IO.TextReader input):base(source, input)
{
offsetAtt = AddAttribute<IOffsetAttribute>();
termAtt = AddAttribute<ITermAttribute>();
}
示例15: StandardTokenizer
/// <summary> Creates a new StandardTokenizer with a given {@link AttributeSource}.</summary>
public StandardTokenizer(Version matchVersion, AttributeSource source, System.IO.TextReader input):base(source)
{
InitBlock();
this.scanner = new StandardTokenizerImpl(input);
Init(input, matchVersion);
}