Package com.exasol.parquetio.data
Class GenericRow
java.lang.Object
com.exasol.parquetio.data.GenericRow
- All Implemented Interfaces:
Row
An implementation of
Row that uses unmodifiable list for storing values.-
Constructor Summary
ConstructorsConstructorDescriptionGenericRow(List<Object> values) A constructor to create a new instance.GenericRow(org.apache.parquet.schema.MessageType schema, List<Object> values) A constructor to create a new instance withMessageTypeschema. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns 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.inthashCode()static GenericRowA factory method to create a new instance.static GenericRowA factory method to create a new instance withMessageTypeschema.toString()
-
Constructor Details
-
GenericRow
A constructor to create a new instance.- Parameters:
values- list of values
-
GenericRow
A constructor to create a new instance withMessageTypeschema.- Parameters:
schema- schema of a rowvalues- list of values
-
-
Method Details
-
of
A factory method to create a new instance.- Parameters:
values- list of values- Returns:
- an instance of
GenericRow
-
of
A factory method to create a new instance withMessageTypeschema.- Parameters:
schema- schema of a rowvalues- list of values- Returns:
- an instance of
GenericRow
-
hasFieldName
Description copied from interface:RowChecks if a column with a given name exists.- Specified by:
hasFieldNamein interfaceRow- Parameters:
fieldName- field name in a row- Returns:
trueif column with a name exists; otherwisefalse
-
getFieldNames
Description copied from interface:RowReturns list of field names.- Specified by:
getFieldNamesin interfaceRow- Returns:
- list of field names
-
getValue
Description copied from interface:RowReturns a value at the given position. -
getValue
Description copied from interface:RowReturns a value that corresponds to field name. -
getValues
Description copied from interface:RowReturns the list of values this Row represents. -
equals
-
hashCode
public int hashCode() -
toString
-