Package com.macrofocus.molap.expression
Class DataFrameTuple
- java.lang.Object
-
- com.macrofocus.molap.expression.DataFrameTuple
-
- All Implemented Interfaces:
prefuse.data.Tuple
public class DataFrameTuple extends java.lang.Object implements prefuse.data.Tuple
-
-
Constructor Summary
Constructors Constructor Description DataFrameTuple(DataFrame<java.lang.Integer,java.lang.String,?> dataFrame, java.lang.Integer row)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canGet(java.lang.String field, java.lang.Class type)
boolean
canGetBoolean(java.lang.String field)
boolean
canGetDate(java.lang.String field)
boolean
canGetDouble(java.lang.String field)
boolean
canGetFloat(java.lang.String field)
boolean
canGetInt(java.lang.String field)
boolean
canGetLong(java.lang.String field)
boolean
canGetString(java.lang.String field)
boolean
canSet(java.lang.String field, java.lang.Class type)
boolean
canSetBoolean(java.lang.String field)
boolean
canSetDate(java.lang.String field)
boolean
canSetDouble(java.lang.String field)
boolean
canSetFloat(java.lang.String field)
boolean
canSetInt(java.lang.String field)
boolean
canSetLong(java.lang.String field)
boolean
canSetString(java.lang.String field)
java.lang.Object
get(int col)
java.lang.Object
get(java.lang.String field)
boolean
getBoolean(int col)
boolean
getBoolean(java.lang.String field)
int
getColumnCount()
int
getColumnIndex(java.lang.String field)
java.lang.String
getColumnName(int col)
java.lang.Class
getColumnType(int col)
java.lang.Class
getColumnType(java.lang.String field)
java.util.Date
getDate(int col)
java.util.Date
getDate(java.lang.String field)
java.lang.Object
getDefault(java.lang.String field)
double
getDouble(int col)
double
getDouble(java.lang.String field)
float
getFloat(int col)
float
getFloat(java.lang.String field)
int
getInt(int col)
int
getInt(java.lang.String field)
long
getLong(int col)
long
getLong(java.lang.String field)
int
getRow()
prefuse.data.Schema
getSchema()
java.lang.String
getString(int col)
java.lang.String
getString(java.lang.String field)
boolean
isValid()
void
revertToDefault(java.lang.String field)
void
set(int col, java.lang.Object value)
void
set(java.lang.String field, java.lang.Object value)
void
setBoolean(int col, boolean val)
void
setBoolean(java.lang.String field, boolean val)
void
setDate(int col, java.util.Date val)
void
setDate(java.lang.String field, java.util.Date val)
void
setDouble(int col, double val)
void
setDouble(java.lang.String field, double val)
void
setFloat(int col, float val)
void
setFloat(java.lang.String field, float val)
void
setInt(int col, int val)
void
setInt(java.lang.String field, int val)
void
setLong(int col, long val)
void
setLong(java.lang.String field, long val)
void
setString(int col, java.lang.String val)
void
setString(java.lang.String field, java.lang.String val)
-
-
-
Constructor Detail
-
DataFrameTuple
public DataFrameTuple(DataFrame<java.lang.Integer,java.lang.String,?> dataFrame, java.lang.Integer row)
-
-
Method Detail
-
getSchema
public prefuse.data.Schema getSchema()
- Specified by:
getSchema
in interfaceprefuse.data.Tuple
-
getRow
public int getRow()
- Specified by:
getRow
in interfaceprefuse.data.Tuple
-
isValid
public boolean isValid()
- Specified by:
isValid
in interfaceprefuse.data.Tuple
-
getColumnType
public java.lang.Class getColumnType(java.lang.String field)
- Specified by:
getColumnType
in interfaceprefuse.data.Tuple
-
getColumnType
public java.lang.Class getColumnType(int col)
- Specified by:
getColumnType
in interfaceprefuse.data.Tuple
-
getColumnIndex
public int getColumnIndex(java.lang.String field)
- Specified by:
getColumnIndex
in interfaceprefuse.data.Tuple
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfaceprefuse.data.Tuple
-
getColumnName
public java.lang.String getColumnName(int col)
- Specified by:
getColumnName
in interfaceprefuse.data.Tuple
-
canGet
public boolean canGet(java.lang.String field, java.lang.Class type)
- Specified by:
canGet
in interfaceprefuse.data.Tuple
-
canSet
public boolean canSet(java.lang.String field, java.lang.Class type)
- Specified by:
canSet
in interfaceprefuse.data.Tuple
-
get
public java.lang.Object get(java.lang.String field)
- Specified by:
get
in interfaceprefuse.data.Tuple
-
set
public void set(java.lang.String field, java.lang.Object value)
- Specified by:
set
in interfaceprefuse.data.Tuple
-
get
public java.lang.Object get(int col)
- Specified by:
get
in interfaceprefuse.data.Tuple
-
set
public void set(int col, java.lang.Object value)
- Specified by:
set
in interfaceprefuse.data.Tuple
-
getDefault
public java.lang.Object getDefault(java.lang.String field)
- Specified by:
getDefault
in interfaceprefuse.data.Tuple
-
revertToDefault
public void revertToDefault(java.lang.String field)
- Specified by:
revertToDefault
in interfaceprefuse.data.Tuple
-
canGetInt
public boolean canGetInt(java.lang.String field)
- Specified by:
canGetInt
in interfaceprefuse.data.Tuple
-
canSetInt
public boolean canSetInt(java.lang.String field)
- Specified by:
canSetInt
in interfaceprefuse.data.Tuple
-
getInt
public int getInt(java.lang.String field)
- Specified by:
getInt
in interfaceprefuse.data.Tuple
-
setInt
public void setInt(java.lang.String field, int val)
- Specified by:
setInt
in interfaceprefuse.data.Tuple
-
getInt
public int getInt(int col)
- Specified by:
getInt
in interfaceprefuse.data.Tuple
-
setInt
public void setInt(int col, int val)
- Specified by:
setInt
in interfaceprefuse.data.Tuple
-
canGetLong
public boolean canGetLong(java.lang.String field)
- Specified by:
canGetLong
in interfaceprefuse.data.Tuple
-
canSetLong
public boolean canSetLong(java.lang.String field)
- Specified by:
canSetLong
in interfaceprefuse.data.Tuple
-
getLong
public long getLong(java.lang.String field)
- Specified by:
getLong
in interfaceprefuse.data.Tuple
-
setLong
public void setLong(java.lang.String field, long val)
- Specified by:
setLong
in interfaceprefuse.data.Tuple
-
getLong
public long getLong(int col)
- Specified by:
getLong
in interfaceprefuse.data.Tuple
-
setLong
public void setLong(int col, long val)
- Specified by:
setLong
in interfaceprefuse.data.Tuple
-
canGetFloat
public boolean canGetFloat(java.lang.String field)
- Specified by:
canGetFloat
in interfaceprefuse.data.Tuple
-
canSetFloat
public boolean canSetFloat(java.lang.String field)
- Specified by:
canSetFloat
in interfaceprefuse.data.Tuple
-
getFloat
public float getFloat(java.lang.String field)
- Specified by:
getFloat
in interfaceprefuse.data.Tuple
-
setFloat
public void setFloat(java.lang.String field, float val)
- Specified by:
setFloat
in interfaceprefuse.data.Tuple
-
getFloat
public float getFloat(int col)
- Specified by:
getFloat
in interfaceprefuse.data.Tuple
-
setFloat
public void setFloat(int col, float val)
- Specified by:
setFloat
in interfaceprefuse.data.Tuple
-
canGetDouble
public boolean canGetDouble(java.lang.String field)
- Specified by:
canGetDouble
in interfaceprefuse.data.Tuple
-
canSetDouble
public boolean canSetDouble(java.lang.String field)
- Specified by:
canSetDouble
in interfaceprefuse.data.Tuple
-
getDouble
public double getDouble(java.lang.String field)
- Specified by:
getDouble
in interfaceprefuse.data.Tuple
-
setDouble
public void setDouble(java.lang.String field, double val)
- Specified by:
setDouble
in interfaceprefuse.data.Tuple
-
getDouble
public double getDouble(int col)
- Specified by:
getDouble
in interfaceprefuse.data.Tuple
-
setDouble
public void setDouble(int col, double val)
- Specified by:
setDouble
in interfaceprefuse.data.Tuple
-
canGetBoolean
public boolean canGetBoolean(java.lang.String field)
- Specified by:
canGetBoolean
in interfaceprefuse.data.Tuple
-
canSetBoolean
public boolean canSetBoolean(java.lang.String field)
- Specified by:
canSetBoolean
in interfaceprefuse.data.Tuple
-
getBoolean
public boolean getBoolean(java.lang.String field)
- Specified by:
getBoolean
in interfaceprefuse.data.Tuple
-
setBoolean
public void setBoolean(java.lang.String field, boolean val)
- Specified by:
setBoolean
in interfaceprefuse.data.Tuple
-
getBoolean
public boolean getBoolean(int col)
- Specified by:
getBoolean
in interfaceprefuse.data.Tuple
-
setBoolean
public void setBoolean(int col, boolean val)
- Specified by:
setBoolean
in interfaceprefuse.data.Tuple
-
canGetString
public boolean canGetString(java.lang.String field)
- Specified by:
canGetString
in interfaceprefuse.data.Tuple
-
canSetString
public boolean canSetString(java.lang.String field)
- Specified by:
canSetString
in interfaceprefuse.data.Tuple
-
getString
public java.lang.String getString(java.lang.String field)
- Specified by:
getString
in interfaceprefuse.data.Tuple
-
setString
public void setString(java.lang.String field, java.lang.String val)
- Specified by:
setString
in interfaceprefuse.data.Tuple
-
getString
public java.lang.String getString(int col)
- Specified by:
getString
in interfaceprefuse.data.Tuple
-
setString
public void setString(int col, java.lang.String val)
- Specified by:
setString
in interfaceprefuse.data.Tuple
-
canGetDate
public boolean canGetDate(java.lang.String field)
- Specified by:
canGetDate
in interfaceprefuse.data.Tuple
-
canSetDate
public boolean canSetDate(java.lang.String field)
- Specified by:
canSetDate
in interfaceprefuse.data.Tuple
-
getDate
public java.util.Date getDate(java.lang.String field)
- Specified by:
getDate
in interfaceprefuse.data.Tuple
-
setDate
public void setDate(java.lang.String field, java.util.Date val)
- Specified by:
setDate
in interfaceprefuse.data.Tuple
-
getDate
public java.util.Date getDate(int col)
- Specified by:
getDate
in interfaceprefuse.data.Tuple
-
setDate
public void setDate(int col, java.util.Date val)
- Specified by:
setDate
in interfaceprefuse.data.Tuple
-
-