Package org.elasticsearch.common.compress.lzf

Examples of org.elasticsearch.common.compress.lzf.BufferRecycler


    private final boolean neverClose;

    public LZFStreamOutput(StreamOutput out, boolean neverClose) {
        this.neverClose = neverClose;
        _recycler = neverClose ? new BufferRecycler() : BufferRecycler.instance();
        _encoder = new ChunkEncoder(OUTPUT_BUFFER_SIZE, _recycler);
        _outputStream = out;
        _outputBuffer = _recycler.allocOutputBuffer(OUTPUT_BUFFER_SIZE);
    }
View Full Code Here


    public LZFStreamInput(StreamInput in, boolean cached) {
        super();
        this.cached = cached;
        if (cached) {
            _recycler = new BufferRecycler();
        } else {
            _recycler = BufferRecycler.instance();
        }
        inputStream = in;
        inputStreamClosed = false;
View Full Code Here

TOP

Related Classes of org.elasticsearch.common.compress.lzf.BufferRecycler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.