Loading the Initial Data Set for a Sun Master Index

Data Reader Configuration

This section defines the data reader to use, the location of the input file, and any parameters. You can define a custom data reader to read data into the Bulk Matcher if you are not using the data file output by the Data Cleanser or if your data is formatted differently than the default data reader requires. For more information about the default data reader's requirements, see Required Format for Flat Data Files. You define the custom reader in Java, and then specify the class and configure the reader using the elements and attributes in the following table. You only need to configure the data reader for the master IBML Tool.

Table 5 Custom Data Reader Configuration Elements and Attributes

Element 

Attribute 

Description 

bean 

 

A definition for one data reader. This element includes the following elements and attributes. 

 

id 

A unique name for the data reader. 

 

class 

The Java class to implement for the data reader. The default data reader is com.sun.mdm.index.dataobject.DataObjectFileReader. This reader can access flat file data in the format described in Required Format for Flat Data Files.

 

singleton 

An indicator of whether to use the singleton pattern for the data reader class. Specify true to use a singleton pattern; otherwise specify false.

constructor-arg 

 

A parameter for the data reader. The default reader accepts two parameters. The first parameter has a type of java.lang.String and specifies the location of the input file. The second parameter has a type of boolean and indicates whether the input file contains delimiters. Specify true if the file contains delimiters.

 

type 

The data type of the parameter value. 

 

value 

The value for the parameter.