org.apache.stanbol.entityhub.servicesapi.query
Interface QueryResultList<T>

All Superinterfaces:
java.lang.Iterable<T>

public interface QueryResultList<T>
extends java.lang.Iterable<T>


Method Summary
 FieldQuery getQuery()
          Getter for the query of this result set.
 java.util.Set<java.lang.String> getSelectedFields()
          The selected fields of this query
 java.lang.Class<T> getType()
          The type of the results in the list
 boolean isEmpty()
          true if the result set is empty
 java.util.Iterator<T> iterator()
          Iterator over the results of this query
 java.util.Collection<? extends T> results()
          Unmodifiable collection of the results
 int size()
          The size of this result set
 

Method Detail

getQuery

FieldQuery getQuery()
Getter for the query of this result set. TODO: Change return Value to Query

Returns:
the query used to create this result set

getSelectedFields

java.util.Set<java.lang.String> getSelectedFields()
The selected fields of this query

Returns:

iterator

java.util.Iterator<T> iterator()
Iterator over the results of this query

Specified by:
iterator in interface java.lang.Iterable<T>

results

java.util.Collection<? extends T> results()
Unmodifiable collection of the results

Returns:
the resutls

isEmpty

boolean isEmpty()
true if the result set is empty

Returns:
true if the result set is empty. Otherwise false

size

int size()
The size of this result set

Returns:

getType

java.lang.Class<T> getType()
The type of the results in the list

Returns:
the type


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.