Module org.elasticsearch.compute
Package org.elasticsearch.compute.data
Record Class BlockUtils.BuilderWrapper
java.lang.Object
java.lang.Record
org.elasticsearch.compute.data.BlockUtils.BuilderWrapper
- All Implemented Interfaces:
Closeable,AutoCloseable,org.elasticsearch.core.Releasable
- Enclosing class:
BlockUtils
public static record BlockUtils.BuilderWrapper(Block.Builder builder, Consumer<Object> append)
extends Record
implements org.elasticsearch.core.Releasable
-
Constructor Summary
ConstructorsConstructorDescriptionBuilderWrapper(Block.Builder builder, Consumer<Object> append) Creates an instance of aBuilderWrapperrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidappend()Returns the value of theappendrecord component.builder()Returns the value of thebuilderrecord component.voidclose()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BuilderWrapper
Creates an instance of aBuilderWrapperrecord class.- Parameters:
builder- the value for thebuilderrecord componentappend- the value for theappendrecord component
-
-
Method Details
-
accept
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
builder
Returns the value of thebuilderrecord component.- Returns:
- the value of the
builderrecord component
-
append
Returns the value of theappendrecord component.- Returns:
- the value of the
appendrecord component
-