net.sf.sparql.benchmarking.loader
Class AbstractLineBasedMixLoader
java.lang.Object
net.sf.sparql.benchmarking.loader.AbstractOperationMixLoader
net.sf.sparql.benchmarking.loader.AbstractLineBasedMixLoader
- All Implemented Interfaces:
- OperationMixLoader
- Direct Known Subclasses:
- ClassicQueryMixLoader, TsvMixLoader
public abstract class AbstractLineBasedMixLoader
- extends AbstractOperationMixLoader
- implements OperationMixLoader
Abstract implementation of operation mix loader that uses a line based input
format. The parsing of individual lines is left to derived implementations.
- Author:
- rvesse
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractLineBasedMixLoader
public AbstractLineBasedMixLoader()
parseFile
protected List<Operation> parseFile(File file)
throws FileNotFoundException,
IOException
- Description copied from class:
AbstractOperationMixLoader
- Parses a file to produce an operation mix
- Specified by:
parseFile
in class AbstractOperationMixLoader
- Parameters:
file
- File
- Returns:
- Operation Mix
- Throws:
FileNotFoundException
- Thrown if the mix file cannot be found
IOException
- Thrown if there is a problem accessing the mix file or
parsing its contents
parseLine
protected abstract Operation parseLine(File baseDir,
String line)
throws IOException
- Parses a line into an operation
- Parameters:
baseDir
- Base directory for resolving relative paths against where
necessaryline
- Line to parse
- Returns:
- Operation
- Throws:
IOException
- Thrown if the line does not represent a valid operation
Copyright © 2014. All Rights Reserved.