com.baidubce.services.tablestorage.model
Class TableStorageCell

java.lang.Object
  extended by com.baidubce.services.tablestorage.model.TableStorageCell

public class TableStorageCell
extends Object

Represents a TableStorageCell in a row.


Constructor Summary
TableStorageCell(CellType cellType, String column)
          Constructs a call with column name.
TableStorageCell(CellType cellType, String column, String value)
          Constructs a cell with column name and value.
TableStorageCell(CellType cellType, String column, String value, long timestamp)
          Constructs a cell with column name、value and timestamp.
 
Method Summary
protected static void checkCell(TableStorageCell cell)
          Check this cell object
 String getColumn()
          Get the column name of this cell.
 int getSize()
          Get the size of this cell.
 long getTimestamp()
          Get the value of this cell.
 String getValue()
          Get the value of this cell.
 String toJsonString()
          Convert this cell to json string.
 String toString()
          Convert this cell to string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TableStorageCell

public TableStorageCell(CellType cellType,
                        String column)
Constructs a call with column name.

Parameters:
column - The column name of this cell.

TableStorageCell

public TableStorageCell(CellType cellType,
                        String column,
                        String value)
Constructs a cell with column name and value.

Parameters:
column - The column name of this cell.
value - The value of this cell.

TableStorageCell

public TableStorageCell(CellType cellType,
                        String column,
                        String value,
                        long timestamp)
Constructs a cell with column name、value and timestamp.

Parameters:
column - The column name of this cell.
value - The value of this cell.
Method Detail

getColumn

public String getColumn()
Get the column name of this cell.

Returns:
The column name of this cell.

getValue

public String getValue()
Get the value of this cell.

Returns:
The value of this cell.

getTimestamp

public long getTimestamp()
Get the value of this cell.

Returns:
The value of this cell.

getSize

public int getSize()
Get the size of this cell.

Returns:
The size of this cell.

checkCell

protected static void checkCell(TableStorageCell cell)
Check this cell object


toString

public String toString()
Convert this cell to string.

Overrides:
toString in class Object
Returns:
Return the String represent this cell.

toJsonString

public String toJsonString()
Convert this cell to json string.

Returns:
The json string represent this cell.


Copyright © 2020. All rights reserved.