Package com.gigaspaces.internal.query
Class PropertiesQuery
java.lang.Object
com.gigaspaces.internal.query.AbstractCustomQuery
com.gigaspaces.internal.query.PropertiesQuery
- All Implemented Interfaces:
ICustomQuery,SmartExternalizable,Externalizable,Serializable
Queries an entry that matches all the given properties. Properties are key-value pairs where key
is the entry fields name and the value if the field value.
- Since:
- 8.0
- Author:
- Anna Pavtulov
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for Externalizable.PropertiesQuery(Map<String, Object> properties, ITypeDesc typeDesc) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanmatches(CacheManager cacheManager, ServerEntry entry, String skipAlreadyMatchedIndexPath) Checks whether the specified entry matches this query.voidtoSQLQuery(ITypeDesc typeDesc) voidMethods inherited from class com.gigaspaces.internal.query.AbstractCustomQuery
addCustomIndex, getCustomIndexes, matchConvertingExceptionHandlerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
PropertiesQuery
public PropertiesQuery()Default constructor for Externalizable. -
PropertiesQuery
-
-
Method Details
-
matches
public boolean matches(CacheManager cacheManager, ServerEntry entry, String skipAlreadyMatchedIndexPath) Description copied from interface:ICustomQueryChecks whether the specified entry matches this query.- Specified by:
matchesin interfaceICustomQuery- Specified by:
matchesin classAbstractCustomQuery- Returns:
- Returns true if the specified entry matches this query, false otherwise.
-
match
-
toSQLQuery
- Parameters:
typeDesc- TODO- Returns:
- SQLQuery
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classAbstractCustomQuery- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classAbstractCustomQuery- Throws:
IOException
-