gov.bnl.star.offline.scheduler.catalog
Class StarCatalog

java.lang.Object
  extended by gov.bnl.star.offline.scheduler.catalog.FileCatalog
      extended by gov.bnl.star.offline.scheduler.catalog.StarCatalog

Deprecated. please see gov.bnl.star.offline.scheduler.dataset.* for replacements. This class is able to execute file catalog queries on the STAR file catalog implementation.

public class StarCatalog
extends FileCatalog

Version:
$Revision: 1.20 $ $Date: 2006/11/21 00:41:31 $
Author:
Gabriele Carcassi

Constructor Summary
StarCatalog()
          Deprecated.  
 
Method Summary
 java.util.Iterator executeQuery(java.lang.String query)
          Deprecated. Executes the query and returns all the results.
 java.util.Iterator executeQuery(java.lang.String query, int nExpectedResults)
          Deprecated. Executes the query with an estimate on the number of results.
 java.util.Iterator executeQuery(java.lang.String query, int start, int limit)
          Deprecated. Executes the query with the star/limit syntax.
protected static java.util.List parseOutput(java.io.Reader in, java.util.List attributeNames)
          Deprecated. Parses the output of a get_file_list.pl command.
 
Methods inherited from class gov.bnl.star.offline.scheduler.catalog.FileCatalog
getCatalog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StarCatalog

public StarCatalog()
Deprecated. 
Method Detail

parseOutput

protected static java.util.List parseOutput(java.io.Reader in,
                                            java.util.List attributeNames)
Deprecated. 
Parses the output of a get_file_list.pl command.

Parameters:
in - the input reader with the command output
Returns:
a list of PhysicalFiles

executeQuery

public java.util.Iterator executeQuery(java.lang.String query)
Deprecated. 
Description copied from class: FileCatalog
Executes the query and returns all the results.

Specified by:
executeQuery in class FileCatalog
Parameters:
query - the query to be executed
Returns:
a PhysicalFile iterator

executeQuery

public java.util.Iterator executeQuery(java.lang.String query,
                                       int nExpectedResults)
Deprecated. 
Description copied from class: FileCatalog
Executes the query with an estimate on the number of results. The catalog should be able to make some optimizations in this case.

Specified by:
executeQuery in class FileCatalog
Parameters:
query - the query to be executed
nExpectedResults - an estimate of input files that are required
Returns:
a PhysicalFile iterator

executeQuery

public java.util.Iterator executeQuery(java.lang.String query,
                                       int start,
                                       int limit)
Deprecated. 
Description copied from class: FileCatalog
Executes the query with the star/limit syntax.

Specified by:
executeQuery in class FileCatalog
Parameters:
query - the query to be executed
start - the offset from which start to read
limit - the number of records returned
Returns:
a PhysicalFile iterator


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