com.cloudera.api.model
Class ApiEventQueryResult

java.lang.Object
  extended by com.cloudera.api.model.ApiEventQueryResult
All Implemented Interfaces:
Iterable<ApiEvent>

public class ApiEventQueryResult
extends Object


Field Summary
static String ITEMS_ATTR
           
protected  List<T> values
           
 
Constructor Summary
ApiEventQueryResult()
           
ApiEventQueryResult(long totalResults, List<ApiEvent> events)
           
 
Method Summary
 boolean add(T item)
           
 boolean equals(Object o)
           
 T get(int index)
           
 List<ApiEvent> getEvents()
           
 long getTotalResults()
          The total number of matched results.
 int hashCode()
           
 Iterator<T> iterator()
           
static ApiEventQueryResult newEmptyResult()
           
 void setEvents(List<ApiEvent> values)
           
 void setTotalResults(long totalResults)
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ITEMS_ATTR

public static final String ITEMS_ATTR
See Also:
Constant Field Values

values

protected List<T> values
Constructor Detail

ApiEventQueryResult

public ApiEventQueryResult()

ApiEventQueryResult

public ApiEventQueryResult(long totalResults,
                           List<ApiEvent> events)
Method Detail

newEmptyResult

public static ApiEventQueryResult newEmptyResult()

getTotalResults

public long getTotalResults()
The total number of matched results. Some are possibly not shown due to pagination.


setTotalResults

public void setTotalResults(long totalResults)

getEvents

public List<ApiEvent> getEvents()

setEvents

public void setEvents(List<ApiEvent> values)

add

public boolean add(T item)

iterator

public Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T>

size

public int size()

get

public T get(int index)

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.