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

Static Public Member Functions

static String throwableToString (Throwable t)
 
static String throwableToStackTrace (Throwable t)
 
static< TextendsTBase<?,?> F
extends TProtocolFactory void 
deserializeThrift (F protocolFactory, T result, byte[] thriftData) throws ImpalaException
 
static byte[] getJvmMetrics (byte[] argument) throws ImpalaException
 
static String getJavaVersion ()
 

Static Private Attributes

static final
TBinaryProtocol.Factory 
protocolFactory_
 

Detailed Description

Utility class with methods intended for JNI clients

Definition at line 40 of file JniUtil.java.

Member Function Documentation

static <TextendsTBase<?,?> F extends TProtocolFactory void com.cloudera.impala.common.JniUtil.deserializeThrift ( protocolFactory,
result,
byte[]  thriftData 
) throws ImpalaException
inlinestatic

Definition at line 79 of file JniUtil.java.

static String com.cloudera.impala.common.JniUtil.getJavaVersion ( )
inlinestatic

Get Java version and vendor information

Definition at line 153 of file JniUtil.java.

static byte [] com.cloudera.impala.common.JniUtil.getJvmMetrics ( byte[]  argument) throws ImpalaException
inlinestatic

Collect the JVM's memory statistics into a thrift structure for translation into Impala metrics by the backend. A synthetic 'total' memory pool is included with aggregate statistics for all real pools.

Definition at line 95 of file JniUtil.java.

References com.cloudera.impala.common.JniUtil.protocolFactory_.

static String com.cloudera.impala.common.JniUtil.throwableToStackTrace ( Throwable  t)
inlinestatic

Returns the stack trace of the Throwable object.

Definition at line 69 of file JniUtil.java.

static String com.cloudera.impala.common.JniUtil.throwableToString ( Throwable  t)
inlinestatic

Returns a formatted string containing the simple exception name and the exception message without the full stack trace. Includes the the chain of causes each in a separate line.

Definition at line 49 of file JniUtil.java.

Referenced by com.cloudera.impala.catalog.IncompleteTable.toThrift().

Member Data Documentation

final TBinaryProtocol.Factory com.cloudera.impala.common.JniUtil.protocolFactory_
staticprivate
Initial value:
=
new TBinaryProtocol.Factory()

Definition at line 41 of file JniUtil.java.

Referenced by com.cloudera.impala.common.JniUtil.getJvmMetrics().


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