public class PlainBufferRow extends Object
构造器和说明 |
---|
PlainBufferRow(List<PlainBufferCell> primaryKey,
List<PlainBufferCell> cells,
boolean hasDeleteMarker) |
限定符和类型 | 方法和说明 |
---|---|
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
IOException
Copyright © 2019. All Rights Reserved.