The merge command-line tool lets you combine multiple collections with identical schemas. This is useful for merging smaller collections built from different sources into one, large collection. Also, you can use the merge command-line tool to break up the collection into smaller collections of a roughly uniform size.
bin
directory. In a typical installation, the path is:
verity
/prdname
/k2/_platform
/bin/merge
verity/prdname
represents the user-definable portion of the Verity installation directory name, and _
platform
represents the platform name (like _nti40
for Windows NT v4.0). To obtain help for the merge command-line tool, enter the following command:
optimize
option.
newCollection
srcCollection1
srcCollection2
srcCollectionN
]
srcCollection1
, srcCollection2
and so on and merges them into a single collection with the directory name given for newCollection
If the directory name given for newCollection
doesn't exist, then it is created.
srcCollection
newCollection1
newCollection2
srcCollection
and splits it in roughly equal-sized pieces, using the file names given for newCollection1
and so on. If you want to split a very large collection into a large number of new collections, you can use the following option instead of explicitly naming each new collection:
newCollection
srcCollection
srcCollection
and splits it into the number of segments specified by the -number
option. The name of the first new collection is generated by appending the first two letters in the alphabet (aa)
to the directory name given for newCollection
. Each subsequent file name is generated by incrementing one of the appended letters (up to zz)
for a maximum of 676 partitions. For example, if the value of -number
is 3
, and the value of newCollection
is Collection1
, the collections are named, Collection1aa
, Collection1ab
, and Collection1ac
.NOTE: The maximum length of the directory name given for
newCollection
is 2 characters less than the length allowed by the file system.