Package org.apache.drill.exec.store.mock
Class MockBreakageStorage
java.lang.Object
org.apache.drill.exec.store.AbstractStoragePlugin
org.apache.drill.exec.store.mock.MockStorageEngine
org.apache.drill.exec.store.mock.MockBreakageStorage
- All Implemented Interfaces:
AutoCloseable,SchemaFactory,StoragePlugin
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEach storage plugin requires a unique config class to allow config --> impl lookups to be unique. -
Field Summary
FieldsFields inherited from class org.apache.drill.exec.store.AbstractStoragePlugin
contextFields inherited from interface org.apache.drill.exec.store.SchemaFactory
DEFAULT_WS_NAME -
Constructor Summary
ConstructorsConstructorDescriptionMockBreakageStorage(MockBreakageStorage.MockBreakageStorageEngineConfig configuration, DrillbitContext context, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterSchemas(SchemaConfig schemaConfig, org.apache.calcite.schema.SchemaPlus parent) Register the schemas provided by this SchemaFactory implementation under the given parent schema.voidsetBreakRegister(boolean breakRegister) Methods inherited from class org.apache.drill.exec.store.mock.MockStorageEngine
getConfig, getPhysicalScan, supportsReadMethods inherited from class org.apache.drill.exec.store.AbstractStoragePlugin
close, getContext, getFormatPlugin, getName, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, onDisabled, onEnabled, start, supportsInsert, supportsWrite, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.drill.exec.store.StoragePlugin
getOptimizerRules
-
Field Details
-
registerAttemptCount
public int registerAttemptCount
-
-
Constructor Details
-
MockBreakageStorage
public MockBreakageStorage(MockBreakageStorage.MockBreakageStorageEngineConfig configuration, DrillbitContext context, String name)
-
-
Method Details
-
setBreakRegister
public void setBreakRegister(boolean breakRegister) -
registerSchemas
public void registerSchemas(SchemaConfig schemaConfig, org.apache.calcite.schema.SchemaPlus parent) throws IOException Description copied from interface:SchemaFactoryRegister the schemas provided by this SchemaFactory implementation under the given parent schema.- Specified by:
registerSchemasin interfaceSchemaFactory- Overrides:
registerSchemasin classMockStorageEngine- Parameters:
schemaConfig- Configuration for schema objects.parent- Reference to parent schema.- Throws:
IOException- in case of error during schema registration
-