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

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.TsvMixLoader
All Implemented Interfaces:
OperationMixLoader

public class TsvMixLoader
extends AbstractLineBasedMixLoader

An operation mix loader that provides support for the new tab separated mix file format introduced in the 2.x releases

Author:
rvesse

Constructor Summary
TsvMixLoader()
           
 
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

TsvMixLoader

public TsvMixLoader()
Method Detail

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

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


Copyright © 2014. All Rights Reserved.