public class Cells extends Object implements Iterable<Cell>, Serializable
Cell objects, plus a few utility methods to access
specific cells in the row.| Constructor and Description |
|---|
Cells()
Default constructor.
|
Cells(Cell... cells)
Builds a new Cells object containing the provided cells.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Cell c)
Adds a new Cell object to this Cells instance.
|
boolean |
equals(Object obj) |
Cell |
getCellByIdx(int idx)
Returns the cell at position idx.
|
Cell |
getCellByName(String cellName)
Returns the Cell whose name is cellName, or null if this Cells object contains no cell whose
name is cellName.
|
Collection<Cell> |
getCells() |
Collection<Object> |
getCellValues()
Converts every Cell contained in this object to an ArrayBuffer.
|
Collection<ByteBuffer> |
getDecomposedCellValues()
Converts every Cell contained in this object to an ArrayBuffer.
|
Cells |
getIndexCells()
Extracts from this Cells object the cells marked either as partition key or cluster key.
|
Cells |
getValueCells()
Extracts from this Cells object the cells _NOT_ marked as partition key and _NOT_ marked as
cluster key.
|
int |
hashCode() |
boolean |
isEmpty() |
Iterator<Cell> |
iterator() |
boolean |
remove(String cellName)
Removes the cell with the given cell name.
|
boolean |
replaceByName(Cell c)
Replaces the cell having the same name that the given one with the given Cell object.
|
int |
size()
Returns the number of cell(s) this object contains.
|
String |
toString() |
public Cells()
public Cells(Cell... cells)
cells - the array of Cells we want to use to create the Cells object.public boolean add(Cell c)
c - the Cell we want to add to this Cells object.public boolean replaceByName(Cell c)
c - the Cell to replace the one in the Cells object.public boolean remove(String cellName)
cellName - the name of the cell to be removed.public Cell getCellByIdx(int idx)
idx - the index position of the Cell we want to retrieve.public Cell getCellByName(String cellName)
cellName - the name of the Cell we want to retrieve from this Cells object.public Collection<Cell> getCells()
public Collection<ByteBuffer> getDecomposedCellValues()
public Collection<Object> getCellValues()
public Cells getIndexCells()
public Cells getValueCells()
public int size()
public boolean isEmpty()
Copyright © 2014. All rights reserved.