<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by malki sandamini on Medium]]></title>
        <description><![CDATA[Stories by malki sandamini on Medium]]></description>
        <link>https://medium.com/@malkisandamini95?source=rss-89d8377d1351------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by malki sandamini on Medium</title>
            <link>https://medium.com/@malkisandamini95?source=rss-89d8377d1351------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 09:01:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@malkisandamini95/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Apache Ignite Connector for Siddhi]]></title>
            <link>https://medium.com/@malkisandamini95/apache-ignite-connector-for-siddhi-462ee617351c?source=rss-89d8377d1351------2</link>
            <guid isPermaLink="false">https://medium.com/p/462ee617351c</guid>
            <category><![CDATA[cassandra]]></category>
            <dc:creator><![CDATA[malki sandamini]]></dc:creator>
            <pubDate>Wed, 15 May 2019 14:58:00 GMT</pubDate>
            <atom:updated>2019-05-15T14:58:00.155Z</atom:updated>
            <content:encoded><![CDATA[<p>Apache Ignite connector for Siddhi will make it possible users to create table in Apache ignite with the help of Siddhi queries.And users can perform operations such as insertion,deletion,reading,updating,updating or inserting related to ignite tables using Siddhi queries.</p><p>The required connection parameters for Apache ignite and parameters required for creating table can be given under “store” annotation when creating siddhi app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*n1AAPKxNR_JQNwhTsfgYGA.png" /></figure><p>Above is a example where we connect to ignite using jdbc thin driver.when starting the above app it will create table, ‘stocktable’ with ‘symbol’ as the primary key if it does not exists already.</p><p>Siddhi queries can be used for performing operations related to Apache Ignite .Sample Siddhi Queries for each operation can be given as follows.</p><p><em>Inserting</em></p><p><strong>define stream StockStream (symbol string, price float);<br>from StockStream<br>select symbol, price<br>insert into Stocktable ;</strong></p><p><em>Reading</em></p><p><strong>define stream FooStream (name string);<br>from FooStream#window.length(1) join Stocktable on Stocktable.symbol==FooStream.name <br>select Stocktable.symbol as checkName, <br>Stocktable.price as checkCategory<br>insert into OutStream;</strong></p><p>we can get the output for above query as follows .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*XSLT1ny-RGlIC6joapvgdQ.png" /></figure><p><em>Contains In</em>(check whether a given record exists in database or not)</p><p><strong>define stream FooStream (name string);</strong></p><p><a href="http://twitter.com/sink"><strong>@sink</strong></a><strong>(type=’log’) <br>define stream OutputStream(name string);</strong></p><p><strong>from FooStream <br>[(Stocktable.symbol ==name ) in Stocktable]<br>insert into OutputStream;</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*dHV6qLQnzyhxUcNKP9Ta4A.png" /></figure><p><em>Updating</em></p><p><strong>define stream UpdateStockStream (symbol string, price float);<br>from UpdateStockStream <br>update Stocktable <br>on Stocktable.symbol==symbol;</strong></p><p><em>Updating or inserting</em></p><p><strong>define stream UpdateInsertStockStream (symbol string, price float);<br>from UpdateInsertStockStream <br>update or insert into Stocktable <br>on Stocktable.symbol==symbol;</strong></p><p><em>Deleting</em></p><p><strong>define stream DeleteStockStream (symbol string);<br>from DeleteStockStream <br>delete Stocktable <br>on Stocktable.symbol == symbol ;</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=462ee617351c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use InfluxDB connector with WSO2 Stream Processor]]></title>
            <link>https://medium.com/@malkisandamini95/how-to-use-influxdb-connector-with-wso2-stream-processor-21bdb45e3a1b?source=rss-89d8377d1351------2</link>
            <guid isPermaLink="false">https://medium.com/p/21bdb45e3a1b</guid>
            <category><![CDATA[wso2]]></category>
            <dc:creator><![CDATA[malki sandamini]]></dc:creator>
            <pubDate>Thu, 25 Apr 2019 06:07:53 GMT</pubDate>
            <atom:updated>2019-04-25T06:07:53.370Z</atom:updated>
            <content:encoded><![CDATA[<p>To use InfluxDB connector with WSO2 stream processor, include the jar file of the connector inside the libs folder and start the WSO2 SP studio using command ./editor.sh. InfluxDB connector can be found in the following link.</p><p><a href="https://github.com/malkisandamini/siddhi-store-influxdb-1">malkisandamini/siddhi-store-influxdb-1</a></p><p>WSO2 SP can be access via default url : <a href="http://localhost:9390/editor">http://localhost:9390/editor</a> . Stream processor studio opens as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XNN_F3fL9oARY4KKwdN5ew.png" /></figure><p>Next step is to create siddhi application which can be used to perform operations related to InfluxDB datastore. It can be created by clicking on “New” in the studio interface.</p><p>Enter a name for the Siddhi Application and provide parameters required for connecting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*KdCc81Z_XYQ8DbqYd3NvIg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*XDhfcZPEKePtCW11Hp2F3w.png" /></figure><p>The above example will create a measurement ,StockTable in influxDB datastore with symbol as tag key and volume ,price as field keys.</p><p>To start the Siddhi Application click on the play button in the studio.If application start successfully ,the following is logged in the stream processor studio console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*T9xtHkBEKDEG9ij1N2wnDg.png" /></figure><p>Next we can write Siddhi queries to perform required operations.</p><p>A sample Siddhi application which can be used to insert,read,delete ,insert or update data in influxDB datastore is as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*kcBzwlMSzWg1N-5IxmQ-Dw.png" /></figure><p>Insertion can be performed by giving required attributes via insertStream as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*Q-IYXH5Xe5TaX8gvexQWuA.png" /></figure><p>Similarly we can provide data to be updated/inserted into influxdb datastore as above by giving UpdateStream as the Stream name.</p><p>for deleting, data to be deleted can be provided using DeleteStream .</p><p>For retrieving data from influxDB datastore using Siddhi application,necessary conditions can be given using siddhi queries as in the above example.And values for attributes can be given via searchStream as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*xpgxfoewsJ8N5Erd_cNCsA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21bdb45e3a1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[InfluxDB Connector for Siddhi]]></title>
            <link>https://medium.com/@malkisandamini95/influxdb-connector-for-siddhi-3ea0164a9dad?source=rss-89d8377d1351------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ea0164a9dad</guid>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[malki sandamini]]></dc:creator>
            <pubDate>Sun, 21 Apr 2019 04:09:47 GMT</pubDate>
            <atom:updated>2019-04-21T04:09:47.942Z</atom:updated>
            <content:encoded><![CDATA[<p>InfluxDB connector for Siddhi will make it possible for users to create measurements in a influxDB database using siddhi queries and perform operations such as inserting data into a measurement,retrieve data from a measurements,deleting data series from measurements and so on.</p><p><strong>How to connect to InfluxDB from WSO2 Stream Processor</strong></p><p><a href="http://twitter.com/Store">@Store</a> (type = “influxdb”,<br> url = “<a href="http://localhost:8086/">http://localhost:8086</a>&quot;,<br> username = “&lt;username&gt;”,<br> password = “&lt;password&gt;” ,<br> influxdb.database =”&lt;database&gt;”)<br><a href="http://twitter.com/Index">@Index</a>(“time”,”symbol”)<br>define table StockTable(symbol string,volume long,price float,time long) ;</p><p>Tag keys are defined inside index annotation in siddhi.</p><p>A measurement with tag key ‘symbol’ is created in InfluxDB data store by the above example .And the possible operations such as inserting, deleting , reading and updating or inserting can be performed using siddhi queries as follows.</p><p><strong>Siddhi Queries</strong></p><p>Required streams can be defined as follows.</p><p><em>define stream stockStream (symbol string,volume long,price float,time long);<br>define stream insertStream(symbol string,volume long,price float);<br>define stream deleteStream(symbol string);<br>define stream updateStream(symbol string,volume long,price float,time long);<br>define stream searchStream(symbols string);<br>define stream containStream(name string,value long);</em></p><p><strong>Insert data into a measuremment.</strong></p><p><em>from insertStream<br>select symbol,volume,price,currentTimeMillis() as time<br>insert into StockTable;</em></p><p><strong>Deleting data points from influxDB store.</strong><br><em>from deleteStream <br>delete StockTable on StockTable.symbol==symbol;</em></p><p><strong>Inserting or updating event into influxDB store</strong> <br><em>from updateStream#window.timeBatch(1 sec) <br>update or insert into StockTable <br>on StockTable.symbol==symbol and StockTable.time==time;</em><br> <br><strong> Reading events from influxDB store </strong><br><em>from searchStream#window.length(1) join StockTable on StockTable.symbol==symbols <br>select StockTable.symbol as checkName, StockTable.price as checkCategory,<br>StockTable.volume as checkVolume,StockTable.time as checkTime<br>insert into OutputStream;</em></p><p><strong>Siddhi In in influxDB store </strong><br><em>from containStream <br>[(StockTable.symbol == name ) in StockTable]<br>insert into logStream;</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ea0164a9dad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[InfluxDB]]></title>
            <link>https://medium.com/@malkisandamini95/influxdb-e283d95bf3b8?source=rss-89d8377d1351------2</link>
            <guid isPermaLink="false">https://medium.com/p/e283d95bf3b8</guid>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[malki sandamini]]></dc:creator>
            <pubDate>Thu, 14 Mar 2019 07:28:12 GMT</pubDate>
            <atom:updated>2019-03-14T07:28:12.180Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is InfluxDB?</strong></p><p>InfluxDB is a time series database,that is each data in InfluxDB is associated with a particular timestamp which shows date and time associated with a particular data.</p><p>InfluxDB consists of measurements which act as a container for tags,fields and time column. Set of data in a row of a InfluxDB measurement is known as point.In a measurement we can have two types of columns as fields and tags. Field consists of field keys and field values . Similarly tags consist of tag keys and tag values. Field keys are strings and filed values can be strings, floats, integer or Boolean. Field values are our data and we cannot have influxDB without fields. Tags stored as strings.they are indexed and optional.</p><p><strong><em>Tag set</em></strong> is the different combinations of all the tag key-value pairs.</p><p><strong>InfluxDB vs SQL</strong></p><p>When comparing influxDB with sql , sql also can handle time series data but it is not strictly define for that purpose. InfluxDB is made to store large volume of time series data. A InfluxDB measurement is similar to a sql table. InfluxDB tags are similar to indexed columns and fields are similar to unindexed columns in an sql database. A point in a InfluxDB measurement is similar to a row in a sql table.</p><p><strong>InfluxDB</strong>…</p><p>Easy to start</p><p>Familiar query syntax</p><p>No external dependencies</p><p>Use for regular and irregular time series</p><p>Scalable</p><h4>How to install InfluxDB</h4><p>Download the latest version of InfluxDB from here.</p><p><a href="https://portal.influxdata.com/downloads/">https://portal.influxdata.com/downloads/</a></p><p>Then install and start the influxDB service(ubuntu).</p><p>sudo apt-get update &amp;&amp; sudo apt-get install influxdb<br> sudo systemctl unmask influxdb.service<br> sudo systemctl start influxdb</p><p>To access influxDB command line interface /shell first launch influxd(sudo influxd) and then launch influx in your terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*xZHq9FbfTv-8ts-Q7fh-jw.png" /></figure><p>If a user connected to InfluxDB node successfully the output will looks like as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*muYE5H7bBWnqmrZAtgc5nw.png" /></figure><h4>InfluxQL</h4><p>Creating a database and using a particular database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*fLGL6IHzo8oTSyOanF21yg.png" /></figure><p>Get list of measurements in a particular database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*uk18ili5KwgqhfOSaZjAaw.png" /></figure><p>Get tag keys of measurements of a particular database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*V1mftPqSw6gCQ9gjZ-udsA.png" /></figure><p>Get field keys of measurements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*ZvQgwRZEdTRu6WS5pZVs-Q.png" /></figure><p>Insert data into a measurement and retrieving data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*SUZxdURUXNqtMHvbQ5Ywsg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e283d95bf3b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>