Small cleanup in readme

This commit is contained in:
Gideon le Grange 2013-12-30 17:59:54 +02:00
parent fb0c084f99
commit 2148dea982
1 changed files with 4 additions and 0 deletions

View File

@ -54,12 +54,16 @@ for (Map<String,String> r : rs) {
} }
``` ```
### Filtering results
The same query, but with the results filtered: Print all interfaces of type 'vlan'. The same query, but with the results filtered: Print all interfaces of type 'vlan'.
```java ```java
List<Map<String, String>> rs = con.execute("/interface/print where type=vlan"); List<Map<String, String>> rs = con.execute("/interface/print where type=vlan");
``` ```
### Selecting returned fields
The same query, but we only want certain result fields names Print all interfaces of type 'vlan' and return their name. The same query, but we only want certain result fields names Print all interfaces of type 'vlan' and return their name.
```java ```java