moizmali / siddhi-json-structs Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
There are places where fixed strings are used.
Eg: Window-Filter-Projection input type query's config is:
{
type*: 'window-filter-projection',
...
}
Changing the type as WINDOW_FILTER_PROJECTION will make it easier to define enums and use.
Every such fixed strings can be named in this manner.
Note: Anyhow, comparisons are case insensitive
JSON structure for the Pattern Query Input type is currently as follows:
{
type*: 'pattern',
eventList*: [
{
type*: 'default | andor | notfor | notand',
value*: {Default JSON | ANDOR JSON | NOTFOR JSON | NOTAND JSON}
},
...
]
}
Here, the type
and value
of a member in the eventList
are transitively dependent. Isn't it good to make it like this:
{
type*: 'pattern',
eventList*: [
{Default JSON | ANDOR JSON | NOTFOR JSON | NOTAND JSON},
...
]
}
And the Default JSON will be as follows:
{
type*: 'default'
forEvery*: 'true|false',
eventReference: '',
streamName*: '',
filter: '',
minCount: '',
maxCount: ''
}
ANDOR, NOTFOR & NOTAND will be having type inside them
A query without a select clause can exists.
Check in the following siddhi app in Product- SP.
@App:name("sample")
@App:description("Description of the plan")
define stream TradeStream (symbol string, price double, volume long, timestamp long);
from TradeStream
insert into b;
isString
capability can also be possible in sources & sinks too. (eg: static_option=value
). This value
can be either a string or not.
There can be other places than sources & sinks too.
Find suitable places like this and update necessarily.
aggregateBy: {
timeStamp: 'timestamp', // NOTE HERE
timePeriod: 'sec...year'
},
store: {},
annotationList: []
}
Can we replace timestamp with attribute?
Then it'll be
aggregateBy: {
attribute: 'timestamp', // NOTE HERE
timePeriod: 'sec...year'
}
The Siddhi runtime identifies the variable as aggregateAttribute
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.