Class NodeNameFilter
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.flatfile.analysis.modules.NodeNameFilter
-
- All Implemented Interfaces:
StatsCollector
public class NodeNameFilter extends Object implements StatsCollector
A wrapper for a collector that allows to filter for certain node names, or children of those.
-
-
Constructor Summary
Constructors Constructor Description NodeNameFilter(String nodeName, StatsCollector base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(NodeData node)
Collect data for this node.void
end()
End collection.List<String>
getRecords()
Get the statistics in the form of a list of records.String
toString()
-
-
-
Constructor Detail
-
NodeNameFilter
public NodeNameFilter(String nodeName, StatsCollector base)
-
-
Method Detail
-
add
public void add(NodeData node)
Description copied from interface:StatsCollector
Collect data for this node.- Specified by:
add
in interfaceStatsCollector
- Parameters:
node
- the node
-
end
public void end()
Description copied from interface:StatsCollector
End collection.- Specified by:
end
in interfaceStatsCollector
-
getRecords
public List<String> getRecords()
Description copied from interface:StatsCollector
Get the statistics in the form of a list of records.- Specified by:
getRecords
in interfaceStatsCollector
- Returns:
- the results
-
-