public class IdQuery<T> extends Object implements ISpaceQuery<T>
QueryResultType
,
IdsQuery
Constructor and Description |
---|
IdQuery(Class<T> type,
Object id)
Creates an IdQuery using the specified type and id.
|
IdQuery(Class<T> type,
Object id,
Object routing)
Creates an IdQuery using the specified type, id and routing.
|
IdQuery(Class<T> type,
Object id,
Object routing,
int version)
Creates an IdQuery using the specified type, id and routing.
|
IdQuery(Class<T> type,
Object id,
Object routing,
QueryResultType queryResultType)
Creates an IdQuery using the specified type, id, routing and query result type.
|
IdQuery(Class<T> type,
Object id,
Object routing,
QueryResultType queryResultType,
int version)
Creates an IdQuery using the specified type, id, routing and query result type.
|
IdQuery(Class<T> type,
Object id,
QueryResultType queryResultType)
Creates an IdQuery using the specified type, id and query result type.
|
IdQuery(String typeName,
Object id)
Creates an IdQuery using the specified type and id.
|
IdQuery(String typeName,
Object id,
Object routing)
Creates an IdQuery using the specified type, id and routing.
|
IdQuery(String typeName,
Object id,
Object routing,
int version)
Creates an IdQuery using the specified type, id and routing.
|
IdQuery(String typeName,
Object id,
Object routing,
QueryResultType queryResultType)
Creates an IdQuery using the specified type, id, routing and query result type.
|
IdQuery(String typeName,
Object id,
Object routing,
QueryResultType queryResultType,
int version)
Creates an IdQuery using the specified type, id, routing and query result type.
|
IdQuery(String typeName,
Object id,
QueryResultType queryResultType)
Creates an IdQuery using the specified type, id and query result type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
getId()
Returns the id to match.
|
String[] |
getProjections()
Returns the projections set on this query, null means no projection is used and all the
properties should be returned.
|
QueryResultType |
getQueryResultType()
Returns the type of result.
|
Object |
getRouting()
Returns the routing value used to determine the partition to query.
|
String |
getTypeName()
Returns the name of type to query.
|
int |
getVersion()
Returns the version.
|
IdQuery<T> |
setProjections(String... properties)
Sets projection properties which specifies that a result for an operation using this query
should contain data for the specified projection properties.
|
public IdQuery(Class<T> type, Object id)
type
- Type to query.id
- Id to match.public IdQuery(Class<T> type, Object id, Object routing)
type
- Type to query.id
- Id to match.routing
- Routing value to determine which partition to query.public IdQuery(Class<T> type, Object id, Object routing, int version)
type
- Type to query.id
- Id to match.routing
- Routing value to determine which partition to query.version
- to consider when performing a modifying operation (take/clear/change), 0
version means no version check should be made.public IdQuery(Class<T> type, Object id, QueryResultType queryResultType)
type
- Type to query.id
- Id to match.queryResultType
- Type of result.public IdQuery(Class<T> type, Object id, Object routing, QueryResultType queryResultType)
type
- Type to query.id
- Id to match.routing
- Routing value to determine which partition to query.queryResultType
- Type of result.public IdQuery(Class<T> type, Object id, Object routing, QueryResultType queryResultType, int version)
type
- Type to query.id
- Id to match.routing
- Routing value to determine which partition to query.queryResultType
- Type of result.version
- to consider when performing a modifying operation (take/clear/change),
0 version means no version check should be made.public IdQuery(String typeName, Object id)
typeName
- Type to query.id
- Id to match.public IdQuery(String typeName, Object id, Object routing)
typeName
- Type to query.id
- Id to match.routing
- Routing value to determine which partition to query.public IdQuery(String typeName, Object id, Object routing, int version)
typeName
- Type to query.id
- Id to match.routing
- Routing value to determine which partition to query.version
- to consider when performing a modifying operation (take/clear/change), 0
version means no version check should be made.public IdQuery(String typeName, Object id, QueryResultType queryResultType)
typeName
- Type to query.id
- Id to match.queryResultType
- Type of result.public IdQuery(String typeName, Object id, Object routing, QueryResultType queryResultType)
typeName
- Type to query.id
- Id to match.routing
- Routing value to determine which partition to query.queryResultType
- Type of result.public IdQuery(String typeName, Object id, Object routing, QueryResultType queryResultType, int version)
typeName
- Type to query.id
- Id to match.routing
- Routing value to determine which partition to query.queryResultType
- Type of result.version
- to consider when performing a modifying operation (take/clear/change),
0 version means no version check should be made.public String getTypeName()
public Object getId()
public Object getRouting()
public QueryResultType getQueryResultType()
public int getVersion()
public IdQuery<T> setProjections(String... properties)
public String[] getProjections()
Copyright © GigaSpaces.