Class Partition
- java.lang.Object
-
- io.siddhi.query.api.execution.partition.Partition
-
- All Implemented Interfaces:
ExecutionElement,SiddhiElement,Serializable
public class Partition extends Object implements ExecutionElement, SiddhiElement
Partition class is used to represent the definition of a partition for a Siddhi instance.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Partition()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PartitionaddQuery(Query query)Partitionannotation(Annotation annotation)booleanequals(Object o)List<Annotation>getAnnotations()Map<String,PartitionType>getPartitionTypeMap()int[]getQueryContextEndIndex()int[]getQueryContextStartIndex()List<Query>getQueryList()inthashCode()static Partitionpartition()static RangePartitionType.RangePartitionPropertyrange(String partitionKey, Expression condition)voidsetQueryContextEndIndex(int[] lineAndColumn)voidsetQueryContextStartIndex(int[] lineAndColumn)StringtoString()Partitionwith(PartitionType partitionType)Partitionwith(String streamId, RangePartitionType.RangePartitionProperty... rangePartitionProperties)Partitionwith(String streamId, Expression expression)
-
-
-
Method Detail
-
partition
public static Partition partition()
-
range
public static RangePartitionType.RangePartitionProperty range(String partitionKey, Expression condition)
-
getPartitionTypeMap
public Map<String,PartitionType> getPartitionTypeMap()
-
with
public Partition with(String streamId, Expression expression)
-
with
public Partition with(String streamId, RangePartitionType.RangePartitionProperty... rangePartitionProperties)
-
with
public Partition with(PartitionType partitionType)
-
annotation
public Partition annotation(Annotation annotation)
-
getAnnotations
public List<Annotation> getAnnotations()
- Specified by:
getAnnotationsin interfaceExecutionElement
-
getQueryContextStartIndex
public int[] getQueryContextStartIndex()
- Specified by:
getQueryContextStartIndexin interfaceSiddhiElement
-
setQueryContextStartIndex
public void setQueryContextStartIndex(int[] lineAndColumn)
- Specified by:
setQueryContextStartIndexin interfaceSiddhiElement
-
getQueryContextEndIndex
public int[] getQueryContextEndIndex()
- Specified by:
getQueryContextEndIndexin interfaceSiddhiElement
-
setQueryContextEndIndex
public void setQueryContextEndIndex(int[] lineAndColumn)
- Specified by:
setQueryContextEndIndexin interfaceSiddhiElement
-
-