com.espertech.esperio.csv
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).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CSVPropertyOrderHelper
public CSVPropertyOrderHelper()
resolvePropertyOrder
public static String[] resolvePropertyOrder(String[] firstRow,
Map<String,Class> 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 filepropertyTypes
- - describes the event to send into the EPRuntime
- Returns:
- the property names in the order in which they occur in the file