Class GenericCsvParser.CsvDataLine
java.lang.Object
io.deephaven.enterprise.niowrapper.csv.GenericCsvParser.CsvDataLine
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable
- Enclosing class:
- GenericCsvParser
public static class GenericCsvParser.CsvDataLine
extends Object
implements com.fishlib.base.log.LogOutputAppendable
Relevant values from a line of a CSV file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fishlib.base.log.LogOutputappend(com.fishlib.base.log.LogOutput logOutput) Append the same representation as used for toString() to a logOutput.voiddeleteErroneousElement(int eltIndex) get(int index) Gets the value for a given column on this line.booleangetAsBoolean(int index) booleangetAsBoolean(String columnName) Gets the value for a given column on this line.bytegetAsByte(int index) byteGets the value for a given column on this line.chargetAsChar(int index) charGets the value for a given column on this line.getAsDate(int index, SimpleDateFormat simpleDateFormat) getAsDate(String columnName, SimpleDateFormat simpleDateFormat) Gets the value for a given column on this line.doublegetAsDouble(int index) doublegetAsDouble(String columnName) Gets the value for a given column on this line.intgetAsInt(int index) intGets the value for a given column on this line.longgetAsLong(int index) longGets the value for a given column on this line.String[]Gets the header that goes with the output string.final intvoidChanges the value for a given column on this line.toString()
-
Constructor Details
-
CsvDataLine
-
CsvDataLine
-
-
Method Details
-
getLineNo
public final int getLineNo() -
deleteErroneousElement
public void deleteErroneousElement(int eltIndex) -
get
Gets the value for a given column on this line.- Parameters:
columnName- column name- Returns:
- value for a given column on this line.
-
get
-
getAsDouble
Gets the value for a given column on this line.- Parameters:
columnName- column name- Returns:
- value for a given column on this line.
-
getAsDouble
public double getAsDouble(int index) -
getAsByte
Gets the value for a given column on this line.- Parameters:
columnName- column name- Returns:
- value for a given column on this line.
-
getAsByte
public byte getAsByte(int index) -
getAsChar
Gets the value for a given column on this line.- Parameters:
columnName- column name- Returns:
- value for a given column on this line.
-
getAsChar
public char getAsChar(int index) -
getAsInt
Gets the value for a given column on this line.- Parameters:
columnName- column name- Returns:
- value for a given column on this line.
-
getAsInt
public int getAsInt(int index) -
getAsBoolean
Gets the value for a given column on this line.- Parameters:
columnName- column name- Returns:
- value for a given column on this line.
-
getAsBoolean
public boolean getAsBoolean(int index) -
getAsLong
Gets the value for a given column on this line.- Parameters:
columnName- column name- Returns:
- value for a given column on this line.
-
getAsLong
public long getAsLong(int index) -
getAsDate
Gets the value for a given column on this line.- Parameters:
columnName- column name- Returns:
- value for a given column on this line.
- Throws:
ParseException
-
getAsDate
- Throws:
ParseException
-
put
Changes the value for a given column on this line.- Parameters:
columnName- column namevalue- value for a given column on this line.
-
toString
-
append
public com.fishlib.base.log.LogOutput append(com.fishlib.base.log.LogOutput logOutput) Append the same representation as used for toString() to a logOutput.- Specified by:
appendin interfacecom.fishlib.base.log.LogOutputAppendable- Parameters:
logOutput-- Returns:
- logOutput
-
getHeader
Gets the header that goes with the output string.- Returns:
- header that goes with the output string.
-
getHeaderArrayMap
-
getHeaderString
- Returns:
- the header as a single string
-