public class OnDemandQuery extends Object implements SiddhiElement
| Modifier and Type | Class and Description |
|---|---|
static class |
OnDemandQuery.OnDemandQueryType
This enum is used to identify the type of a on-demand query.
|
| Constructor and Description |
|---|
OnDemandQuery() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteBy(String outputTableId,
Expression onDeletingExpression)
Method to set a deleteStream as the outputStream of the on-demand query
|
boolean |
equals(Object o) |
OnDemandQuery |
from(InputStore inputStore)
Builder method to set input store to the on-demand query
|
InputStore |
getInputStore()
Getter for the input store
|
OutputStream |
getOutputStream()
Getter method to get the outputStream of the on-demand query
|
int[] |
getQueryContextEndIndex() |
int[] |
getQueryContextStartIndex() |
Selector |
getSelector()
Getter method to get the selector of the on-demand query
|
OnDemandQuery.OnDemandQueryType |
getType()
This method returns the type of given on-demand query.
|
int |
hashCode() |
OnDemandQuery |
outStream(OutputStream outputStream)
Builder method to set an outPutStream to the on-demand query
|
static OnDemandQuery |
query()
Builder method to get a new on-demand query instance
|
OnDemandQuery |
select(Selector selector)
Builder method to set a selector to the on-demand query
|
void |
setQueryContextEndIndex(int[] lineAndColumn) |
void |
setQueryContextStartIndex(int[] lineAndColumn) |
void |
setType(OnDemandQuery.OnDemandQueryType type)
This method sets the type of given on-demand query.
|
String |
toString() |
void |
updateBy(String outputTableId,
Expression onUpdateExpression)
Method to set an updateStream as the outputStream of the on-demand query
|
void |
updateBy(String outputTableId,
UpdateSet updateSetAttributes,
Expression onUpdateExpression)
Method to set an updateStream as the outputStream of the on-demand query
|
void |
updateOrInsertBy(String outputTableId,
UpdateSet updateSetAttributes,
Expression onUpdateExpression)
Method to set an updateOrInsertStream as the outputStream of the on-demand query
|
public static OnDemandQuery query()
public OnDemandQuery from(InputStore inputStore)
inputStore - inputStore for the on-demand querypublic InputStore getInputStore()
public OnDemandQuery select(Selector selector)
selector - selector for the on-demand querypublic OnDemandQuery outStream(OutputStream outputStream)
outputStream - outPutStream for the on-demand querypublic void deleteBy(String outputTableId, Expression onDeletingExpression)
outputTableId - id of the table which is going to be queriedonDeletingExpression - expression for the delete operation defined in the on-demand querypublic void updateBy(String outputTableId, Expression onUpdateExpression)
outputTableId - id of the table which is going to be queriedonUpdateExpression - expression for the update operation defined in the on-demand querypublic void updateBy(String outputTableId, UpdateSet updateSetAttributes, Expression onUpdateExpression)
outputTableId - id of the table which is going to be queriedupdateSetAttributes - updateSet for the attributes which are going to be updated.onUpdateExpression - expression for the update operation defined in the on-demand querypublic void updateOrInsertBy(String outputTableId, UpdateSet updateSetAttributes, Expression onUpdateExpression)
outputTableId - id of the table which is going to be queriedupdateSetAttributes - updateSet for the attributes which are going to be updated.onUpdateExpression - expression for the update or insert operation defined in the on-demand querypublic Selector getSelector()
public OutputStream getOutputStream()
public int[] getQueryContextStartIndex()
getQueryContextStartIndex in interface SiddhiElementpublic void setQueryContextStartIndex(int[] lineAndColumn)
setQueryContextStartIndex in interface SiddhiElementpublic int[] getQueryContextEndIndex()
getQueryContextEndIndex in interface SiddhiElementpublic void setQueryContextEndIndex(int[] lineAndColumn)
setQueryContextEndIndex in interface SiddhiElementpublic OnDemandQuery.OnDemandQueryType getType()
public void setType(OnDemandQuery.OnDemandQueryType type)
Copyright © 2021. All rights reserved.