To specify the attributes to split data, an additional
property splitOn is specified under the Node annotation. This value
of this property is a comma-separated list of properties for splitting
the node instances belonging to that type. The data is split in
the same order as specified in splitOn property.
For example, an Employee type is created in the Employee folder
inside CRX. Split the type based on the name and age of the employee,
add the following entry in the annotation configuration file: <nodeAnnotation>
<folder>Employee</folder>
<splitOn>name,age</splitOn>
<classDescriptor>lc.content.Employee</classDescriptor>
</nodeAnnotation>
In this example, all Employee instances are created in Employee
folder under the sub folders that group Employee instances based
on name and age. So if there are five Employees: # Employee("Tom", 26) - e1
# Employee("Jack", 32) - e2
# Employee("Harry", 25) - e3
# Employee("Jack", 45) - e4
# Employee("Jack", 32) - e5
then they are stored in the following content structure: Employee
|
|__Jack
| |
| |__32
| | |
| | |__e2
| | |
| | |__e5
| |
| |__45
| |
| |__e4
|
|__Tom
| |
| |__26
| |
| |__e1
|
|__Harry
|
|__25
|
|__e3
|
|
|