Package com.gigaspaces.internal.query
Class AbstractSpaceQuery<T>
java.lang.Object
com.gigaspaces.internal.query.AbstractSpaceQuery<T>
- All Implemented Interfaces:
ICustomQuery,ISpaceQuery<T>,SmartExternalizable,Externalizable,Serializable
- Direct Known Subclasses:
CustomSpaceQuery
public abstract class AbstractSpaceQuery<T>
extends Object
implements ISpaceQuery<T>, ICustomQuery, SmartExternalizable
Common base class for space query implementations.
- Since:
- 7.1
- Author:
- Niv Ingberg
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for Externalizable.protectedAbstractSpaceQuery(Class<?> entryClass, ISpacePredicate predicate) Creates a space query using the specified class and predicate.protectedAbstractSpaceQuery(String entryTypeName, ISpacePredicate predicate) Creates a space query using the specified type name and predicate. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomIndex(IQueryIndexScanner customIndex) Gets the query entry type name.Gets the query predicate.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
matches, toSQLQueryMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
AbstractSpaceQuery
protected AbstractSpaceQuery()Default constructor for Externalizable. -
AbstractSpaceQuery
Creates a space query using the specified type name and predicate.- Parameters:
entryTypeName- Entry type name.predicate- Predicate.
-
AbstractSpaceQuery
Creates a space query using the specified class and predicate.- Parameters:
entryClass- Entry class.predicate- Predicate.
-
-
Method Details
-
getEntryTypeName
Gets the query entry type name. -
getPredicate
Gets the query predicate. -
addCustomIndex
- Parameters:
customIndex-
-
getCustomIndexes
- Specified by:
getCustomIndexesin interfaceICustomQuery- Returns:
- the list of query defined indexes. If no index is defined - empty list is returned
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-