Record Class MemoryDataFragment
java.lang.Object
java.lang.Record
io.trino.plugin.memory.MemoryDataFragment
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryDataFragment(HostAddress hostAddress, long rows) Creates an instance of aMemoryDataFragmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static MemoryDataFragmentfromSlice(io.airlift.slice.Slice fragment) final inthashCode()Returns a hash code value for this object.Returns the value of thehostAddressrecord component.static MemoryDataFragmentlongrows()Returns the value of therowsrecord component.io.airlift.slice.SlicetoSlice()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MemoryDataFragment
Creates an instance of aMemoryDataFragmentrecord class.- Parameters:
hostAddress- the value for thehostAddressrecord componentrows- the value for therowsrecord component
-
-
Method Details
-
toSlice
public io.airlift.slice.Slice toSlice() -
fromSlice
-
merge
-
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. -
hostAddress
Returns the value of thehostAddressrecord component.- Returns:
- the value of the
hostAddressrecord component
-
rows
public long rows()Returns the value of therowsrecord component.- Returns:
- the value of the
rowsrecord component
-