public class FieldExtractingAdapterFactory extends Object implements IAdapterFactory
IAdapterFactory.SupportedOperationKEY_TYPE_NAME| Constructor and Description |
|---|
FieldExtractingAdapterFactory(IAdapterFactory wrappedAdapterFactory,
org.apache.hyracks.api.dataflow.value.RecordDescriptor inRecDesc,
org.apache.hyracks.api.dataflow.value.RecordDescriptor outRecDesc,
int[][] extractFields,
ARecordType rType) |
| 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.
|
public FieldExtractingAdapterFactory(IAdapterFactory wrappedAdapterFactory, org.apache.hyracks.api.dataflow.value.RecordDescriptor inRecDesc, org.apache.hyracks.api.dataflow.value.RecordDescriptor outRecDesc, int[][] extractFields, ARecordType rType)
public IAdapterFactory.SupportedOperation getSupportedOperations()
IAdapterFactorygetSupportedOperations in interface IAdapterFactoryIAdapterFactory.SupportedOperationpublic String getName()
IAdapterFactorygetName in interface IAdapterFactorypublic org.apache.hyracks.algebricks.common.constraints.AlgebricksPartitionConstraint getPartitionConstraint()
throws Exception
IAdapterFactorygetPartitionConstraint in interface IAdapterFactoryExceptionpublic IDatasourceAdapter createAdapter(org.apache.hyracks.api.context.IHyracksTaskContext ctx, int partition) throws Exception
IAdapterFactorycreateAdapter in interface IAdapterFactoryExceptionpublic void configure(Map<String,String> configuration, ARecordType outputType) throws Exception
configure in interface IAdapterFactoryExceptionpublic ARecordType getAdapterOutputType()
IAdapterFactorygetAdapterOutputType in interface IAdapterFactoryCopyright © 2016 The Apache Software Foundation. All rights reserved.