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

All Superinterfaces:
Iterable<T>

public interface QueryResultList<T>
extends Iterable<T>


Method Summary
 FieldQuery getQuery()
          Getter for the query of this result set.
 Set<String> getSelectedFields()
          The selected fields of this query
 Class<T> getType()
          The type of the results in the list
 boolean isEmpty()
          true if the result set is empty
 Iterator<T> iterator()
          Iterator over the results of this query
 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

Set<String> getSelectedFields()
The selected fields of this query

Returns:

iterator

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

Specified by:
iterator in interface Iterable<T>

results

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

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

Returns:
the type


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