Interface SystemFieldInputSource
- All Superinterfaces:
InputSource
- All Known Implementing Classes:
CloudObjectInputSource,HttpInputSource,LocalInputSource
An
InputSource that can generate system fields.
Implementations of InputSource.reader(InputRowSchema, InputFormat, File) tend to create a decorator factory
using SystemFieldDecoratorFactory.fromInputSource(SystemFieldInputSource) on "this" and then pass it to
InputEntityIteratingReader.-
Field Summary
FieldsFields inherited from interface org.apache.druid.data.input.InputSource
TYPE_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptionSystem fields that this input source is configured to return.getSystemFieldValue(InputEntity entity, SystemField field) Compute the value of a system field for a particularInputEntity.Methods inherited from interface org.apache.druid.data.input.InputSource
getTypes, isSplittable, needsFormat, reader
-
Field Details
-
SYSTEM_FIELDS_PROPERTY
- See Also:
-
-
Method Details
-
getConfiguredSystemFields
Set<SystemField> getConfiguredSystemFields()System fields that this input source is configured to return. This is not the same set thatgetSystemFieldValue(InputEntity, SystemField)returns nonnull for. For example, if aLocalInputSourceis configured to returnSystemField.BUCKETthen it will show up in this list, even though its value is always null. For another example in a different direction, if aLocalInputSourceis *not* configured to returnSystemField.URI, then it will *not* show up in this list, even though its value fromgetSystemFieldValue(InputEntity, SystemField)would be nonnull. -
getSystemFieldValue
Compute the value of a system field for a particularInputEntity.
-