org.wso2.siddhi.query.api.definition.partition
Class PartitionDefinition

java.lang.Object
  extended by org.wso2.siddhi.query.api.definition.partition.PartitionDefinition
All Implemented Interfaces:
ExecutionPlan

public class PartitionDefinition
extends Object
implements ExecutionPlan

PartitionDefinition class is used to represent the definition of a partition for a Siddhi instance. The partition definition consists of a partition ID and a list of partition types that belong to a given definition instance.


Constructor Summary
PartitionDefinition()
           
 
Method Summary
 void addPartitionType(PartitionType partitionType)
           
 boolean equals(Object o)
           
 String getPartitionId()
           
 List<PartitionType> getPartitionTypeList()
           
 int hashCode()
           
 PartitionDefinition name(String name)
           
 PartitionDefinition partitionBy(Condition condition, String label)
           
 PartitionDefinition partitionBy(Variable variable)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PartitionDefinition

public PartitionDefinition()
Method Detail

name

public PartitionDefinition name(String name)

partitionBy

public PartitionDefinition partitionBy(Variable variable)

partitionBy

public PartitionDefinition partitionBy(Condition condition,
                                       String label)

getPartitionId

public String getPartitionId()

addPartitionType

public void addPartitionType(PartitionType partitionType)

getPartitionTypeList

public List<PartitionType> getPartitionTypeList()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2014. All rights reserved.