public static final class WAH8DocIdSet.Builder extends Object
WAH8DocIdSet
s.Constructor and Description |
---|
WAH8DocIdSet.Builder()
Sole constructor
|
Modifier and Type | Method and Description |
---|---|
WAH8DocIdSet.Builder |
add(DocIdSetIterator disi)
Add the content of the provided
DocIdSetIterator . |
WAH8DocIdSet.Builder |
add(int docID)
Add a document to this builder.
|
WAH8DocIdSet |
build()
Build a new
WAH8DocIdSet . |
WAH8DocIdSet.Builder |
setIndexInterval(int indexInterval)
Set the index interval.
|
public WAH8DocIdSet.Builder add(int docID)
public WAH8DocIdSet.Builder add(DocIdSetIterator disi) throws IOException
DocIdSetIterator
.IOException
public WAH8DocIdSet.Builder setIndexInterval(int indexInterval)
DocIdSetIterator.advance(int)
but make the DocIdSet
larger. An index interval i
makes the index add an overhead
which is at most 4/i
, but likely much less.The default index
interval is 8
, meaning the index has an overhead of at most
50%. To disable indexing, you can pass Integer.MAX_VALUE
as an
index interval.public WAH8DocIdSet build()
WAH8DocIdSet
.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.