gov.bnl.star.offline.scheduler.dataset
Class Dataset

java.lang.Object
  extended by gov.bnl.star.offline.scheduler.dataset.Dataset

public class Dataset
extends java.lang.Object

This class represents the dataset. Through this class the .dataset file on hard-disk can be accessed and manipulate.

Author:
Levente B. Hajdu

Field Summary
static org.apache.log4j.Logger log
           
 
Constructor Summary
Dataset()
          !!! This constructor should not be used, use Dataset(String datasetName) !!!
Dataset(java.lang.String datasetName)
          Creates a new instance of Dataset
 
Method Summary
 void closeBuffer()
          Close the file srteam to the buffer file
 void decrementSize()
           
 void deleteBuffer()
           
 void deleteDataset()
           
 java.lang.String getDatasetFileBufferName()
           
 java.lang.String getDatasetName()
           
 int getDatasetSize()
           
 EntryParser getEntryParser()
           
 java.lang.String getSplitRegX()
          gets the regX that matchs a split but notting else
 java.lang.String getSplitString()
          gets the split string
 void incrementSize()
           
 void openBuffer()
          Open the file srteam to write to the buffer file
 void setDatasetName(java.lang.String datasetName)
           
 void setDatasetSize(int datasetSize)
           
 void setEntryParser(EntryParser entryParser)
           
 void setSplitRegX(java.lang.String splitRegX)
          sets the regX that matchs a split but notting else
 void setSplitString(java.lang.String splitString)
          sets the split string
 int subsetIndexSize()
          Returns the number of subsets in the list.
 void swap_buffer_dataset_with_dataset()
          Ater a data set has been copyed from "bla.dataset" to "bla.data~" this function will delete "bla.dataset" and rename "bla.dataset~" to "bla.dataset".
 void writeToBuffer(java.lang.String line)
          Open file file stream if it is not already open.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static org.apache.log4j.Logger log
Constructor Detail

Dataset

public Dataset(java.lang.String datasetName)
Creates a new instance of Dataset


Dataset

public Dataset()
!!! This constructor should not be used, use Dataset(String datasetName) !!!

Method Detail

setDatasetName

public void setDatasetName(java.lang.String datasetName)

getDatasetName

public java.lang.String getDatasetName()

getDatasetFileBufferName

public java.lang.String getDatasetFileBufferName()

incrementSize

public void incrementSize()

decrementSize

public void decrementSize()

getDatasetSize

public int getDatasetSize()

setDatasetSize

public void setDatasetSize(int datasetSize)

swap_buffer_dataset_with_dataset

public void swap_buffer_dataset_with_dataset()
Ater a data set has been copyed from "bla.dataset" to "bla.data~" this function will delete "bla.dataset" and rename "bla.dataset~" to "bla.dataset". note: Fill in "bla" for the the name of the dataset


deleteDataset

public void deleteDataset()

deleteBuffer

public void deleteBuffer()

closeBuffer

public void closeBuffer()
Close the file srteam to the buffer file


openBuffer

public void openBuffer()
Open the file srteam to write to the buffer file


writeToBuffer

public void writeToBuffer(java.lang.String line)
Open file file stream if it is not already open. Print a line to the buffer file


getSplitRegX

public java.lang.String getSplitRegX()
gets the regX that matchs a split but notting else


setSplitRegX

public void setSplitRegX(java.lang.String splitRegX)
sets the regX that matchs a split but notting else


getSplitString

public java.lang.String getSplitString()
gets the split string


setSplitString

public void setSplitString(java.lang.String splitString)
sets the split string


setEntryParser

public void setEntryParser(EntryParser entryParser)

getEntryParser

public EntryParser getEntryParser()

subsetIndexSize

public int subsetIndexSize()
Returns the number of subsets in the list.



Copyright © 2002-2004 STAR collaboration - Brookhaven National Laboratory. All Rights Reserved.