Package org.apache.lucene.util

Examples of org.apache.lucene.util.SparseFixedBitSet


                        final int expectedCardinality = size / (i + 1);
                        // similar heuristic to BitDocIdSet.Builder
                        if (expectedCardinality >= (context.reader().maxDoc() >>> 10)) {
                            result = new FixedBitSet(context.reader().maxDoc());
                        } else {
                            result = new SparseFixedBitSet(context.reader().maxDoc());
                        }
                    } else {
                        continue;
                    }
                } else {
View Full Code Here


        builder.or(iterator);
        BitDocIdSet result = builder.build();
        if (result != null) {
            return result.bits();
        } else {
            return new SparseFixedBitSet(numBits);
        }
    }
View Full Code Here

    private Filter getEmptyFilter() {
        return new Filter() {
            @Override
            public DocIdSet getDocIdSet(LeafReaderContext context, Bits acceptDocs) {
                return new BitDocIdSet(new SparseFixedBitSet(context.reader().maxDoc()));
            }
        };
    }
View Full Code Here

                        builder.or(docIdSet.iterator());
                    }
                    BitDocIdSet bits = builder.build();
                    // code expects this to be non-null
                    if (bits == null) {
                        bits = new BitDocIdSet(new SparseFixedBitSet(context.reader().maxDoc()), 0);
                    }
                    bitSet = bits;
                }

                Value value = new Value(bitSet, shardId);
View Full Code Here

TOP

Related Classes of org.apache.lucene.util.SparseFixedBitSet

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.