@ShellComponent public class StatsCommand extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_FILES |
| Constructor and Description |
|---|
StatsCommand() |
| Modifier and Type | Method and Description |
|---|---|
String |
fileSizeStats(String globRegex,
Integer limit,
String sortByField,
boolean descending,
boolean headerOnly) |
Map<String,Function<Object,String>> |
getFieldNameToConverterMap() |
Comparable[] |
printFileSizeHistogram(String instantTime,
com.codahale.metrics.Snapshot s) |
String |
writeAmplificationStats(Integer limit,
String sortByField,
boolean descending,
boolean headerOnly) |
public static final int MAX_FILES
@ShellMethod(key="stats wa",
value="Write Amplification. Ratio of how many records were upserted to how many records were actually written")
public String writeAmplificationStats(@ShellOption(value="--limit",help="Limit commits",defaultValue="-1")
Integer limit,
@ShellOption(value="--sortBy",help="Sorting Field",defaultValue="")
String sortByField,
@ShellOption(value="--desc",help="Ordering",defaultValue="false")
boolean descending,
@ShellOption(value="--headeronly",help="Print Header Only",defaultValue="false")
boolean headerOnly)
throws IOException
IOExceptionpublic Comparable[] printFileSizeHistogram(String instantTime, com.codahale.metrics.Snapshot s)
@ShellMethod(key="stats filesizes",
value="File Sizes. Display summary stats on sizes of files")
public String fileSizeStats(@ShellOption(value="--partitionPath",help="regex to select files, eg: 2016/08/02",defaultValue="*/*/*")
String globRegex,
@ShellOption(value="--limit",help="Limit commits",defaultValue="-1")
Integer limit,
@ShellOption(value="--sortBy",help="Sorting Field",defaultValue="")
String sortByField,
@ShellOption(value="--desc",help="Ordering",defaultValue="false")
boolean descending,
@ShellOption(value="--headeronly",help="Print Header Only",defaultValue="false")
boolean headerOnly)
throws IOException
IOExceptionCopyright © 2025 The Apache Software Foundation. All rights reserved.