java.lang.Object
org.apache.lucene.facet.taxonomy.PrintTaxonomyStats
Prints how many ords are under each dimension.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
countAllChildren
(TaxonomyReader r, int ord) static void
Command-line tool.private static void
printAllChildren
(PrintStream out, TaxonomyReader r, int ord, String indent, int depth) static void
printStats
(TaxonomyReader r, PrintStream out, boolean printTree) Recursively prints stats for all ordinals.
-
Constructor Details
-
PrintTaxonomyStats
public PrintTaxonomyStats()Sole constructor.
-
-
Method Details
-
main
Command-line tool.- Throws:
IOException
-
printStats
public static void printStats(TaxonomyReader r, PrintStream out, boolean printTree) throws IOException Recursively prints stats for all ordinals.- Throws:
IOException
-
countAllChildren
- Throws:
IOException
-
printAllChildren
private static void printAllChildren(PrintStream out, TaxonomyReader r, int ord, String indent, int depth) throws IOException - Throws:
IOException
-