Small cleanup in readme
This commit is contained in:
parent
fb0c084f99
commit
2148dea982
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue