com.bigdata.rdf.sparql.ast
Class EmptySolutionSetStats

java.lang.Object
  extended by com.bigdata.rdf.sparql.ast.EmptySolutionSetStats
All Implemented Interfaces:
ISolutionSetStats

public class EmptySolutionSetStats
extends Object
implements ISolutionSetStats

An object which mocks the statistics for a single empty solution set. This is used to make some of the unit tests happy which were written before the ISolutionSetStats interface was introduced.

Version:
$Id: EmptySolutionSetStats.java 6293 2012-04-16 15:07:46Z thompsonbry $
Author:
Bryan Thompson

Field Summary
static ISolutionSetStats INSTANCE
           
 
Method Summary
 Set<IVariable<?>> getAlwaysBound()
          Return the subset of the variables which are bound in all solutions.
 Map<IVariable<?>,IConstant<?>> getConstants()
          The set of variables which are effective constants (they are bound in every solution and always to the same value) together with their constant bindings.
 Set<IVariable<?>> getMaterialized()
          Return the subset of the variables which are materialized in all solutions in which they appear (the variables do not have to be bound in every solution, but if they are bound then their IVCache association is set.
 Set<IVariable<?>> getNotAlwaysBound()
          Return the subset of the variables which are NOT bound in all solutions.
 long getSolutionSetSize()
          Return the #of solutions.
 Set<IVariable<?>> getUsedVars()
          Return the set of variables which in at least one solution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final ISolutionSetStats INSTANCE
Method Detail

getSolutionSetSize

public long getSolutionSetSize()
Description copied from interface: ISolutionSetStats
Return the #of solutions.

Specified by:
getSolutionSetSize in interface ISolutionSetStats

getUsedVars

public Set<IVariable<?>> getUsedVars()
Description copied from interface: ISolutionSetStats
Return the set of variables which in at least one solution.

Specified by:
getUsedVars in interface ISolutionSetStats

getAlwaysBound

public Set<IVariable<?>> getAlwaysBound()
Description copied from interface: ISolutionSetStats
Return the subset of the variables which are bound in all solutions.

Specified by:
getAlwaysBound in interface ISolutionSetStats

getNotAlwaysBound

public Set<IVariable<?>> getNotAlwaysBound()
Description copied from interface: ISolutionSetStats
Return the subset of the variables which are NOT bound in all solutions.

Specified by:
getNotAlwaysBound in interface ISolutionSetStats

getMaterialized

public Set<IVariable<?>> getMaterialized()
Description copied from interface: ISolutionSetStats
Return the subset of the variables which are materialized in all solutions in which they appear (the variables do not have to be bound in every solution, but if they are bound then their IVCache association is set.

Specified by:
getMaterialized in interface ISolutionSetStats

getConstants

public Map<IVariable<?>,IConstant<?>> getConstants()
Description copied from interface: ISolutionSetStats
The set of variables which are effective constants (they are bound in every solution and always to the same value) together with their constant bindings.

Specified by:
getConstants in interface ISolutionSetStats
Returns:
The set of variables which are effective constants.


Copyright © 2006-2012 SYSTAP, LLC. All Rights Reserved.