net.sf.sparql.benchmarking.loader
Class InMemoryOperations

java.lang.Object
  extended by net.sf.sparql.benchmarking.loader.InMemoryOperations

public class InMemoryOperations
extends Object

Static helper class for registering the in-memory operations in place of the standard remote operations

Author:
rvesse

Method Summary
static void restoreRemoteOperations()
          Restores the registration of the remote operations that may have been overridden by previous calls to useInMemoryOperations()
static void useInMemoryOperations()
          Registers the in-memory versions of various operations in place of the normal remote operations with the OperationLoaderRegistry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

useInMemoryOperations

public static void useInMemoryOperations()
Registers the in-memory versions of various operations in place of the normal remote operations with the OperationLoaderRegistry. This allows for mixes written for remote systems to also be run against local systems without having to edit the mix.

Note that even without having called this method you can still use the in-memory operations directly in your mix by adding the mem- prefix to the standard operation names e.g. mem-query instead of query.

You can call restoreRemoteOperations() to restore the normal operation mappings. This is usually preferable to calling OperationLoaderRegistry.resetLoaders() since it will only restore the built-in remote operations and not remove any custom operations you may have registered.


restoreRemoteOperations

public static void restoreRemoteOperations()
Restores the registration of the remote operations that may have been overridden by previous calls to useInMemoryOperations()



Copyright © 2014. All Rights Reserved.