Changeset 6589


Ignore:
Timestamp:
09/25/15 14:16:07 (9 years ago)
Author:
davor.ostojic@oeaw.ac.at
Message:

REMARKS column included in transformation

Location:
vlo/branches/vlo-3.3-oeaw/vlo-vocabularies/src/main/java/eu/clarin/cmdi/vlo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-3.3-oeaw/vlo-vocabularies/src/main/java/eu/clarin/cmdi/vlo/pojo/Constants.java

    r6505 r6589  
    3737        public static final String COUNT = "COUNT";
    3838        public static final String NORMALIZED_VALUE = "NORMALIZED_VALUE";
     39        public static final String REMARKS = "REMARKS";
    3940       
    4041       
  • vlo/branches/vlo-3.3-oeaw/vlo-vocabularies/src/main/java/eu/clarin/cmdi/vlo/transformers/CSVTransformer.java

    r6578 r6589  
    195195                throw new RuntimeException("The first row of CSV file must contain column names");
    196196        _logger.info("CSV file contains following headers {}", line);
     197       
    197198        for(String col: line.split("\\t")){     
     199                if(col.equals(Constants.REMARKS))
     200                        break;//last column - don't need it in xml map
     201               
    198202                if(col.equals(Constants.REGULAR_EXPRESSION))
    199203                        regExpresionExists = true;
    200                 columnNames.add(col.toLowerCase());             
     204                columnNames.add(col.toLowerCase());
     205               
    201206        }       
    202207               
Note: See TracChangeset for help on using the changeset viewer.