Skip to content

Latest commit

 

History

History

lesson_09

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Lesson 09: Data Types (Slides)

Pre-work

Please review the following resources before lecture:

Homework

Choosing the Right Data Types

For this exercise, you will use your knowledge of data types to identify the appropriate type to store and process data. You will run a program to generate a unique file with sample data, then write code to provide the correct data type of each column.

  1. Execute the app providing a unique provider name.
cd lesson_09/types
./gradlew bootRun --args="yourprovidername" # Substitute with your own value
  1. Examine the file that was created for you in the resources/data folder. The file will be formatted using the JSON data format.
  2. Next, you will create a DataProvider implementation that will provide information about the data types for the columns in the file (e.g. column1, column2, etc.). You can view the example AnthonyMaysProvider.java file.
  3. Customize the data types map by choosing the closest appropriate data type of each column. Each data type should only be used once.
  4. Make sure to apply the formatter and run the tests to confirm that you've implemented everything correctly.
./gradlew spotlessApply
./gradlew check
  1. You are to submit a PR with your DataProvider implementation and the generated .json file that was produced for you. All build checks must pass in order to receive full credit.