Package com.clickhouse.client.data
Class ClickHouseRowBinaryProcessor
- java.lang.Object
-
- com.clickhouse.client.ClickHouseDataProcessor
-
- com.clickhouse.client.data.ClickHouseRowBinaryProcessor
-
public class ClickHouseRowBinaryProcessor extends ClickHouseDataProcessor
Data processor for handlingClickHouseFormat.RowBinary
andClickHouseFormat.RowBinaryWithNamesAndTypes
two formats.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClickHouseRowBinaryProcessor.MappedFunctions
-
Field Summary
-
Fields inherited from class com.clickhouse.client.ClickHouseDataProcessor
columns, config, DEFAULT_COLUMNS, ERROR_UNKNOWN_DATA_TYPE, input, output, settings
-
-
Constructor Summary
Constructors Constructor Description ClickHouseRowBinaryProcessor(ClickHouseConfig config, ClickHouseInputStream input, OutputStream output, List<ClickHouseColumn> columns, Map<String,Object> settings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClickHouseRowBinaryProcessor.MappedFunctions
getMappedFunctions()
protected List<ClickHouseColumn>
readColumns()
Read columns from input stream.Iterable<ClickHouseRecord>
records()
Returns an iterable collection of records which can be walked through in a foreach loop.-
Methods inherited from class com.clickhouse.client.ClickHouseDataProcessor
buildAggMappings, buildMappings, getColumns
-
-
-
-
Constructor Detail
-
ClickHouseRowBinaryProcessor
public ClickHouseRowBinaryProcessor(ClickHouseConfig config, ClickHouseInputStream input, OutputStream output, List<ClickHouseColumn> columns, Map<String,Object> settings) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getMappedFunctions
public static ClickHouseRowBinaryProcessor.MappedFunctions getMappedFunctions()
-
readColumns
protected List<ClickHouseColumn> readColumns() throws IOException
Description copied from class:ClickHouseDataProcessor
Read columns from input stream. Usually this will be only called once during instantiation.- Specified by:
readColumns
in classClickHouseDataProcessor
- Returns:
- list of columns
- Throws:
IOException
- when failed to read columns from input stream
-
records
public Iterable<ClickHouseRecord> records()
Description copied from class:ClickHouseDataProcessor
Returns an iterable collection of records which can be walked through in a foreach loop. Please pay attention that: 1)UncheckedIOException
might be thrown when iterating through the collection; and 2) it's not supposed to be called for more than once.- Specified by:
records
in classClickHouseDataProcessor
- Returns:
- non-null iterable collection
-
-