i want to create metadata dynamically of the input file…
Hi,
I’m not sure what is the question. Do you want to create the metadata in Java code? Of course you can do that, see the DataRecordMetadata class. Or do you want the metadata to be automatically guessed from the input file (like in the CloverGUI)?
Jaro
Hi Jaro,
I have requirement that I have to validate feeds and then push into the data base. I have created graph for that….but the thing is that my input file is not constant …it can be any of the file….either it can have header or not….it can have any number of fields so can you please help me that how can I set meta data dynamically for the Edges.
Or How should I approach……
Is it possible that i set a fileURL and it automatically set the metadata
?
Hi,
the correct approach depends on what kind of validation do you need to do. Usually the validation requires some pre-defined metadata (i.e. “check the Name field for invalid characters”). If you want to change the metadata while a graph is running then that’s not a good idea.
If you have multiple types of files that you validate then you can create a separate graph for each of them. Or you can create metadata with just one big field, and parse and validate the field in a Reformat.
Jaro