Class FilterResultImpl
java.lang.Object
org.infinispan.query.objectfilter.impl.FilterResultImpl
- All Implemented Interfaces:
ObjectFilter.FilterResult
@ProtoTypeId(4217)
public final class FilterResultImpl
extends Object
implements ObjectFilter.FilterResult
- Since:
- 7.0
- Author:
- anistor@redhat.com
-
Constructor Summary
ConstructorsConstructorDescriptionFilterResultImpl(Object key, Object instance, Object[] projection, Comparable<?>[] sortProjection) -
Method Summary
Modifier and TypeMethodDescriptionReturns the matched object.getKey()Returns the key of the matched object.Object[]Returns the projection, if a projection was requested ornullotherwise.Comparable<?>[]Returns the projection of fields used for sorting, if sorting was requested ornullotherwise.toString()
-
Constructor Details
-
FilterResultImpl
public FilterResultImpl(Object key, Object instance, Object[] projection, Comparable<?>[] sortProjection)
-
-
Method Details
-
getKey
Description copied from interface:ObjectFilter.FilterResultReturns the key of the matched object. This is optional.- Specified by:
getKeyin interfaceObjectFilter.FilterResult
-
getInstance
Description copied from interface:ObjectFilter.FilterResultReturns the matched object. This is non-null unless projections are present.- Specified by:
getInstancein interfaceObjectFilter.FilterResult
-
getProjection
Description copied from interface:ObjectFilter.FilterResultReturns the projection, if a projection was requested ornullotherwise.- Specified by:
getProjectionin interfaceObjectFilter.FilterResult
-
getSortProjection
Description copied from interface:ObjectFilter.FilterResultReturns the projection of fields used for sorting, if sorting was requested ornullotherwise.- Specified by:
getSortProjectionin interfaceObjectFilter.FilterResult
-
toString
-