当前位置: 首页>>代码示例>>C#>>正文


C# Util.AttributeSource类代码示例

本文整理汇总了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;
 }
开发者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


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