Package db
Class SparseRecord
java.lang.Object
db.DBRecord
db.SparseRecord
- All Implemented Interfaces:
Comparable<DBRecord>
-
Method Summary
Modifier and TypeMethodDescriptionvoidRead the record field data from the specified buffer and offsetvoidsetBinaryData(int colIndex, byte[] bytes) Set the binary data array for the specified field.voidsetBooleanValue(int colIndex, boolean value) Set the boolean value for the specified field.voidsetByteValue(int colIndex, byte value) Set the byte value for the specified field.voidSet the field value for the specified field.voidsetIntValue(int colIndex, int value) Set the integer value for the specified field.voidsetLongValue(int colIndex, long value) Set the long value for the specified field.voidsetNull(int colIndex) Set the field to a null state.voidsetShortValue(int colIndex, short value) Set the short value for the specified field.voidWrite the record fields to the specified buffer and offset.Methods inherited from class db.DBRecord
compareFieldTo, compareTo, copy, equals, fieldEquals, getBinaryData, getBooleanValue, getByteValue, getColumnCount, getFieldValue, getIntValue, getKey, getKeyField, getLongValue, getShortValue, getString, hashCode, hasSameSchema, hasSameSchema, invalidateLength, isDirty, length, setKey, setKey, setString, toString
-
Method Details
-
write
Description copied from class:DBRecordWrite the record fields to the specified buffer and offset.- Overrides:
writein classDBRecord- Parameters:
buf- data bufferoffset- buffer offset- Throws:
IndexOutOfBoundsException- if invalid offset is specifiedIOException- thrown if IO error occurs
-
read
Description copied from class:DBRecordRead the record field data from the specified buffer and offset- Overrides:
readin classDBRecord- Parameters:
buf- data bufferoffset- buffer offset- Throws:
IndexOutOfBoundsException- if invalid offset is specifiedIOException- thrown if IO error occurs
-
setField
Description copied from class:DBRecordSet the field value for the specified field. -
setLongValue
public void setLongValue(int colIndex, long value) Description copied from class:DBRecordSet the long value for the specified field.- Overrides:
setLongValuein classDBRecord- Parameters:
colIndex- field indexvalue- field value
-
setIntValue
public void setIntValue(int colIndex, int value) Description copied from class:DBRecordSet the integer value for the specified field.- Overrides:
setIntValuein classDBRecord- Parameters:
colIndex- field indexvalue- field value
-
setShortValue
public void setShortValue(int colIndex, short value) Description copied from class:DBRecordSet the short value for the specified field.- Overrides:
setShortValuein classDBRecord- Parameters:
colIndex- field indexvalue- field value
-
setByteValue
public void setByteValue(int colIndex, byte value) Description copied from class:DBRecordSet the byte value for the specified field.- Overrides:
setByteValuein classDBRecord- Parameters:
colIndex- field indexvalue- field value
-
setBooleanValue
public void setBooleanValue(int colIndex, boolean value) Description copied from class:DBRecordSet the boolean value for the specified field.- Overrides:
setBooleanValuein classDBRecord- Parameters:
colIndex- field indexvalue- field value
-
setBinaryData
public void setBinaryData(int colIndex, byte[] bytes) Description copied from class:DBRecordSet the binary data array for the specified field.- Overrides:
setBinaryDatain classDBRecord- Parameters:
colIndex- field indexbytes- field value
-
setNull
public void setNull(int colIndex) Description copied from class:DBRecordSet the field to a null state. For a non-sparse fixed-length column field this will set the value to zero and the null state will not be persisted when stored.
-