org.gcube.indexmanagement.featureindexlibrary.vafile.io
Class ApproximationFileRandomAccess

java.lang.Object
  extended by org.gcube.indexmanagement.featureindexlibrary.vafile.io.ApproximationFileRandomAccess

public class ApproximationFileRandomAccess
extends Object

Random access helper

Author:
diligent

Constructor Summary
ApproximationFileRandomAccess(VAFileParams params)
          Creates a new instance
 
Method Summary
 void close()
          Closes
 void moveTo(long recNum)
          Moves to the specified entry
 void open()
          Opens
 ApproximationFileEntry read()
          Reads an entry
 void write(ApproximationFileEntry entry)
          Writer the specified entry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApproximationFileRandomAccess

public ApproximationFileRandomAccess(VAFileParams params)
                              throws Exception
Creates a new instance

Parameters:
params - The VAFile header params
Throws:
Exception - An error
Method Detail

open

public void open()
          throws Exception
Opens

Throws:
Exception - An error

moveTo

public void moveTo(long recNum)
            throws Exception
Moves to the specified entry

Parameters:
recNum - The number of entry
Throws:
Exception - An error

write

public void write(ApproximationFileEntry entry)
           throws Exception
Writer the specified entry

Parameters:
entry - The entry
Throws:
Exception - An error

read

public ApproximationFileEntry read()
Reads an entry

Returns:
The entry

close

public void close()
           throws Exception
Closes

Throws:
Exception - An error


Copyright © 2013. All Rights Reserved.