Interface IPayloadEncoder
Mainly for use with the DelimitedPayloadTokenFilter, converts char buffers to Lucene.Net.Util.BytesRef.
NOTE: This interface is subject to change
Namespace: Lucene.Net.Analysis.Payloads
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public interface IPayloadEncoder
Methods
| Improve this Doc View SourceEncode(Char[])
Declaration
BytesRef Encode(char[] buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | buffer |
Returns
Type | Description |
---|---|
Lucene.Net.Util.BytesRef |
Encode(Char[], Int32, Int32)
Convert a char array to a Lucene.Net.Util.BytesRef
Declaration
BytesRef Encode(char[] buffer, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | buffer | |
System.Int32 | offset | |
System.Int32 | length |
Returns
Type | Description |
---|---|
Lucene.Net.Util.BytesRef | encoded Lucene.Net.Util.BytesRef |