|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.sparql.benchmarking.operations.OperationMixImpl
public class OperationMixImpl
A basic implementation of an operation mix
Field Summary | |
---|---|
protected static org.apache.log4j.Logger |
logger
|
Constructor Summary | |
---|---|
OperationMixImpl(Collection<Operation> ops)
Creates a new operation mix |
Method Summary | |
---|---|
Operation |
getOperation(int id)
Gets the operation with the specified ID |
Iterator<Operation> |
getOperations()
Gets the operations in this mix |
OperationMixStats |
getStats()
Gets the statistics for the operation mix |
int |
size()
Gets the number of operations in the operation mix |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger logger
Constructor Detail |
---|
public OperationMixImpl(Collection<Operation> ops)
ops
- OperationsMethod Detail |
---|
public Iterator<Operation> getOperations()
OperationMix
getOperations
in interface OperationMix
public OperationMixStats getStats()
OperationMix
getStats
in interface OperationMix
public Operation getOperation(int id)
OperationMix
Generally it should be assumed that operation IDs are allocated using a
zero based index so 0 would obtain the first operation in the mix while
size()-1
would obtain the last operation in the mix. All the
built-in implementations of this interface follow this rule.
getOperation
in interface OperationMix
id
- ID
public int size()
OperationMix
size
in interface OperationMix
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |