org.gcube.indexmanagement.featureindexlibrary.fullscan
Class FullScanWriter

java.lang.Object
  extended by org.gcube.indexmanagement.featureindexlibrary.fullscan.FullScanWriter

public class FullScanWriter
extends Object

Writer of the Full scan file

Author:
UoA

Constructor Summary
FullScanWriter(FullScanParams charact)
          Creates a new instance
 
Method Summary
 void close()
          Closes the streams
 void openForUpdate(String file)
          Opens the file for updating
 void removeEntry(String id, String file)
          Removes the entry
 void writeEntry(FeatureVectorElement elem)
          Writes an entry
 void writeHead(String file)
          Writes the head
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FullScanWriter

public FullScanWriter(FullScanParams charact)
Creates a new instance

Parameters:
charact - The head parameters
Method Detail

writeHead

public void writeHead(String file)
               throws Exception
Writes the head

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

removeEntry

public void removeEntry(String id,
                        String file)
                 throws Exception
Removes the entry

Parameters:
id - the id
file - The file
Throws:
Exception - An error

writeEntry

public void writeEntry(FeatureVectorElement elem)
                throws Exception
Writes an entry

Parameters:
elem - The element to write
Throws:
Exception - An error

openForUpdate

public void openForUpdate(String file)
                   throws Exception
Opens the file for updating

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

close

public void close()
           throws Exception
Closes the streams

Throws:
Exception - An error


Copyright © 2012. All Rights Reserved.