net.sf.sparql.benchmarking.loader.mix
Class ClassicQueryMixLoader

java.lang.Object
  extended by net.sf.sparql.benchmarking.loader.AbstractOperationMixLoader
      extended by net.sf.sparql.benchmarking.loader.AbstractLineBasedMixLoader
          extended by net.sf.sparql.benchmarking.loader.mix.ClassicQueryMixLoader
All Implemented Interfaces:
OperationMixLoader

public class ClassicQueryMixLoader
extends AbstractLineBasedMixLoader

A loader for the text based query mix format from the 1.x releases of the API

Author:
rvesse

Constructor Summary
ClassicQueryMixLoader()
           
 
Method Summary
 String getPreferredExtension()
          Gets the file extension without the leading . that this loader prefers to use for its mix files
protected  Operation parseLine(File baseDir, String line)
          Parses a line into an operation
 
Methods inherited from class net.sf.sparql.benchmarking.loader.AbstractLineBasedMixLoader
parseFile
 
Methods inherited from class net.sf.sparql.benchmarking.loader.AbstractOperationMixLoader
load, resolveFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.sparql.benchmarking.loader.OperationMixLoader
load
 

Constructor Detail

ClassicQueryMixLoader

public ClassicQueryMixLoader()
Method Detail

parseLine

protected Operation parseLine(File baseDir,
                              String line)
                       throws IOException
Description copied from class: AbstractLineBasedMixLoader
Parses a line into an operation

Specified by:
parseLine in class AbstractLineBasedMixLoader
Parameters:
baseDir - Base directory for resolving relative paths against where necessary
line - Line to parse
Returns:
Operation
Throws:
IOException - Thrown if the line does not represent a valid operation

getPreferredExtension

public String getPreferredExtension()
Description copied from interface: OperationMixLoader
Gets the file extension without the leading . that this loader prefers to use for its mix files

This is the preferred extension used in certain circumstances such as when registering using OperationMixLoaderRegistry.addLoader(OperationMixLoader) but users may register a mix loader with any extension they want.

Returns:
Preferred extension


Copyright © 2014. All Rights Reserved.