org.basex.build
Class DiskBuilder

java.lang.Object
  extended by org.basex.core.Progress
      extended by org.basex.build.Builder
          extended by org.basex.build.DiskBuilder

public final class DiskBuilder
extends Builder

This class creates a disk based database instance. The storage layout is described in the Data class.

Author:
Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.build.Builder
meta, parser
 
Constructor Summary
DiskBuilder(Parser p)
          Constructor.
 
Method Summary
 void abort()
          Aborts a failed or interrupted progress.
 DiskData build(String db)
          Builds the database by running the specified parser.
 void close()
          Closes open references.
 
Methods inherited from class org.basex.build.Builder
build, comment, det, emptyElem, encoding, endDoc, endElem, pi, prog, startDoc, startElem, startNS, text, tit
 
Methods inherited from class org.basex.core.Progress
checkStop, detail, progress, progress, stop, title
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiskBuilder

public DiskBuilder(Parser p)
Constructor.

Parameters:
p - parser
Method Detail

build

public DiskData build(String db)
               throws IOException
Description copied from class: Builder
Builds the database by running the specified parser.

Specified by:
build in class Builder
Parameters:
db - name of database
Returns:
data database instance
Throws:
IOException - I/O exception

abort

public void abort()
Description copied from class: Progress
Aborts a failed or interrupted progress.

Overrides:
abort in class Progress

close

public void close()
           throws IOException
Description copied from class: Builder
Closes open references.

Specified by:
close in class Builder
Throws:
IOException - I/O exception