public class Tracer extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Tracer.ColorMapper
Double to color mapper.
|
Constructor and Description |
---|
Tracer() |
Modifier and Type | Method and Description |
---|---|
static String |
asAscii(Matrix mtx,
String fmt) |
static String |
asAscii(Vector vec,
String fmt,
boolean showMeta) |
static void |
saveAsCsv(Matrix mtx,
String fmt,
String filePath)
Saves given matrix as CSV file.
|
static void |
saveAsCsv(Vector vec,
String fmt,
String filePath)
Saves given vector as CSV file.
|
static void |
showAscii(Matrix mtx) |
static void |
showAscii(Matrix mtx,
IgniteLogger log,
String fmt) |
static void |
showAscii(Matrix mtx,
String fmt) |
static void |
showAscii(Vector vec) |
static void |
showAscii(Vector vec,
IgniteLogger log) |
static void |
showAscii(Vector vec,
IgniteLogger log,
String fmt) |
static void |
showAscii(Vector vec,
String fmt) |
static void |
showHtml(Matrix mtx)
Shows given matrix in the browser with D3-based visualization.
|
static void |
showHtml(Matrix mtx,
boolean useAsciiFallback)
Shows given matrix in the browser with D3-based visualization.
|
static void |
showHtml(Matrix mtx,
Tracer.ColorMapper cm)
Shows given matrix in the browser with D3-based visualization.
|
static void |
showHtml(Matrix mtx,
Tracer.ColorMapper cm,
boolean useAsciiFallback)
Shows given matrix in the browser with D3-based visualization.
|
static void |
showHtml(Vector vec)
Shows given vector in the browser with D3-based visualization.
|
static void |
showHtml(Vector vec,
boolean useAsciiFallback)
Shows given vector in the browser with D3-based visualization.
|
static void |
showHtml(Vector vec,
Tracer.ColorMapper cm)
Shows given vector in the browser with D3-based visualization.
|
static void |
showHtml(Vector vec,
Tracer.ColorMapper cm,
boolean useAsciiFallback)
Shows given vector in the browser with D3-based visualization.
|
public static void showAscii(Vector vec, IgniteLogger log, String fmt)
vec
- Vector to show.log
- IgniteLogger
instance for output.fmt
- Format string for vector elements.public static void showAscii(Vector vec, IgniteLogger log)
vec
- Vector to show as plain text.log
- IgniteLogger
instance for output.public static void showAscii(Vector vec, String fmt)
vec
- Vector to show as plain text.fmt
- Format string for vector elements.public static String asAscii(Vector vec, String fmt, boolean showMeta)
vec
- Vector to show as plain text.fmt
- Format string for vector elements.showMeta
- Show vector type and size.public static void showAscii(Matrix mtx)
mtx
- Matrix to show as plain text.public static void showAscii(Matrix mtx, String fmt)
mtx
- Matrix
object to show as a plain text.fmt
- Format string for matrix rows.public static String asAscii(Matrix mtx, String fmt)
mtx
- Matrix
object to show as a plain text.fmt
- Format string for matrix rows.public static void showAscii(Matrix mtx, IgniteLogger log, String fmt)
mtx
- Matrix
object to show as a plain text.log
- IgniteLogger
instance to output the logged matrix.fmt
- Format string for matrix rows.public static void showAscii(Vector vec)
vec
- Vector
object to show as a plain text.public static void saveAsCsv(Vector vec, String fmt, String filePath) throws IOException
vec
- Vector to save.fmt
- Format to use.filePath
- Path of the file to save to.IOException
public static void saveAsCsv(Matrix mtx, String fmt, String filePath) throws IOException
mtx
- Matrix to save.fmt
- Format to use.filePath
- Path of the file to save to.IOException
public static void showHtml(Matrix mtx) throws IOException
mtx
- Matrix to show.IOException
- Thrown in case of any errors.public static void showHtml(Matrix mtx, boolean useAsciiFallback) throws IOException
mtx
- Matrix to show.useAsciiFallback
- Use ascii fallback is desktop or browser is unavailable.IOException
- Thrown in case of any errors.public static void showHtml(Matrix mtx, Tracer.ColorMapper cm) throws IOException
mtx
- Matrix to show.cm
- Optional color mapper. If not provided - red-to-blue (R_B) mapper will be used.IOException
- Thrown in case of any errors.public static void showHtml(Matrix mtx, Tracer.ColorMapper cm, boolean useAsciiFallback) throws IOException
mtx
- Matrix to show.cm
- Optional color mapper. If not provided - red-to-blue (R_B) mapper will be used.useAsciiFallback
- Use ascii fallback is desktop or browser is unavailable.IOException
- Thrown in case of any errors.public static void showHtml(Vector vec) throws IOException
vec
- Vector to show.IOException
- Thrown in case of any errors.public static void showHtml(Vector vec, boolean useAsciiFallback) throws IOException
vec
- Vector to show.useAsciiFallback
- Use ascii fallback is desktop or browser is unavailable.IOException
- Thrown in case of any errors.public static void showHtml(Vector vec, Tracer.ColorMapper cm) throws IOException
vec
- Vector to show.cm
- Optional color mapper. If not provided - red-to-blue (R_B) mapper will be used.IOException
- Thrown in case of any errors.public static void showHtml(Vector vec, Tracer.ColorMapper cm, boolean useAsciiFallback) throws IOException
vec
- Vector to show.cm
- Optional color mapper. If not provided - red-to-blue (R_B) mapper will be used.useAsciiFallback
- Use ascii fallback is desktop or browser is unavailable.IOException
- Thrown in case of any errors.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019