K2hash クラス
K2hashクラスは、K2HASHを操作するメソッドを提供します。
使い方は、各メソッドの説明ページを参照してください。
Class 概要
K2hash {
    public addAttr ( string $key , string $attrkey , string $attrval ) : bool
    public addAttrCryptPass ( string $encpass [, bool $is_default_encrypt ] ) : bool
    public addAttrPluginLib ( string $libfile ) : bool
    public addSubkey ( string $key , string $subkey ) : bool
    public addSubkeys ( string $key , array $subkeys ) : bool
    public cleanCommonAttribute ( void ) : bool
    public close ([ int $waitms ] ) : bool
    public static create ( string $filepath [, int $maskbitcnt [, int $cmaskbitcnt [, int $maxelementcnt [, int $pagesize ]]]] ) : bool
    public disableTransaction ( void ) : bool
    public dumpElementtable ([ mixed $output ] ) : bool
    public dumpFull ([ mixed $output ] ) : bool
    public dumpFullKeytable ([ mixed $output ] ) : bool
    public dumpHead ([ mixed $output ] ) : bool
    public dumpKeytable ([ mixed $output ] ) : bool
    public enableTransaction ([ string $transfile [, string $prefix [, string $param [, int $expire ]]]] ) : bool
    public getAttrInfos ([ mixed $output ] ) : bool
    public arrayfalsegetAttrs ( string $key )
    public stringfalsegetAttrValue ( string $key , string $attrkey )
    public getAttrVersionInfos ([ mixed $output ] ) : bool
    public getIterator ( string $key ) : mixed
    public getKeyQueue ([ bool $is_filo [, string $prefix ]] ) : mixed
    public getQueue ([ bool $is_filo [, string $prefix ]] ) : mixed
    public getStream ( string $key , string $mode ) : mixed
    public arrayfalsegetSubkeys ( string $key [, bool $attrcheck ] )
    public static getTransactionThreadPool ( void ) : int
    public stringfalsegetValue ( string $key [, string $subkey [, bool $attrcheck [, string $pass ]]] )
    public loadArchive ( string $filepath [, bool $errskip ] ) : bool
    public open ( string $filepath , bool $readonly [, bool $removefile [, bool $fullmap [, int $maskbitcnt [, int $cmaskbitcnt [, int $maxelementcnt [, int $pagesize ]]]]]] ) : bool
    public openMem ([ int $maskbitcnt [, int $cmaskbitcnt [, int $maxelementcnt [, int $pagesize ]]]] ) : bool
    public openRO ( string $filepath [, bool $fullmap [, int $maskbitcnt [, int $cmaskbitcnt [, int $maxelementcnt [, int $pagesize ]]]]] ) : bool
    public openRW ( string $filepath [, bool $fullmap [, int $maskbitcnt [, int $cmaskbitcnt [, int $maxelementcnt [, int $pagesize ]]]]] ) : bool
    public openTempfile ( string $filepath [, bool $fullmap [, int $maskbitcnt [, int $cmaskbitcnt [, int $maxelementcnt [, int $pagesize ]]]]] ) : bool
    public printState ([ mixed $output ] ) : bool
    public static printVersion ([ mixed $output ] ) : bool
    public putArchive ( string $filepath [, bool $errskip ] ) : bool
    public remove ( string $key [, string $subkey ] ) : bool
    public removeAll ( string $key ) : bool
    public rename ( string $key , string $newkey ) : bool
    public setCommonAttribute ([ int $is_mtime [, int $is_history [, int $is_encrypt [, string $passfile [, int $is_expire [, int $expire ]]]]]] ) : bool
    public static setTransactionThreadPool ( int $count ) : bool
    public setValue ( string $key , string $value [, string $subkey [, string $pass [, int $expire ]]] ) : bool
    public transaction ( bool $enable [, string $transfile [, string $prefix [, string $param [, int $expire ]]]] ) : bool
    public static unsetTransactionThreadPool ( void ) : bool
}
メソッド一覧
- K2hash::addAttr - キーに属性を追加する
 - K2hash::addAttrCryptPass - 値を暗号化するパスワード(暗号鍵)を追加する
 - K2hash::addAttrPluginLib - ユーザ定義の動的ライブラリを追加する
 - K2hash::addSubkey - キーを紐づける
 - K2hash::addSubkeys - 複数のキーを紐づける
 - K2hash::cleanCommonAttribute - キーの基本属性を初期化する
 - K2hash::close - k2hファイルを閉じる
 - K2hash::create - k2hファイルを作成する
 - K2hash::disableTransaction - トランザクションを停止する
 - K2hash::dumpElementtable - k2hashのハッシュテーブル内部の要素などを表示する
 - K2hash::dumpFull - k2hashのハッシュテーブル内部のデータなどを表示する
 - K2hash::dumpFullKeytable - k2hashのハッシュテーブルなどを表示する
 - K2hash::dumpHead - k2hashのヘッダを表示する
 - K2hash::dumpKeytable - k2hashのハッシュテーブルを表示する
 - K2hash::enableTransaction - トランザクションを開始する
 - K2hash::getAttrInfos - 属性を取得する
 - K2hash::getAttrs - キーに設定されている属性を取得する
 - K2hash::getAttrValue - キーに設定されている属性値を取得する
 - K2hash::getAttrVersionInfos - 属性のライブラリバージョン情報を表示する
 - K2hash::getIterator - K2hIteratorオブジェクトを取得する
 - K2hash::getKeyQueue - K2hKeyQueueオブジェクトを取得する
 - K2hash::getQueue - K2hQueueオブジェクトを取得する
 - K2hash::getStream - k2hashファイルストリームを取得する
 - K2hash::getSubkeys - キーに紐づけられたキー(サブキー)の一覧を取得する
 - K2hash::getTransactionThreadPool - トランザクション処理用のスレッド数を取得する
 - K2hash::getValue - 値を取得する
 - K2hash::loadArchive - ファイルからデータをロードする
 - K2hash::open - k2hファイルを開く
 - K2hash::openMem - k2hash用メモリセグメントにアクセスする
 - K2hash::openRO - k2hファイルを 読み込む
 - K2hash::openRW - k2hファイルを編集する
 - K2hash::openTempfile - 一時ファイルとしてk2hファイルを編集する
 - K2hash::printState - k2hashのデータの状態を表示する
 - K2hash::printVersion - ライブラリのバージョンなどを表示する
 - K2hash::putArchive - k2hファイルをアーカイブファイルとして保存する
 - K2hash::remove - キーを削除する
 - K2hash::removeAll - キーと、キーに紐づけられているキー(サブキー)を削除する
 - K2hash::rename - キー名を変更する
 - K2hash::setCommonAttribute - キーの基本属性を設定する
 - K2hash::setTransactionThreadPool - トランザクション処理用のスレッド数を設定する
 - K2hash::setValue - キーに値を設定する
 - K2hash::transaction - トランザクションを有効また無効にする
 - K2hash::unsetTransactionThreadPool - トランザクション処理用のスレッドを利用しない