com.splunk
Class DataModelCalculation

java.lang.Object
  extended by com.splunk.DataModelCalculation
Direct Known Subclasses:
EvalDataModelCalculation, GeoIPDataModelCalculation, LookupDataModelCalculation, RegexpDataModelCalculation

public abstract class DataModelCalculation
extends java.lang.Object

Abstract class specifying a calculation on a data model object.


Method Summary
 boolean containsGeneratedField(java.lang.String fieldName)
           
 java.lang.String getCalculationID()
           
 java.lang.String getComment()
           
 DataModelField getGeneratedField(java.lang.String fieldName)
           
 java.util.Collection<DataModelField> getGeneratedFields()
           
 java.lang.String[] getLineage()
          Return the lineage of the data model object on which this calculation is defined, starting with the most remote ancestor and ending with the data model object on which this calculation is defined.
 java.lang.String getOwner()
          Returns the name of the object on which this calculation is defined.
 boolean isEditable()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCalculationID

public java.lang.String getCalculationID()
Returns:
the ID of this calculation.

containsGeneratedField

public boolean containsGeneratedField(java.lang.String fieldName)
Returns:
whether this calculation generated a field of the given name.

getGeneratedFields

public java.util.Collection<DataModelField> getGeneratedFields()
Returns:
a collection of the fields this calculation generates.

getGeneratedField

public DataModelField getGeneratedField(java.lang.String fieldName)
Parameters:
fieldName - Name of the field to fetch.
Returns:
a DataModelField object.

getComment

public java.lang.String getComment()
Returns:
the comment on this calculation (if one is specified) or null.

getOwner

public java.lang.String getOwner()
Returns the name of the object on which this calculation is defined. That need not be the one you accessed it from, as it may be inherited from another data model object.

Returns:
The name of the object on which this calculation is defined.

getLineage

public java.lang.String[] getLineage()
Return the lineage of the data model object on which this calculation is defined, starting with the most remote ancestor and ending with the data model object on which this calculation is defined.

Returns:
an array of the names of data model objects.

isEditable

public boolean isEditable()
Returns:
whether this calculation can be edited, or it is a system defined calculation.