create_index でファイルに索引2006年09月19日 12時43分37秒

VOS のファイルには index を付けることが出来る。索引を付けると、ファイルの先頭から読むときに書き込んだ順でなく、特定の順番にソートされた順に読み出すことが出来る。

create_index が、そのためのコマンドだ。このコマンドは、索引を作る。索引は一つの連続したレコードである必要はない。


---------------------------------- create_index -------------------------------
 path_name:
 index_name:
 key_components:
 -type:             embedded_key
 -collation:        ascii
 -order:            ascending
 -extent_size:      1
 -dynamic_extents:  no
 -num_blocks:       0
 -duplicates:       yes
 -null_keys:        no
 -automatic_update: yes
 -work_dir:
 -duplicate_path:

-form でコマンドのフォームを呼び出すとこうなる。

key_components に position,length の対を並べる事により断続的なレコードに索引を付けることが出来る。