Interface SystemFieldInputSource
-
- All Superinterfaces:
InputSource
- All Known Implementing Classes:
CloudObjectInputSource,HttpInputSource,LocalInputSource
public interface SystemFieldInputSource extends InputSource
AnInputSourcethat can generate system fields. Implementations ofInputSource.reader(InputRowSchema, InputFormat, File)tend to create a decorator factory usingSystemFieldDecoratorFactory.fromInputSource(SystemFieldInputSource)on "this" and then pass it toInputEntityIteratingReader.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSYSTEM_FIELDS_PROPERTY-
Fields inherited from interface org.apache.druid.data.input.InputSource
TYPE_PROPERTY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<SystemField>getConfiguredSystemFields()System fields that this input source is configured to return.ObjectgetSystemFieldValue(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 Detail
-
SYSTEM_FIELDS_PROPERTY
static final String SYSTEM_FIELDS_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
@Nullable Object getSystemFieldValue(InputEntity entity, SystemField field)
Compute the value of a system field for a particularInputEntity.
-
-