public abstract static class CompressionFactory.CompressionConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
fieldCount
number of fields
|
protected String[] |
fieldNames
name of fields
|
protected int |
hasBlocks
is there blocks: 0 (no), 1 (yes: 1 block per token), more than 1 (blocks are for more than one token)
|
protected int |
maxBlocks
maximum number of blocks
|
protected String |
structureName |
Constructor and Description |
---|
CompressionConfiguration(String structureName,
String[] fieldNames,
int hasBlocks,
int maxBlocks) |
Modifier and Type | Method and Description |
---|---|
abstract Class<? extends IterablePosting> |
getPostingIteratorClass()
What is the posting iterator class for this structure
|
abstract AbstractPostingOutputStream |
getPostingOutputStream(String filename)
Write a file of postings to the given location
|
abstract Class<? extends PostingIndex<?>> |
getStructureClass()
What is the structure class for this structure
|
abstract String |
getStructureFileExtension()
What is the file extension for this structure.
|
abstract Class<? extends Iterator<IterablePosting>> |
getStructureInputStreamClass()
What is the input stream class for this structure
|
void |
writeIndexProperties(Index index,
String pointerSourceStream)
Update the index's properties for this structure
|
protected int fieldCount
protected String[] fieldNames
protected int hasBlocks
protected int maxBlocks
protected String structureName
public abstract AbstractPostingOutputStream getPostingOutputStream(String filename)
public abstract Class<? extends IterablePosting> getPostingIteratorClass()
public abstract Class<? extends PostingIndex<?>> getStructureClass()
public abstract Class<? extends Iterator<IterablePosting>> getStructureInputStreamClass()
public abstract String getStructureFileExtension()
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow