Skip navigation links


com.essbase.eas.utils
Class RAFIndexDataFile

java.lang.Object
  extended by com.essbase.eas.utils.RAFIndexDataFile


public class RAFIndexDataFile
extends java.lang.Object

defines a member attribute tree.

Since:
6.5.0
Version:
7.1.0
Author:
Sree Menon

Constructor Summary
RAFIndexDataFile()
           
RAFIndexDataFile(java.io.File dataFile, java.io.File indexFile)
           

 

Method Summary
 void addDataEntry()
          Updates the index file after adding data to the data file
 void close()
           
 boolean createFile()
           
 void deleteFile()
           
 void dispose()
           
 java.io.RandomAccessFile getDataFile()
          Gets the data file
 long getDataLength()
           
 long getEntries()
          get entries in the file
 java.io.File[] getFiles()
           
 long getIndexCount()
           
 boolean openFile()
           
 void seek(long index)
          Seek to the entry for reading data
 void seekToEnd()
          Seek to the end for writing data
 void setFile(java.io.File dataFile, java.io.File indexFile)
           
 void updateIndexCount()
           
 void useShortIndexSize()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

RAFIndexDataFile

public RAFIndexDataFile()

RAFIndexDataFile

public RAFIndexDataFile(java.io.File dataFile,
                        java.io.File indexFile)

Method Detail

setFile

public void setFile(java.io.File dataFile,
                    java.io.File indexFile)

createFile

public boolean createFile()
                   throws java.io.IOException
Throws:
java.io.IOException

openFile

public boolean openFile()
                 throws java.io.IOException
Throws:
java.io.IOException

useShortIndexSize

public void useShortIndexSize()

getIndexCount

public long getIndexCount()

getDataLength

public long getDataLength()

getEntries

public long getEntries()
get entries in the file
Returns:

seek

public void seek(long index)
          throws java.io.IOException
Seek to the entry for reading data
Parameters:
index -
Throws:
java.io.IOException

seekToEnd

public void seekToEnd()
               throws java.io.IOException
Seek to the end for writing data
Throws:
java.io.IOException

getDataFile

public java.io.RandomAccessFile getDataFile()
Gets the data file
Returns:

addDataEntry

public void addDataEntry()
                  throws java.io.IOException
Updates the index file after adding data to the data file
Throws:
java.io.IOException

updateIndexCount

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

getFiles

public java.io.File[] getFiles()

close

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

deleteFile

public void deleteFile()

dispose

public void dispose()

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.