java.lang.Object
java.lang.Record
org.elasticsearch.compute.data.ToMask
- All Implemented Interfaces:
Closeable,AutoCloseable,org.elasticsearch.core.Releasable
public record ToMask(BooleanVector mask, boolean hadMultivaluedFields)
extends Record
implements org.elasticsearch.core.Releasable
Result from calling
BooleanBlock.toMask(). closing this will
close the contained mask(). If you want to keep a reference to it then you'll
have to RefCounted.incRef() it.-
Constructor Summary
ConstructorsConstructorDescriptionToMask(BooleanVector mask, boolean hadMultivaluedFields) Creates an instance of aToMaskrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thehadMultivaluedFieldsrecord component.final inthashCode()Returns a hash code value for this object.mask()Returns the value of themaskrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ToMask
Creates an instance of aToMaskrecord class.- Parameters:
mask- the value for themaskrecord componenthadMultivaluedFields- the value for thehadMultivaluedFieldsrecord component
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.core.Releasable
-
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 '=='. -
mask
Returns the value of themaskrecord component.- Returns:
- the value of the
maskrecord component
-
hadMultivaluedFields
public boolean hadMultivaluedFields()Returns the value of thehadMultivaluedFieldsrecord component.- Returns:
- the value of the
hadMultivaluedFieldsrecord component
-