cascading.operation.xml
Class XPathFilter
java.lang.Object
cascading.operation.BaseOperation<cascading.util.Pair<DocumentBuilder,Tuple>>
cascading.operation.xml.XPathOperation
cascading.operation.xml.XPathFilter
- All Implemented Interfaces:
- Filter<cascading.util.Pair<DocumentBuilder,Tuple>>, Operation<cascading.util.Pair<DocumentBuilder,Tuple>>, Serializable
public class XPathFilter
- extends XPathOperation
- implements Filter<cascading.util.Pair<DocumentBuilder,Tuple>>
XPathFilter will filter out a Tuple if the given XPath expression returns false. Set removeMatch to true
if the filter should be reversed.
- See Also:
- Serialized Form
Fields inherited from interface cascading.operation.Operation |
ANY |
Constructor Summary |
XPathFilter(boolean removeMatch,
String[][] namespaces,
String path)
Constructor XPathFilter creates a new XPathFilter instance. |
XPathFilter(String[][] namespaces,
String path)
Constructor XPathFilter creates a new XPathFilter instance. |
XPathFilter
public XPathFilter(String[][] namespaces,
String path)
- Constructor XPathFilter creates a new XPathFilter instance.
- Parameters:
namespaces
- of type String[][]path
- of type String
XPathFilter
public XPathFilter(boolean removeMatch,
String[][] namespaces,
String path)
- Constructor XPathFilter creates a new XPathFilter instance.
- Parameters:
removeMatch
- of type booleannamespaces
- of type String[][]path
- of type String
isRemove
public boolean isRemove(FlowProcess flowProcess,
FilterCall<cascading.util.Pair<DocumentBuilder,Tuple>> filterCall)
- Description copied from interface:
Filter
- Method isRemove returns true if input should be removed from the tuple stream.
- Specified by:
isRemove
in interface Filter<cascading.util.Pair<DocumentBuilder,Tuple>>
- Parameters:
flowProcess
- of type FlowProcessfilterCall
- of type FilterCall
- Returns:
- boolean
Copyright © 2007-2012 Concurrent, Inc. All Rights Reserved.