Class AbstractPayload
- java.lang.Object
-
- it.unimi.di.big.mg4j.index.payload.AbstractPayload
-
- All Implemented Interfaces:
Payload,Serializable,Comparable<Payload>
- Direct Known Subclasses:
DatePayload,IntegerPayload
public abstract class AbstractPayload extends Object implements Payload
An abstract payload.The main responsibility of this class is that of implementing
rangeFilter(Payload, Payload)using theComparablemethods.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classAbstractPayload.ComparatorPayloadPredicate
-
Constructor Summary
Constructors Constructor Description AbstractPayload()
-
Method Summary
Modifier and Type Method Description AbstractPayload.ComparatorPayloadPredicaterangeFilter(Payload left, Payload right)Returns a payload filter matching the interval defined by the given parameters.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
rangeFilter
public AbstractPayload.ComparatorPayloadPredicate rangeFilter(Payload left, Payload right)
Description copied from interface:PayloadReturns a payload filter matching the interval defined by the given parameters.- Specified by:
rangeFilterin interfacePayload- Parameters:
left- the left extreme of the interval (inclusive). It will be cached (but not copied) internally.right- the right extreme of the interval (exclusive). It will be cached (but not copied) internally.- Returns:
- a payload filter for the interval defined above.
-
-