19 using Lucene.Net.Analysis.Tokenattributes;
20 using Lucene.Net.Util;
23 namespace Lucene.Net.Index
33 private void InitBlock()
35 singleToken =
new SingleTokenAttributeSource();
40 internal SingleTokenAttributeSource singleToken;
47 internal SingleTokenAttributeSource()
49 termAttribute = AddAttribute<ITermAttribute>();
50 offsetAttribute = AddAttribute<IOffsetAttribute>();
53 public void Reinit(System.String stringValue,
int startOffset,
int endOffset)
55 termAttribute.SetTermBuffer(stringValue);
56 offsetAttribute.
SetOffset(startOffset, endOffset);
70 this.docInverter = docInverter;
71 docState = docFieldProcessorPerThread.docState;
72 consumer = docInverter.consumer.AddThread(
this);
73 endConsumer = docInverter.endConsumer.
AddThread(
this);
76 public override void StartDocument()
78 consumer.StartDocument();
79 endConsumer.StartDocument();
86 endConsumer.FinishDocument();
87 return consumer.FinishDocument();
90 public override void Abort()