Package edu.caltech.nanodb.storage
Class PageWriter
- java.lang.Object
-
- edu.caltech.nanodb.storage.PageReader
-
- edu.caltech.nanodb.storage.PageWriter
-
public class PageWriter extends PageReader
This class extends thePageReader
class to provide write operations as well as read operations. Using any of the write operations will automatically set the page's dirty-flag to true.
-
-
Field Summary
-
Fields inherited from class edu.caltech.nanodb.storage.PageReader
dbPage, position
-
-
Constructor Summary
Constructors Constructor Description PageWriter(DBPage dbPage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(byte[] b)
void
write(byte[] b, int off, int len)
void
writeBoolean(boolean v)
void
writeByte(int v)
void
writeChar(int v)
void
writeDate(java.time.LocalDate value)
void
writeDateTime(java.time.LocalDateTime value)
void
writeDouble(double v)
void
writeFixedSizeString(java.lang.String value, int len)
void
writeFloat(float v)
void
writeInt(int v)
void
writeLong(long v)
void
writeNumeric(java.math.BigDecimal v)
void
writeObject(ColumnType colType, java.lang.Object value)
void
writeShort(int v)
void
writeTime(java.time.LocalTime value)
void
writeVarString255(java.lang.String value)
void
writeVarString65535(java.lang.String value)
-
Methods inherited from class edu.caltech.nanodb.storage.PageReader
getDBPage, getPosition, movePosition, read, read, readBoolean, readByte, readChar, readDate, readDateTime, readDouble, readFixedSizeString, readFloat, readInt, readLong, readNumeric, readObject, readShort, readTime, readUnsignedByte, readUnsignedInt, readUnsignedShort, readVarString255, readVarString65535, setPosition
-
-
-
-
Constructor Detail
-
PageWriter
public PageWriter(DBPage dbPage)
-
-
Method Detail
-
write
public void write(byte[] b)
-
write
public void write(byte[] b, int off, int len)
-
writeBoolean
public void writeBoolean(boolean v)
-
writeByte
public void writeByte(int v)
-
writeShort
public void writeShort(int v)
-
writeChar
public void writeChar(int v)
-
writeInt
public void writeInt(int v)
-
writeLong
public void writeLong(long v)
-
writeFloat
public void writeFloat(float v)
-
writeDouble
public void writeDouble(double v)
-
writeNumeric
public void writeNumeric(java.math.BigDecimal v)
-
writeVarString255
public void writeVarString255(java.lang.String value)
-
writeVarString65535
public void writeVarString65535(java.lang.String value)
-
writeFixedSizeString
public void writeFixedSizeString(java.lang.String value, int len)
-
writeDate
public void writeDate(java.time.LocalDate value)
-
writeTime
public void writeTime(java.time.LocalTime value)
-
writeDateTime
public void writeDateTime(java.time.LocalDateTime value)
-
writeObject
public void writeObject(ColumnType colType, java.lang.Object value)
-
-