| Constructor and Description |
|---|
StringRow(H header,
String[] values,
int rowNumber) |
| Modifier and Type | Method and Description |
|---|---|
String |
get(int index)
Returns the entity at a specified index
This method throws a
RuntimeException if anything goes wrong. |
<C> C |
get(int index,
Class<C> cl)
Returns the entity as a specified type
This method throws a
RuntimeException if anything goes wrong. |
String |
get(T headerName)
Returns an entity from the column specified by its head name.
|
<C> C |
get(T headerName,
Class<C> cl)
Returns an entity using head name as a specified type.
|
Boolean |
getBoolean(int index)
Returns entity at an index as
Boolean
This method throws a RuntimeException if anything goes wrong. |
Boolean |
getBoolean(T header)
Returns entity from header name column as
Boolean
This method throws a RuntimeException if anything goes wrong. |
Byte |
getByte(int index)
Returns entity at an index as
Byte
This method throws a RuntimeException if anything goes wrong. |
Byte |
getByte(T headerName)
Returns entity from header name column as
Byte
This method throws a RuntimeException if anything goes wrong. |
Double |
getDouble(int index)
Returns entity at an index as
Double
This method throws a RuntimeException if anything goes wrong. |
Double |
getDouble(T header)
Returns entity from header name column as
Double
This method throws a RuntimeException if anything goes wrong. |
Float |
getFloat(int index)
Returns entity at an index as
Float
This method throws a RuntimeException if anything goes wrong. |
Float |
getFloat(T header)
Returns entity from header name column as
Float
This method throws a RuntimeException if anything goes wrong. |
Integer |
getInteger(int index)
Returns entity at an index as
Integer
This method throws a RuntimeException if anything goes wrong. |
Integer |
getInteger(T header) |
Long |
getLong(int index)
Returns entity at an index as
Long
This method throws a RuntimeException if anything goes wrong. |
Long |
getLong(T header)
Returns entity from header name column as
Long
This method throws a RuntimeException if anything goes wrong. |
<C> C |
getOrNull(int index,
Class<C> cl)
Returns the entity as a specified type
This method returns null if anything goes wrong.
|
<C> C |
getOrNull(T headerName,
Class<C> cl)
Returns an entity using head name as a specified type.
|
int |
getRowNumber()
Returns the number of this row
|
Short |
getShort(int index)
Returns entity at an index as
Short
This method throws a RuntimeException if anything goes wrong. |
Short |
getShort(T headerName)
Returns entity from header name column as
Short
This method throws a RuntimeException if anything goes wrong. |
String |
getString(int index)
Returns entity at an index as
String
This method throws a RuntimeException if anything goes wrong. |
String |
getString(T headerName)
Returns entity from header name column as
String
This method throws a RuntimeException if anything goes wrong. |
protected <C> C |
getValueAs(String value,
Class<C> cl)
Converts a value to a specific type.
|
protected <C> C |
getValueAsOrNull(String value,
Class<C> cl)
Converts a value to a specific type.
|
String[] |
getValues()
Returns the values of this row as string array
|
Iterator<String> |
iterator()
Returns an iterator over the entities in this csv row.
|
protected <C> C |
parse(int index,
Class<C> cl,
Parser<C> parser)
Gets a value by its index and parses it into a specified type
This method throws a
DataFrameRuntimeException if anything goes wrong. |
protected <C> C |
parse(T name,
Class<C> cl,
Parser<C> parser)
Gets a value by its column header name and parses it into a specified type
This method throws a
DataFrameRuntimeException if anything goes wrong. |
int |
size()
Returns the number of entities in this row
|
String |
toString()
Returns the row as string.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic int getRowNumber()
public String[] getValues()
public String get(int index)
RowRuntimeException if anything goes wrong.public String get(T headerName)
RowRuntimeException if anything goes wrong.public String getString(int index)
RowString
This method throws a RuntimeException if anything goes wrong.getString in interface Row<String,T>index - entity indexRow.get(int)public String getString(T headerName)
RowString
This method throws a RuntimeException if anything goes wrong.public Boolean getBoolean(int index)
RowBoolean
This method throws a RuntimeException if anything goes wrong.getBoolean in interface Row<String,T>index - entity indexBoolean entityRow.get(int)public Boolean getBoolean(T header)
RowBoolean
This method throws a RuntimeException if anything goes wrong.getBoolean in interface Row<String,T>header - header nameBoolean entitypublic Double getDouble(int index)
RowDouble
This method throws a RuntimeException if anything goes wrong.public Double getDouble(T header)
RowDouble
This method throws a RuntimeException if anything goes wrong.public Long getLong(int index)
RowLong
This method throws a RuntimeException if anything goes wrong.public Long getLong(T header)
RowLong
This method throws a RuntimeException if anything goes wrong.public Short getShort(int index)
RowShort
This method throws a RuntimeException if anything goes wrong.public Short getShort(T headerName)
RowShort
This method throws a RuntimeException if anything goes wrong.public Byte getByte(int index)
RowByte
This method throws a RuntimeException if anything goes wrong.public Byte getByte(T headerName)
RowByte
This method throws a RuntimeException if anything goes wrong.public Integer getInteger(int index)
RowInteger
This method throws a RuntimeException if anything goes wrong.getInteger in interface Row<String,T>index - entity indexInteger entityRow.get(int)public Float getFloat(int index)
RowFloat
This method throws a RuntimeException if anything goes wrong.public Float getFloat(T header)
RowFloat
This method throws a RuntimeException if anything goes wrong.protected <C> C parse(T name, Class<C> cl, Parser<C> parser)
DataFrameRuntimeException if anything goes wrong.C - type of resulting entityname - csv column namecl - class of resulting entityparser - used parserprotected <C> C parse(int index,
Class<C> cl,
Parser<C> parser)
DataFrameRuntimeException if anything goes wrong.C - type of resulting entityindex - csv column indexcl - class of resulting entityparser - used parserpublic <C> C get(T headerName, Class<C> cl)
RowRuntimeException if anything goes wrong.public <C> C getOrNull(T headerName, Class<C> cl)
Rowpublic <C> C get(int index,
Class<C> cl)
RowRuntimeException if anything goes wrong.public <C> C getOrNull(int index,
Class<C> cl)
Rowprotected <C> C getValueAs(String value, Class<C> cl)
DataFrameRuntimeException if anything goes wrong.C - resulting typevalue - value to convertcl - resulting classprotected <C> C getValueAsOrNull(String value, Class<C> cl)
C - resulting typevalue - value to convertcl - resulting classpublic int size()
Rowpublic Iterator<String> iterator()
StringCopyright © 2017. All rights reserved.