Class IdentityEncoder

  • All Implemented Interfaces:
    PayloadEncoder

    public class IdentityEncoder
    extends AbstractEncoder
    implements PayloadEncoder
    Does nothing other than convert the char array to a byte array using the specified encoding.
    • Constructor Detail

      • IdentityEncoder

        public IdentityEncoder()
      • IdentityEncoder

        public IdentityEncoder​(Charset charset)
    • Method Detail

      • encode

        public org.apache.lucene.index.Payload encode​(char[] buffer,
                                                      int offset,
                                                      int length)
        Description copied from interface: PayloadEncoder
        Convert a char array to a Payload
        Specified by:
        encode in interface PayloadEncoder
        Returns:
        encoded Payload