com.vertica.sdk.VerticaBlock Class Reference

: Represents an in-memory block of tuples More...

Inheritance diagram for com.vertica.sdk.VerticaBlock:

com.vertica.sdk.BlockReader com.vertica.sdk.BlockWriter com.vertica.sdk.PartitionWriter com.vertica.sdk.ParamReader com.vertica.sdk.PartitionReader com.vertica.sdk.StreamWriter com.vertica.sdk.ParamWriter List of all members.

Public Member Functions

void addCol (ByteBuffer arg, ByteBuffer da, int colstride, VerticaType dt, String colName)
void addCol (ByteBuffer arg, ByteBuffer da, int colstride, VerticaType dt)
void addCol (ByteBuffer arg, int colstride, VerticaType dt)
void addCol (ByteBuffer arg, int colstride, VerticaType dt, String colName)
ByteBuffer getColDataAreaRef (int idx)
ByteBuffer getColRef (int idx)
int getNumCols ()
int getNumRows ()
SizedColumnTypes getTypeMetaData ()
void resetBuffers ()
 VerticaBlock (int _ncols, int _rowcount)

Public Attributes

int count
int index
int ncols
SizedColumnTypes typeMetaData

Protected Member Functions

void clear ()

Protected Attributes

ArrayList< ByteBuffer > coldataareas
ArrayList< ByteBuffer > cols
ArrayList< Integer > colstrides
ArrayList< Integer > currentPos

Detailed Description

: Represents an in-memory block of tuples


Member Function Documentation

void com.vertica.sdk.VerticaBlock.addCol ( ByteBuffer  arg,
ByteBuffer  da,
int  colstride,
VerticaType  dt,
String  colName 
)

Add the location for reading a particular argument.

Parameters:
arg The base location to find data.
da The location to find out of band string data.
colstride The stride between data instances.
dt The type of input.
colName Name of the column

void com.vertica.sdk.VerticaBlock.addCol ( ByteBuffer  arg,
ByteBuffer  da,
int  colstride,
VerticaType  dt 
)

Add the location for reading a particular argument.

Parameters:
arg The base location to find data.
da The location to find out of band string data.
colstride The stride between data instances.
dt The type of input.

void com.vertica.sdk.VerticaBlock.addCol ( ByteBuffer  arg,
int  colstride,
VerticaType  dt 
)

Add the location for reading a particular argument.

Parameters:
arg The base location to find data.
colstride The stride between data instances.
dt The type of input.

void com.vertica.sdk.VerticaBlock.addCol ( ByteBuffer  arg,
int  colstride,
VerticaType  dt,
String  colName 
)

Add the location for reading a particular argument.

Parameters:
arg The base location to find data.
colstride The stride between data instances.
dt The type of input.
colName Name of the column

ByteBuffer com.vertica.sdk.VerticaBlock.getColDataAreaRef ( int  idx  ) 

Get the ByteBuffer that stores out of line string data (Data Area) for the idx'th argument

Parameters:
idx 
Returns:

ByteBuffer com.vertica.sdk.VerticaBlock.getColRef ( int  idx  ) 

Returns:
a ByteBuffer to the idx'th argument, containing data for the column
Example:

 ByteBuffer a = arg_reader.getColPtr(0);

int com.vertica.sdk.VerticaBlock.getNumCols (  ) 

Returns:
the number of arguments held by this reader.

int com.vertica.sdk.VerticaBlock.getNumRows (  ) 

Returns:
the number of rows held by this block.

SizedColumnTypes com.vertica.sdk.VerticaBlock.getTypeMetaData (  ) 

Returns:
information about the types and numbers of arguments