Record Class FileMetaData
java.lang.Object
java.lang.Record
dev.hardwood.metadata.FileMetaData
-
Constructor Summary
ConstructorsConstructorDescriptionFileMetaData(int version, List<SchemaElement> schema, long numRows, List<RowGroup> rowGroups, 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.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, 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 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
public int version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
schema
Returns the value of theschemarecord component.- Returns:
- the value of the
schemarecord component
-
numRows
public long numRows()Returns the value of thenumRowsrecord component.- Returns:
- the value of the
numRowsrecord component
-
rowGroups
-
createdBy
Returns the value of thecreatedByrecord component.- Returns:
- the value of the
createdByrecord component
-