jruby/docs BETA
Navigation
org.apache.lucene.util.compress 2
C LZ4
C LowercaseAsciiCompression
LowercaseAsciiCompression — members 2
M compress(in, len, tmp, out) boolean
C decompress(in, out, len)

org.apache.lucene.util.compress.LowercaseAsciiCompression

class final 2 members

Utility class that can efficiently compress arrays that mostly contain characters in the [0x1F,0x3F) or [0x5F,0x7F) ranges, which notably include all digits, lowercase characters, '.', '-' and '_'.

Class Methods

compress

boolean compress ( byte[] in, int len, byte[] tmp, DataOutput out )
Java: compress(byte[] in, int len, byte[] tmp, org.apache.lucene.store.DataOutput out)

Compress in[0:len] into out. This returns false if the content cannot be compressed. The number of bytes written is guaranteed to be less than len otherwise.

decompress

decompress ( DataInput in, byte[] out, int len )
Java: decompress(org.apache.lucene.store.DataInput in, byte[] out, int len)

Decompress data that has been compressed with #compress(byte[], int, byte[], DataOutput). len must be the original length, not the compressed length.

this work for additional information regarding copyright ownership.