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

Public Member Functions

 ImpalaStringWritable (long ptr)
 
byte[] getBytes ()
 
int getCapacity ()
 
void setCapacity (int newCap)
 
int getLength ()
 
void setSize (int s)
 
void set (byte[] v, int offset, int len)
 

Static Public Attributes

static final int STRING_VALUE_LEN_OFFSET = 8
 

Protected Member Functions

void finalize () throws Throwable
 

Private Attributes

final long stringValPtr_
 
ByteBuffer array_
 
long bufferPtr_
 
int bufferCapacity_
 

Detailed Description

Underlying class for Text and Bytes writable. This class understands marshalling values that map to StringValue in the BE. StringValue is replicated here: struct StringValue { char* ptr; int len; };

Definition at line 31 of file ImpalaStringWritable.java.

Constructor & Destructor Documentation

com.cloudera.impala.hive.executor.ImpalaStringWritable.ImpalaStringWritable ( long  ptr)
inline

Definition at line 55 of file ImpalaStringWritable.java.

Member Function Documentation

void com.cloudera.impala.hive.executor.ImpalaStringWritable.finalize ( ) throws Throwable
inlineprotected

Definition at line 66 of file ImpalaStringWritable.java.

byte [] com.cloudera.impala.hive.executor.ImpalaStringWritable.getBytes ( )
inline
int com.cloudera.impala.hive.executor.ImpalaStringWritable.getCapacity ( )
inline

Definition at line 84 of file ImpalaStringWritable.java.

int com.cloudera.impala.hive.executor.ImpalaStringWritable.getLength ( )
inline

Definition at line 97 of file ImpalaStringWritable.java.

void com.cloudera.impala.hive.executor.ImpalaStringWritable.set ( byte[]  v,
int  offset,
int  len 
)
inline

Definition at line 109 of file ImpalaStringWritable.java.

References offset.

void com.cloudera.impala.hive.executor.ImpalaStringWritable.setCapacity ( int  newCap)
inline

Definition at line 89 of file ImpalaStringWritable.java.

void com.cloudera.impala.hive.executor.ImpalaStringWritable.setSize ( int  s)
inline

Definition at line 103 of file ImpalaStringWritable.java.

Member Data Documentation

ByteBuffer com.cloudera.impala.hive.executor.ImpalaStringWritable.array_
private

Definition at line 40 of file ImpalaStringWritable.java.

int com.cloudera.impala.hive.executor.ImpalaStringWritable.bufferCapacity_
private

Definition at line 51 of file ImpalaStringWritable.java.

long com.cloudera.impala.hive.executor.ImpalaStringWritable.bufferPtr_
private

Definition at line 48 of file ImpalaStringWritable.java.

final int com.cloudera.impala.hive.executor.ImpalaStringWritable.STRING_VALUE_LEN_OFFSET = 8
static
final long com.cloudera.impala.hive.executor.ImpalaStringWritable.stringValPtr_
private

Definition at line 37 of file ImpalaStringWritable.java.


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