org.terracotta.management.registry
Interface ResultSet<T>

Type Parameters:
T - The result type (ContextualStatistics, ContextualReturn)
All Superinterfaces:
Iterable<T>
All Known Implementing Classes:
DefaultResultSet

public interface ResultSet<T>
extends Iterable<T>

Author:
Mathieu Carbou

Method Summary
 T getResult(Context context)
           
 T getSingleResult()
           
 boolean isEmpty()
           
 int size()
           
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

getResult

T getResult(Context context)
Returns:
The result of the query for a specific context

getSingleResult

T getSingleResult()
                  throws NoSuchElementException
Returns:
The result of the query for the only one existing context
Throws:
NoSuchElementException - If the result set is empty or has more than 1 values

size

int size()

isEmpty

boolean isEmpty()


Copyright © 2016. All Rights Reserved.