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 newGlobalResultSet
instance.GlobalResultSet(String store, String type, List<ErrorResultSet> failure, List<SuccessResultSet<K,V>> success)
Creates a newGlobalResultSet
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getError()
List<ErrorResultSet>
getFailure()
String
getStore()
List<SuccessResultSet<K,V>>
getSuccess()
Long
getTotal()
String
getType()
int
hashCode()
String
toString()
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 newGlobalResultSet
instance.- 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 newGlobalResultSet
instance.- 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()
-
-