Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
com.cloudera.impala.common.PrintUtils Class Reference
Collaboration diagram for com.cloudera.impala.common.PrintUtils:

Static Public Member Functions

static String printBytes (long bytes)
 
static String printCardinality (String prefix, long cardinality)
 
static String printHosts (String prefix, long numHosts)
 
static String printMemCost (String prefix, long perHostMemCost)
 
static void printMatrix (boolean[][] matrix, int cellSpacing, StringBuilder matrixStr)
 

Detailed Description

Utility functions for pretty printing.

Definition at line 28 of file PrintUtils.java.

Member Function Documentation

static String com.cloudera.impala.common.PrintUtils.printBytes ( long  bytes)
inlinestatic

Prints the given number of bytes in PB, TB, GB, MB, KB with 2 decimal points. For example 5000 will be returned as 4.88KB.

Definition at line 33 of file PrintUtils.java.

Referenced by com.cloudera.impala.planner.HdfsScanNode.computeCosts(), and com.cloudera.impala.common.PrintUtils.printMemCost().

static String com.cloudera.impala.common.PrintUtils.printCardinality ( String  prefix,
long  cardinality 
)
inlinestatic

Definition at line 44 of file PrintUtils.java.

static String com.cloudera.impala.common.PrintUtils.printHosts ( String  prefix,
long  numHosts 
)
inlinestatic

Definition at line 49 of file PrintUtils.java.

static void com.cloudera.impala.common.PrintUtils.printMatrix ( boolean  matrix[][],
int  cellSpacing,
StringBuilder  matrixStr 
)
inlinestatic

Prints the given square matrix into matrixStr. Separates cells by cellSpacing.

Definition at line 61 of file PrintUtils.java.

static String com.cloudera.impala.common.PrintUtils.printMemCost ( String  prefix,
long  perHostMemCost 
)
inlinestatic

The documentation for this class was generated from the following file: