Skip to content

What is a Datablock collection (record)?

  • A data collection is a subset of the data inlcuded in a schema.



provide_diagram

- Consider the example above. We are starting with schema called CUSTOMERS and we then create a DATABLOCK_COLLECTION to only select a subset of the data based on certain criteria.

Datablock Collection config?

  • In the example below, we can see a DATABLOCK COLLECTION ie. that only selects the customers that are younger than 45 years old.
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
    <?xml version="1.0" encoding="UTF-8"?>
    <apiroConf>
        <loadOrder>10</loadOrder>
        <dataSinks/>
        <dataBlockCollectFilters>
            <dataBlockCollectFilter name="CUSTOMERS_YOUNGER_45" definition="GEN_EXPRESS" >
                <description/>
                <config>
                    <![CDATA[
                        #GRV{
                             return ( CTX['AGE'] < 45)
                        }
                    ]]>
                </config>
                <abstract>false</abstract>
                <inheritable>true</inheritable>
                <execPredicate>#GRV{ true }</execPredicate>
                <schema>CUSTOMERS</schema>
            </dataBlockCollectFilter>
        </dataBlockCollectFilters>
    </apiroConf>