Record Class TranscriptStore.SegmentInfo
java.lang.Object
java.lang.Record
io.agentscope.harness.agent.transcript.TranscriptStore.SegmentInfo
- Enclosing interface:
- TranscriptStore
public static record TranscriptStore.SegmentInfo(String key, long seqStart, long seqEnd, String writerId, Instant createdAt)
extends Record
Metadata for one immutable segment.
-
Constructor Summary
ConstructorsConstructorDescriptionSegmentInfo(String key, long seqStart, long seqEnd, String writerId, Instant createdAt) Creates an instance of aSegmentInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.longseqEnd()Returns the value of theseqEndrecord component.longseqStart()Returns the value of theseqStartrecord component.final StringtoString()Returns a string representation of this record class.writerId()Returns the value of thewriterIdrecord component.
-
Constructor Details
-
SegmentInfo
Creates an instance of aSegmentInforecord class.- Parameters:
key- the value for thekeyrecord componentseqStart- the value for theseqStartrecord componentseqEnd- the value for theseqEndrecord componentwriterId- the value for thewriterIdrecord componentcreatedAt- the value for thecreatedAtrecord 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
public final int 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 '=='. -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
seqStart
public long seqStart()Returns the value of theseqStartrecord component.- Returns:
- the value of the
seqStartrecord component
-
seqEnd
public long seqEnd()Returns the value of theseqEndrecord component.- Returns:
- the value of the
seqEndrecord component
-
writerId
Returns the value of thewriterIdrecord component.- Returns:
- the value of the
writerIdrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-