It's all about the answers!

Ask a question

Extending the Data Warehouse Tutorial NumbersTableDescriptor


Ralph Kelkenbe (4612) | asked Sep 30 '08, 10:18 a.m.
Hi im working through the tutorial "Extending the Data Warehouse" and having some problems with the chapter "Designing the Tables ".

I have implemented the code and i get the error that the statement "SELECT" doesnt exist on continent.setAggregationKind(AggregationKind.SELECT);
and
number.setAggregationKind(AggregationKind.SELECT);

'AggregationKind.SELECT cannot be resolved'


import com.ibm.team.datawarehouse.common.AggregationKind;

import com.ibm.team.datawarehouse.common.FieldFlags;
import com.ibm.team.datawarehouse.common.FieldKind;
import com.ibm.team.datawarehouse.common.IFieldDescriptor;
import com.ibm.team.datawarehouse.service.AbstractTableDescriptorFactory;
import com.ibm.team.datawarehouse.service.ISnapshotService;
import com.ibm.team.datawarehouse.service.common.ICommonSnapshotService;
import com.ibm.team.repository.common.TeamRepositoryException;


public class NumbersTableDescriptorFactory extends AbstractTableDescriptorFactory{

@Override
/*protected void createTableDescriptors() throws TeamRepositoryException {
// TODO Auto-generated method stub

}*/

protected void createTableDescriptors() throws TeamRepositoryException {
createNumbersStorageFact();
}

private void createNumbersStorageFact() {
IFieldDescriptor id = createFieldDescriptor(
ISnapshotService.FACT_ID_COLUMN, FieldKind.LONG,
FieldFlags.DEFAULT);
IFieldDescriptor timeId = createFieldDescriptor(
ISnapshotService.TIME_ID_COLUMN, FieldKind.LONG,
FieldFlags.QUERYABLE);
IFieldDescriptor continent = createFieldDescriptor(
INumbersSnapshotService.CONTINENT_COLUMN,
FieldKind.STRING, FieldFlags.QUERYABLE | FieldFlags.PARAMETER);
IFieldDescriptor number = createFieldDescriptor(
INumbersSnapshotService.NUMBER_COLUMN,
FieldKind.INTEGER, FieldFlags.DEFAULT);
timeId.setReference(getTableDescriptor(
ICommonSnapshotService.SNAPSHOT_NAME,
ICommonSnapshotService.TIME_DIMENSION));
continent.setAggregationKind(AggregationKind.SELECT);
[color=red]number.setAggregationKind(AggregationKind.SELECT);[/color]
createTableDescriptor(
INumbersSnapshotService.NUMBERS_FACT_TABLE,
new IFieldDescriptor[] { id, timeId, continent, number },
id);
}



}

4 answers



permanent link
Rafik Jaouani (5.0k16) | answered Oct 01 '08, 7:15 p.m.
JAZZ DEVELOPER
Example is out of date. An update to the example will be forthcoming.

permanent link
Rafik Jaouani (5.0k16) | answered Oct 02 '08, 11:07 a.m.
JAZZ DEVELOPER
Updated the Wiki with up to date example.

permanent link
Ralph Kelkenbe (4612) | answered Oct 06 '08, 5:51 a.m.
i worked through the tutorial and now i'm wondering how i can check if the jazzserver and rtc is working with the plugin.
If i look into the WebUI on Reports & Administer Data Warehouse i cannot find the case "NUMBERS_SNAPSHOT" on the combo box, but i have named it on the plugin.xml

I'm using the JazzServer-06-RTC10-Maximal.launch. to launch my plugin, but i still cant find the service.

permanent link
Ralph Kelkenbe (4612) | answered Oct 07 '08, 10:57 a.m.
okay, i guess i've got it!

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.