org.galagosearch.core.index
Class PositionIndexWriter.PositionsList

java.lang.Object
  extended by org.galagosearch.core.index.PositionIndexWriter.PositionsList
All Implemented Interfaces:
IndexElement
Enclosing class:
PositionIndexWriter

public class PositionIndexWriter.PositionsList
extends java.lang.Object
implements IndexElement


Field Summary
 BackedCompressedByteBuffer counts
           
 BackedCompressedByteBuffer documents
           
 BackedCompressedByteBuffer header
           
 BackedCompressedByteBuffer positions
           
 byte[] word
           
 
Constructor Summary
PositionIndexWriter.PositionsList()
           
 
Method Summary
 void addDocument(long documentID)
           
 void addPosition(int position)
           
 void close()
           
 long dataLength()
           
 byte[] key()
           
 void setWord(byte[] word)
           
 void write(java.io.OutputStream output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

word

public byte[] word

header

public BackedCompressedByteBuffer header

documents

public BackedCompressedByteBuffer documents

counts

public BackedCompressedByteBuffer counts

positions

public BackedCompressedByteBuffer positions
Constructor Detail

PositionIndexWriter.PositionsList

public PositionIndexWriter.PositionsList()
Method Detail

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

dataLength

public long dataLength()
Specified by:
dataLength in interface IndexElement

write

public void write(java.io.OutputStream output)
           throws java.io.IOException
Specified by:
write in interface IndexElement
Throws:
java.io.IOException

key

public byte[] key()
Specified by:
key in interface IndexElement

setWord

public void setWord(byte[] word)

addDocument

public void addDocument(long documentID)
                 throws java.io.IOException
Throws:
java.io.IOException

addPosition

public void addPosition(int position)
                 throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2009. All Rights Reserved.