Class FilterResult


  • public final class FilterResult
    extends java.lang.Object
    When using Ickle based filters with client event listeners you will get the event data (see org.infinispan.client.hotrod.event.ClientCacheEntryCustomEvent.getEventData) wrapped by this FilterResult.
    Since:
    7.2
    Author:
    anistor@redhat.com
    • Constructor Summary

      Constructors 
      Constructor Description
      FilterResult​(java.lang.Object instance, java.lang.Object[] projection, java.lang.Comparable[] sortProjection)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getInstance()
      Returns the matched object.
      java.lang.Object[] getProjection()
      Returns the projection, if a projection was requested or null otherwise.
      java.lang.Comparable[] getSortProjection()
      Returns the projection of fields that appear in the 'order by' clause, if any, or null otherwise.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FilterResult

        public FilterResult​(java.lang.Object instance,
                            java.lang.Object[] projection,
                            java.lang.Comparable[] sortProjection)
    • Method Detail

      • getInstance

        public java.lang.Object getInstance()
        Returns the matched object. This is non-null unless projections are present.
      • getProjection

        public java.lang.Object[] getProjection()
        Returns the projection, if a projection was requested or null otherwise.
      • getSortProjection

        public java.lang.Comparable[] getSortProjection()
        Returns the projection of fields that appear in the 'order by' clause, if any, or null otherwise.

        Please note that no actual sorting is performed! The 'order by' clause is ignored but the fields listed there are still projected and returned so the caller can easily sort the results if needed. Do not use 'order by' with filters if this behaviour does not suit you.

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object