Class BytesProcessorDescriptor<T>
Converts a human readable byte value (e.g. 1kb) to its value in bytes (e.g. 1024).
Supported human readable units are "b", "kb", "mb", "gb", "tb", "pb" case insensitive.
An error will occur if the field is not a supported format or resultant value exceeds 2^63.
Inheritance
BytesProcessorDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class BytesProcessorDescriptor<T> : ProcessorDescriptorBase<BytesProcessorDescriptor<T>, IBytesProcessor>, IDescriptor, IBytesProcessor, IProcessor where T : class
Type Parameters
Properties
|
Edit this page
View Source
Name
Declaration
protected override string Name { get; }
Property Value
Overrides
Methods
|
Edit this page
View Source
Field(Field)
The field to convert bytes from
Declaration
public BytesProcessorDescriptor<T> Field(Field field)
Parameters
Type |
Name |
Description |
Field |
field |
|
Returns
|
Edit this page
View Source
Field<TValue>(Expression<Func<T, TValue>>)
The field to convert bytes from
Declaration
public BytesProcessorDescriptor<T> Field<TValue>(Expression<Func<T, TValue>> objectPath)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
IgnoreMissing(bool?)
If true
and Field does not exist or is null,
the processor quietly exits without modifying the document. Default is false
Declaration
public BytesProcessorDescriptor<T> IgnoreMissing(bool? ignoreMissing = true)
Parameters
Type |
Name |
Description |
bool? |
ignoreMissing |
|
Returns
|
Edit this page
View Source
TargetField(Field)
The field to assign the converted value to, by default Field is updated in-place
Declaration
public BytesProcessorDescriptor<T> TargetField(Field field)
Parameters
Type |
Name |
Description |
Field |
field |
|
Returns
|
Edit this page
View Source
TargetField<TValue>(Expression<Func<T, TValue>>)
The field to assign the converted value to, by default Field is updated in-place
Declaration
public BytesProcessorDescriptor<T> TargetField<TValue>(Expression<Func<T, TValue>> objectPath)
Parameters
Returns
Type Parameters
Implements
Extension Methods