OUT
- type of inputClasspublic class CassandraPojoInputFormat<OUT> extends CassandraInputFormatBase<OUT>
cluster, logger, query, session
Constructor and Description |
---|
CassandraPojoInputFormat(String query,
ClusterBuilder builder,
Class<OUT> inputClass) |
CassandraPojoInputFormat(String query,
ClusterBuilder builder,
Class<OUT> inputClass,
MapperOptions mapperOptions) |
Modifier and Type | Method and Description |
---|---|
OUT |
nextRecord(OUT reuse)
Reads the next record from the input.
|
void |
open(InputSplit split)
Opens a parallel instance of the input format to work on a split.
|
boolean |
reachedEnd()
Method used to check if the end of the input is reached.
|
close, configure, createInputSplits, getInputSplitAssigner, getStatistics
closeInputFormat, getRuntimeContext, openInputFormat, setRuntimeContext
public CassandraPojoInputFormat(String query, ClusterBuilder builder, Class<OUT> inputClass)
public CassandraPojoInputFormat(String query, ClusterBuilder builder, Class<OUT> inputClass, MapperOptions mapperOptions)
public void open(InputSplit split)
InputFormat
When this method is called, the input format it guaranteed to be configured.
split
- The split to be opened.public boolean reachedEnd()
InputFormat
When this method is called, the input format it guaranteed to be opened.
public OUT nextRecord(OUT reuse)
InputFormat
When this method is called, the input format it guaranteed to be opened.
reuse
- Object that may be reused.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.