Items input is a source of the items which should be used to perform the load operations (create/read/etc).
The items once created with Mongoose may be stored into the output CSV file. This file may be reused on input for
other load operations, such as a copy
, read
, update
, delete
and noop
.
java mongoose-<VERSION>.jar --item-input-file=items.csv ...
In some cases the items list file is not available. The items list may be obtained on the fly from the storage path listing.
java mongoose-<VERSION>.jar --item-input-path=/path_to_list ...
Note:
It may be useful to combine this option with
noop
to enumerate the items on the storage located in the specified path. Combining also withitem-output-file
option allows to store the enumerated items information for a further usage.
New items generator is used if no items input file neither item input path is specified and the configured load
operations type is create
.
A new items generator may use custom items naming scheme.
The item naming type defines the function used to calculate the next item id from the previous one.
Random item ids are used by default
Generate new item ids in the ascending order (starting from 0):
java mongoose-<VERSION>.jar --item-naming-type=serial --item-naming-seed=-1 --item-naming-step=1 ...
Generate new item ids in the descending order (starting from 999):
java mongoose-<VERSION>.jar --item-naming-type=serial --item-naming-seed=1000 --item-naming-step=-1 ...
The prefix option may be used to prepend some value for each new item.
java mongoose-<VERSION>.jar --item-naming-prefix=item_prefix_ ...
The prefix may be dynamic (see expressions).
The radix option is used to encode the source number into the id. The radix should be in the range of [2; 36].
java mongoose-<VERSION>.jar --item-naming-radix=16 ...
The item ids will start from the next value calculated using the specified seed.
java mongoose-<VERSION>.jar --item-naming-seed=9876543210 ...
The length option determines the id length for the new item ids. The minor bits are used if the source number is truncated.
java mongoose-<VERSION>.jar --item-naming-lenth=15 ...