Write a java program that reads and parses through the csv file below. Particualry read column G
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a java program that reads and parses through the csv file below. Particualry read column G and H. Every injected field must have a value for either Default or Mapped If find a value that is not mapped throw exception. It is mapped if there is a value in the H column.
Transcribed Image Text:
1 Nifi Property Name 2 Syester of Record Code 3 4 5 6 7 $ Input Directory File Filter Path Filter 9 Batch Size 10 Keep Source File 1 Recurse Subdirectories 2 Polling Intreval 13 Ignore Hidden Files 14 Minimum File Age 15 5 Maximum File Age 16 Minimum File Size 17 Maximum File Size * Mode 9 Compression Format 19 20 Compression Level 21 Update Filename 22 Command Arguments 23 Command Path 24 Ignore STDIN 25 Working Directory 26 Argument Delimiter 27 Output Destination Attribute es Max Attribute Length 29 Directory 30 Conflict Resolution Strategy 1 Create Missing Directories 32 Maximum File Count 33 Last Modified Time 34 Permissions 35 Owner 36 Group 7 Delete Attributes Expression Store State 38 Stateful Variables Initial Value filename 39 40 1 Directory 2 Conflict Resolution Strategy 3 Create Missing Directories 4 Maximum File Count CL D Nifi Template Property Value ${EdgeStageDir ${EdgeStageDir No Value Set 1 sec true 0 sec No Value Set ОВ No Value Set No Value Set gzip true EbcdicToAscii.sh /bin/bash true ${EdgeScriptDir ; No Value Set ${EdgeErrorDir ignore No Value Set No Value Set No Value Set No Value Set No Value Set No Value Set Do not store state No Value Set ${filename:append ${EdgeArchiveDir replace No value set FALSE FALSE TRUE TRUE E UI Field Type Custom String Custom String Blank Set 10 Custom Valuc Choice Menu Choice Menu Custom Valuc Choice Menu Custom Value Blank Set Custom Value Blank Set Choice Menu Choice Menu 1 Choice Menu Choice Menu Custom String Custom String Choice Menu Choice Menu Custom String Blank Set 256 Custom String Choice Menu Choice Menu Choice Menu Blank Set Blank Set Blank Set Blank Set Blank Set Blank Set Choice Menu Blank Set Custom String Custom String Choice Menu Choice Menu Blank Set F Injected In Nifi Yes No Yes Yes Yes No Yes Yes No Yes No No No No No Yes no yes Yes No no Yes Yes Yes no no no no no no Yes no Yes Yes yes yes no Injection Default Value EDW.".dat.ga 1 sec 0 sec ОБ EbcdicToAscii.ch /bin/bash i ${EdgeErrorDir ignore Do not store state replace G FALSE FALSE TRUE TRUE TRUE TRUE 10 256 H STREAMSETS PROPERTY NAME EDGE_DIR STAGE DQ SCRIPT_NAME FILENAME_PATTERN EDGE ARCHIVE_DIR I K List ED HIV HIV ED SO SUB zor LOI SC EX TR HIV FIL ED HD PK HIV НIЧ DQ DQ EN ED HD co SD SD CLE ED TEM 1 Nifi Property Name 2 Syester of Record Code 3 4 5 6 7 $ Input Directory File Filter Path Filter 9 Batch Size 10 Keep Source File 1 Recurse Subdirectories 2 Polling Intreval 13 Ignore Hidden Files 14 Minimum File Age 15 5 Maximum File Age 16 Minimum File Size 17 Maximum File Size * Mode 9 Compression Format 19 20 Compression Level 21 Update Filename 22 Command Arguments 23 Command Path 24 Ignore STDIN 25 Working Directory 26 Argument Delimiter 27 Output Destination Attribute es Max Attribute Length 29 Directory 30 Conflict Resolution Strategy 1 Create Missing Directories 32 Maximum File Count 33 Last Modified Time 34 Permissions 35 Owner 36 Group 7 Delete Attributes Expression Store State 38 Stateful Variables Initial Value filename 39 40 1 Directory 2 Conflict Resolution Strategy 3 Create Missing Directories 4 Maximum File Count CL D Nifi Template Property Value ${EdgeStageDir ${EdgeStageDir No Value Set 1 sec true 0 sec No Value Set ОВ No Value Set No Value Set gzip true EbcdicToAscii.sh /bin/bash true ${EdgeScriptDir ; No Value Set ${EdgeErrorDir ignore No Value Set No Value Set No Value Set No Value Set No Value Set No Value Set Do not store state No Value Set ${filename:append ${EdgeArchiveDir replace No value set FALSE FALSE TRUE TRUE E UI Field Type Custom String Custom String Blank Set 10 Custom Valuc Choice Menu Choice Menu Custom Valuc Choice Menu Custom Value Blank Set Custom Value Blank Set Choice Menu Choice Menu 1 Choice Menu Choice Menu Custom String Custom String Choice Menu Choice Menu Custom String Blank Set 256 Custom String Choice Menu Choice Menu Choice Menu Blank Set Blank Set Blank Set Blank Set Blank Set Blank Set Choice Menu Blank Set Custom String Custom String Choice Menu Choice Menu Blank Set F Injected In Nifi Yes No Yes Yes Yes No Yes Yes No Yes No No No No No Yes no yes Yes No no Yes Yes Yes no no no no no no Yes no Yes Yes yes yes no Injection Default Value EDW.".dat.ga 1 sec 0 sec ОБ EbcdicToAscii.ch /bin/bash i ${EdgeErrorDir ignore Do not store state replace G FALSE FALSE TRUE TRUE TRUE TRUE 10 256 H STREAMSETS PROPERTY NAME EDGE_DIR STAGE DQ SCRIPT_NAME FILENAME_PATTERN EDGE ARCHIVE_DIR I K List ED HIV HIV ED SO SUB zor LOI SC EX TR HIV FIL ED HD PK HIV НIЧ DQ DQ EN ED HD co SD SD CLE ED TEM
Expert Answer:
Answer rating: 100% (QA)
1 Import necessary libraries Java import comopencsvCSVReader import javaioFileReader import javaioIOException 2 Specify file path Java String csvFilePath pathtoyourcsvfilecsv 3 Initialize CSV reader J... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Predictive text entry systems are familiar on touch screens and mobile phones. This question asks you to consider how the same principles might be used in a programming editor for creating Java code....
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
The Policy Committee of your company decides to change investment strategies. This change entails an increase in exposure to the stocks of large companies producing consumer products dominated by...
-
What factors determine the intensity of rivalry?
-
The article Going Wireless (AARP Bulletin, June 2009) reported the estimated percentage of households with only wireless phone service (no land line) for the 50 U.S. states and the District of...
-
It was a late Saturday afternoon in mid-December, and Bob Smith, a research analyst for L&H Marketing Research, was working furiously to complete the media plan portion of the Standard Grooming...
-
The $600M XYZ Fund has completed its 10-year life. Its annual investments, fees, distributions, and portfolio value are given in Exhibit 3-10. (a) Compute the value multiple, realized value multiple,...
-
If a firm acquires a supplier, what type of merger is this? If they acquire a firm that does a similar type of business, what type of merger is this? Explain.
-
VF Corporation is an apparel company that owns recognizable brands like Timberland, Vans, Reef, and 7 For All Mankind. Exhibit 5.18 and 5.19 present balance sheets and income statements,...
-
If we know mass m1 (yourself) and what mass of a boat m2, then what should mass M and how high you need to place h? And what should be distances R, L, I if you know the heigh H Also at which angle Q...
-
What role does the "outsider" protagonist play in literature, representing marginalized voices, challenging hegemonic structures, and offering perspectives that disrupt mainstream narratives of...
-
Why is Amusing the Million a great book? And why?
-
TATA trucks and its subsidiaries making 432,150 units per year with a daily standard deviation of 153 units. Making cost and shipping cost from Germany is $1,900, with lead time from order to receipt...
-
a. The following code is supposed to evaluate the function 0 x <0 X 0x1 f(x)=12-x 1x2 10 x >2 x = linspace (-4,4); = N length x for j = 1; N if x (j)>=0 and x(i) 1 or x(i) <2 f(j) = 2 - x else f(j) =...
-
(a) Complete the following truth table. a b -a T T T F F T F F -b (-b) (b) Give a parse tree for the following Boolean expression avb)
-
Find the domain and range of the function f (x, y) = xevy+I
-
4. Jobe dy -Y 2 et by
-
In 2012, Lou has a salary of $54,000 from her job. She also has interest income of $1,700. Lou is single and has no dependents. During the year, Lou sold silver coins held as an investment for a...
-
Leslie is a single taxpayer who is under age 65 and in good health. For 2012, she has a salary of $23,000 and itemized deductions of $1,000. Leslie is entitled to one exemption on her tax return. a....
-
a. Wilson filed his individual tax return on the original due date, but failed to pay $700 in taxes that were due with the return. If Wilson pays the taxes exactly 2 months late, calculate the amount...
-
From the following trial balance of G. Foot after his first year's trading, you are required to draw up a statement of profit or loss for the year ending 30 June 2016. A statement of financial...
-
At the beginning of the financial year on 1 April 2017, a company had a balance on plant account of 372,000 and on provision for depreciation of plant account of 205,400. The company's policy is to...
-
(a) Distinguish between capital and revenue expenditure. (b) Drake Ltd took delivery of a computer network on 1 July 2016, the beginning of its financial year. The list price of the equipment was...
Study smarter with the SolutionInn App