|
|
|
|
|
Scorpion : Documentation : Flattening DataDir objects
Flattening DataDir objectsHow
Figure 1 shows an example DataDir object. The blank nodes represent ASN1.CONSTRUCTED nodes, and therefore have no data. Figure 2 shows the generated Hashtable. For each toplevel node in the DataDir object, a key/value pair is created in the Hashtable, with the name associated with the node's Field ID being used as the key. If a toplevel node is ASN1.PRIMITIVE then its data becomes the value in the Hashtable. If a toplevel node is ASN1.CONSTRUCTED then the data of its children becomes the value in the Hashtable. The data for each child node are joined together with a single space character between them. For the Hashtable object in Figure 2, Key 2 is associated with ' This process was used because it was a simplification and was appropriate for our data. You'll have to decide if it's appropriate for your data. How to use This is the method's signature: To use this method, you'll have to create a RecordCollection object and initialize it with a Field ID => Field Name mapping. This is done with the In addition to setting the field map, you may have to set the scoreID with the
|