SAP ABAP Class CL_SHDB_TAB_LOCATION (Provides a cache for table location on hosts)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
HAN-DB (Application Component) SAP HANA Database
⤷
SHDB (Package) Basis Package for HDB
⤷
⤷
Meta Relationship - Using
| # | Relationship type | Using | Short Description | Created on |
|---|---|---|---|---|
| 1 | Inheritance (c INHERITING FROM c_ref) | CL_SHDB_BASE | base class for HANA DB objects | 20121127 |
| 2 | Interface implementation (CLASS c. INTERFACES i_ref) | IF_SERIALIZABLE_OBJECT | Serializable Object | 20130312 |
Properties
| Class | CL_SHDB_TAB_LOCATION | |
| Short Description | Provides a cache for table location on hosts | |
| Super Class | CL_SHDB_BASE | base class for HANA DB objects |
| Instantiability of a Class | 0 | Private |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SHDB | Basis Package for HDB |
| Created | 20120509 | SAP |
| Last change | 20140121 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
| # | Interface | Abstract | Final | Description | Created on |
|---|---|---|---|---|---|
| 1 | IF_SERIALIZABLE_OBJECT | Serializable Object | 20130312 |
Friends
Class CL_SHDB_TAB_LOCATION has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | TV_DISTR_MODE | 1 | 20120724 | |||
| 2 | Constant | Public | Type reference (TYPE) | TV_DISTR_MODE | 2 | 20120724 | |||
| 3 | Constant | Public | Type reference (TYPE) | TV_DISTR_MODE | 3 | 20120724 | |||
| 4 | Constant | Public | Type reference (TYPE) | TV_DISTR_MODE | 0 | 20120724 | |||
| 5 | Instance attribute | Private | Object reference (TYPE REF TO) | IF_LIB_ITERABLE | 20120724 | ||||
| 6 | Instance attribute | Private | Object reference (TYPE REF TO) | CL_SQL_CONNECTION | 20120724 | ||||
| 7 | Static Attribute | Private | Object reference (TYPE REF TO) | CL_SHDB_TAB_LOCATION | 20120724 | ||||
| 8 | Instance attribute | Private | Type reference (TYPE) | TT_PARTLOC | 20120724 | ||||
| 9 | Instance attribute | Private | Type reference (TYPE) | TABNAME | 20120724 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Method | Accumulate all parts of table on one host | 20120724 | |
| 2 | Instance method | Private | Constructor | Private; use new() instead | 20120724 | |
| 3 | Instance method | Public | Method | Read the location of partitions of tables | 20120724 | |
| 4 | Instance method | Public | Method | Distributes table parts across hosts - specifed by iterator | 20120724 | |
| 5 | Instance method | Public | Method | Provides an iterator on locations of a table | 20120724 | |
| 6 | Instance method | Public | Method | Specifies whether table is changed after last determine() | 20120724 | |
| 7 | Instance method | Public | Method | Specifies whether a table is distributed on different hosts | 20120724 | |
| 8 | Instance method | Public | Method | Mark table as changed; location information no longer valid | 20120724 | |
| 9 | Static method | Public | Method | Creates Instance | 20120724 | |
| 10 | Instance method | Public | Method | Removes cached location data of all or a single table | 20130122 | |
| 11 | Instance method | Public | Method | relocates a table partition on a certain host | 20121127 | |
| 12 | Static method | Public | Method | Relocates a table according to location of a pattern table | 20130122 | |
| 13 | Instance method | Private | Method | Returns a sorted host iterator for a certain table | 20120724 | |
| 14 | Instance method | Private | Method | Provides the server mostly populated by a certain table | 20120724 |
Events
Class CL_SHDB_TAB_LOCATION has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TS_PARTLOC | Public | See coding | 20120724 | begin of ts_partloc,
table type tabname,
partition TYPE i,
host(64) type c,
port type i,
crit type i,
changed type abap_bool,
end of ts_partloc
|
||
| 2 | TS_POP | Protected | See coding | 20120724 | BEGIN OF ts_pop,
host(64) TYPE c,
num TYPE i,
END OF ts_pop
|
||
| 3 | TT_PARTLOC | Public | See coding | 20120724 | tt_partloc TYPE STANDARD TABLE OF ts_partloc WITH KEY table
|
||
| 4 | TT_POP | Protected | See coding | 20120724 | tt_pop TYPE STANDARD TABLE OF ts_pop
|
||
| 5 | TV_DISTR_MODE | Public | Type reference (TYPE) | I | 20120724 | |
Method Signatures
Method ACCUMULATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DEST | Call by reference | Type reference (TYPE) | CHAR64 | 20120724 | ||||
| 2 | IV_TABNAME | Call by reference | Type reference (TYPE) | TABNAME | 20120724 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20120724 |
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IR_CONN | Call by reference | Object reference (TYPE REF TO) | CL_SQL_CONNECTION | 20120724 | ||||
| 2 | IV_TABLE | Call by reference | Type reference (TYPE) | TABNAME | create instance optimized for usage with one table only | 20120724 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20120724 |
Method DETERMINE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_TABLE | Call by reference | Type reference (TYPE) | TABNAME | 20120724 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20120724 |
Method DISTRIBUTE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IR_HOST_ITER | Call by reference | Object reference (TYPE REF TO) | IF_LIB_ITERABLE | basic iterator interface | 20120724 | |||
| 2 | IV_TABLE | Call by reference | Type reference (TYPE) | TABNAME | Tabellenname | 20120724 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | exceptions of HANA DB objects | 20120724 |
Method GET_LOC_ITER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_TABNAME | Call by reference | Type reference (TYPE) | TABNAME | 20120724 | ||||
| 2 | RR_LOC_ITER | Value transfer | Object reference (TYPE REF TO) | IF_LIB_ITERABLE | 20120724 |
Method GET_LOC_ITER on class CL_SHDB_TAB_LOCATION has no exception.
Method IS_CHANGED Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_TABLE | Call by reference | Type reference (TYPE) | TABNAME | 20120724 | ||||
| 2 | RV_CHANGED | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20120724 |
Method IS_CHANGED on class CL_SHDB_TAB_LOCATION has no exception.
Method IS_DISTRIBUTED Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_TABLE | Call by reference | Type reference (TYPE) | TABNAME | 20120724 | ||||
| 2 | RV_DISTR | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20120724 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | exceptions of HANA DB objects | 20120724 |
Method MARK_AS_CHANGED Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_TABLE | Call by reference | Type reference (TYPE) | TABNAME | 20120724 |
Method MARK_AS_CHANGED on class CL_SHDB_TAB_LOCATION has no exception.
Method NEW Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IR_CONN | Call by reference | Object reference (TYPE REF TO) | CL_SQL_CONNECTION | 20120724 | ||||
| 2 | IV_TABLE | Call by reference | Type reference (TYPE) | TABNAME | create instance optimized for use with only one table | 20120724 | |||
| 3 | RR_REF | Value transfer | Object reference (TYPE REF TO) | CL_SHDB_TAB_LOCATION | 20120724 |
Method NEW on class CL_SHDB_TAB_LOCATION has no exception.
Method RELEASE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_TABLE | Call by reference | Type reference (TYPE) | TABNAME | Tabellenname | 20130122 |
Method RELEASE on class CL_SHDB_TAB_LOCATION has no exception.
Method RELOCATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_HOST | Call by reference | Type reference (TYPE) | TS_PARTLOC-HOST | 20121127 | ||||
| 2 | IV_PARTITION | Call by reference | Type reference (TYPE) | I | 20121127 | ||||
| 3 | IV_PORT | Call by reference | Type reference (TYPE) | TS_PARTLOC-PORT | 20121127 | ||||
| 4 | IV_TABLE | Call by reference | Type reference (TYPE) | TABNAME | 20121127 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20121127 |
Method SYNC_LOCATION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_PATTERN | Call by reference | Type reference (TYPE) | TABNAME | table used as pattern | 20130122 | |||
| 2 | IV_TABLE | Call by reference | Type reference (TYPE) | TABNAME | table needs to be relocated | 20130122 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20130122 |
Method _GET_CACHED_SH_ITER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_TABLE | Call by reference | Type reference (TYPE) | TABNAME | 20120724 | ||||
| 2 | RR_ITER | Value transfer | Object reference (TYPE REF TO) | IF_LIB_ITERABLE | 20120724 |
Method _GET_CACHED_SH_ITER on class CL_SHDB_TAB_LOCATION has no exception.
Method _GET_MOST_POPULATED_SERVER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_TABNAME | Call by reference | Type reference (TYPE) | TABNAME | 20120724 | ||||
| 2 | RV_HOST | Value transfer | Type reference (TYPE) | CHAR64 | 20120724 |
Method _GET_MOST_POPULATED_SERVER on class CL_SHDB_TAB_LOCATION has no exception.
History
| Last changed by/on | SAP | 20140121 |
| SAP Release Created in | 740 |