Class IdentityEncoder
- java.lang.Object
-
- org.apache.lucene.analysis.payloads.AbstractEncoder
-
- org.apache.lucene.analysis.payloads.IdentityEncoder
-
- All Implemented Interfaces:
PayloadEncoder
public class IdentityEncoder extends AbstractEncoder
Does nothing other than convert the char array to a byte array using the specified encoding.
-
-
Constructor Summary
Constructors Constructor Description IdentityEncoder()
IdentityEncoder(Charset charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BytesRef
encode(char[] buffer, int offset, int length)
Convert a char array to aBytesRef
-
Methods inherited from class org.apache.lucene.analysis.payloads.AbstractEncoder
encode
-
-
-
-
Field Detail
-
charset
protected Charset charset
-
-
Constructor Detail
-
IdentityEncoder
public IdentityEncoder()
-
IdentityEncoder
public IdentityEncoder(Charset charset)
-
-
Method Detail
-
encode
public BytesRef encode(char[] buffer, int offset, int length)
Description copied from interface:PayloadEncoder
Convert a char array to aBytesRef
- Returns:
- encoded
BytesRef
-
-