Package io.trino.plugin.hudi
Record Class HudiFileStatus
java.lang.Object
java.lang.Record
io.trino.plugin.hudi.HudiFileStatus
-
Constructor Summary
ConstructorsConstructorDescriptionHudiFileStatus(Location location, boolean isDirectory, long length, long modificationTime, long blockSize) Creates an instance of aHudiFileStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theblockSizerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisDirectoryrecord component.longlength()Returns the value of thelengthrecord component.location()Returns the value of thelocationrecord component.longReturns the value of themodificationTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HudiFileStatus
public HudiFileStatus(Location location, boolean isDirectory, long length, long modificationTime, long blockSize) Creates an instance of aHudiFileStatusrecord class.- Parameters:
location- the value for thelocationrecord componentisDirectory- the value for theisDirectoryrecord componentlength- the value for thelengthrecord componentmodificationTime- the value for themodificationTimerecord componentblockSize- the value for theblockSizerecord 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 '=='. -
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
isDirectory
public boolean isDirectory()Returns the value of theisDirectoryrecord component.- Returns:
- the value of the
isDirectoryrecord component
-
length
public long length()Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-
modificationTime
public long modificationTime()Returns the value of themodificationTimerecord component.- Returns:
- the value of the
modificationTimerecord component
-
blockSize
public long blockSize()Returns the value of theblockSizerecord component.- Returns:
- the value of the
blockSizerecord component
-