Package com.google.refine.model
Class Row
java.lang.Object
com.google.refine.model.Row
- All Implemented Interfaces:
HasFields
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Rowdeserialize(boolean starred, boolean flagged, List<Cell> cells) dup()Copy a row and return the copy.booleanfieldAlsoHasFields(String name) getCell(int cellIndex) getCells()getCellTuple(Project project) getCellValue(int cellIndex) getField(String name, Properties bindings) booleanisCellBlank(int cellIndex) booleanisEmpty()booleanbooleanprotected booleanisValueBlank(Object value) static Rowstatic RowloadStreaming(String s, Pool pool) voidsave(Writer writer, Properties options) voidtoString()
-
Field Details
-
flagged
public boolean flagged -
starred
public boolean starred -
cells
-
-
Constructor Details
-
Row
public Row(int cellCount) Construct a new Row.- Parameters:
cellCount- number of cells to give row initially (can be extended later)
-
Row
-
-
Method Details
-
dup
Copy a row and return the copy. Note that this is a shallow copy, so if the contents of cells are changed in the original, they will be changed in the duplicate.- Returns:
- the duplicated row
-
getField
-
fieldAlsoHasFields
- Specified by:
fieldAlsoHasFieldsin interfaceHasFields
-
isEmpty
public boolean isEmpty() -
getCell
- Parameters:
cellIndex- index of cell to return- Returns:
- given cell or null if cell doesn't exist or cell index is out of range
-
getCellValue
-
isCellBlank
public boolean isCellBlank(int cellIndex) -
isValueBlank
-
setCell
-
getCellTuple
-
isFlagged
public boolean isFlagged() -
isStarred
public boolean isStarred() -
getCells
-
save
-
load
- Throws:
IOException
-
deserialize
-
loadStreaming
- Throws:
IOException
-
toString
-