Method Clone
Clone()
Declaration
public override Object Clone()
Returns
Type |
Description |
System.Object |
|
Overrides
Lucene.Net.Util.Attribute.Clone()
Clone(Char[], Int32, Int32, Int32, Int32)
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.
Declaration
public virtual Token Clone(char[] newTermBuffer, int newTermOffset, int newTermLength, int newStartOffset, int newEndOffset)
Parameters
Type |
Name |
Description |
System.Char[] |
newTermBuffer |
|
System.Int32 |
newTermOffset |
|
System.Int32 |
newTermLength |
|
System.Int32 |
newStartOffset |
|
System.Int32 |
newEndOffset |
|
Returns