public class IdsQuery<T> extends Object implements ISpaceQuery<T>
QueryResultType
,
IdQuery
Constructor and Description |
---|
IdsQuery(Class<T> type,
Object[] ids)
Creates an IdsQuery using the specified type and IDs.
|
IdsQuery(Class<T> type,
Object[] ids,
Object routing)
Creates an IdsQuery using the specified type, IDs and routing.
|
IdsQuery(Class<T> type,
Object[] ids,
Object[] routings)
Creates an IdsQuery using the specified type, IDs and routing per id.
|
IdsQuery(Class<T> type,
Object[] ids,
Object[] routings,
QueryResultType queryResultType)
Creates an IdsQuery using the specified type, IDs, routing per id and query result type.
|
IdsQuery(Class<T> type,
Object[] ids,
Object routing,
QueryResultType queryResultType)
Creates an IdsQuery using the specified type, IDs, routing and query result type.
|
IdsQuery(Class<T> type,
Object[] ids,
QueryResultType queryResultType)
Creates an IdsQuery using the specified type, IDs and query result type.
|
IdsQuery(String typeName,
Object[] ids)
Creates an IdsQuery using the specified type and IDs.
|
IdsQuery(String typeName,
Object[] ids,
Object routing)
Creates an IdsQuery using the specified type, IDs and routing.
|
IdsQuery(String typeName,
Object[] ids,
Object[] routings)
Creates an IdsQuery using the specified type, IDs and routing per id.
|
IdsQuery(String typeName,
Object[] ids,
Object[] routings,
QueryResultType queryResultType)
Creates an IdsQuery using the specified type, IDs, routing per id and query result type.
|
IdsQuery(String typeName,
Object[] ids,
Object routing,
QueryResultType queryResultType)
Creates an IdsQuery using the specified type, IDs, routing and query result type.
|
IdsQuery(String typeName,
Object[] ids,
QueryResultType queryResultType)
Creates an IdsQuery using the specified type, IDs and query result type.
|
Modifier and Type | Method and Description |
---|---|
Object[] |
getIds()
Returns the IDs 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.
|
Object[] |
getRoutings()
Returns the routing values used to determine the partition to query.
|
String |
getTypeName()
Returns the name of type to query.
|
IdsQuery<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 IdsQuery(Class<T> type, Object[] ids)
type
- Type to query.ids
- IDs to match.public IdsQuery(Class<T> type, Object[] ids, QueryResultType queryResultType)
type
- Type to query.ids
- IDs to match.queryResultType
- Type of result.public IdsQuery(Class<T> type, Object[] ids, Object routing)
type
- Type to query.ids
- IDs to match.routing
- Routing value to determine which partition to query.public IdsQuery(Class<T> type, Object[] ids, Object routing, QueryResultType queryResultType)
type
- Type to query.ids
- IDs to match.routing
- Routing value to determine which partition to query.queryResultType
- Type of result.public IdsQuery(Class<T> type, Object[] ids, Object[] routings)
type
- Type to query.ids
- IDs to match.routings
- Routing values (per id) to determine which partition to query.public IdsQuery(Class<T> type, Object[] ids, Object[] routings, QueryResultType queryResultType)
type
- Type to query.ids
- IDs to match.routings
- Routing values (per id) to determine which partition to query.queryResultType
- Type of result.public IdsQuery(String typeName, Object[] ids)
typeName
- Type to query.ids
- IDs to match.public IdsQuery(String typeName, Object[] ids, QueryResultType queryResultType)
typeName
- Type to query.ids
- IDs to match.queryResultType
- Type of result.public IdsQuery(String typeName, Object[] ids, Object routing)
typeName
- Type to query.ids
- IDs to match.routing
- Routing value to determine which partition to query.public IdsQuery(String typeName, Object[] ids, Object routing, QueryResultType queryResultType)
typeName
- Type to query.ids
- IDs to match.routing
- Routing value to determine which partition to query.queryResultType
- Type of result.public IdsQuery(String typeName, Object[] ids, Object[] routings)
typeName
- Type to query.ids
- IDs to match.routings
- Routing values (per id) to determine which partition to query.public IdsQuery(String typeName, Object[] ids, Object[] routings, QueryResultType queryResultType)
typeName
- Type to query.ids
- IDs to match.routings
- Routing values (per id) to determine which partition to query.queryResultType
- Type of result.public String getTypeName()
public Object[] getIds()
public Object getRouting()
public Object[] getRoutings()
public QueryResultType getQueryResultType()
public IdsQuery<T> setProjections(String... properties)
public String[] getProjections()
Copyright © GigaSpaces.