Search in sources :

Example 1 with RowDataSet

use of org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowDataSet in project linuxtools by eclipse.

the class FilteredRowDataSetTest method setUp.

@Before
public void setUp() {
    data = new RowDataSet(new String[] { "a", "b", "c" });
    fdata = new FilteredRowDataSet(data);
    new FilteredRowDataSet(data.getTitles());
    entry0 = new RowEntry();
    entry0.putRow(0, new String[] { "1", "2", "3" });
    data.setData(entry0);
    RowEntry entry = new RowEntry();
    entry.putRow(0, new String[] { "4", "5", "6" });
    data.setData(entry);
}
Also used : RowDataSet(org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowDataSet) FilteredRowDataSet(org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.FilteredRowDataSet) FilteredRowDataSet(org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.FilteredRowDataSet) RowEntry(org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowEntry) Before(org.junit.Before)

Example 2 with RowDataSet

use of org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowDataSet in project linuxtools by eclipse.

the class RowDataSetTest method setUp.

@Before
public void setUp() {
    data = new RowDataSet(new String[] { "a", "b", "c" });
    entry0 = new RowEntry();
    entry0.putRow(0, new String[] { "1", "2", "3" });
    data.setData(entry0);
    RowEntry entry = new RowEntry();
    entry.putRow(0, new String[] { "4", "5", "6" });
    data.setData(entry);
}
Also used : RowDataSet(org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowDataSet) RowEntry(org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowEntry) Before(org.junit.Before)

Example 3 with RowDataSet

use of org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowDataSet in project linuxtools by eclipse.

the class MockDataSet method buildDataSet.

public static RowDataSet buildDataSet(int rows, int cols) {
    String[] titles = new String[cols];
    int i;
    for (i = 0; i < cols; i++) titles[i] = "" + i;
    RowDataSet data = new RowDataSet(titles);
    RowEntry entry;
    int j;
    for (i = 0; i < rows; i++) {
        Object[] d = new Object[cols];
        for (j = 0; j < cols; j++) {
            d[j] = i * cols + j;
        }
        entry = new RowEntry();
        entry.putRow(0, d);
        data.append(entry);
    }
    return data;
}
Also used : RowDataSet(org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowDataSet) RowEntry(org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowEntry)

Example 4 with RowDataSet

use of org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowDataSet in project linuxtools by eclipse.

the class ChartStreamDaemonTest method setUp.

@Before
public void setUp() {
    csd = new ChartStreamDaemon(null, null);
    assertNotNull(csd);
    csd1 = new ChartStreamDaemon(new RowDataSet(new String[] { "a" }), new RowParser(new String[] { "\\w", "\\s" }));
    assertNotNull(csd1);
}
Also used : RowDataSet(org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowDataSet) ChartStreamDaemon(org.eclipse.linuxtools.systemtap.graphing.core.structures.ChartStreamDaemon) RowParser(org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowParser) Before(org.junit.Before)

Aggregations

RowDataSet (org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowDataSet)4 RowEntry (org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowEntry)3 Before (org.junit.Before)3 FilteredRowDataSet (org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.FilteredRowDataSet)1 RowParser (org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowParser)1 ChartStreamDaemon (org.eclipse.linuxtools.systemtap.graphing.core.structures.ChartStreamDaemon)1