09.02 - Converters
From file To fixed.field.file.descriptor
Category-Name: descriptor
What: This 'descriptor' converter will convert a resource of category file to a resource of category fixed.field.file.descriptor. This converter verifies that the resource is a well formed descriptor (structure + content).
CONVERT {resourceToConvert<Res:file>} TO fixed.field.file.descriptor (descriptor) AS {converted<Res:fixed.field.file.descriptor>}
Input:
resourceToConvert<Res:file>: The name of the resource to convert (Resource of category file). This ressource should reference a fixed field file descriptor.
Output:
converted<Res:fixed.field.file.descriptor>: The name of the converted resource (Resource of category fixed.field.file.descriptor)
Example:
LOAD path/to/fixed_field_file_descriptor.txt AS fff_descriptor.file
CONVERT fff_descriptor.file TO fixed.field.file.descriptor (descriptor) AS fff_descriptor.fffd
From file to fixed.field.file
Category-Name: structured
What: This 'structured' converter will convert a resource of category file to a resource of category fixed.field.file by using fixed.field.file.descriptor.
CONVERT {fffToConvert<Res:file>} TO fixed.field.file (structured) USING {fffDescriptor<Res:fixed.field.file.descriptor>} AS {converted<Res:fixed.field.file>}
Input:
fffToConvert<Res:file>: The name (in the context) of the resource to convert (Resource of category file). This ressource should reference a fixed field file (e.g. by using a LOAD instruction on the fixed field file path).
fffDescriptor<Res:fixed.field.file.descriptor>: The name (in the context) of the descriptor resource. (Resource of category fixed.field.file.descriptor)
Output:
converted<Res:fixed.field.file>: The name of the converted resource. (Resource of category fixed.field.file)
Example:
LOAD path/to/fixed_field_file_descriptor.txt AS fff_descriptor.file
CONVERT fff_descriptor.file TO fixed.field.file.descriptor (descriptor) AS fff_descriptor.fffd
LOAD path/to/fixed_field_file.txt AS fixed_field_file.file
CONVERT fixed_field_file.file TO fixed.field.file (structured) USING fff_descriptor.fffd AS fixed_field_file.fff
From file to fixed.field.file.queries
Category-Name: query
What: This 'query' converter will convert a resource of category file to a resource of category fixed.field.file.queries.
CONVERT {queriesToConvert<Res:file>} TO fixed.field.file.queries (query) AS {converted<Res:fixed.field.file.queries>}
Input:
queriesToConvert<Res:file>: The name (in the context) of the resource to convert (Resource of category file). This ressource should reference a fixed field file queries (e.g. by using a LOAD instruction on the fixed field file queries path).
Output:
converted<Res:fixed.field.file.queries>: The name of the converted resource (Resource of category fixed.field.file.queries)
Example:
LOAD path/to/fixed_field_file_queries.txt AS fff_queries.file
CONVERT fff_queries.file TO fixed.field.file.queries (query) AS fff_query.fffq