Method Encode
Encode(OfflineSorter.ByteSequencesWriter, ByteArrayDataOutput, Byte[], BytesRef, BytesRef, IEnumerable<BytesRef>, Int64)
encodes an entry (bytes+(contexts)+(payload)+weight) to the provided writer
Declaration
protected virtual void Encode(OfflineSorter.ByteSequencesWriter writer, ByteArrayDataOutput output, byte[] buffer, BytesRef spare, BytesRef payload, IEnumerable<BytesRef> contexts, long weight)
Parameters
Type | Name | Description |
---|---|---|
OfflineSorter.ByteSequencesWriter | writer | |
ByteArrayDataOutput | output | |
System.Byte[] | buffer | |
BytesRef | spare | |
BytesRef | payload | |
IEnumerable<BytesRef> | contexts | |
System.Int64 | weight |