public final class Util
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Util.TermHistogram |
Modifier and Type | Method and Description |
---|---|
static int |
countANSI(java.lang.String string) |
static void |
initDatabaseDescriptor()
This is used by standalone tools to force static initialization of DatabaseDescriptor, and fail if configuration
is bad.
|
static <T> java.util.stream.Stream<T> |
iterToStream(java.util.Iterator<T> iter) |
static TableMetadata |
metadataFromSSTable(Descriptor desc)
Construct table schema from info stored in SSTable's Stats.db
|
static java.lang.String |
progress(double percentComplete,
int width,
boolean unicode) |
static java.lang.String |
stripANSI(java.lang.String string) |
static java.lang.String |
wrapQuiet(java.lang.String toWrap,
boolean color) |
public static java.lang.String progress(double percentComplete, int width, boolean unicode)
public static java.lang.String stripANSI(java.lang.String string)
public static int countANSI(java.lang.String string)
public static java.lang.String wrapQuiet(java.lang.String toWrap, boolean color)
public static void initDatabaseDescriptor()
public static <T> java.util.stream.Stream<T> iterToStream(java.util.Iterator<T> iter)
public static TableMetadata metadataFromSSTable(Descriptor desc) throws java.io.IOException
desc
- SSTable's descriptorjava.io.IOException
- when Stats.db cannot be readCopyright © 2009-2019 The Apache Software Foundation