me.prettyprint.cassandra.model
Class QueryResultImpl<T>

java.lang.Object
  extended by me.prettyprint.cassandra.model.ExecutionResult<T>
      extended by me.prettyprint.cassandra.model.QueryResultImpl<T>
Type Parameters:
T - The type of the result. May be for example Column of SuperColumn
All Implemented Interfaces:
QueryResult<T>, ResultStatus

public final class QueryResultImpl<T>
extends ExecutionResult<T>
implements QueryResult<T>

Author:
Ran Tavory

Field Summary
 
Fields inherited from class me.prettyprint.cassandra.model.ExecutionResult
BASE_MSG_FORMAT
 
Constructor Summary
QueryResultImpl(ExecutionResult<T> res, Query<T> query)
           
QueryResultImpl(T value, long execTime, CassandraHost cassandraHost, Query<T> query)
           
 
Method Summary
 Query<T> getQuery()
           
 String toString()
           
 
Methods inherited from class me.prettyprint.cassandra.model.ExecutionResult
formatMessage, get, getExecutionTimeMicro, getExecutionTimeNano, getHostUsed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface me.prettyprint.hector.api.query.QueryResult
get
 
Methods inherited from interface me.prettyprint.hector.api.ResultStatus
getExecutionTimeMicro, getExecutionTimeNano, getHostUsed
 

Constructor Detail

QueryResultImpl

public QueryResultImpl(T value,
                       long execTime,
                       CassandraHost cassandraHost,
                       Query<T> query)

QueryResultImpl

public QueryResultImpl(ExecutionResult<T> res,
                       Query<T> query)
Method Detail

getQuery

public Query<T> getQuery()
Specified by:
getQuery in interface QueryResult<T>
Returns:
the query used to create this result

toString

public String toString()
Overrides:
toString in class ExecutionResult<T>


Copyright © 2011. All Rights Reserved.