com.espertech.esperio.csv
Class CSVPropertyOrderHelper

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

public class CSVPropertyOrderHelper
extends java.lang.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 Summary
CSVPropertyOrderHelper()
           
 
Method Summary
static java.lang.String[] resolvePropertyOrder(java.lang.String[] firstRow, java.util.Map<java.lang.String,java.lang.Object> propertyTypes)
          Resolve the order of the properties that appear in the CSV file, from the first row of the CSV file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVPropertyOrderHelper

public CSVPropertyOrderHelper()
Method Detail

resolvePropertyOrder

public static java.lang.String[] resolvePropertyOrder(java.lang.String[] firstRow,
                                                      java.util.Map<java.lang.String,java.lang.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

© 2006-2016 EsperTech Inc.
All rights reserved.
Visit us at espertech.com