Package com.exasol.parquetio.data
Interface Row
-
- All Known Implementing Classes:
GenericRow
public interface RowA 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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description List<String>getFieldNames()Returns list of field names.ObjectgetValue(int position)Returns a value at the given position.ObjectgetValue(String fieldName)Returns a value that corresponds to field name.List<Object>getValues()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 booleanisNull(String fieldName)Checks whether a value for field name isnull.default intsize()Returns the number of values in this Row.
-
-
-
Method Detail
-
getValues
List<Object> getValues()
Returns the list of values this Row represents.- Returns:
- list of values
-
getValue
Object getValue(int position)
Returns a value at the given position.- Parameters:
position- position of a value in the row- Returns:
- Java object
-
getValue
Object getValue(String fieldName)
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
default boolean isNull(String fieldName)
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
boolean hasFieldName(String fieldName)
Checks if a column with a given name exists.- Parameters:
fieldName- field name in a row- Returns:
trueif column with a name exists; otherwisefalse
-
-