Class GlobalResultSet<K,V>
- java.lang.Object
-
- io.streamthoughts.azkarra.api.query.result.GlobalResultSet<K,V>
-
- All Implemented Interfaces:
Serializable
public class GlobalResultSet<K,V> extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GlobalResultSet(String store, String type, String error, List<ErrorResultSet> failure, List<SuccessResultSet<K,V>> success)Creates a newGlobalResultSetinstance.GlobalResultSet(String store, String type, List<ErrorResultSet> failure, List<SuccessResultSet<K,V>> success)Creates a newGlobalResultSetinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetError()List<ErrorResultSet>getFailure()StringgetStore()List<SuccessResultSet<K,V>>getSuccess()LonggetTotal()StringgetType()inthashCode()StringtoString()List<Either<SuccessResultSet<K,V>,ErrorResultSet>>unwrap()
-
-
-
Constructor Detail
-
GlobalResultSet
public GlobalResultSet(String store, String type, List<ErrorResultSet> failure, List<SuccessResultSet<K,V>> success)
Creates a newGlobalResultSetinstance.- Parameters:
store- the name of the store.type- the type of the store.failure- the error record set.success- the result record set.
-
GlobalResultSet
public GlobalResultSet(String store, String type, String error, List<ErrorResultSet> failure, List<SuccessResultSet<K,V>> success)
Creates a newGlobalResultSetinstance.- Parameters:
store- the name of the store.type- the type of the store.type- the global error message.failure- the error record set.success- the result record set.
-
-
Method Detail
-
getError
public String getError()
-
getStore
public String getStore()
-
getType
public String getType()
-
getTotal
public Long getTotal()
-
getFailure
public List<ErrorResultSet> getFailure()
-
getSuccess
public List<SuccessResultSet<K,V>> getSuccess()
-
unwrap
public List<Either<SuccessResultSet<K,V>,ErrorResultSet>> unwrap()
-
-