java.lang.Object
com.pervasive.datarush.operators.io.FormattingOptions
A collection of parameters for configuring parsing.
This includes, but is not necessarily limited to:
- Tuning the sizes of internal buffers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default size, in bytes, for write operations -
Constructor Summary
ConstructorsConstructorDescriptionCreates a collection with default settings: Buffers will use default sizings. -
Method Summary
Modifier and TypeMethodDescriptionintGets the size of the buffer, in bytes, used to encode character data.intGets the size of the I/O buffer, in bytes, to use for writes.voidset(FormattingOptions options) Copies the settings from the specified source.voidsetEncodeBuffer(int size) Sets the size of the buffer, in bytes, used to encode character data.voidsetWriteBuffer(int size) Sets the size of the I/O buffer, in bytes, to use for writes.
-
Field Details
-
DEFAULT_WRITE_BUFFER
public static final int DEFAULT_WRITE_BUFFERThe default size, in bytes, for write operations- See Also:
-
-
Constructor Details
-
FormattingOptions
public FormattingOptions()Creates a collection with default settings:- Buffers will use default sizings.
-
-
Method Details
-
set
Copies the settings from the specified source. Afterwards, this properties object will have the same- Parameters:
options- the settings to copy
-
getWriteBuffer
public int getWriteBuffer()Gets the size of the I/O buffer, in bytes, to use for writes.- Returns:
- the size of the write buffer
-
setWriteBuffer
public void setWriteBuffer(int size) Sets the size of the I/O buffer, in bytes, to use for writes. The default size is 64K.- Parameters:
size- the size of the write buffer
-
getEncodeBuffer
public int getEncodeBuffer()Gets the size of the buffer, in bytes, used to encode character data.- Returns:
- the decoding buffer size
-
setEncodeBuffer
public void setEncodeBuffer(int size) Sets the size of the buffer, in bytes, used to encode character data. By default, this will be automatically derived using the character set and write buffer size.- Parameters:
size- the encoding buffer size to use
-