Package com.attivio.sdk.server.udf
Interface InputValue
-
public interface InputValueInterface for an input value for an argument.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetBoolean(int index)Get the value for this argument as a boolean.longgetDate(int index)Get the value for this argument as a date (milliseconds since epoch).java.math.BigDecimalgetDecimal(int index)Get the value for this argument as a BigDecimal (for decimal and money types).doublegetDouble(int index)Get the value for this argument as a double.floatgetFloat(int index)Get the value for this argument as a float.intgetInteger(int index)Get the value for this argument as an integer.longgetLong(int index)Get the value for this argument as a long.PointgetPoint(int index)Get the value for this argument as a Point.ShapegetShape(int index)Get the value for this argument as a Shape.java.lang.StringgetString(int index)Get the value for this argument as a String.intsize()Get the number of values for this field.
-
-
-
Method Detail
-
size
int size()
Get the number of values for this field.Size may be 0, which indicates a
nullvalue.
-
getInteger
int getInteger(int index)
Get the value for this argument as an integer.- Throws:
java.lang.UnsupportedOperationException- if this argument is not an integer.
-
getLong
long getLong(int index)
Get the value for this argument as a long.- Throws:
java.lang.UnsupportedOperationException- if this argument is not a long.
-
getFloat
float getFloat(int index)
Get the value for this argument as a float.- Throws:
java.lang.UnsupportedOperationException- if this argument is not a float.
-
getDouble
double getDouble(int index)
Get the value for this argument as a double.- Throws:
java.lang.UnsupportedOperationException- if this argument is not a double.
-
getBoolean
boolean getBoolean(int index)
Get the value for this argument as a boolean.- Throws:
java.lang.UnsupportedOperationException- if this argument is not a boolean.
-
getDate
long getDate(int index)
Get the value for this argument as a date (milliseconds since epoch).- Throws:
java.lang.UnsupportedOperationException- if this argument is not a date.
-
getDecimal
java.math.BigDecimal getDecimal(int index)
Get the value for this argument as a BigDecimal (for decimal and money types).- Throws:
java.lang.UnsupportedOperationException- if this argument is not a decimal or money type.
-
getString
java.lang.String getString(int index)
Get the value for this argument as a String.- Throws:
java.lang.UnsupportedOperationException- if this argument is not a string type.
-
getPoint
Point getPoint(int index)
Get the value for this argument as a Point.- Throws:
java.lang.UnsupportedOperationException- if this argument is not a point type.
-
getShape
Shape getShape(int index)
Get the value for this argument as a Shape.- Throws:
java.lang.UnsupportedOperationException- if this argument is not a shape type.
-
-