Package com.ocient.util
Class MockQueryRegistry
java.lang.Object
com.ocient.util.MockQueryRegistry
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classExternalized query configuration.static classExternalized fetch data request configuration.static classRepresents an externally injected error.static classExternalized query optimization and stream configuration.static classRepresents a redirect location. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a result set provider given the sql text.voidRegisters a SQL query with an associatedMockOcientCluster.IdempotentResultSetProviderto ensure performant, replayable operations.
-
Constructor Details
-
MockQueryRegistry
public MockQueryRegistry()
-
-
Method Details
-
registerResultSetProvider
public void registerResultSetProvider(String sql, MockOcientCluster.IdempotentResultSetProvider provider) Registers a SQL query with an associatedMockOcientCluster.IdempotentResultSetProviderto ensure performant, replayable operations. -
getResultSetProvider
public MockOcientCluster.IdempotentResultSetProvider getResultSetProvider(String sql) throws IOException Returns a result set provider given the sql text. Returns null if no provider is found.- Throws:
IOException
-