Question

Nous devons stocker des données à partir des fichiers plats qui est créé en utilisant le produit Ab-Initio d'IBM. Ils ont leurs propres types de données que je dois à la carte java alors que je datatypes processus que les données en Java.

Quelqu'un sait ce qui serait une bonne technique de le faire? Y at-API Java pour le faire?

technique la plus simple que j'ai à l'esprit est de créer une carte de Ab-Initio type Java après avoir vérifié la taille en Ab-Initio et en choisissant le type de données qui représente cette taille et le type en Java.

Toutes les entrées sont appréciés!

Merci, -JJ

Était-ce utile?

La solution

When converting data between various languages I like to stick to a couple basic data structures which seem to be able to handle any type of data:

  1. Primitives - for storing basic values like strings and numbers.
  2. Maps - for associating properties with values for an object.
  3. Lists - for storing sequences of primitives and objects.

Of course, in Java, it's canonical to create an object with bean properties instead of a Map when the full domain of attributes is known.

Autres conseils

In most ab-inito processes, just before a flat file is written, some transformation is performed on the data, even if there in no transformation performed, before writing to the file, or a step before the step that writes to the file, an intermediate DML is present which contains the data definitions for each columns, most of these are generic definitions, all you need to do is ask the ab-initio developer to send you a copy of that generic dml, and then you can you this DML to map values in java. Hope this helps.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top