Skip to content

Instantly share code, notes, and snippets.

@apremalal
Created May 3, 2015 19:01
Show Gist options
  • Save apremalal/486e31bc62db2200b14d to your computer and use it in GitHub Desktop.
Save apremalal/486e31bc62db2200b14d to your computer and use it in GitHub Desktop.
<executionPlan xmlns="http://wso2.org/carbon/eventprocessor" name="isWithinCheckExePlan" statistics="enable" trace="enable">
<description />
<siddhiConfiguration>
<property name="siddhi.persistence.snapshot.time.interval.minutes">0</property>
<property name="siddhi.enable.distributed.processing">false</property>
</siddhiConfiguration>
<importedStreams>
<stream as="locationdatastream" name="locationDataInputStream" version="1.0.0" />
</importedStreams>
<queryExpressions><![CDATA[from locationdatastream[geo:iswithin(lattitude,longitude,"{'type':'Polygon','coordinates':[[[79.85173402706208,6.909744100877063],[79.85442696491334,6.91094765233452],[79.85471664348692,6.9097654026993816],[79.85173402706208,6.908796168811299],[79.85173402706208,6.909744100877063]]]}")==true] select correlation_timeStamp,deviceId,lattitude,longitude, true as iswithin insert into iswithinstream;]]></queryExpressions>
<exportedStreams>
<stream name="isWithinOutputStream" valueOf="iswithinstream" version="1.0.0" />
</exportedStreams>
</executionPlan>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment