private readonly IOffsetAttribute offsetAtt; // = addAttribute(typeof(OffsetAttribute)); // LUCENENET specific - de-nested IBinaryTermAttribute // LUCENENET specific - de-nested BinaryTermAttribute public CannedBinaryTokenStream(params BinaryToken[] tokens) : base() { this.tokens = tokens; termAtt = AddAttribute <IBinaryTermAttribute>(); posIncrAtt = AddAttribute <IPositionIncrementAttribute>(); posLengthAtt = AddAttribute <IPositionLengthAttribute>(); offsetAtt = AddAttribute <IOffsetAttribute>(); }
public CannedBinaryTokenStream(params BinaryToken[] tokens) : base() { this.Tokens = tokens; TermAtt = AddAttribute<IBinaryTermAttribute>(); PosIncrAtt = AddAttribute<IPositionIncrementAttribute>(); PosLengthAtt = AddAttribute<IPositionLengthAttribute>(); OffsetAtt = AddAttribute<IOffsetAttribute>(); }