Makes a clone, but replaces the term buffer & start/end offset in the process. This is more efficient than doing a full clone (and then calling setTermBuffer) because it saves a wasted copy of the old termBuffer.

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

Syntax

C#
public virtual Token Clone(
	char[] newTermBuffer,
	int newTermOffset,
	int newTermLength,
	int newStartOffset,
	int newEndOffset
)
Visual Basic
Public Overridable Function Clone ( _
	newTermBuffer As Char(), _
	newTermOffset As Integer, _
	newTermLength As Integer, _
	newStartOffset As Integer, _
	newEndOffset As Integer _
) As Token
Visual C++
public:
virtual Token^ Clone(
	array<wchar_t>^ newTermBuffer, 
	int newTermOffset, 
	int newTermLength, 
	int newStartOffset, 
	int newEndOffset
)

Parameters

newTermBuffer
Type: array<System..::..Char>[]()[][]

[Missing <param name="newTermBuffer"/> documentation for "M:Lucene.Net.Analysis.Token.Clone(System.Char[],System.Int32,System.Int32,System.Int32,System.Int32)"]

newTermOffset
Type: System..::..Int32

[Missing <param name="newTermOffset"/> documentation for "M:Lucene.Net.Analysis.Token.Clone(System.Char[],System.Int32,System.Int32,System.Int32,System.Int32)"]

newTermLength
Type: System..::..Int32

[Missing <param name="newTermLength"/> documentation for "M:Lucene.Net.Analysis.Token.Clone(System.Char[],System.Int32,System.Int32,System.Int32,System.Int32)"]

newStartOffset
Type: System..::..Int32

[Missing <param name="newStartOffset"/> documentation for "M:Lucene.Net.Analysis.Token.Clone(System.Char[],System.Int32,System.Int32,System.Int32,System.Int32)"]

newEndOffset
Type: System..::..Int32

[Missing <param name="newEndOffset"/> documentation for "M:Lucene.Net.Analysis.Token.Clone(System.Char[],System.Int32,System.Int32,System.Int32,System.Int32)"]

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Analysis.Token.Clone(System.Char[],System.Int32,System.Int32,System.Int32,System.Int32)"]

See Also