Package io.substrait.relation.files
Class ImmutableFileFormat.DelimiterSeparatedTextReadOptions.Builder
java.lang.Object
io.substrait.relation.files.ImmutableFileFormat.DelimiterSeparatedTextReadOptions.Builder
- Enclosing class:
- ImmutableFileFormat.DelimiterSeparatedTextReadOptions
public static final class ImmutableFileFormat.DelimiterSeparatedTextReadOptions.Builder
extends Object
Builds instances of type
DelimiterSeparatedTextReadOptions.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newDelimiterSeparatedTextReadOptions.Initializes the value for theescapeattribute.fieldDelimiter(String fieldDelimiter) Initializes the value for thefieldDelimiterattribute.Fill a builder with attribute values from the providedDelimiterSeparatedTextReadOptionsinstance.headerLinesToSkip(long headerLinesToSkip) Initializes the value for theheaderLinesToSkipattribute.maxLineSize(long maxLineSize) Initializes the value for themaxLineSizeattribute.Initializes the value for thequoteattribute.valueTreatedAsNull(String valueTreatedAsNull) Initializes the optional valuevalueTreatedAsNullto valueTreatedAsNull.valueTreatedAsNull(Optional<String> valueTreatedAsNull) Initializes the optional valuevalueTreatedAsNullto valueTreatedAsNull.
-
Method Details
-
from
public final ImmutableFileFormat.DelimiterSeparatedTextReadOptions.Builder from(FileFormat.DelimiterSeparatedTextReadOptions instance) Fill a builder with attribute values from the providedDelimiterSeparatedTextReadOptionsinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
fieldDelimiter
public final ImmutableFileFormat.DelimiterSeparatedTextReadOptions.Builder fieldDelimiter(String fieldDelimiter) Initializes the value for thefieldDelimiterattribute.- Parameters:
fieldDelimiter- The value for fieldDelimiter- Returns:
thisbuilder for use in a chained invocation
-
maxLineSize
public final ImmutableFileFormat.DelimiterSeparatedTextReadOptions.Builder maxLineSize(long maxLineSize) Initializes the value for themaxLineSizeattribute.- Parameters:
maxLineSize- The value for maxLineSize- Returns:
thisbuilder for use in a chained invocation
-
quote
Initializes the value for thequoteattribute.- Parameters:
quote- The value for quote- Returns:
thisbuilder for use in a chained invocation
-
headerLinesToSkip
public final ImmutableFileFormat.DelimiterSeparatedTextReadOptions.Builder headerLinesToSkip(long headerLinesToSkip) Initializes the value for theheaderLinesToSkipattribute.- Parameters:
headerLinesToSkip- The value for headerLinesToSkip- Returns:
thisbuilder for use in a chained invocation
-
escape
Initializes the value for theescapeattribute.- Parameters:
escape- The value for escape- Returns:
thisbuilder for use in a chained invocation
-
valueTreatedAsNull
public final ImmutableFileFormat.DelimiterSeparatedTextReadOptions.Builder valueTreatedAsNull(String valueTreatedAsNull) Initializes the optional valuevalueTreatedAsNullto valueTreatedAsNull.- Parameters:
valueTreatedAsNull- The value for valueTreatedAsNull- Returns:
thisbuilder for chained invocation
-
valueTreatedAsNull
public final ImmutableFileFormat.DelimiterSeparatedTextReadOptions.Builder valueTreatedAsNull(Optional<String> valueTreatedAsNull) Initializes the optional valuevalueTreatedAsNullto valueTreatedAsNull.- Parameters:
valueTreatedAsNull- The value for valueTreatedAsNull- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newDelimiterSeparatedTextReadOptions.- Returns:
- An immutable instance of DelimiterSeparatedTextReadOptions
- Throws:
IllegalStateException- if any required attributes are missing
-