Package jslx.tabularfiles
Interface RowIfc
-
- All Known Subinterfaces:
RowGetterIfc
,RowSetterIfc
- All Known Implementing Classes:
Row
public interface RowIfc
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getBytes()
int
getColumn(java.lang.String name)
java.lang.String
getColumnName(int col)
java.util.List<java.lang.String>
getColumnNames()
java.util.LinkedHashMap<java.lang.String,DataType>
getColumnTypes()
DataType
getDataType(int colNum)
java.util.List<DataType>
getDataTypes()
int
getNumberColumns()
int
getNumNumericColumns()
int
getNumTextColumns()
DataType
getType(int col)
boolean
isAllNumeric()
boolean
isAllText()
boolean
isNumeric(int i)
boolean
isText(int i)
-
-
-
Method Detail
-
getBytes
int getBytes()
- Returns:
- the number of bytes stored in the row
-
getNumNumericColumns
int getNumNumericColumns()
- Returns:
- the total number of numeric columns
-
getNumTextColumns
int getNumTextColumns()
- Returns:
- the total number of text columns
-
getColumnTypes
java.util.LinkedHashMap<java.lang.String,DataType> getColumnTypes()
- Returns:
- the map of columns associated with this row
-
getColumnNames
java.util.List<java.lang.String> getColumnNames()
- Returns:
- an ordered list of the column names for the row
-
getDataTypes
java.util.List<DataType> getDataTypes()
- Returns:
- an ordered list of the column data types
-
getDataType
DataType getDataType(int colNum)
- Parameters:
colNum
- 0 based indexing- Returns:
- the data type of the column at the index
-
getNumberColumns
int getNumberColumns()
- Returns:
- the number of columns of tabular data
-
isAllNumeric
boolean isAllNumeric()
- Returns:
- true if all cells are NUMERIC
-
isAllText
boolean isAllText()
- Returns:
- true if all cells are TEXT
-
getType
DataType getType(int col)
- Parameters:
col
- the index of the column, 0 based- Returns:
- the data type of the column associated with this cell
-
getColumnName
java.lang.String getColumnName(int col)
- Parameters:
col
- the index of the column, 0 based- Returns:
- the name of the column associated with this cell
-
getColumn
int getColumn(java.lang.String name)
- Parameters:
name
- the name to look up- Returns:
- the index or -1 if not found
-
isNumeric
boolean isNumeric(int i)
- Parameters:
i
- the index into the row (0 based)- Returns:
- true if the cell at location i is NUMERIC
-
isText
boolean isText(int i)
- Parameters:
i
- i the index into the row (0 based)- Returns:
- true if the cell at location i is TEXT
-
-