Package org.apache.solr.blockcache
Class BufferStore
java.lang.Object
org.apache.solr.blockcache.BufferStore
- All Implemented Interfaces:
Store
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidinitNewBuffer(int bufferSize, long totalAmount) static voidinitNewBuffer(int bufferSize, long totalAmount, Metrics metrics) static Storeinstance(int bufferSize) voidputBuffer(byte[] buffer) byte[]takeBuffer(int bufferSize)
-
Method Details
-
initNewBuffer
public static void initNewBuffer(int bufferSize, long totalAmount) -
initNewBuffer
-
instance
-
takeBuffer
public byte[] takeBuffer(int bufferSize) - Specified by:
takeBufferin interfaceStore
-
putBuffer
public void putBuffer(byte[] buffer)
-