TableDebug#

public class TableDebug#

A debugging utility that prints the contents of tables and columns.

Obtain an instance with get() or builder(); by default the output goes to the destination named by the {@value OUTPUT_STREAM} system property, or standard error if it is not set. This is slow and is meant for debugging only.

Field Summary

OUTPUT_STREAM

Specify one of -Dai.rapids.cudf.debug.output=stderr to print directly to standard error (default) -Dai.rapids.cudf.debug.output=stdout to print directly to standard output -Dai.rapids.cudf.debug.output=log[_level] to redirect to a logging subsystem that can further be configured.

Method Summary

builder()

debug(String name, ColumnView col)

Print the contents of a column.

debug(String name, HostColumnVectorCore hostCol)

Print the contents of a column.

debug(String name, Table table)

Print the contents of a table.

get()

Static Fields

public static final String OUTPUT_STREAM = "ai.rapids.cudf.debug.output"#

Specify one of -Dai.rapids.cudf.debug.output=stderr to print directly to standard error (default) -Dai.rapids.cudf.debug.output=stdout to print directly to standard output -Dai.rapids.cudf.debug.output=log[_level] to redirect to a logging subsystem that can further be configured.

Supported log levels: debug (default) info warn error

Methods

public void debug(String name, Table table)#

Print the contents of a table.

Note that this should never be called from production code, as it is very slow. Also note that this is not production code. You might need/want to update how the data shows up or add in support for more types as this really is just for debugging.

Parameters:
  • name – the name of the table to print out.

  • table – the table to print out.

public void debug(String name, ColumnView col)#

Print the contents of a column.

Note that this should never be called from production code, as it is very slow. Also note that this is not production code. You might need/want to update how the data shows up or add in support for more types as this really is just for debugging.

Parameters:
  • name – the name of the column to print out.

  • col – the column to print out.

public void debug(String name, HostColumnVectorCore hostCol)#

Print the contents of a column.

Note that this should never be called from production code, as it is very slow. Also note that this is not production code. You might need/want to update how the data shows up or add in support for more types as this really is just for debugging.

Parameters:
  • name – the name of the column to print out.

  • hostCol – the column to print out.

Static Methods

public static Builder builder()#
public static TableDebug get()#
public enum Output#

Enum Constant Summary

Enum Constants

STDOUT#
STDERR#
LOG#
LOG_DEBUG#
LOG_INFO#
LOG_WARN#
LOG_ERROR#
public static class Builder#

Constructor Summary

Method Summary

Constructors

public Builder()#

Methods

public Builder withOutput(Output outputMode)#
public final TableDebug build()#