Record Class ExportTabularResultResponse
java.lang.Object
java.lang.Record
org.graylog.plugins.views.search.searchtypes.export.ExportTabularResultResponse
public record ExportTabularResultResponse(List<String> header, List<ExportTabularResultResponse.DataRow> dataRows)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionExportTabularResultResponse(List<String> header, List<ExportTabularResultResponse.DataRow> dataRows) Creates an instance of aExportTabularResultResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptiondataRows()Returns the value of thedataRowsrecord component.final booleanIndicates whether some other object is "equal to" this one.static ExportTabularResultResponsefromDocumentList(List<org.bson.Document> documents, List<String> exportedFields) static ExportTabularResultResponsestatic ExportTabularResultResponsefromPivotResult(PivotResult pivotResult) final inthashCode()Returns a hash code value for this object.header()Returns the value of theheaderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExportTabularResultResponse
public ExportTabularResultResponse(List<String> header, List<ExportTabularResultResponse.DataRow> dataRows) Creates an instance of aExportTabularResultResponserecord class.- Parameters:
header- the value for theheaderrecord componentdataRows- the value for thedataRowsrecord component
-
-
Method Details
-
fromPivotResult
-
fromMessageListResult
-
fromDocumentList
public static ExportTabularResultResponse fromDocumentList(List<org.bson.Document> documents, List<String> exportedFields) -
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). -
header
Returns the value of theheaderrecord component.- Returns:
- the value of the
headerrecord component
-
dataRows
Returns the value of thedataRowsrecord component.- Returns:
- the value of the
dataRowsrecord component
-