|
CTTable.PartAdminByNumber
Performs an administrative partition operation on the partition specified by partition number.
Declaration
COUNT PartAdminByNumber( LONG partno, CTPART_MODE_E partmode );
Description
PartAdminByKey() manages the partitions for a table.
- partno [in] - partition number
- partmode [in] - partition operation mode. partmode is one of of the CTPART_MODE_E enums:
|
PURGE
|
delete a partition
|
|
ADD
|
add a partition
|
|
ARCHIVE
|
archive a partition
|
|
BASE
|
modify the lower limit partition number value
|
|
ACTIVATE
|
activate an archived partition
|
|
STATUS
|
return the partition status in partstatus
|
Return Values
CTDBRET_NOERROR is returned if no error.
If CTPART_MODE_E.STATUS is passed as a partition mode, then one of the following partstatus values is returned:
pmSTATUSnone
|
0
|
partition member does not exist
|
pmSTATUSexst
|
1
|
partition member is active
|
pmSTATUSopnd
|
2
|
partition member is active and currently open
|
pmSTATUSarhv
|
3
|
partition member is archived
|
pmSTATUSpurg
|
4
|
partition member was purged
|
pmSTATUSparc
|
19
|
partition member is pending archive
|
pmSTATUSppnd
|
20
|
partition member is pending purge
|
See Also
CTTable.PartAdminByKey(), CTTable.PartAdminByName()
|