public class StoreQuery extends Object implements SiddhiElement
| Modifier and Type | Class and Description |
|---|---|
static class |
StoreQuery.StoreQueryType
This enum is used to identify the type of a store query.
|
| Constructor and Description |
|---|
StoreQuery() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteBy(String outputTableId,
Expression onDeletingExpression)
Method to set a deleteStream as the outputStream of the store query
|
boolean |
equals(Object o) |
StoreQuery |
from(InputStore inputStore)
Builder method to set input store to the store query
|
InputStore |
getInputStore()
Getter for the input store
|
OutputStream |
getOutputStream()
Getter method to get the outputStream of the store query
|
int[] |
getQueryContextEndIndex() |
int[] |
getQueryContextStartIndex() |
Selector |
getSelector()
Getter method to get the selector of the store query
|
StoreQuery.StoreQueryType |
getType()
This method returns the type of given store query.
|
int |
hashCode() |
StoreQuery |
outStream(OutputStream outputStream)
Builder method to set an outPutStream to the store query
|
static StoreQuery |
query()
Builder method to get a new store query instance
|
StoreQuery |
select(Selector selector)
Builder method to set a selector to the store query
|
void |
setQueryContextEndIndex(int[] lineAndColumn) |
void |
setQueryContextStartIndex(int[] lineAndColumn) |
void |
setType(StoreQuery.StoreQueryType type)
This method sets the type of given store query.
|
String |
toString() |
void |
updateBy(String outputTableId,
Expression onUpdateExpression)
Method to set an updateStream as the outputStream of the store query
|
void |
updateBy(String outputTableId,
UpdateSet updateSetAttributes,
Expression onUpdateExpression)
Method to set an updateStream as the outputStream of the store query
|
void |
updateOrInsertBy(String outputTableId,
UpdateSet updateSetAttributes,
Expression onUpdateExpression)
Method to set an updateOrInsertStream as the outputStream of the store query
|
public static StoreQuery query()
public StoreQuery from(InputStore inputStore)
inputStore - inputStore for the store querypublic InputStore getInputStore()
public StoreQuery select(Selector selector)
selector - selector for the store querypublic StoreQuery outStream(OutputStream outputStream)
outputStream - outPutStream for the store 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 store 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 store 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 store 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 store 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 StoreQuery.StoreQueryType getType()
public void setType(StoreQuery.StoreQueryType type)
Copyright © 2019. All rights reserved.