Class NullMask
- java.lang.Object
-
- com.healthmarketscience.jackcess.impl.NullMask
-
public class NullMask extends Object
Bitmask that indicates whether or not each column in a row is null. Also holds values of boolean columns.- Author:
- Tim McCune
-
-
Constructor Summary
Constructors Constructor Description NullMask(int columnCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intbyteSize()booleanisNull(ColumnImpl column)voidmarkNotNull(ColumnImpl column)Indicate that the column with the given number is notnull(or a boolean value istrue).voidread(ByteBuffer buffer)Read a mask in from a buffervoidwrite(ByteBuffer buffer)Write a mask to a buffer
-
-
-
Method Detail
-
read
public void read(ByteBuffer buffer)
Read a mask in from a buffer
-
write
public void write(ByteBuffer buffer)
Write a mask to a buffer
-
isNull
public boolean isNull(ColumnImpl column)
- Parameters:
column- column to test fornull- Returns:
- Whether or not the value for that column is null. For boolean
columns, returns the actual value of the column (where
non-
null==true)
-
markNotNull
public void markNotNull(ColumnImpl column)
Indicate that the column with the given number is notnull(or a boolean value istrue).- Parameters:
column- column to be marked non-null
-
byteSize
public int byteSize()
- Returns:
- Size in bytes of this mask
-
-