public class ReadMDF extends AbstractReader
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 |
getDataChannel()
Sets the data channel to read.
|
long |
getRecordId()
Gets the record ids to read within the specified data channel.
|
RecordTextSchema<?> |
getRecordSchema(FileClient fileClient) |
MDFUtil.MDFVersion |
getVersion()
Sets the expected MDF version
|
void |
setConvertRaw(boolean convertRaw)
Set whether raw values should have any associated conversion rules applied.
|
void |
setDataChannel(int dataChannel)
Gets the data channel to read.
|
void |
setRecordId(long recordId)
Sets the record ids to read within the specified data channel.
|
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 getDataChannel()
public void setDataChannel(int dataChannel)
dataChannel
- the data channel 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 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.