dzhemriza / table-importer

Automatically exported from code.google.com/p/table-importer
0 stars 0 forks source link

Create field mappings #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1) Design session about how many field mappings will be supported in first 
version (please the information for field mappings into issue as a text)
2) Implement field mappings
3) Write unit tests for field mappings

Original issue reported on code.google.com by djemriza@gmail.com on 14 May 2010 at 6:47

GoogleCodeExporter commented 9 years ago
Result from design session about field mapping types:

1) Field to Field map
- Copy data from one field into another
- Needed data src and dst fields

2) ToString
- Copy data from one filed into another using java toString method
- src and dst fields (destination field should be always of string type)

3) String to Type conversion
- StringToInt
- StringToDouble
- StringToFloat
- StringToDate
- StringToTime
- StringToDateTime

4) AutoNumber (type - int, double, float)
- Only on dst field and uses a starting value

5) StringCat
- src and dst fields

6) Math Operations (Plus, Minus, Mult, Div)
- (src and dst fields) => src [oper] dst -> dst

7) ConstData
- only on dst field with some constant data

8) DateFunctions (AddMinutes, AddHours, AddSecs, AddDays)
- Need additonal meeting on this when is we reach this stage of development 
because 
the requirments are not clear enought

Original comment by djemriza@gmail.com on 20 May 2010 at 10:56

GoogleCodeExporter commented 9 years ago
Field to Field map - already done

Original comment by djemriza@gmail.com on 20 May 2010 at 10:56

GoogleCodeExporter commented 9 years ago
ToString mapping is implemented and tested through unit tests
Fixed in r55

Original comment by djemriza@gmail.com on 8 Jun 2010 at 7:09

GoogleCodeExporter commented 9 years ago
StringToInt mapping is implemented and tested through unit tests
Fixed in r57

Original comment by djemriza@gmail.com on 10 Jun 2010 at 6:54

GoogleCodeExporter commented 9 years ago
- StringToDate
- StringToFloat
- StringToDouble
Fixed in r61

Original comment by djemriza@gmail.com on 11 Jun 2010 at 7:08

GoogleCodeExporter commented 9 years ago
- Refactor StringToDateMap to StringToDateTimeMap and add functionality to 
parse not only dates but also date time and time values according to some 
pattern
- Added new exception ExpectDateTimeType 
All this is fixed in r63

Original comment by djemriza@gmail.com on 15 Jun 2010 at 7:03

GoogleCodeExporter commented 9 years ago
Fixed AutoNumberMap in r65

Original comment by djemriza@gmail.com on 16 Jun 2010 at 6:52

GoogleCodeExporter commented 9 years ago
StringCatMap fixed in r67

Original comment by djemriza@gmail.com on 22 Jun 2010 at 6:50

GoogleCodeExporter commented 9 years ago
Fixed MathPlusMap in r70

Original comment by djemriza@gmail.com on 25 Jun 2010 at 7:13

GoogleCodeExporter commented 9 years ago
Fixed Math Operations (Minus, Mult, Div)
r72

Original comment by djemriza@gmail.com on 1 Jul 2010 at 6:42

GoogleCodeExporter commented 9 years ago
Decided: DateFunctions (AddMinutes, AddHours, AddSecs, AddDays) will be 
implemented in next sprints

Original comment by djemriza@gmail.com on 8 Jul 2010 at 6:47

GoogleCodeExporter commented 9 years ago
ConstDataMap fixed in r75

Original comment by djemriza@gmail.com on 8 Jul 2010 at 6:48