org.elasticsearch.common.compress.snappy
Class UnavailableSnappyCompressor

java.lang.Object
  extended by org.elasticsearch.common.compress.snappy.SnappyCompressor
      extended by org.elasticsearch.common.compress.snappy.UnavailableSnappyCompressor
All Implemented Interfaces:
Compressor

public class UnavailableSnappyCompressor
extends SnappyCompressor


Field Summary
 
Fields inherited from class org.elasticsearch.common.compress.snappy.SnappyCompressor
compressorContext, HEADER
 
Constructor Summary
UnavailableSnappyCompressor()
           
 
Method Summary
 byte[] compress(byte[] data, int offset, int length)
          Compresses the provided data, data can be detected as compressed using Compressor.isCompressed(byte[], int, int).
 CompressedIndexInput indexInput(org.apache.lucene.store.IndexInput in)
           
 CompressedIndexOutput indexOutput(org.apache.lucene.store.IndexOutput out)
           
protected  int maxCompressedLength(int length)
           
 CompressedStreamInput streamInput(StreamInput in)
           
 CompressedStreamOutput streamOutput(StreamOutput out)
           
 String type()
           
 byte[] uncompress(byte[] data, int offset, int length)
          Uncompress the provided data, data can be detected as compressed using Compressor.isCompressed(byte[], int, int).
 
Methods inherited from class org.elasticsearch.common.compress.snappy.SnappyCompressor
configure, isCompressed, isCompressed, isCompressed, isCompressed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnavailableSnappyCompressor

public UnavailableSnappyCompressor()
Method Detail

type

public String type()

maxCompressedLength

protected int maxCompressedLength(int length)
Specified by:
maxCompressedLength in class SnappyCompressor

uncompress

public byte[] uncompress(byte[] data,
                         int offset,
                         int length)
                  throws IOException
Description copied from interface: Compressor
Uncompress the provided data, data can be detected as compressed using Compressor.isCompressed(byte[], int, int).

Specified by:
uncompress in interface Compressor
Overrides:
uncompress in class SnappyCompressor
Throws:
IOException

compress

public byte[] compress(byte[] data,
                       int offset,
                       int length)
                throws IOException
Description copied from interface: Compressor
Compresses the provided data, data can be detected as compressed using Compressor.isCompressed(byte[], int, int).

Specified by:
compress in interface Compressor
Overrides:
compress in class SnappyCompressor
Throws:
IOException

streamInput

public CompressedStreamInput streamInput(StreamInput in)
                                  throws IOException
Throws:
IOException

streamOutput

public CompressedStreamOutput streamOutput(StreamOutput out)
                                    throws IOException
Throws:
IOException

indexInput

public CompressedIndexInput indexInput(org.apache.lucene.store.IndexInput in)
                                throws IOException
Throws:
IOException

indexOutput

public CompressedIndexOutput indexOutput(org.apache.lucene.store.IndexOutput out)
                                  throws IOException
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.