Restores this state by copying the values of all attribute implementations that this state contains into the attributes implementations of the targetStream. The targetStream must contain a corresponding instance for each argument contained in this state (e.g. it is not possible to restore the state of an AttributeSource containing a TermAttribute into a AttributeSource using a Token instance as implementation). Note that this method does not affect attributes of the targetStream that are not contained in this state. In other words, if for example the targetStream contains an OffsetAttribute, but this state doesn't, then the value of the OffsetAttribute remains unchanged. It might be desirable to reset its value to the default, in which case the caller should first call {@link TokenStream#ClearAttributes()} on the targetStream.

Namespace: Lucene.Net.Util
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public virtual void RestoreState(
	AttributeSource..::..State state
)
Visual Basic
Public Overridable Sub RestoreState ( _
	state As AttributeSource..::..State _
)
Visual C++
public:
virtual void RestoreState(
	AttributeSource..::..State^ state
)

Parameters

state
Type: Lucene.Net.Util..::..AttributeSource..::..State

[Missing <param name="state"/> documentation for "M:Lucene.Net.Util.AttributeSource.RestoreState(Lucene.Net.Util.AttributeSource.State)"]

See Also