Package jline.lang.lal
Class LalTable
java.lang.Object
jline.lang.lal.LalTable
A small column-named result table with provenance attributes, the Java
counterpart of the pandas
DataFrame (and its attrs) returned
by the Python LAL solvers. Attribute keys keep the Python spelling
(method, exact, truncated, fallback_reason,
converged, ...).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAppend one row; its length must match the column count.intcolumnIndex(String column) copy()Deep copy of the rows and a shallow copy of the attributes.intFirst row whosekeyColumnequalskey, or -1.intFirst row whose two key columns equal the two keys, or -1.getAttrs()Mutable provenance attributes (PythonDataFrame.attrs).doubledouble[]getDoubleColumn(String column) intObject[]getRow(int row) booleanisEmpty()doubleValue ofcolumnin the row keyed bykeyColumn == key.voidprint()intsize()toString()
-
Constructor Details
-
LalTable
-
LalTable
-
-
Method Details
-
addRow
Append one row; its length must match the column count. -
getColumns
-
getNumRows
public int getNumRows() -
size
public int size() -
isEmpty
public boolean isEmpty() -
columnIndex
-
get
-
getRow
-
getDouble
-
getString
-
getColumn
-
getDoubleColumn
-
findRow
First row whosekeyColumnequalskey, or -1. -
findRow
First row whose two key columns equal the two keys, or -1. -
lookup
Value ofcolumnin the row keyed bykeyColumn == key. -
getAttrs
Mutable provenance attributes (PythonDataFrame.attrs). -
getAttr
-
setAttr
-
copy
Deep copy of the rows and a shallow copy of the attributes. -
toString
-
print
public void print()
-