Package org.apache.juneau.console.views
Record Class FileLineIndex.Snapshot
java.lang.Object
java.lang.Record
org.apache.juneau.console.views.FileLineIndex.Snapshot
- Record Components:
epoch- Six base36 characters identifying this file generation.indexedBytes- Offset just past the last\n.indexedLines- Number of complete lines in[0, indexedBytes).fileSize- File size at the time of the refresh.
- Enclosing class:
- FileLineIndex
public static record FileLineIndex.Snapshot(String epoch, long indexedBytes, long indexedLines, long fileSize)
extends Record
The result of a
FileLineIndex.refresh().-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionepoch()Returns the value of theepochrecord component.final booleanIndicates whether some other object is "equal to" this one.longfileSize()Returns the value of thefileSizerecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of theindexedBytesrecord component.longReturns the value of theindexedLinesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Snapshot
Creates an instance of aSnapshotrecord class.- Parameters:
epoch- the value for theepochrecord componentindexedBytes- the value for theindexedBytesrecord componentindexedLines- the value for theindexedLinesrecord componentfileSize- the value for thefileSizerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
epoch
Returns the value of theepochrecord component.- Returns:
- the value of the
epochrecord component
-
indexedBytes
Returns the value of theindexedBytesrecord component.- Returns:
- the value of the
indexedBytesrecord component
-
indexedLines
Returns the value of theindexedLinesrecord component.- Returns:
- the value of the
indexedLinesrecord component
-
fileSize
Returns the value of thefileSizerecord component.- Returns:
- the value of the
fileSizerecord component
-