Package com.exasol.parquetio.data
Class GenericRow
- java.lang.Object
-
- com.exasol.parquetio.data.GenericRow
-
-
Constructor Summary
Constructors Constructor Description GenericRow(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)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.inthashCode()static GenericRowof(Object... values)A factory method to create a new instance.static GenericRowof(org.apache.parquet.schema.MessageType schema, Object... values)A factory method to create a new instance withMessageTypeschema.StringtoString()
-
-
-
Method Detail
-
of
public static GenericRow of(Object... values)
A factory method to create a new instance.- Parameters:
values- list of values- Returns:
- an instance of
GenericRow
-
of
public static GenericRow of(org.apache.parquet.schema.MessageType schema, Object... values)
A factory method to create a new instance withMessageTypeschema.- Parameters:
schema- schema of a rowvalues- list of values- Returns:
- an instance of
GenericRow
-
hasFieldName
public boolean hasFieldName(String fieldName)
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
public List<String> getFieldNames()
Description copied from interface:RowReturns list of field names.- Specified by:
getFieldNamesin interfaceRow- Returns:
- list of field names
-
getValue
public Object getValue(int position)
Description copied from interface:RowReturns a value at the given position.
-
getValue
public Object getValue(String fieldName)
Description copied from interface:RowReturns a value that corresponds to field name.
-
getValues
public List<Object> getValues()
Description copied from interface:RowReturns the list of values this Row represents.
-
-