@Test public void testGetAttribute() throws Exception { assertEquals("Expected value not found", "name", metadataService.getAttribute(StreamsHelper.STREAM_NAME, 0).getName()); assertEquals("Expected value not found", "timestamp", metadataService.getAttribute(StreamsHelper.STREAM_NAME, 1).getName()); assertEquals("Expected value not found", "value", metadataService.getAttribute(StreamsHelper.STREAM_NAME, 2).getName()); }
public Attribute getAttribute(String streamName, int columnOrder) { return siddhiManager.getStreamDefinition(streamName).getAttributeList().get(columnOrder); }
StreamMetadataService { public Attribute getAttribute(String streamName, int columnOrder) { return siddhiManager.getStreamDefinition(streamName).getAttributeList().get(columnOrder); } }
StreamMetadataService { public Attribute getAttribute(String streamName, int columnOrder) { return siddhiManager.getStreamDefinition(streamName).getAttributeList().get(columnOrder); } StreamMetadataService(SiddhiManager siddhiManager); }
StreamMetadataService { public Attribute getAttribute(String streamName, int columnOrder) { return siddhiManager.getStreamDefinition(streamName).getAttributeList().get(columnOrder); } StreamMetadataService(SiddhiManager siddhiManager); int getAttributePosition(String streamName, String columnName); Attribute getAttribute(String streamName, int columnOrder); byte[] getSnapshot(); void setSnapshot(byte[] snapshot); }
StreamMetadataService { public Attribute getAttribute(String streamName, int columnOrder) { return siddhiManager.getStreamDefinition(streamName).getAttributeList().get(columnOrder); } StreamMetadataService(SiddhiManager siddhiManager); int getAttributePosition(String streamName, String columnName); Attribute getAttribute(String streamName, int columnOrder); byte[] getSnapshot(); void setSnapshot(byte[] snapshot);  }