public class Partition extends Object implements ExecutionElement, SiddhiElement
Constructor and Description |
---|
Partition() |
Modifier and Type | Method and Description |
---|---|
Partition |
addQuery(Query query) |
Partition |
annotation(Annotation annotation) |
boolean |
equals(Object o) |
List<Annotation> |
getAnnotations() |
Map<String,PartitionType> |
getPartitionTypeMap() |
int[] |
getQueryContextEndIndex() |
int[] |
getQueryContextStartIndex() |
List<Query> |
getQueryList() |
int |
hashCode() |
static Partition |
partition() |
static RangePartitionType.RangePartitionProperty |
range(String partitionKey,
Expression condition) |
void |
setQueryContextEndIndex(int[] lineAndColumn) |
void |
setQueryContextStartIndex(int[] lineAndColumn) |
String |
toString() |
Partition |
with(PartitionType partitionType) |
Partition |
with(String streamId,
Expression expression) |
Partition |
with(String streamId,
RangePartitionType.RangePartitionProperty... rangePartitionProperties) |
public static Partition partition()
public static RangePartitionType.RangePartitionProperty range(String partitionKey, Expression condition)
public Map<String,PartitionType> getPartitionTypeMap()
public Partition with(String streamId, Expression expression)
public Partition with(String streamId, RangePartitionType.RangePartitionProperty... rangePartitionProperties)
public Partition with(PartitionType partitionType)
public Partition annotation(Annotation annotation)
public List<Annotation> getAnnotations()
getAnnotations
in interface ExecutionElement
public int[] getQueryContextStartIndex()
getQueryContextStartIndex
in interface SiddhiElement
public void setQueryContextStartIndex(int[] lineAndColumn)
setQueryContextStartIndex
in interface SiddhiElement
public int[] getQueryContextEndIndex()
getQueryContextEndIndex
in interface SiddhiElement
public void setQueryContextEndIndex(int[] lineAndColumn)
setQueryContextEndIndex
in interface SiddhiElement
Copyright © 2018 WSO2. All rights reserved.