Record Class FileMetaData
java.lang.Object
java.lang.Record
dev.hardwood.metadata.FileMetaData
- Record Components:
version- Parquet format version (currently 1 or 2)schema- flattened schema elements as written in the file footernumRows- total number of rows across all row groupsrowGroups- metadata for each row group in the filekeyValueMetadata- application-defined key-value metadata, or an empty map if absentcreatedBy- identifier of the library that wrote the file, ornullif absent
-
Constructor Summary
ConstructorsConstructorDescriptionFileMetaData(int version, List<SchemaElement> schema, long numRows, List<RowGroup> rowGroups, Map<String, String> keyValueMetadata, String createdBy) Creates an instance of aFileMetaDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedByrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thekeyValueMetadatarecord component.longnumRows()Returns the value of thenumRowsrecord component.Returns the value of therowGroupsrecord component.schema()Returns the value of theschemarecord component.final StringtoString()Returns a string representation of this record class.intversion()Returns the value of theversionrecord component.
-
Constructor Details
-
FileMetaData
public FileMetaData(int version, List<SchemaElement> schema, long numRows, List<RowGroup> rowGroups, Map<String, String> keyValueMetadata, String createdBy) Creates an instance of aFileMetaDatarecord class.- Parameters:
version- the value for theversionrecord componentschema- the value for theschemarecord componentnumRows- the value for thenumRowsrecord componentrowGroups- the value for therowGroupsrecord componentkeyValueMetadata- the value for thekeyValueMetadatarecord componentcreatedBy- the value for thecreatedByrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
version
-
schema
-
numRows
-
rowGroups
-
keyValueMetadata
Returns the value of thekeyValueMetadatarecord component.- Returns:
- the value of the
keyValueMetadatarecord component
-
createdBy
-