public void writeIndexProperties(Index index, String pointerSourceStream)
{
index.addIndexStructure(
this.structureName,
this.getStructureClass().getName(),
"org.terrier.structures.IndexOnDisk,java.lang.String,java.lang.Class",
"index,structureName,"+
this.getPostingIteratorClass().getName() );
index.addIndexStructureInputStream(
this.structureName,
this.getStructureInputStreamClass().getName(),
"org.terrier.structures.IndexOnDisk,java.lang.String,java.util.Iterator,java.lang.Class",
"index,structureName,"+pointerSourceStream+","+
this.getPostingIteratorClass().getName() );
index.setIndexProperty("index."+this.structureName+".fields.count", String.valueOf(this.fieldCount));
index.setIndexProperty("index."+this.structureName+".fields.names", ArrayUtils.join(this.fieldNames, ","));
index.setIndexProperty("index."+this.structureName+".blocks", String.valueOf(this.hasBlocks));
index.setIndexProperty("index."+this.structureName+".blocks.max", String.valueOf(this.maxBlocks));
}
}