Class CSVPropertyOrderHelper

java.lang.Object
com.espertech.esperio.csv.CSVPropertyOrderHelper

public class CSVPropertyOrderHelper extends Object
A utility for resolving property order information based on a propertyTypes map and the first record of a CSV file (which might represent the title row).
  • Constructor Details

    • CSVPropertyOrderHelper

      public CSVPropertyOrderHelper()
  • Method Details

    • resolvePropertyOrder

      public static String[] resolvePropertyOrder(String[] firstRow, Map<String,Object> propertyTypes)
      Resolve the order of the properties that appear in the CSV file, from the first row of the CSV file.
      Parameters:
      firstRow - - the first record of the CSV file
      propertyTypes - - describes the event to send into the EPRuntime
      Returns:
      the property names in the order in which they occur in the file