Metamerge logo
Search

Advanced Search
*
*
*
* HOME DOCUMENTS & RESOURCES DOWNLOADS EARLY TECH ACCESS SUPPORT FAQ KNOWN ISSUES OLD VERSIONS
*

 

BTree Connector

Overview

The BTree Connector is a simple database capable of storing Java objects. Each object is uniquely identified by a value called the key. The Connector uses an underlying Btree implementation to store AssemblyLine Entry objects. This will enable the user to store the conn and work entries using a unique key. This Connector is also used by the AssemblyLine's Delta feature.

If you want to use the btree implementation directly to store other Java object than AssemblyLine entries you must first get the Btree object and then use its methods directly.

Configuration

The Connector needs the following parameters:

Parameter

Description

connectorType com.architech.connector.BTree
filePath The file path where the btree data is stored
keyAttribute The attribute name giving the unique value for the entry
selectionMode Specify All, Existing or Deleted. In order to use the Existing and Deleted keywords the Connector (database) must have been used by an AssemblyLine with the delta enabled. When delta is enabled on an iterator the AssemblyLine will store a sequence property in the database and also add a sequence number to each entry read from the source.
 

BTree Object

The getDatabase() method returns the underlying Btree object. This object can be used to store other Java objects than AssemblyLine entries. The following snippet shows how you can insert, search and replace objects in the database:

var bt = system.getConnector("btreedb");
bt.initialze (null);

var db = bt.getDatabase();
db.insert ("my key", new java.lang.String("my value"));
var value = db.search ("my key");
value = value + " - modified";
db.replace ("my key", value);

 Downloads

Included in base product since 4.0.3

See Also

 

 

 

*
  Metamerge Integrator version 4.6 ©Copyright Metamerge AS 2000-2002 Last edited 2002-06-10 contact us