List of usage examples for org.apache.lucene.codecs.compressing CompressionMode FAST_DECOMPRESSION
CompressionMode FAST_DECOMPRESSION
To view the source code for org.apache.lucene.codecs.compressing CompressionMode FAST_DECOMPRESSION.
Click Source Link
From source file:net.semanticmetadata.lire.indexers.LireFeatureStoredFieldFormat.java
License:Open Source License
/** * Sole constructor./* w w w .j a v a 2 s . c om*/ */ public LireFeatureStoredFieldFormat() { // TODO: try different chunk sizes, maybe 1-2KB? super("LireFeatureStoredFieldFormat", CompressionMode.FAST_DECOMPRESSION, 1 << 14, 128, 1024); // updated for Lucene 5.2.1 ... taken from Lucene50StoredFieldsFormat, changed to FAST_DECOMPRESSION. }
From source file:net.semanticmetadata.lire.indexing.LireFeatureStoredFieldFormat.java
License:Open Source License
/** * Sole constructor./*from w w w . j a v a 2 s. co m*/ */ public LireFeatureStoredFieldFormat() { // TODO: try different chunk sizes, maybe 1-2KB? super("LireFeatureStoredFieldFormat", CompressionMode.FAST_DECOMPRESSION, 512); }
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 www . ja v a2 s .co 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; }/* ww w . j ava 2 s . co m*/ // This happen during nrt udpates. return _compressionMode; }