• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# Util.AttributeSource类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Attributes

 /// <summary>
 /// Returns the related attributes. </summary>
 public virtual AttributeSource Attributes()
 {
     if (Atts == null)
     {
         Atts = new AttributeSource();
     }
     return Atts;
 }
开发者ID:Cefa68000,项目名称:lucenenet,代码行数:10,代码来源:DocsEnum.cs


示例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;
 }
开发者ID:Cefa68000,项目名称:lucenenet,代码行数:14,代码来源:FieldInvertState.cs


示例3: CharTokenizer

 public CharTokenizer(AttributeSource source, System.IO.TextReader input)
     : base(source, input)
 {
     offsetAtt = (OffsetAttribute) AddAttribute(typeof(OffsetAttribute));
     termAtt = (TermAttribute) AddAttribute(typeof(TermAttribute));
 }
开发者ID:BackupTheBerlios,项目名称:lyra2-svn,代码行数:6,代码来源:CharTokenizer.cs


示例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)
		{
		}
开发者ID:Inzaghi2012,项目名称:teamlab.v7.5,代码行数:4,代码来源:WhitespaceTokenizer.cs


示例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();
		}
开发者ID:VirtueMe,项目名称:ravendb,代码行数:7,代码来源:TokenStream.cs


示例6: GetTermsEnum

 public override TermsEnum GetTermsEnum(Terms terms, AttributeSource atts)
 {
     return new TermRangeTermsEnumAnonymousInnerClassHelper(this, terms.Iterator(null), new BytesRef("2"), new BytesRef("7"));
 }
开发者ID:Cefa68000,项目名称:lucenenet,代码行数:4,代码来源:TestMultiTermQueryRewrites.cs


示例7: Accept

 public override bool Accept(AttributeSource a)
 {
     bool b = (a != null && count % modCount == 0);
     count++;
     return b;
 }
开发者ID:hanabi1224,项目名称:lucene.net,代码行数:6,代码来源:TestTeeSinkTokenFilter.cs


示例8: Accept

			public override bool Accept(AttributeSource source)
			{
				return true;
			}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:4,代码来源:TeeSinkTokenFilter.cs


示例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)
		{
		}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:5,代码来源:WhitespaceTokenizer.cs


示例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);
 }
开发者ID:BackupTheBerlios,项目名称:lyra2-svn,代码行数:8,代码来源:StandardTokenizer.cs


示例11: KeywordTokenizer

 public KeywordTokenizer(AttributeSource source, System.IO.TextReader input, int bufferSize)
     : base(source, input)
 {
     Init(bufferSize);
 }
开发者ID:BackupTheBerlios,项目名称:lyra2-svn,代码行数:5,代码来源:KeywordTokenizer.cs


示例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)
		{
		}
开发者ID:Rationalle,项目名称:ravendb,代码行数:4,代码来源:LowerCaseTokenizer.cs


示例13: Accept

 /*private*/
 internal bool Accept(AttributeSource source)
 {
     return filter.Accept(source);
 }
开发者ID:BackupTheBerlios,项目名称:lyra2-svn,代码行数:5,代码来源:TeeSinkTokenFilter.cs


示例14: CharTokenizer

	    protected CharTokenizer(AttributeSource source, System.IO.TextReader input):base(source, input)
		{
            offsetAtt = AddAttribute<IOffsetAttribute>();
            termAtt = AddAttribute<ITermAttribute>();
		}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:5,代码来源:CharTokenizer.cs


示例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);
		}
开发者ID:Rationalle,项目名称:ravendb,代码行数:7,代码来源:StandardTokenizer.cs


示例16: SinkTokenStream

			internal SinkTokenStream(AttributeSource source, SinkFilter filter)
                : base(source)
			{
				this.filter = filter;
			}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:5,代码来源:TeeSinkTokenFilter.cs


示例17: GetTermsEnum

 public override TermsEnum GetTermsEnum(Terms terms, AttributeSource atts)
 {
     return new SimplePrefixTermsEnum(this, terms.Iterator(null), Prefix);
 }
开发者ID:ChristopherHaws,项目名称:lucenenet,代码行数:4,代码来源:TestPrefixRandom.cs


示例18: AddState

			internal /*private*/ void  AddState(AttributeSource.State state)
			{
				if (it != null)
				{
					throw new System.SystemException("The tee must be consumed before sinks are consumed.");
				}
				cachedStates.AddLast(state);
			}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:8,代码来源:TeeSinkTokenFilter.cs


示例19: Accept

			public override bool Accept(AttributeSource a)
			{
				TermAttribute termAtt = (TermAttribute) a.GetAttribute(typeof(TermAttribute));
				return termAtt.Term().ToUpper().Equals("Dogs".ToUpper());
			}
开发者ID:Rationalle,项目名称:ravendb,代码行数:5,代码来源:TestTeeSinkTokenFilter.cs


示例20: GetTermsEnum

 public override TermsEnum GetTermsEnum(Terms terms, AttributeSource atts)
 {
     return new SimpleAutomatonTermsEnum(this, terms.Iterator(null));
 }
开发者ID:Cefa68000,项目名称:lucenenet,代码行数:4,代码来源:TestRegexpRandom2.cs



注:本文中的Lucene.Net.Util.AttributeSource类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Util.BytesRef类代码示例发布时间:2022-05-24
下一篇:
C# Store.RAMDirectory类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap