blib/lib/UR/DataSource/RDBMS/BitmapIndex.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 17 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use strict;
2 use warnings;
3  
4 package UR::DataSource::RDBMS::BitmapIndex;
5  
6 use UR;
7 our $VERSION = "0.46"; # UR $VERSION;
8  
9 UR::Object::Type->define(
10 class_name => 'UR::DataSource::RDBMS::BitmapIndex',
11 is => ['UR::DataSource::RDBMS::Entity'],
12 dsmap => 'dd_bitmap_index',
13 er_role => '',
14 id_properties => [qw/data_source table_name bitmap_index_name/],
15 properties => [
16 bitmap_index_name => { type => 'varchar', len => undef, sql => 'bitmap_index_name' },
17 data_source => { type => 'varchar', len => undef, sql => 'data_source' },
18 data_source_obj => { type => 'UR::DataSource', id_by => 'data_source'},
19 namespace => { calculate_from => [ 'data_source'],
20 calculate => q( (split(/::/,$data_source))[0] ) },
21 owner => { type => 'varchar', len => undef, is_optional => 1, sql => 'owner' },
22 table_name => { type => 'varchar', len => undef, sql => 'table_name' },
23 ],
24 data_source => 'UR::DataSource::Meta',
25 );
26  
27 1;
28  
29 =pod
30  
31 =head1 NAME
32  
33 UR::DataSource::RDBMS::BitmapIndex - metadata about a data source's bitmap indexes
34  
35 =head1 DESCRIPTION
36  
37 This class represents instances of bitmap indexes in a data source. They are
38 maintained by 'ur update classes' and stored in the namespace's MetaDB.
39  
40 The existence of bitmap indexes in a datasource affects SQL generation during
41 a Context commit. Oracle's implementation requires a table covered by a
42 bitmap index to be locked while it is being updated.
43  
44 =cut