java.lang.Object
com.gpudb.GPUdbBase.JsonOptions
Enclosing class:
This class provides options to control JSON ingest using
BulkInserter. By default, for performance reasons VALIDATE_JSON is set to false.
Compression of JSON payloads is not implemented yet. The compression setting is accepted, and defaults to COMPRESSION_ON, but has no effect: JSON requests are always sent uncompressed.
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanThe default compression setting.static final booleanConstructor Summary
ConstructorsConstructorDescriptionDefault constructorJsonOptions(boolean validateJson, boolean compressionOn) Creates JSON options with the given settings.Method Summary
Modifier and TypeMethodDescriptionstatic GPUdbBase.JsonOptionsThis method returns an instance ofGPUdbBase.JsonOptionswith default values.booleaninthashCode()booleanReturns the compression setting.booleantoString()
Constructor Details
JsonOptions
public JsonOptions(boolean validateJson, boolean compressionOn) Creates JSON options with the given settings.Parameters:validateJson- whetherBulkInsertervalidates each JSON record before queuing it for insertioncompressionOn- whether to compress JSON payloads; compression of JSON payloads is not implemented yet, so this has no effect
Method Details
defaultOptions
This method returns an instance ofGPUdbBase.JsonOptionswith default values.Returns:- a new instance ofGPUdbBase.JsonOptionsclassisValidateJson
public boolean isValidateJson()isCompressionOn
public boolean isCompressionOn()Returns the compression setting. Compression of JSON payloads is not implemented yet, so this setting has no effect.Returns:the compression setting given at construction