List of usage examples for org.apache.lucene.codecs.compressing CompressionMode FAST
CompressionMode FAST
To view the source code for org.apache.lucene.codecs.compressing CompressionMode FAST.
Click Source Link
From source file:com.lucure.core.codec.LucureStoredFieldsFormat.java
License:Apache License
/** Sole constructor. */ public LucureStoredFieldsFormat() { super("LucureStoredFields", CompressionMode.FAST, 1 << 14); }
From source file:org.apache.blur.lucene.codec.Blur022Codec.java
License:Apache License
public Blur022Codec() { this(1 << 14, CompressionMode.FAST); }
From source file:org.apache.blur.lucene.codec.Blur022Codec.java
License:Apache License
private static CompressionMode getCompressionMode(BlurConfiguration configuration) { String type = configuration.get(BLUR_SHARD_INDEX_COMPRESSIONMODE, FAST); if (HIGH_COMPRESSION.equals(type)) { return CompressionMode.HIGH_COMPRESSION; } else if (FAST.equals(type)) { return CompressionMode.FAST; } else if (FAST_DECOMPRESSION.equals(type)) { return CompressionMode.FAST_DECOMPRESSION; } else {//from w ww .j a v a 2 s . c o m throw new IllegalArgumentException("blur.shard.index.compressionmode=" + type + " not supported. Valid entries are [FAST,FAST_DECOMPRESSION,HIGH_COMPRESSION]"); } }
From source file:org.apache.blur.lucene.codec.Blur022StoredFieldsFormat.java
License:Apache License
private CompressionMode getCompressionMode(SegmentInfo si) { String attribute = si.getAttribute(STORED_FIELDS_FORMAT_COMPRESSION_MODE); if (HIGH_COMPRESSION.equals(attribute)) { return CompressionMode.HIGH_COMPRESSION; } else if (FAST.equals(attribute)) { return CompressionMode.FAST; } else if (FAST_DECOMPRESSION.equals(attribute)) { return CompressionMode.FAST_DECOMPRESSION; }/*from w ww.j a va 2s .c o m*/ // This happen during nrt udpates. return _compressionMode; }
From source file:org.apache.blur.lucene.codec.Blur024Codec.java
License:Apache License
public Blur024Codec() { this(1 << 14, CompressionMode.FAST); }