Package com.exasol.parquetio.data
Interface Row
- All Known Implementing Classes:
GenericRow
public interface Row
A Row holds set of values.
It is a similar to the database record where each value maps to a column in a table.
-
Method Summary
Modifier and TypeMethodDescriptionReturns list of field names.getValue(int position) Returns a value at the given position.Returns a value that corresponds to field name.Returns the list of values this Row represents.booleanhasFieldName(String fieldName) Checks if a column with a given name exists.default booleanisEmpty()Checks if the list of value empty for this Row.default booleanisNull(int position) Checks whether a value at a position isnull.default booleanChecks whether a value for field name isnull.default intsize()Returns the number of values in this Row.
-
Method Details
-
getValues
Returns the list of values this Row represents.- Returns:
- list of values
-
getValue
Returns a value at the given position.- Parameters:
position- position of a value in the row- Returns:
- Java object
-
getValue
Returns a value that corresponds to field name.- Parameters:
fieldName- field name of a value in the row- Returns:
- Java object
-
isNull
default boolean isNull(int position) Checks whether a value at a position isnull.- Parameters:
position- position of a value in a row- Returns:
trueif value at position is null; otherwisefalse
-
isNull
Checks whether a value for field name isnull.- Parameters:
fieldName- field name of a value in a row- Returns:
trueif value for field name is null; otherwisefalse
-
isEmpty
default boolean isEmpty()Checks if the list of value empty for this Row.- Returns:
trueif values list is empty; otherwisefalse
-
size
default int size()Returns the number of values in this Row.- Returns:
- number of values
-
hasFieldName
Checks if a column with a given name exists.- Parameters:
fieldName- field name in a row- Returns:
trueif column with a name exists; otherwisefalse
-
getFieldNames
Returns list of field names.- Returns:
- list of field names
-