public class ReadORC extends AbstractReader
options, output| Constructor and Description |
|---|
ReadORC()
Reads an empty source with default settings.
|
ReadORC(ByteSource source)
Reads the specified data source using default
options.
|
ReadORC(Path path)
Reads the file specified by the path.
|
ReadORC(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.
|
ORCMetadata |
discoverMetadata(FileClient client)
Gets the metadata for the currently configured data source.
|
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, setUseMetadatadisableParallelism, getInputPorts, getOutputPorts, newInput, newInput, newOutput, newRecordInput, newRecordInput, newRecordOutput, notifyErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisableParallelism, getInputPorts, getOutputPortspublic ReadORC()
AbstractReader.setSource(ByteSource)public ReadORC(String pattern)
pattern - a path-matching patternFileClient.matchPaths(String)public ReadORC(Path path)
path - the path to readpublic ReadORC(ByteSource source)
source - the data source to readprotected DataFormat computeFormat(CompositionContext ctx)
AbstractReaderReadSource operator. If an
implementation supports schema discovery, it must be
performed in this method.computeFormat in class AbstractReaderctx - the composition context for the current invocation
of AbstractReader.compose(CompositionContext)public ORCMetadata discoverMetadata(FileClient client)
client - the file clientCopyright © 2021 Actian Corporation. All rights reserved.