T - K - public abstract class NativeQuery<T,K>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
NativeQuery.NativeColumnQuery
Refine query for column range or slice
|
class |
NativeQuery.NativeIdQuery
Refine query for row key
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
columnLimit |
protected java.util.Collection<java.lang.Object> |
columnNames |
protected java.util.List<K> |
ids |
protected java.util.List<com.netflix.astyanax.query.ColumnPredicate> |
predicates |
| Constructor and Description |
|---|
NativeQuery() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.util.Collection<T> |
getResultSet()
Return a result set of entities
|
abstract java.util.Map<K,java.util.Collection<T>> |
getResultSetById()
Get the result set as a mapping of the id field to a collection of entities.
|
abstract java.util.Map<K,java.lang.Integer> |
getResultSetCounts()
Get the column count for each id in the query without sending data back
to the client.
|
abstract T |
getSingleResult()
Return a single entity (or first) response
|
NativeQuery<T,K> |
limit(int columnLimit) |
NativeQuery.NativeColumnQuery |
whereColumn(java.lang.String name) |
NativeQuery.NativeIdQuery |
whereId() |
protected java.util.List<K> ids
protected java.util.Collection<java.lang.Object> columnNames
protected java.util.List<com.netflix.astyanax.query.ColumnPredicate> predicates
protected int columnLimit
public NativeQuery.NativeIdQuery whereId()
public NativeQuery.NativeColumnQuery whereColumn(java.lang.String name)
public NativeQuery<T,K> limit(int columnLimit)
public abstract T getSingleResult() throws java.lang.Exception
java.lang.Exceptionpublic abstract java.util.Collection<T> getResultSet() throws java.lang.Exception
java.lang.Exceptionpublic abstract java.util.Map<K,java.util.Collection<T>> getResultSetById() throws java.lang.Exception
java.lang.Exceptionpublic abstract java.util.Map<K,java.lang.Integer> getResultSetCounts() throws java.lang.Exception
Excerptionjava.lang.Exception