Rename functional-samples -> function-samples

This commit is contained in:
Ilayaperumal Gopinathan
2020-07-21 13:24:13 +05:30
parent 08b58a3b27
commit abc583c8f4
63 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
# HTTP Ingest Source
This source application is an extension of out-of-the-box HTTP source application.
The `http-ingest` has a function bean definition that looks like:
```
@Bean
public Function<String, Long> sendAsUserClicks() {
return value -> Long.parseLong(value);
}
```
When this function bean is enabled, the incoming `String` value is converted to `Long` value.
When sending user clicks count as `Long` we can enable this function for the `http-ingest` while the same application can be used for sending the user region `String` value.
To build this application:
./mvnw clean package