Package org.terrier.structures.indexing
Class DiskIndexWriter
- java.lang.Object
-
- org.terrier.structures.indexing.DiskIndexWriter
-
public class DiskIndexWriter extends java.lang.Object
Utility class for writing an existing index to disk
-
-
Constructor Summary
Constructors Constructor Description DiskIndexWriter(java.lang.String path, java.lang.String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
collectProperties(Index source, IndexOnDisk index, CompressionFactory.CompressionConfiguration compressionConfigInverted, CompressionFactory.CompressionConfiguration compressionConfigDirect)
DiskIndexWriter
setBlocks(boolean blocks)
DiskIndexWriter
setDirect(boolean direct)
DiskIndexWriter
setFields(java.lang.String[] fields)
DiskIndexWriter
withBlocks()
DiskIndexWriter
withDirect()
IndexOnDisk
write(Index source)
-
-
-
Method Detail
-
setFields
public DiskIndexWriter setFields(java.lang.String[] fields)
-
setBlocks
public DiskIndexWriter setBlocks(boolean blocks)
-
withBlocks
public DiskIndexWriter withBlocks()
-
setDirect
public DiskIndexWriter setDirect(boolean direct)
-
withDirect
public DiskIndexWriter withDirect()
-
write
public IndexOnDisk write(Index source) throws java.io.IOException
- Throws:
java.io.IOException
-
collectProperties
protected void collectProperties(Index source, IndexOnDisk index, CompressionFactory.CompressionConfiguration compressionConfigInverted, CompressionFactory.CompressionConfiguration compressionConfigDirect)
-
-