Skip to content

Commit

Permalink
feat: added JSON file and DataProvider file for Chelsea (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cogbonnia authored Oct 16, 2024
1 parent b32d1d2 commit 7baa118
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.codedifferently.lesson9.dataprovider;

import java.util.Map;
import org.springframework.stereotype.Service;

@Service
public class ChelseaOgbonniaProvider extends DataProvider {
public String getProviderName() {
return "chelseaogbonnia";
}

public Map<String, Class> getColumnTypeByName() {
return Map.of(
"column1", Boolean.class,
"column2", String.class,
"column3", Long.class,
"column4", Float.class,
"column5", Short.class,
"column6", Double.class,
"column7", Integer.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
[
{
"column1": "false",
"column2": "wyemiqc",
"column3": "7913473030711282688",
"column4": "1.8614628E38",
"column5": "4386",
"column6": "6.968862241086341E307",
"column7": "1475052651"
},
{
"column1": "false",
"column2": "xm6vs7e",
"column3": "2335425424589573632",
"column4": "4.2762104E37",
"column5": "1683",
"column6": "1.811140849460334E307",
"column7": "1209195687"
},
{
"column1": "true",
"column2": "zh01i84uv",
"column3": "6333972535042200576",
"column4": "2.2556577E38",
"column5": "2844",
"column6": "1.6951022043654575E308",
"column7": "1523085775"
},
{
"column1": "false",
"column2": "361pv72",
"column3": "3157565259847647232",
"column4": "2.3323055E38",
"column5": "10658",
"column6": "6.925332576553183E307",
"column7": "606901330"
},
{
"column1": "true",
"column2": "3sozwb",
"column3": "7571759049801341952",
"column4": "1.7445115E38",
"column5": "32321",
"column6": "1.5048343678097422E308",
"column7": "729461454"
},
{
"column1": "true",
"column2": "kpvif5ytmu6",
"column3": "9219750046175507456",
"column4": "1.8554071E37",
"column5": "3907",
"column6": "3.810850952045744E307",
"column7": "1877455265"
},
{
"column1": "false",
"column2": "mx0o5f",
"column3": "5732669568390959104",
"column4": "3.3571546E38",
"column5": "11344",
"column6": "1.5791425600565364E306",
"column7": "1198521383"
},
{
"column1": "false",
"column2": "ic8xp",
"column3": "8058294991460725760",
"column4": "1.0623648E38",
"column5": "19537",
"column6": "7.168009014976832E307",
"column7": "806176461"
},
{
"column1": "true",
"column2": "jh6513fuz",
"column3": "3050298536833992192",
"column4": "3.0041338E38",
"column5": "14100",
"column6": "1.347984905078725E308",
"column7": "552869949"
},
{
"column1": "true",
"column2": "p0tfc9w462",
"column3": "6108650764181306368",
"column4": "3.0027475E38",
"column5": "4463",
"column6": "9.346588542924494E306",
"column7": "20872235"
}
]

0 comments on commit 7baa118

Please sign in to comment.