java.lang.Object
org.elasticsearch.transport.BytesRefRecycler
- All Implemented Interfaces:
Recycler<org.apache.lucene.util.BytesRef>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.recycler.Recycler
Recycler.C<T>, Recycler.Factory<T>, Recycler.V<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BytesRefRecyclerA non-recyclingBytesRefRecyclerwhich simply allocates a fresh 16kiBbyte[]each time. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRecycler.V<org.apache.lucene.util.BytesRef> obtain()intpageSize()
-
Field Details
-
NON_RECYCLING_INSTANCE
A non-recyclingBytesRefRecyclerwhich simply allocates a fresh 16kiBbyte[]each time. This is only really appropriate for use in tests.
-
-
Constructor Details
-
BytesRefRecycler
-
-
Method Details