java.lang.Object
org.elasticsearch.simdvec.internal.AddressesScratch
AddressesScratch relies on preview features of the Java platform:
AddressesScratchrefers to one or more preview APIs:MemorySegment.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Reusable, lazily-grown scratch buffer for an array of native addresses
(pointer-width values), used to hand a contiguous
MemorySegment
of MemorySegment#address()-style values (array of pointers).
Not thread-safe; instances must not be shared across threads.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AddressesScratch
public AddressesScratch()
-
-
Method Details
-
get
Returns aMemorySegmentPREVIEW of at leastcountnative-address slots. The buffer may be larger than requested (it is grown lazily and never shrunk across calls); callers must respect their owncountwhen reading or writing addresses. Always returns the same backing segment for a given instance until a larger one is needed.
-
AddressesScratchwhen preview features are enabled.