/** * Disables flushing on checkpoint. When disabled, a sink will not wait for all pending action * requests to be acknowledged by Elasticsearch on checkpoints. * * <p>Note: If flushing on checkpoint is disabled, a Elasticsearch sink does NOT * provide any strong guarantees for at-least-once delivery of action requests. */ public Elasticsearch disableFlushOnCheckpoint() { internalProperties.putBoolean(CONNECTOR_FLUSH_ON_CHECKPOINT, false); return this; }
@Override protected Map<String, String> toFormatProperties() { final DescriptorProperties properties = new DescriptorProperties(); if (deriveSchema != null) { properties.putBoolean(FORMAT_DERIVE_SCHEMA, deriveSchema); } if (jsonSchema != null) { properties.putString(FORMAT_JSON_SCHEMA, jsonSchema); } if (schema != null) { properties.putString(FORMAT_SCHEMA, schema); } if (failOnMissingField != null) { properties.putBoolean(FORMAT_FAIL_ON_MISSING_FIELD, failOnMissingField); } return properties.asMap(); } }
/** * Disables flushing on checkpoint. When disabled, a sink will not wait for all pending action * requests to be acknowledged by Elasticsearch on checkpoints. * * <p>Note: If flushing on checkpoint is disabled, a Elasticsearch sink does NOT * provide any strong guarantees for at-least-once delivery of action requests. */ public Elasticsearch disableFlushOnCheckpoint() { internalProperties.putBoolean(CONNECTOR_FLUSH_ON_CHECKPOINT, false); return this; }
/** * Disables flushing on checkpoint. When disabled, a sink will not wait for all pending action * requests to be acknowledged by Elasticsearch on checkpoints. * * <p>Note: If flushing on checkpoint is disabled, a Elasticsearch sink does NOT * provide any strong guarantees for at-least-once delivery of action requests. */ public Elasticsearch disableFlushOnCheckpoint() { internalProperties.putBoolean(CONNECTOR_FLUSH_ON_CHECKPOINT, false); return this; }
@Override protected Map<String, String> toFormatProperties() { final DescriptorProperties properties = new DescriptorProperties(); if (deriveSchema != null) { properties.putBoolean(FORMAT_DERIVE_SCHEMA, deriveSchema); } if (jsonSchema != null) { properties.putString(FORMAT_JSON_SCHEMA, jsonSchema); } if (schema != null) { properties.putString(FORMAT_SCHEMA, schema); } if (failOnMissingField != null) { properties.putBoolean(FORMAT_FAIL_ON_MISSING_FIELD, failOnMissingField); } return properties.asMap(); } }
/** * Convert this descriptor into a set of format properties. */ @Override public Map<String, String> toFormatProperties() { final DescriptorProperties properties = new DescriptorProperties(); if (deriveSchema != null) { properties.putBoolean(FORMAT_DERIVE_SCHEMA, deriveSchema); } if (jsonSchema != null) { properties.putString(FORMAT_JSON_SCHEMA, jsonSchema); } if (schema != null) { properties.putString(FORMAT_SCHEMA, schema); } if (failOnMissingField != null) { properties.putBoolean(FORMAT_FAIL_ON_MISSING_FIELD, failOnMissingField); } return properties.asMap(); } }