Record Class PivotResult.Value
java.lang.Object
java.lang.Record
org.graylog.plugins.views.search.searchtypes.pivot.PivotResult.Value
- Enclosing class:
- PivotResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PivotResult.Valuecreate(Collection<String> key, Object value, boolean rollup, String source) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.google.common.collect.ImmutableList<String>key()Returns the value of thekeyrecord component.booleanrollup()Returns the value of therolluprecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
Value
public Value(com.google.common.collect.ImmutableList<String> key, @Nullable Object value, boolean rollup, String source) Creates an instance of aValuerecord class.- Parameters:
key- the value for thekeyrecord componentvalue- the value for thevaluerecord componentrollup- the value for therolluprecord componentsource- the value for thesourcerecord component
-
-
Method Details
-
create
public static PivotResult.Value create(Collection<String> key, @Nullable Object value, boolean rollup, String source) -
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
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
rollup
public boolean rollup()Returns the value of therolluprecord component.- Returns:
- the value of the
rolluprecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-