Class Partitioning

java.lang.Object
com.semedy.reasoner.api.edb.Partitioning

public class Partitioning extends Object
partitioning of relations
Author:
angele
  • Constructor Details

  • Method Details

    • clear

      public void clear()
      clear relations and writers
    • clearWriters

      public void clearWriters()
      clear writers
    • addRelation

      public void addRelation(Relation R)
      add a relation to the partitions
      Parameters:
      R -
    • search4Relation

      public Relation search4Relation(TupleBuffer tuple, boolean create) throws IOException, EDBException
      search for corresponding relation
      Parameters:
      tuple -
      create -
      Returns:
      Throws:
      IOException
      EDBException
    • addTuple

      public boolean addTuple(TupleBuffer tuple, boolean add) throws IOException, EDBException
      add or delete a tuple from the partition relation
      Parameters:
      tuple -
      add -
      Returns:
      Throws:
      IOException
      EDBException
    • writeTuple

      public void writeTuple(long[] tuple) throws IOException
      write tuple to output file in temp directory
      Parameters:
      tuple -
      Throws:
      IOException
    • getResultFiles

      public List<String> getResultFiles()
      return the result files created by writing tuples to partition
      Returns:
    • close

      public void close() throws IOException
      close output files
      Throws:
      IOException