|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.farrago.util.FarragoUtil
public abstract class FarragoUtil
Miscellaneous static utilities that don't fit into other categories.
| Constructor Summary | |
|---|---|
FarragoUtil()
|
|
| Method Summary | |
|---|---|
static int |
copyFromReaderToWriter(Reader reader,
Writer writer)
Copies everything from a Reader into a Writer. |
static String |
exceptionToString(Throwable ex)
|
static String |
exceptionToString(Throwable ex,
String sep)
Converts any Throwable and its causes to a String. |
static long |
getFennelMemoryUsage(String s)
Estimates the memory used by the Fennel portion of a query plan by taking the memory used by the XMI representation of the plan and multiplying by a constant factor. |
static int |
getStringMemoryUsage(String s)
Calculates the memory used by a string's data (not including the String object itself). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FarragoUtil()
| Method Detail |
|---|
public static int getStringMemoryUsage(String s)
public static long getFennelMemoryUsage(String s)
s - XMI string
public static int copyFromReaderToWriter(Reader reader,
Writer writer)
throws IOException
reader - sourcewriter - destination
IOExceptionpublic static String exceptionToString(Throwable ex)
public static String exceptionToString(Throwable ex,
String sep)
ex - Throwable to be convertedsep - String the stack line separator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||