org.apache.solr.store.blockcache

## Class BufferStore

- java.lang.Object
- - org.apache.solr.store.blockcache.BufferStore

- All Implemented Interfaces:
    Store

      public class BufferStore
      extends Object
      implements Store

  WARNING: This API is experimental and might change in incompatible ways in the next release.

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `initNewBuffer(int bufferSize, long totalAmount)`
    `static void` | `initNewBuffer(int bufferSize, long totalAmount, Metrics metrics)`
    `static Store` | `instance(int bufferSize)`
    `void` | `putBuffer(byte[] buffer)`
    `byte[]` | `takeBuffer(int bufferSize)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### initNewBuffer

          public static void initNewBuffer(int bufferSize,
                                           long totalAmount)

    - #### initNewBuffer

          public static void initNewBuffer(int bufferSize,
                                           long totalAmount,
                                           Metrics metrics)

    - #### instance

          public static Store instance(int bufferSize)

    - #### takeBuffer

          public byte[] takeBuffer(int bufferSize)

      Specified by:
        `takeBuffer` in interface `Store`

    - #### putBuffer

          public void putBuffer(byte[] buffer)

      Specified by:
        `putBuffer` in interface `Store`

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.