public class NullMask
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
_columnCount
num row columns
|
private byte[] |
_mask
The actual bitmask
|
| Constructor and Description |
|---|
NullMask(int columnCount) |
| Modifier and Type | Method and Description |
|---|---|
private static byte |
bitMask(int columnNumber) |
private static int |
byteIndex(int columnNumber) |
int |
byteSize() |
boolean |
isNull(ColumnImpl column) |
void |
markNotNull(ColumnImpl column)
Indicate that the column with the given number is not
null (or a
boolean value is true). |
void |
read(java.nio.ByteBuffer buffer)
Read a mask in from a buffer
|
void |
write(java.nio.ByteBuffer buffer)
Write a mask to a buffer
|
private final int _columnCount
private final byte[] _mask
public NullMask(int columnCount)
columnCount - Number of columns in the row that this mask will be
used forpublic void read(java.nio.ByteBuffer buffer)
public void write(java.nio.ByteBuffer buffer)
public boolean isNull(ColumnImpl column)
column - column to test for nullnull == true)public void markNotNull(ColumnImpl column)
null (or a
boolean value is true).column - column to be marked non-nullpublic int byteSize()
private static int byteIndex(int columnNumber)
private static byte bitMask(int columnNumber)