public class IndexPackingRequest
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
IndexPackingRequest.IndexFormat
Index format enumeration.
|
Modifier and Type | Field and Description |
---|---|
private IndexingContext |
context |
private boolean |
createChecksumFiles |
private boolean |
createIncrementalChunks |
private java.util.Collection<IndexPackingRequest.IndexFormat> |
formats |
private org.apache.lucene.index.IndexReader |
indexReader |
static int |
MAX_CHUNKS |
private int |
maxIndexChunks |
private java.io.File |
targetDir |
private boolean |
useTargetProperties |
Constructor and Description |
---|
IndexPackingRequest(IndexingContext context,
org.apache.lucene.index.IndexReader indexReader,
java.io.File targetDir) |
Modifier and Type | Method and Description |
---|---|
IndexingContext |
getContext() |
java.util.Collection<IndexPackingRequest.IndexFormat> |
getFormats()
Returns index formats to be created.
|
org.apache.lucene.index.IndexReader |
getIndexReader() |
int |
getMaxIndexChunks() |
java.io.File |
getTargetDir() |
boolean |
isCreateChecksumFiles() |
boolean |
isCreateIncrementalChunks() |
boolean |
isUseTargetProperties() |
void |
setCreateChecksumFiles(boolean createChecksumFiles) |
void |
setCreateIncrementalChunks(boolean createIncrementalChunks) |
void |
setFormats(java.util.Collection<IndexPackingRequest.IndexFormat> formats)
Sets index formats to be created
|
void |
setMaxIndexChunks(int maxIndexChunks) |
void |
setUseTargetProperties(boolean useTargetProperties) |
public static final int MAX_CHUNKS
private final IndexingContext context
private final org.apache.lucene.index.IndexReader indexReader
private final java.io.File targetDir
private boolean createIncrementalChunks
private boolean createChecksumFiles
private int maxIndexChunks
private boolean useTargetProperties
private java.util.Collection<IndexPackingRequest.IndexFormat> formats
public IndexPackingRequest(IndexingContext context, org.apache.lucene.index.IndexReader indexReader, java.io.File targetDir)
public IndexingContext getContext()
public org.apache.lucene.index.IndexReader getIndexReader()
public void setFormats(java.util.Collection<IndexPackingRequest.IndexFormat> formats)
public java.util.Collection<IndexPackingRequest.IndexFormat> getFormats()
public java.io.File getTargetDir()
public boolean isCreateIncrementalChunks()
public void setCreateIncrementalChunks(boolean createIncrementalChunks)
public boolean isCreateChecksumFiles()
public void setCreateChecksumFiles(boolean createChecksumFiles)
public int getMaxIndexChunks()
public void setMaxIndexChunks(int maxIndexChunks)
public boolean isUseTargetProperties()
public void setUseTargetProperties(boolean useTargetProperties)