io.github.vmzakharov.ecdataframe.dataframe.DfCursor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dataframe-ec Show documentation
Show all versions of dataframe-ec Show documentation
A tabular data structure based on the Eclipse Collections framework
The newest version!
package io.github.vmzakharov.ecdataframe.dataframe;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
public class DfCursor
{
private final DataFrame dataFrame;
private int rowIndex;
public DfCursor(DataFrame newDataFrame)
{
this.dataFrame = newDataFrame;
}
public String getString(String columnName)
{
return this.dataFrame.getString(columnName, this.rowIndex);
}
public long getLong(String columnName)
{
return this.dataFrame.getLong(columnName, this.rowIndex);
}
public long getInt(String columnName)
{
return this.dataFrame.getInt(columnName, this.rowIndex);
}
public double getDouble(String columnName)
{
return this.dataFrame.getDouble(columnName, this.rowIndex);
}
public float getFloat(String columnName)
{
return this.dataFrame.getFloat(columnName, this.rowIndex);
}
public BigDecimal getDecimal(String columnName)
{
return this.dataFrame.getDecimal(columnName, this.rowIndex);
}
public LocalDate getDate(String columnName)
{
return this.dataFrame.getDate(columnName, this.rowIndex);
}
public LocalDateTime getDateTime(String columnName)
{
return this.dataFrame.getDateTime(columnName, this.rowIndex);
}
public Object getObject(String columnName)
{
return this.dataFrame.getObject(columnName, this.rowIndex);
}
public int rowIndex()
{
return this.rowIndex;
}
public DfCursor rowIndex(int newRowIndex)
{
this.rowIndex = newRowIndex;
return this;
}
}