Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Record Class ParsedDocument.DocumentSize
java.lang.Object
java.lang.Record
org.elasticsearch.index.mapper.ParsedDocument.DocumentSize
- Record Components:
ingestedBytes- ingest size of the documentstoredBytes- stored retained size of the document
- Enclosing class:
ParsedDocument
public static record ParsedDocument.DocumentSize(long ingestedBytes, long storedBytes)
extends Record
Normalized ingested and stored size of a document.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDocumentSize(long ingestedBytes, long storedBytes) Creates an instance of aDocumentSizerecord class. -
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.longReturns the value of theingestedBytesrecord component.longReturns the value of thestoredBytesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
UNKNOWN
-
-
Constructor Details
-
DocumentSize
public DocumentSize(long ingestedBytes, long storedBytes) Creates an instance of aDocumentSizerecord class.- Parameters:
ingestedBytes- the value for theingestedBytesrecord componentstoredBytes- the value for thestoredBytesrecord 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. All components in this record class are compared with '=='. -
ingestedBytes
public long ingestedBytes()Returns the value of theingestedBytesrecord component.- Returns:
- the value of the
ingestedBytesrecord component
-
storedBytes
public long storedBytes()Returns the value of thestoredBytesrecord component.- Returns:
- the value of the
storedBytesrecord component
-