|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectFairCom.CtreeDb.CTBase
FairCom.CtreeDb.CTSegment
public class CTSegment
Objects of the CTSegment class manage index segments. The segment is part of the index; one single index may be composed of several segments. It uses CTBase as the base class, and implements the constructor/destructor allocating/freeing memory to the segment operations.
CTBase,
CTIndex,
CTField| Field Summary |
|---|
| Fields inherited from class FairCom.CtreeDb.CTBase |
|---|
m_handle |
| Constructor Summary | |
|---|---|
CTSegment()
Constructor |
|
CTSegment(CTSegment Seg)
Copy constructor |
|
| Method Summary | |
|---|---|
void |
finalize()
Destructor |
CTField |
GetField()
retrieve the segment field object |
java.lang.String |
GetFieldName()
Method: GetFieldName Retrieve the segment field name Parameters: none Returns: Return the field name |
int |
GetMode()
Retrieve the segment mode |
int |
GetNumber()
Retrieve the segment index position in index segments list |
CTField |
GetPartialField()
Retrieve the segment field object |
java.lang.String |
GetPartialFieldName()
Method: GetPartialFieldName Retrieve the segment field name Parameters: none Returns: Return the field name |
int |
GetStatus()
Retrieve the status of the segment handle. |
void |
MoveSegment(int newIndex)
Moves a key segment to a location indicated by newIndex . |
void |
SetField(CTField field)
Change the underlying segment field. |
void |
SetMode(int SegMode)
Set the segment mode |
| Methods inherited from class FairCom.CtreeDb.CTBase |
|---|
Abort, Begin, Commit, GetAutoCommit, GetHandle, GetKeepLock, GetLockMode, GetOperation, GetTransactionMode, IsLockActive, IsTransActive, IsUnicodeLib, Lock, RestoreSavePoint, SetAutoCommit, SetHandle, SetKeepLock, SetOperation, SetSavePoint, SetTransactionMode, Unlock |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CTSegment()
public CTSegment(CTSegment Seg)
Seg - the CTSegment to copy.| Method Detail |
|---|
public void finalize()
finalize in class java.lang.Object
public CTField GetField()
throws CTException
CTException
public CTField GetPartialField()
throws CTException
CTException
public java.lang.String GetFieldName()
throws CTException
CTException
public java.lang.String GetPartialFieldName()
throws CTException
CTException
public int GetMode()
throws CTException
CTException
public void SetMode(int SegMode)
throws CTException
SegMode - The segment mode to set, use the static members of
SEG_MODE class to pass the value.
CTException
public int GetNumber()
throws CTException
CTExceptionpublic int GetStatus()
public void MoveSegment(int newIndex)
throws CTException
newIndex - Index of the new location of the segment.
CTException
public void SetField(CTField field)
throws CTException
field - Field object.
CTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||