public class MojoFrame
extends java.lang.Object
Container for MojoColumn
s as well as some additional meta data. MojoFrames are mostly immutable; it’s column/row count, column references, and associated names for said references cannot be modified once created. The data of a individual column can be modified, however, through the getColumnData
method.
MojoFrames can only be constructed through a MojoFrameBuilder (see MojoFrameBuilder
for more details).
Modifier and Type | Method and Description |
---|---|
void |
debug() |
MojoColumn |
getColumn(int index)
Get the column instance at a particular index
|
java.lang.Object |
getColumnData(int index)
Get the data stored in the column at a particular index
|
java.lang.String |
getColumnName(int index)
Get the name of a column at a particular index
|
java.lang.String[] |
getColumnNames()
Get the names associated with each column in the frame.
|
MojoColumn.Type |
getColumnType(int index)
Get the type of a column at a particular index
|
MojoColumn.Type[] |
getColumnTypes()
Get the types of each column in the frame
|
int |
getNcols()
Get the number of columns in the frame
|
int |
getNrows()
Get the number of rows of each column in the MojoFrame
|
public void debug()
public int getNcols()
Get the number of columns in the frame
public int getNrows()
Get the number of rows of each column in the MojoFrame
public java.lang.String[] getColumnNames()
Get the names associated with each column in the frame.
public java.lang.String getColumnName(int index)
Get the name of a column at a particular index
index
- public MojoColumn.Type getColumnType(int index)
Get the type of a column at a particular index
index
- public MojoColumn.Type[] getColumnTypes()
Get the types of each column in the frame
public MojoColumn getColumn(int index)
Get the column instance at a particular index
index
- public java.lang.Object getColumnData(int index)
Get the data stored in the column at a particular index
index
- MojoColumn.Type
)