T
- the returned type by the visitor if it owns a state.public interface RecordVisitor<T> extends Supplier<T>, BinaryOperator<T>
Modifier and Type | Method and Description |
---|---|
default T |
apply(T t1,
T t2)
Enables to combine two visitors returned value (
get() ). |
default T |
get()
This is called to get the value extracted from this visitor.
|
default void |
onBoolean(Schema.Entry entry,
Optional<Boolean> optionalBoolean) |
default void |
onBooleanArray(Schema.Entry entry,
Optional<Collection<Boolean>> array) |
default void |
onBytes(Schema.Entry entry,
Optional<byte[]> bytes) |
default void |
onBytesArray(Schema.Entry entry,
Optional<Collection<byte[]>> array) |
default void |
onDatetime(Schema.Entry entry,
Optional<ZonedDateTime> dateTime) |
default void |
onDatetimeArray(Schema.Entry entry,
Optional<Collection<ZonedDateTime>> array) |
default void |
onDouble(Schema.Entry entry,
OptionalDouble optionalDouble) |
default void |
onDoubleArray(Schema.Entry entry,
Optional<Collection<Double>> array) |
default void |
onFloat(Schema.Entry entry,
OptionalDouble optionalFloat) |
default void |
onFloatArray(Schema.Entry entry,
Optional<Collection<Float>> array) |
default void |
onInt(Schema.Entry entry,
OptionalInt optionalInt) |
default void |
onIntArray(Schema.Entry entry,
Optional<Collection<Integer>> array) |
default void |
onLong(Schema.Entry entry,
OptionalLong optionalLong) |
default void |
onLongArray(Schema.Entry entry,
Optional<Collection<Long>> array) |
default RecordVisitor<T> |
onRecord(Schema.Entry entry,
Optional<Record> record) |
default RecordVisitor<T> |
onRecordArray(Schema.Entry entry,
Optional<Collection<Record>> array) |
default void |
onString(Schema.Entry entry,
Optional<String> string) |
default void |
onStringArray(Schema.Entry entry,
Optional<Collection<String>> array) |
maxBy, minBy
andThen
default T get()
default T apply(T t1, T t2)
get()
).apply
in interface BiFunction<T,T,T>
t1
- previous value, can be null.t2
- current valuedefault void onInt(Schema.Entry entry, OptionalInt optionalInt)
default void onLong(Schema.Entry entry, OptionalLong optionalLong)
default void onFloat(Schema.Entry entry, OptionalDouble optionalFloat)
default void onDouble(Schema.Entry entry, OptionalDouble optionalDouble)
default void onBoolean(Schema.Entry entry, Optional<Boolean> optionalBoolean)
default void onString(Schema.Entry entry, Optional<String> string)
default void onDatetime(Schema.Entry entry, Optional<ZonedDateTime> dateTime)
default void onBytes(Schema.Entry entry, Optional<byte[]> bytes)
default RecordVisitor<T> onRecord(Schema.Entry entry, Optional<Record> record)
default void onIntArray(Schema.Entry entry, Optional<Collection<Integer>> array)
default void onLongArray(Schema.Entry entry, Optional<Collection<Long>> array)
default void onFloatArray(Schema.Entry entry, Optional<Collection<Float>> array)
default void onDoubleArray(Schema.Entry entry, Optional<Collection<Double>> array)
default void onBooleanArray(Schema.Entry entry, Optional<Collection<Boolean>> array)
default void onStringArray(Schema.Entry entry, Optional<Collection<String>> array)
default void onDatetimeArray(Schema.Entry entry, Optional<Collection<ZonedDateTime>> array)
default void onBytesArray(Schema.Entry entry, Optional<Collection<byte[]>> array)
default RecordVisitor<T> onRecordArray(Schema.Entry entry, Optional<Collection<Record>> array)
1.1.14-SNAPSHOT - Copyright © 2019 Talend Component Kit Documentation