public class HiveSource extends AbstractFileSource<RowData,HiveSourceSplit> implements ResultTypeQueryable<RowData>
Modifier and Type | Class and Description |
---|---|
static class |
HiveSource.HiveSourceBuilder
Builder to build HiveSource instances.
|
AbstractFileSource.AbstractFileSourceBuilder<T,SplitT extends FileSourceSplit,SELF extends AbstractFileSource.AbstractFileSourceBuilder<T,SplitT,SELF>>
Modifier and Type | Method and Description |
---|---|
SplitEnumerator<HiveSourceSplit,PendingSplitsCheckpoint<HiveSourceSplit>> |
createEnumerator(SplitEnumeratorContext<HiveSourceSplit> enumContext)
Creates a new SplitEnumerator for this source, starting a new input.
|
SimpleVersionedSerializer<PendingSplitsCheckpoint<HiveSourceSplit>> |
getEnumeratorCheckpointSerializer()
Creates the serializer for the
SplitEnumerator checkpoint. |
SimpleVersionedSerializer<HiveSourceSplit> |
getSplitSerializer()
Creates a serializer for the source splits.
|
SplitEnumerator<HiveSourceSplit,PendingSplitsCheckpoint<HiveSourceSplit>> |
restoreEnumerator(SplitEnumeratorContext<HiveSourceSplit> enumContext,
PendingSplitsCheckpoint<HiveSourceSplit> checkpoint)
Restores an enumerator from a checkpoint.
|
createReader, getAssignerFactory, getBoundedness, getContinuousEnumerationSettings, getProducedType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProducedType
public SimpleVersionedSerializer<HiveSourceSplit> getSplitSerializer()
Source
getSplitSerializer
in interface Source<RowData,HiveSourceSplit,PendingSplitsCheckpoint<HiveSourceSplit>>
getSplitSerializer
in class AbstractFileSource<RowData,HiveSourceSplit>
public SimpleVersionedSerializer<PendingSplitsCheckpoint<HiveSourceSplit>> getEnumeratorCheckpointSerializer()
Source
SplitEnumerator
checkpoint. The serializer is used for
the result of the SplitEnumerator.snapshotState()
method.getEnumeratorCheckpointSerializer
in interface Source<RowData,HiveSourceSplit,PendingSplitsCheckpoint<HiveSourceSplit>>
getEnumeratorCheckpointSerializer
in class AbstractFileSource<RowData,HiveSourceSplit>
public SplitEnumerator<HiveSourceSplit,PendingSplitsCheckpoint<HiveSourceSplit>> createEnumerator(SplitEnumeratorContext<HiveSourceSplit> enumContext)
Source
createEnumerator
in interface Source<RowData,HiveSourceSplit,PendingSplitsCheckpoint<HiveSourceSplit>>
createEnumerator
in class AbstractFileSource<RowData,HiveSourceSplit>
enumContext
- The context
for the split enumerator.public SplitEnumerator<HiveSourceSplit,PendingSplitsCheckpoint<HiveSourceSplit>> restoreEnumerator(SplitEnumeratorContext<HiveSourceSplit> enumContext, PendingSplitsCheckpoint<HiveSourceSplit> checkpoint)
Source
restoreEnumerator
in interface Source<RowData,HiveSourceSplit,PendingSplitsCheckpoint<HiveSourceSplit>>
restoreEnumerator
in class AbstractFileSource<RowData,HiveSourceSplit>
enumContext
- The context
for the restored split
enumerator.checkpoint
- The checkpoint to restore the SplitEnumerator from.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.