public class PlainBufferRow extends Object
| Constructor and Description |
|---|
PlainBufferRow(List<PlainBufferCell> primaryKey,
List<PlainBufferCell> cells,
boolean hasDeleteMarker) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCell(PlainBufferCell cell) |
List<PlainBufferCell> |
getCells() |
byte |
getChecksum()
会自动计算当前的checksum并返回,当没有数据变化时,checksum会缓存在对象中,以减少不必要的计算。
|
PlainBufferExtension |
getExtension() |
List<PlainBufferCell> |
getPrimaryKey() |
boolean |
hasCells() |
boolean |
hasDeleteMarker() |
boolean |
hasExtension() |
void |
setExtension(PlainBufferExtension extension) |
void |
setHasDeleteMarker(boolean hasDeleteMarker) |
void |
setPrimaryKey(List<PlainBufferCell> primaryKey) |
String |
toString() |
public PlainBufferRow(List<PlainBufferCell> primaryKey, List<PlainBufferCell> cells, boolean hasDeleteMarker)
public List<PlainBufferCell> getPrimaryKey()
public void setPrimaryKey(List<PlainBufferCell> primaryKey)
public List<PlainBufferCell> getCells()
public void addCell(PlainBufferCell cell)
public boolean hasCells()
public boolean hasDeleteMarker()
public void setHasDeleteMarker(boolean hasDeleteMarker)
public PlainBufferExtension getExtension()
public void setExtension(PlainBufferExtension extension)
public boolean hasExtension()
public byte getChecksum()
throws IOException
IOExceptionCopyright © 2024. All Rights Reserved.