public class ReadMDF extends AbstractReader
Modifier and Type | Class and Description |
---|---|
static class |
ReadMDF.ExtractionMode |
options, output
Constructor and Description |
---|
ReadMDF()
Reads an empty source with default settings.
|
ReadMDF(ByteSource source)
Reads the specified data source using default
options.
|
ReadMDF(Path path)
Reads the file specified by the path.
|
ReadMDF(String pattern)
Reads all paths matching the specified pattern
using default options.
|
Modifier and Type | Method and Description |
---|---|
protected DataFormat |
computeFormat(CompositionContext ctx)
Determines the data format for the source.
|
boolean |
getConvertRaw()
Get whether the raw values should have any associated conversion rules applied.
|
int |
getDataGroup()
Sets the data group to read.
|
long |
getRecordId()
Gets the record ids to read within the specified data channel.
|
RecordTextSchema<?> |
getRecordSchema(FileClient fileClient) |
ReadMDF.ExtractionMode |
getRunMode()
Gets the mode that decides what will be extracted from the MDF file.
|
MDFUtil.MDFVersion |
getVersion()
Sets the expected MDF version
|
void |
setConvertRaw(boolean convertRaw)
Set whether raw values should have any associated conversion rules applied.
|
void |
setDataGroup(int dataGroup)
Gets the data group to read.
|
void |
setRecordId(long recordId)
Sets the record ids to read within the specified data channel.
|
void |
setRunMode(ReadMDF.ExtractionMode runMode)
Sets the mode that will decide what will be extracted from the MDF file.
|
void |
setVersion(MDFUtil.MDFVersion version)
Get the expected MDF version
|
compose, getExtraFieldAction, getFieldErrorAction, getFieldLengthThreshold, getIncludeSourceInfo, getMissingFieldAction, getOutput, getParseOptions, getPessimisticSplitting, getReadBuffer, getReadOnClient, getRecordWarningThreshold, getSelectedFields, getSource, getSplitOptions, getUseMetadata, setExtraFieldAction, setFieldErrorAction, setFieldLengthThreshold, setIncludeSourceInfo, setMissingFieldAction, setParseErrorAction, setParseOptions, setPessimisticSplitting, setReadBuffer, setReadOnClient, setRecordWarningThreshold, setSelectedFields, setSelectedFields, setSource, setSource, setSource, setSplitOptions, setUseMetadata
disableParallelism, getInputPorts, getOutputPorts, newInput, newInput, newOutput, newRecordInput, newRecordInput, newRecordOutput, notifyError
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
disableParallelism, getInputPorts, getOutputPorts
public ReadMDF()
AbstractReader.setSource(ByteSource)
public ReadMDF(String pattern)
pattern
- a path-matching patternFileClient.matchPaths(String)
public ReadMDF(Path path)
path
- the path to readpublic ReadMDF(ByteSource source)
source
- the data source to readpublic MDFUtil.MDFVersion getVersion()
public void setVersion(MDFUtil.MDFVersion version)
version
- the version of the MDF sourcepublic int getDataGroup()
public void setDataGroup(int dataGroup)
dataGroup
- the data group to readpublic long getRecordId()
public void setRecordId(long recordId)
recordId
- the record id to readpublic boolean getConvertRaw()
public void setConvertRaw(boolean convertRaw)
convertRaw
- whether to apply conversion rulespublic ReadMDF.ExtractionMode getRunMode()
public void setRunMode(ReadMDF.ExtractionMode runMode)
runMode
- the mode that will be runpublic RecordTextSchema<?> getRecordSchema(FileClient fileClient) throws IOException
IOException
protected DataFormat computeFormat(CompositionContext ctx)
AbstractReader
ReadSource
operator. If an
implementation supports schema discovery, it must be
performed in this method.computeFormat
in class AbstractReader
ctx
- the composition context for the current invocation
of AbstractReader.compose(CompositionContext)
Copyright © 2019 Actian Corporation. All rights reserved.