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 Details

  • Method Details

    • getLineNo

      public final int getLineNo()
    • deleteErroneousElement

      public void deleteErroneousElement(int eltIndex)
    • get

      public String get(String columnName)
      Gets the value for a given column on this line.
      Parameters:
      columnName - column name
      Returns:
      value for a given column on this line.
    • get

      public String get(int index)
    • getAsDouble

      public double getAsDouble(String columnName)
      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

      public byte getAsByte(String columnName)
      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

      public char getAsChar(String columnName)
      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

      public int getAsInt(String columnName)
      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

      public boolean getAsBoolean(String columnName)
      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

      public long getAsLong(String columnName)
      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

      public Date getAsDate(String columnName, SimpleDateFormat simpleDateFormat) throws ParseException
      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

      public Date getAsDate(int index, SimpleDateFormat simpleDateFormat) throws ParseException
      Throws:
      ParseException
    • put

      public void put(String columnName, String value)
      Changes the value for a given column on this line.
      Parameters:
      columnName - column name
      value - value for a given column on this line.
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      string representation of the line, using the default java implementation
    • 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:
      append in interface com.fishlib.base.log.LogOutputAppendable
      Parameters:
      logOutput -
      Returns:
      logOutput
    • getHeader

      public String[] getHeader()
      Gets the header that goes with the output string.
      Returns:
      header that goes with the output string.
    • getHeaderArrayMap

      public Map<String,Integer> getHeaderArrayMap()
    • getHeaderString

      public String getHeaderString()
      Returns:
      the header as a single string