Class QueryResultBuilder<K,V>
- java.lang.Object
-
- io.streamthoughts.azkarra.api.query.result.QueryResultBuilder<K,V>
-
public final class QueryResultBuilder<K,V> extends Object
-
-
Constructor Summary
Constructors Constructor Description QueryResultBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryResult<K,V>
build()
static <K,V>
QueryResultBuilder<K,V>newBuilder()
Creates a new builder instance.QueryResultBuilder<K,V>
setError(String error)
QueryResultBuilder<K,V>
setFailedResultSet(ErrorResultSet result)
QueryResultBuilder<K,V>
setFailedResultSet(List<ErrorResultSet> results)
QueryResultBuilder<K,V>
setServer(String server)
QueryResultBuilder<K,V>
setStatus(QueryStatus status)
QueryResultBuilder<K,V>
setStoreName(String storeName)
QueryResultBuilder<K,V>
setStoreType(String storeType)
QueryResultBuilder<K,V>
setSuccessResultSet(List<SuccessResultSet<K,V>> results)
QueryResultBuilder<K,V>
setTimeout(boolean timeout)
QueryResultBuilder<K,V>
setTook(long took)
-
-
-
Method Detail
-
newBuilder
public static <K,V> QueryResultBuilder<K,V> newBuilder()
Creates a new builder instance.- Returns:
- a new
QueryResultBuilder
instance.
-
setError
public QueryResultBuilder<K,V> setError(String error)
-
setTook
public QueryResultBuilder<K,V> setTook(long took)
-
setTimeout
public QueryResultBuilder<K,V> setTimeout(boolean timeout)
-
setServer
public QueryResultBuilder<K,V> setServer(String server)
-
setStatus
public QueryResultBuilder<K,V> setStatus(QueryStatus status)
-
setStoreName
public QueryResultBuilder<K,V> setStoreName(String storeName)
-
setStoreType
public QueryResultBuilder<K,V> setStoreType(String storeType)
-
setSuccessResultSet
public QueryResultBuilder<K,V> setSuccessResultSet(List<SuccessResultSet<K,V>> results)
-
setFailedResultSet
public QueryResultBuilder<K,V> setFailedResultSet(ErrorResultSet result)
-
setFailedResultSet
public QueryResultBuilder<K,V> setFailedResultSet(List<ErrorResultSet> results)
-
build
public QueryResult<K,V> build()
-
-