cascading.operation.xml
Class XPathFilter
java.lang.Object
cascading.operation.BaseOperation<cascading.util.Pair<DocumentBuilder,cascading.tuple.Tuple>>
cascading.operation.xml.XPathOperation
cascading.operation.xml.XPathFilter
- All Implemented Interfaces:
- cascading.flow.planner.DeclaresResults, cascading.operation.Filter<cascading.util.Pair<DocumentBuilder,cascading.tuple.Tuple>>, cascading.operation.Operation<cascading.util.Pair<DocumentBuilder,cascading.tuple.Tuple>>, Serializable
public class XPathFilter
- extends XPathOperation
- implements cascading.operation.Filter<cascading.util.Pair<DocumentBuilder,cascading.tuple.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 class cascading.operation.BaseOperation |
fieldDeclaration, numArgs, trace |
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. |
Method Summary |
boolean |
isRemove(cascading.flow.FlowProcess flowProcess,
cascading.operation.FilterCall<cascading.util.Pair<DocumentBuilder,cascading.tuple.Tuple>> filterCall)
|
Methods inherited from class cascading.operation.BaseOperation |
cleanup, flush, getFieldDeclaration, getNumArgs, getTrace, isSafe, printOperationInternal, toString, toStringInternal |
Methods inherited from interface cascading.operation.Operation |
cleanup, flush, getFieldDeclaration, getNumArgs, isSafe, prepare |
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(cascading.flow.FlowProcess flowProcess,
cascading.operation.FilterCall<cascading.util.Pair<DocumentBuilder,cascading.tuple.Tuple>> filterCall)
- Specified by:
isRemove
in interface cascading.operation.Filter<cascading.util.Pair<DocumentBuilder,cascading.tuple.Tuple>>
Copyright © 2007-2013 Concurrent, Inc. All Rights Reserved.