Package com.gigaspaces.internal.query
Class AbstractCustomQuery
java.lang.Object
com.gigaspaces.internal.query.AbstractCustomQuery
- All Implemented Interfaces:
ICustomQuery,SmartExternalizable,Externalizable,Serializable
- Direct Known Subclasses:
AbstractCompundCustomQuery,CompoundContainsItemsCustomQuery,PropertiesQuery,Range
public abstract class AbstractCustomQuery
extends Object
implements ICustomQuery, SmartExternalizable
Base class for all custom query interfaces.
- Since:
- 7.1
- Author:
- Niv Ingberg
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomIndex(IQueryIndexScanner customIndex) voidmatchConvertingExceptionHandler(ServerEntry entry, String propertyName, ConvertingException e) abstract booleanmatches(CacheManager cacheManager, ServerEntry entry, String skipAlreadyMatchedIndexPath) Checks whether the specified entry matches this query.voidvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.internal.query.ICustomQuery
toSQLQueryMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
AbstractCustomQuery
public AbstractCustomQuery()Default constructor for Externalizable.
-
-
Method Details
-
matches
public abstract boolean matches(CacheManager cacheManager, ServerEntry entry, String skipAlreadyMatchedIndexPath) Description copied from interface:ICustomQueryChecks whether the specified entry matches this query.- Specified by:
matchesin interfaceICustomQuery- Returns:
- Returns true if the specified entry matches this query, false otherwise.
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
addCustomIndex
- Parameters:
customIndex-
-
getCustomIndexes
- Specified by:
getCustomIndexesin interfaceICustomQuery- Returns:
- the list of query defined indexes. If no index is defined - empty list is returned
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
matchConvertingExceptionHandler
public void matchConvertingExceptionHandler(ServerEntry entry, String propertyName, ConvertingException e) throws ConvertingException - Throws:
ConvertingException
-