GigaSpaces XAP 7.1 API

com.gigaspaces.internal.query
Class AbstractSpaceQuery<T>

java.lang.Object
  extended by com.gigaspaces.internal.query.AbstractSpaceQuery<T>
All Implemented Interfaces:
com.gigaspaces.internal.query.ICustomQuery, ISpaceQuery<T>, Externalizable, Serializable

public abstract class AbstractSpaceQuery<T>
extends Object
implements ISpaceQuery<T>, com.gigaspaces.internal.query.ICustomQuery, Externalizable

Common base class for space query implementations.

Since:
7.1
Author:
Niv Ingberg
See Also:
Serialized Form

Constructor Summary
protected AbstractSpaceQuery()
          Default constructor for Externalizable.
protected AbstractSpaceQuery(Class<?> entryClass, com.gigaspaces.internal.query.predicate.ISpacePredicate predicate)
          Creates a space query using the specified class and predicate.
protected AbstractSpaceQuery(String entryTypeName, com.gigaspaces.internal.query.predicate.ISpacePredicate predicate)
          Creates a space query using the specified type name and predicate.
 
Method Summary
 void addCustomIndex(com.gigaspaces.internal.query.IQueryIndexScanner customIndex)
           
 List<com.gigaspaces.internal.query.IQueryIndexScanner> getCustomIndexes()
           
 String getEntryTypeName()
          Gets the query entry type name.
 com.gigaspaces.internal.query.predicate.ISpacePredicate getPredicate()
          Gets the query predicate.
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.gigaspaces.internal.query.ICustomQuery
matches, toSQLQuery
 

Constructor Detail

AbstractSpaceQuery

protected AbstractSpaceQuery()
Default constructor for Externalizable.


AbstractSpaceQuery

protected AbstractSpaceQuery(String entryTypeName,
                             com.gigaspaces.internal.query.predicate.ISpacePredicate predicate)
Creates a space query using the specified type name and predicate.

Parameters:
entryTypeName - Entry type name.
predicate - Predicate.

AbstractSpaceQuery

protected AbstractSpaceQuery(Class<?> entryClass,
                             com.gigaspaces.internal.query.predicate.ISpacePredicate predicate)
Creates a space query using the specified class and predicate.

Parameters:
entryClass - Entry class.
predicate - Predicate.
Method Detail

getEntryTypeName

public String getEntryTypeName()
Gets the query entry type name.


getPredicate

public com.gigaspaces.internal.query.predicate.ISpacePredicate getPredicate()
Gets the query predicate.


addCustomIndex

public void addCustomIndex(com.gigaspaces.internal.query.IQueryIndexScanner customIndex)
Parameters:
customIndex -

getCustomIndexes

public List<com.gigaspaces.internal.query.IQueryIndexScanner> getCustomIndexes()
Specified by:
getCustomIndexes in interface com.gigaspaces.internal.query.ICustomQuery

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

GigaSpaces XAP 7.1 API

Copyright © GigaSpaces.