public interface IAdapterFactory extends Serializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
IAdapterFactory.SupportedOperation |
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_TYPE_NAME |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Map<String,String> configuration,
ARecordType outputType) |
IDatasourceAdapter |
createAdapter(org.apache.hyracks.api.context.IHyracksTaskContext ctx,
int partition)
Creates an instance of IDatasourceAdapter.
|
ARecordType |
getAdapterOutputType()
Gets the record type associated with the output of the adapter
|
String |
getName()
Returns the display name corresponding to the Adapter type that is created by the factory.
|
org.apache.hyracks.algebricks.common.constraints.AlgebricksPartitionConstraint |
getPartitionConstraint()
Gets a list of partition constraints.
|
IAdapterFactory.SupportedOperation |
getSupportedOperations()
Returns the type of adapter indicating if the adapter can be used for
reading from an external data source or writing to an external data
source or can be used for both purposes.
|
static final String KEY_TYPE_NAME
IAdapterFactory.SupportedOperation getSupportedOperations()
IAdapterFactory.SupportedOperationString getName()
org.apache.hyracks.algebricks.common.constraints.AlgebricksPartitionConstraint getPartitionConstraint()
throws Exception
ExceptionIDatasourceAdapter createAdapter(org.apache.hyracks.api.context.IHyracksTaskContext ctx, int partition) throws Exception
HyracksTaskContext - partition - Exceptionvoid configure(Map<String,String> configuration, ARecordType outputType) throws Exception
configuration - outputType - ExceptionARecordType getAdapterOutputType()
Copyright © 2016 The Apache Software Foundation. All rights reserved.