|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.maachang.dbm.engine.FlagMapFile
public class FlagMapFile
MemoryMapでのフラグ管理.
| コンストラクタの概要 | |
|---|---|
FlagMapFile(boolean mode,
java.io.RandomAccessFile fp,
int startPos,
int size)
コンストラクタ. |
|
FlagMapFile(java.io.RandomAccessFile fp,
int startPos,
int size)
コンストラクタ. |
|
| メソッドの概要 | |
|---|---|
void |
clear()
情報クリア. |
void |
flush()
情報更新. |
boolean |
getPos(int pos)
指定位置のポジションが空いているか取得. |
int |
maxSize()
現在の最大有効件数を取得. |
void |
removePos(int pos)
指定位置のポジションを空ける. |
void |
setPos(int pos)
指定位置のポジションを利用中に設定. |
int |
size()
現在有効件数を取得. |
int |
useNextPos(int pos)
指定ポジションの次の有効な項番を取得. |
int |
usePos(int pos)
空いているポジション位置を取得. |
int |
usePosBySet(int pos)
空いているポジション位置を予約して取得. |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public FlagMapFile(java.io.RandomAccessFile fp,
int startPos,
int size)
throws java.lang.Exception
fp - ランダムアクセスファイルオブジェクトを設定します.startPos - メモリーマップ開始ポジションを設定します.size - フラグ管理数を設定します.
java.lang.Exception - 例外.
public FlagMapFile(boolean mode,
java.io.RandomAccessFile fp,
int startPos,
int size)
throws java.lang.Exception
mode - 初期化する場合は[true]を設定します.fp - ランダムアクセスファイルオブジェクトを設定します.startPos - メモリーマップ開始ポジションを設定します.size - フラグ管理数を設定します.
java.lang.Exception - 例外.| メソッドの詳細 |
|---|
public void clear()
public void flush()
throws java.lang.Exception
java.lang.Exception - 例外.
public void setPos(int pos)
throws java.lang.Exception
pos - 対象のポジションを設定します.
java.lang.Exception - 例外.
public void removePos(int pos)
throws java.lang.Exception
pos - 対象のポジションを設定します.
java.lang.Exception - 例外.
public boolean getPos(int pos)
throws java.lang.Exception
pos - 対象のポジションを設定します.
java.lang.Exception - 例外.
public int useNextPos(int pos)
throws java.lang.Exception
pos - 対象のポジションを設定します.
java.lang.Exception - 例外.
public int usePos(int pos)
throws java.lang.Exception
pos - 検索開始ポジションを設定します.
java.lang.Exception - 例外.
public int usePosBySet(int pos)
throws java.lang.Exception
pos - 検索開始ポジションを設定します.
java.lang.Exception - 例外.public int size()
public int maxSize()
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||