aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-10-12 17:29:14 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2012-10-12 17:29:14 +0300
commit75f2669bf1b62b441002ac361e245254e9ad7330 (patch)
tree16e6af51b24d9a86d5cdefcc58723582c404d22c /doc
parentdfa58f8b8ebf024c2ec678a836adcd055e4bc052 (diff)
downloadeclat-75f2669bf1b62b441002ac361e245254e9ad7330.tar.gz
eclat-75f2669bf1b62b441002ac361e245254e9ad7330.tar.bz2
Implement sequence map.
* doc/eclat.conf.5: Document sequence maps. * lib/Makefile.am: Add new files. * lib/libeclat.h (eclat_map_drv_seq): New extern. * lib/seqmap.c: New file. * src/eclat.c: Minor fixes. * tests/Makefile.am: Add new testcase. * tests/testsuite.at: Likewise. * tests/seqmap.at: New file.
Diffstat (limited to 'doc')
-rw-r--r--doc/eclat.conf.541
1 files changed, 41 insertions, 0 deletions
diff --git a/doc/eclat.conf.5 b/doc/eclat.conf.5
index 2a49f99..a1286ba 100644
--- a/doc/eclat.conf.5
+++ b/doc/eclat.conf.5
@@ -600,6 +600,47 @@ Defines the name of the database file to use.
If set to \fBtrue\fR this statement instructs the backend to count
terminating null character as a part of key length. By default, the null
character is not counted.
+.SS SEQUENCE MAP
+Maps of this type consult several other
+.B eclat
+maps in sequence, using return value from the previous map as a
+key to the subsequent one. The map returns the value produced by the
+last map in sequence.
+.sp
+.nf
+ map \fIname\fR {
+ type sequence;
+ key \fItrans\fR;
+ sequence \fImaps\fR;
+ }
+.fi
+.sp
+.TP
+\fBsequence\fR \fImaps\fR
+This statement defines the sequence of maps to query. Its argument is
+a list of map names. The maps it references must be declared
+elsewhere in the configuration file (not necessarily before the
+sequence map that references them.
+.PP
+For example:
+.sp
+.nf
+ map InstanceId {
+ type sequence;
+ sequence (keytab, instancetab);
+ }
+.fi
+.sp
+If the sequence consists of a single element, such a map is
+effectively an alias to the map named by that element:
+.sp
+.nf
+ map i {
+ type sequence;
+ sequence InstanceId;
+ }
+.fi
+.sp
.SS LDAP MAP
This map uses LDAP database to translate names. It is defined using
the following syntax:

Return to:

Send suggestions and report system problems to the System administrator.