Class LuceneSortFieldExternalizer

java.lang.Object
org.infinispan.commons.marshall.AbstractExternalizer<org.apache.lucene.search.SortField>
org.infinispan.query.impl.externalizers.LuceneSortFieldExternalizer
All Implemented Interfaces:
Serializable, org.infinispan.commons.marshall.AdvancedExternalizer<org.apache.lucene.search.SortField>, org.infinispan.commons.marshall.Externalizer<org.apache.lucene.search.SortField>

public class LuceneSortFieldExternalizer extends org.infinispan.commons.marshall.AbstractExternalizer<org.apache.lucene.search.SortField>
WARNING: this Externalizer implementation drops some state associated to the SortField instance. A CUSTOM Sort Type is unsupported, and it is also not possible to use a custom Field Parser or options related to missing value sorting.
See Also:
  • Constructor Details

    • LuceneSortFieldExternalizer

      public LuceneSortFieldExternalizer()
  • Method Details

    • getTypeClasses

      public Set<Class<? extends org.apache.lucene.search.SortField>> getTypeClasses()
    • readObject

      public org.apache.lucene.search.SortField readObject(ObjectInput input) throws IOException
      Throws:
      IOException
    • writeObject

      public void writeObject(ObjectOutput output, org.apache.lucene.search.SortField sortField) throws IOException
      Throws:
      IOException
    • getId

      public Integer getId()
      Specified by:
      getId in interface org.infinispan.commons.marshall.AdvancedExternalizer<org.apache.lucene.search.SortField>
      Overrides:
      getId in class org.infinispan.commons.marshall.AbstractExternalizer<org.apache.lucene.search.SortField>