com.espertech.esper.view
Interface Viewable

All Superinterfaces:
EventCollection, java.lang.Iterable<EventBean>
All Known Subinterfaces:
DataWindowView, DerivedValueView, EventStream, GroupByView, HistoricalEventViewable, MergeViewMarker, UpdateDispatchView, View
All Known Implementing Classes:
AddPropertyValueView, BaseBivariateStatisticsView, BufferView, ContextMergeView, ContextMergeViewForwarding, CorrelationView, CreateVariableView, DatabasePollingViewable, EPLSelectUpdateDispatchView, EPLSelectViewable, EventRowRegexNFAView, ExpressionBatchView, ExpressionViewBase, ExpressionWindowView, ExternallyTimedBatchView, ExternallyTimedWindowView, FilterExprView, FirstElementView, FirstLengthWindowView, FirstTimeView, FirstUniqueByPropertyView, GroupByViewImpl, GroupByViewReclaimAged, InternalRoutePreprocessView, IntersectAsymetricView, IntersectBatchView, IntersectView, KeepAllView, LastElementView, LastPostObserverView, LengthBatchView, LengthBatchViewRStream, LengthWindowView, LengthWindowViewRStream, MergeView, MethodPollingViewable, NamedWindowConsumerView, NamedWindowOnDeleteView, NamedWindowOnExprBaseView, NamedWindowOnMergeView, NamedWindowOnSelectView, NamedWindowOnUpdateView, NamedWindowRootViewInstance, NamedWindowTailViewInstance, OnSetVariableView, OutputProcessViewBase, OutputProcessViewBaseCallback, OutputProcessViewBaseWAfter, OutputProcessViewConditionDefault, OutputProcessViewConditionDefaultPostProcess, OutputProcessViewConditionFirst, OutputProcessViewConditionFirstPostProcess, OutputProcessViewConditionSnapshot, OutputProcessViewConditionSnapshotPostProcess, OutputProcessViewDirect, OutputProcessViewDirectDistinctOrAfter, OutputProcessViewDirectDistinctOrAfterPostProcess, OutputProcessViewDirectPostProcess, PatternRemoveDispatchView, PriorEventView, RankWindowView, RegressionLinestView, RouteResultView, SingleStreamDispatchView, SizeView, SortWindowView, SubselectAggregatorViewBase, SubselectAggregatorViewFilteredGrouped, SubselectAggregatorViewFilteredUngrouped, SubselectAggregatorViewUnfilteredGrouped, SubselectAggregatorViewUnfilteredUngrouped, TableOnDeleteView, TableOnMergeView, TableOnSelectView, TableOnUpdateView, TableOnViewBase, TableStateViewableInternal, TableStateViewablePublic, TimeAccumView, TimeAccumViewRStream, TimeBatchView, TimeBatchViewRStream, TimeLengthBatchView, TimeOrderView, TimeWindowView, UnionAsymetricView, UnionView, UniqueByPropertyView, UnivariateStatisticsView, UpdateDispatchViewBase, UpdateDispatchViewBlockingSpin, UpdateDispatchViewBlockingWait, UpdateDispatchViewNonBlocking, ViewableDefaultImpl, ViewSupport, VirtualDWViewImpl, WeightedAverageView, ZeroDepthStreamIterable, ZeroDepthStreamNoIterate

public interface Viewable
extends EventCollection

The Viewable interface marks an object as supporting zero, one or more View instances. All implementing classes must call each view's 'update' method when new data enters it. Implementations must take care to synchronize methods of this interface with other methods such that data flow is threadsafe.


Method Summary
 View addView(View view)
          Add a view to the viewable object.
 View[] getViews()
          Returns all added views.
 boolean hasViews()
          Test is there are any views to the Viewable.
 void removeAllViews()
          Remove all views.
 boolean removeView(View view)
          Remove a view.
 
Methods inherited from interface com.espertech.esper.view.EventCollection
getEventType, iterator
 

Method Detail

addView

View addView(View view)
Add a view to the viewable object.

Parameters:
view - to add
Returns:
view to add

getViews

View[] getViews()
Returns all added views.

Returns:
list of added views

removeView

boolean removeView(View view)
Remove a view.

Parameters:
view - to remove
Returns:
true to indicate that the view to be removed existed within this view, false if the view to remove could not be found

removeAllViews

void removeAllViews()
Remove all views.


hasViews

boolean hasViews()
Test is there are any views to the Viewable.

Returns:
true indicating there are child views, false indicating there are no child views

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com