Confluo  0.1.0
Public Member Functions | List of all members
confluo.rpc.Field Class Reference

Public Member Functions

 Field (String fieldName, DataType dataType, ByteBuffer data, int dataOffset)
 
String getName ()
 
DataType getType ()
 
boolean asBoolean ()
 
char asChar ()
 
short asShort ()
 
int asInt ()
 
long asLong ()
 
float asFloat ()
 
double asDouble ()
 
String asString ()
 
String toString ()
 

Detailed Description

Contains data stored as part of a record

Constructor & Destructor Documentation

◆ Field()

confluo.rpc.Field.Field ( String  fieldName,
DataType  dataType,
ByteBuffer  data,
int  dataOffset 
)
inline

Initializes the field to the data passed in

Parameters
fieldNameThe name of the field
dataTypeThe data type of the field
dataThe ByteBuffer containing the field data
dataOffsetThe offset of the field in the ByteBuffer.

Member Function Documentation

◆ asBoolean()

boolean confluo.rpc.Field.asBoolean ( )
inline

Get value as a boolean.

Returns
Boolean representation of the data.

◆ asChar()

char confluo.rpc.Field.asChar ( )
inline

Get value as a character.

Returns
Character representation of the data.

◆ asDouble()

double confluo.rpc.Field.asDouble ( )
inline

Get value as a double.

Returns
Double representation of the data.

◆ asFloat()

float confluo.rpc.Field.asFloat ( )
inline

Get value as a float.

Returns
Float representation of the data.

◆ asInt()

int confluo.rpc.Field.asInt ( )
inline

Get value as an integer.

Returns
Integer representation of the data.

◆ asLong()

long confluo.rpc.Field.asLong ( )
inline

Get value as a long.

Returns
Long representation of the data.

◆ asShort()

short confluo.rpc.Field.asShort ( )
inline

Get value as a short.

Returns
Short representation of the data.

◆ asString()

String confluo.rpc.Field.asString ( )
inline

Get value as a String.

Returns
String representation of the data.

◆ getName()

String confluo.rpc.Field.getName ( )
inline

Get the field name.

Returns
The field name.

◆ getType()

DataType confluo.rpc.Field.getType ( )
inline

Get the data type.

Returns
The data type.

◆ toString()

String confluo.rpc.Field.toString ( )
inline

Convert field to string.

Returns
String representation of the field.

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