Record Class LogSearchResult
java.lang.Object
java.lang.Record
codes.grow.packages.skywalking.logging.LogSearchResult
- Record Components:
records- matching records in the requested ordernextCursor- cursor of the next page, if anytotal- total number of matches, when the service reports it
-
Constructor Summary
ConstructorsConstructorDescriptionLogSearchResult(List<LogRecord> records, Optional<String> nextCursor, OptionalLong total) Copies the list and replacesnulloptionals by empty ones. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenextCursorrecord component.static LogSearchResultA single page without cursor or total.records()Returns the value of therecordsrecord component.final StringtoString()Returns a string representation of this record class.total()Returns the value of thetotalrecord component.
-
Constructor Details
-
LogSearchResult
Copies the list and replacesnulloptionals by empty ones.- Parameters:
records- matching recordsnextCursor- next cursortotal- total
-
-
Method Details
-
of
A single page without cursor or total.- Parameters:
records- records- Returns:
- result
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
records
Returns the value of therecordsrecord component.- Returns:
- the value of the
recordsrecord component
-
nextCursor
Returns the value of thenextCursorrecord component.- Returns:
- the value of the
nextCursorrecord component
-
total
Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-