When you create a record adapter for loading data, you specify Input as the direction of data flow, along with the format and location of the source data.
Record adapters read and write record data. The record adapter describes where the data is located, the format, and various aspects of processing. Each file of source data requires its own record adapter.
To access your content adapter through a record adapter, follow these steps:
In Developer Studio, open the project that will contain the content adapter.
In the Pipeline Diagram editor, click → → .
The Record Adapter editor opens.
In the Name text box, type a unique name for this record adapter. (In the example, we use
LoadData
.)In the General tab, do the following:
In the Format list, choose Custom Adapter.
In the Java properties frame, enter information according to the following requirements:
Java home must point to a version 1.7.0 or greater install of the JDK.
Class specifies the fully-qualified name of the adapter class, such as
com.acme.MyAdapter
.Class path specifies the absolute path to a JAR file (or a set of JAR files, separated by colons ‘
:
’ on UNIX and semi-colons ‘;
’ on Windows) containing the classes required by the content adapter.
In the Pass Throughs tab, enter elements that become name-value pairs in the
AdapterConfig
given to the content adapter via theAdapter.execute
method. In most cases this configuration is used to initialize the content adapter by connecting to a data source.