Package io.siddhi.query.api.definition
Class AbstractDefinition
- java.lang.Object
-
- io.siddhi.query.api.definition.AbstractDefinition
-
- All Implemented Interfaces:
SiddhiElement,Serializable
- Direct Known Subclasses:
AggregationDefinition,StreamDefinition,TableDefinition
public abstract class AbstractDefinition extends Object implements SiddhiElement
Abstract definition used for Streams, Tables and other common artifacts- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Annotation>annotationsprotected List<Attribute>attributeListprotected String[]attributeNameArrayprotected booleanhasDefinitionChangedprotected Stringid
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDefinition()protectedAbstractDefinition(String id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Annotationannotation(String name)protected AbstractDefinitionattribute(String attributeName, Attribute.Type type)protected voidcheckAttribute(String attributeName)booleanequals(Object o)booleanequalsIgnoreAnnotations(Object o)List<Annotation>getAnnotations()List<Attribute>getAttributeList()String[]getAttributeNameArray()intgetAttributePosition(String attributeName)Attribute.TypegetAttributeType(String attributeName)StringgetId()int[]getQueryContextEndIndex()int[]getQueryContextStartIndex()inthashCode()voidsetId(String id)voidsetQueryContextEndIndex(int[] lineAndColumn)voidsetQueryContextStartIndex(int[] lineAndColumn)StringtoString()protected StringtoString(String type)
-
-
-
Constructor Detail
-
AbstractDefinition
protected AbstractDefinition()
-
AbstractDefinition
protected AbstractDefinition(String id)
-
-
Method Detail
-
annotation
public static Annotation annotation(String name)
-
getId
public String getId()
-
setId
public void setId(String id)
-
getAnnotations
public List<Annotation> getAnnotations()
-
attribute
protected AbstractDefinition attribute(String attributeName, Attribute.Type type)
-
checkAttribute
protected void checkAttribute(String attributeName)
-
getAttributeType
public Attribute.Type getAttributeType(String attributeName)
-
getAttributePosition
public int getAttributePosition(String attributeName)
-
getAttributeNameArray
public String[] getAttributeNameArray()
-
equalsIgnoreAnnotations
public boolean equalsIgnoreAnnotations(Object o)
-
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
-
-