public class CTSegment extends CTBase
| Constructor and Description |
|---|
CTSegment()
Default constructor for CTSegment class
|
CTSegment(CTSegment Seg)
Copy constructor for the CTSegment class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
finalize()
Destroys an allocated CTSegment object
|
CTField |
GetField()
Retrieves the segment
CTField object |
java.lang.String |
GetFieldName()
Retrieves the segment field name
|
int |
GetMode()
Retrieves the
SEG_MODE |
int |
GetNumber()
Retrieves the segment index position in index segments list
|
CTField |
GetPartialField()
Retrieves the segment
CTField object |
java.lang.String |
GetPartialFieldName()
Retrieve the segment field name
|
int |
GetStatus()
Retrieves the
SEGMENT_STATUS |
void |
MoveSegment(int newIndex)
Moves a key segment to a location indicated by newIndex.
|
void |
SetField(CTField field)
Changes the underlying segment
CTField |
void |
SetJSONField(CTField field,
java.lang.String Key,
int Type,
int Size)
Changes the underlying segment
CTField |
void |
SetMode(int SegMode)
Sets the
SEG_MODE |
Abort, Begin, ClearSavePoint, Commit, GetAutoCommit, GetHandle, GetKeepLock, GetLockMode, GetOperation, GetTransactionMode, IsLockActive, IsTransActive, IsUnicodeLib, Lock, PrepareCommit, RestoreSavePoint, SetAutoCommit, SetHandle, SetKeepLock, SetOperation, SetSavePoint, SetTransactionMode, Unlockpublic CTSegment()
public CTSegment(CTSegment Seg)
Seg - CTSegment object to be copiedCTSegment(),
finalize()public void finalize()
finalize in class java.lang.ObjectCTSegment(FairCom.CtreeDb.CTSegment)public CTField GetField() throws CTException
CTField objectCTField object representing the field used
by the current segmentCTException - in case of errorGetPartialField(),
GetFieldName(),
GetMode(),
GetNumber(),
GetStatus()public CTField GetPartialField() throws CTException
CTField objectCTField object representing the field used
by the current segmentCTException - in case of errorGetField(),
GetFieldName(),
GetMode(),
GetNumber(),
GetStatus()public java.lang.String GetFieldName()
throws CTException
CTException - in case of errorGetField(),
GetPartialFieldName(),
GetMode(),
GetNumber(),
GetStatus()public java.lang.String GetPartialFieldName()
throws CTException
CTException - in case of errorGetField(),
GetPartialField(),
GetMode(),
GetNumber(),
GetStatus()public int GetMode()
throws CTException
SEG_MODESEG_MODE valueCTException - in case of errorSetMode(int),
GetField(),
GetPartialField(),
GetFieldName(),
GetNumber(),
GetStatus()public void SetMode(int SegMode)
throws CTException
SEG_MODESegMode - New SEG_MODE valueCTException - in case of errorGetMode(),
SetField(FairCom.CtreeDb.CTField)public int GetNumber()
throws CTException
CTException - in case of errorGetField(),
GetPartialField(),
GetFieldName(),
GetMode(),
GetStatus()public int GetStatus()
SEGMENT_STATUSSEGMENT_STATUS valueGetField(),
GetPartialField(),
GetFieldName(),
GetMode(),
GetNumber()public void MoveSegment(int newIndex)
throws CTException
newIndex - Index of the new location of the segment.CTException - in case of errorGetNumber()public void SetField(CTField field) throws CTException
CTFieldfield - New CTField objectCTException - in case of errorGetField(),
SetMode(int)public void SetJSONField(CTField field, java.lang.String Key, int Type, int Size) throws CTException
CTFieldfield - New CTField objectKey - JSON key name that is being indexedType - c-tree data type of key valueSize - Key segment lengthCTException - in case of errorGetField(),
SetMode(int)