public static class WebLogAnalysis.FilterDocByKeyWords extends Object implements FilterFunction<Tuple2<String,String>>
Constructor and Description |
---|
FilterDocByKeyWords() |
Modifier and Type | Method and Description |
---|---|
boolean |
filter(Tuple2<String,String> value)
Filters for documents that contain all of the given keywords and projects the records on
the URL field.
|
public boolean filter(Tuple2<String,String> value) throws Exception
Output Format: 0: URL 1: DOCUMENT_TEXT
filter
in interface FilterFunction<Tuple2<String,String>>
value
- The value to be filtered.Exception
- This method may throw exceptions. Throwing an exception will cause the
operation to fail and may trigger recovery.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.