org.teiid.internal.core.index
Class FileListBlock

java.lang.Object
  extended by org.teiid.internal.core.index.Block
      extended by org.teiid.internal.core.index.FileListBlock

public class FileListBlock
extends Block


Field Summary
protected  int offset
           
protected  java.lang.String[] paths
           
protected  java.lang.String prevPath
           
 
Fields inherited from class org.teiid.internal.core.index.Block
blockSize, field
 
Constructor Summary
FileListBlock(int blockSize)
           
 
Method Summary
 boolean addFile(IndexedFile indexedFile)
          add the name of the indexedfile to the buffr of the field.
 void clear()
          Empties the block.
 void flush()
          Flushes the block
 IndexedFile getFile(int fileNum)
           
protected  java.lang.String[] getPaths()
          Creates a vector of paths reading the buffer of the field.
 boolean isEmpty()
           
 void reset()
           
 
Methods inherited from class org.teiid.internal.core.index.Block
read, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

offset

protected int offset

prevPath

protected java.lang.String prevPath

paths

protected java.lang.String[] paths
Constructor Detail

FileListBlock

public FileListBlock(int blockSize)
Method Detail

addFile

public boolean addFile(IndexedFile indexedFile)
add the name of the indexedfile to the buffr of the field. The name is not the entire name of the indexedfile, but the difference between its name and the name of the previous indexedfile ...


clear

public void clear()
Description copied from class: Block
Empties the block.

Overrides:
clear in class Block

flush

public void flush()
Description copied from class: Block
Flushes the block

Overrides:
flush in class Block

getFile

public IndexedFile getFile(int fileNum)
                    throws java.io.IOException
Throws:
java.io.IOException

getPaths

protected java.lang.String[] getPaths()
                               throws java.io.IOException
Creates a vector of paths reading the buffer of the field.

Throws:
java.io.IOException

isEmpty

public boolean isEmpty()

reset

public void reset()


Copyright © 2011. All Rights Reserved.