org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.SerializerProvider Java Examples
The following examples show how to use
org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.SerializerProvider.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JobConfigInfo.java From Flink-CEPplus with Apache License 2.0 | 6 votes |
@Override public void serialize( JobConfigInfo jobConfigInfo, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { jsonGenerator.writeStartObject(); jsonGenerator.writeStringField(FIELD_NAME_JOB_ID, jobConfigInfo.getJobId().toString()); jsonGenerator.writeStringField(FIELD_NAME_JOB_NAME, jobConfigInfo.getJobName()); if (jobConfigInfo.getExecutionConfigInfo() != null) { jsonGenerator.writeObjectField(FIELD_NAME_EXECUTION_CONFIG, jobConfigInfo.getExecutionConfigInfo()); } jsonGenerator.writeEndObject(); }
Example #2
Source File: JobConfigInfo.java From flink with Apache License 2.0 | 6 votes |
@Override public void serialize( JobConfigInfo jobConfigInfo, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { jsonGenerator.writeStartObject(); jsonGenerator.writeStringField(FIELD_NAME_JOB_ID, jobConfigInfo.getJobId().toString()); jsonGenerator.writeStringField(FIELD_NAME_JOB_NAME, jobConfigInfo.getJobName()); if (jobConfigInfo.getExecutionConfigInfo() != null) { jsonGenerator.writeObjectField(FIELD_NAME_EXECUTION_CONFIG, jobConfigInfo.getExecutionConfigInfo()); } jsonGenerator.writeEndObject(); }
Example #3
Source File: JobConfigInfo.java From flink with Apache License 2.0 | 6 votes |
@Override public void serialize( JobConfigInfo jobConfigInfo, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { jsonGenerator.writeStartObject(); jsonGenerator.writeStringField(FIELD_NAME_JOB_ID, jobConfigInfo.getJobId().toString()); jsonGenerator.writeStringField(FIELD_NAME_JOB_NAME, jobConfigInfo.getJobName()); if (jobConfigInfo.getExecutionConfigInfo() != null) { jsonGenerator.writeObjectField(FIELD_NAME_EXECUTION_CONFIG, jobConfigInfo.getExecutionConfigInfo()); } jsonGenerator.writeEndObject(); }
Example #4
Source File: JobPlanInfo.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Override public void serialize( RawJson jobPlanInfo, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { jsonGenerator.writeRawValue(jobPlanInfo.json); }
Example #5
Source File: TriggerId.java From flink with Apache License 2.0 | 5 votes |
@Override public void serialize( final TriggerId value, final JsonGenerator gen, final SerializerProvider provider) throws IOException { gen.writeString(value.toString()); }
Example #6
Source File: SerializedValueSerializer.java From flink with Apache License 2.0 | 5 votes |
@Override public void serialize( final SerializedValue<?> value, final JsonGenerator gen, final SerializerProvider provider) throws IOException { gen.writeBinary(value.getByteArray()); }
Example #7
Source File: SerializedThrowableSerializer.java From flink with Apache License 2.0 | 5 votes |
@Override public void serialize(final SerializedThrowable value, final JsonGenerator gen, final SerializerProvider provider) throws IOException { gen.writeStartObject(); gen.writeStringField(FIELD_NAME_CLASS, value.getOriginalErrorClassName()); gen.writeStringField(FIELD_NAME_STACK_TRACE, value.getFullStringifiedStackTrace()); gen.writeBinaryField(FIELD_NAME_SERIALIZED_THROWABLE, InstantiationUtil.serializeObject(value)); gen.writeEndObject(); }
Example #8
Source File: AggregatedMetricsResponseBody.java From flink with Apache License 2.0 | 5 votes |
@Override public void serialize( AggregatedMetricsResponseBody metricCollectionResponseBody, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { jsonGenerator.writeObject(metricCollectionResponseBody.getMetrics()); }
Example #9
Source File: MetricCollectionResponseBody.java From flink with Apache License 2.0 | 5 votes |
@Override public void serialize( MetricCollectionResponseBody metricCollectionResponseBody, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { jsonGenerator.writeObject(metricCollectionResponseBody.getMetrics()); }
Example #10
Source File: JobPlanInfo.java From flink with Apache License 2.0 | 5 votes |
@Override public void serialize( RawJson jobPlanInfo, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { jsonGenerator.writeRawValue(jobPlanInfo.json); }
Example #11
Source File: JobDetails.java From flink with Apache License 2.0 | 5 votes |
@Override public void serialize( JobDetails jobDetails, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { jsonGenerator.writeStartObject(); jsonGenerator.writeStringField(FIELD_NAME_JOB_ID, jobDetails.getJobId().toString()); jsonGenerator.writeStringField(FIELD_NAME_JOB_NAME, jobDetails.getJobName()); jsonGenerator.writeStringField(FIELD_NAME_STATUS, jobDetails.getStatus().name()); jsonGenerator.writeNumberField(FIELD_NAME_START_TIME, jobDetails.getStartTime()); jsonGenerator.writeNumberField(FIELD_NAME_END_TIME, jobDetails.getEndTime()); jsonGenerator.writeNumberField(FIELD_NAME_DURATION, jobDetails.getDuration()); jsonGenerator.writeNumberField(FIELD_NAME_LAST_MODIFICATION, jobDetails.getLastUpdateTime()); jsonGenerator.writeObjectFieldStart("tasks"); jsonGenerator.writeNumberField(FIELD_NAME_TOTAL_NUMBER_TASKS, jobDetails.getNumTasks()); final int[] perState = jobDetails.getTasksPerState(); for (ExecutionState executionState : ExecutionState.values()) { jsonGenerator.writeNumberField(executionState.name().toLowerCase(), perState[executionState.ordinal()]); } jsonGenerator.writeEndObject(); jsonGenerator.writeEndObject(); }
Example #12
Source File: TriggerId.java From flink with Apache License 2.0 | 5 votes |
@Override public void serialize( final TriggerId value, final JsonGenerator gen, final SerializerProvider provider) throws IOException { gen.writeString(value.toString()); }
Example #13
Source File: SerializedValueSerializer.java From flink with Apache License 2.0 | 5 votes |
@Override public void serialize( final SerializedValue<?> value, final JsonGenerator gen, final SerializerProvider provider) throws IOException { gen.writeBinary(value.getByteArray()); }
Example #14
Source File: SerializedThrowableSerializer.java From flink with Apache License 2.0 | 5 votes |
@Override public void serialize(final SerializedThrowable value, final JsonGenerator gen, final SerializerProvider provider) throws IOException { gen.writeStartObject(); gen.writeStringField(FIELD_NAME_CLASS, value.getOriginalErrorClassName()); gen.writeStringField(FIELD_NAME_STACK_TRACE, value.getFullStringifiedStackTrace()); gen.writeBinaryField(FIELD_NAME_SERIALIZED_THROWABLE, InstantiationUtil.serializeObject(value)); gen.writeEndObject(); }
Example #15
Source File: AggregatedMetricsResponseBody.java From flink with Apache License 2.0 | 5 votes |
@Override public void serialize( AggregatedMetricsResponseBody metricCollectionResponseBody, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { jsonGenerator.writeObject(metricCollectionResponseBody.getMetrics()); }
Example #16
Source File: MetricCollectionResponseBody.java From flink with Apache License 2.0 | 5 votes |
@Override public void serialize( MetricCollectionResponseBody metricCollectionResponseBody, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { jsonGenerator.writeObject(metricCollectionResponseBody.getMetrics()); }
Example #17
Source File: JobDetails.java From flink with Apache License 2.0 | 5 votes |
@Override public void serialize( JobDetails jobDetails, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { jsonGenerator.writeStartObject(); jsonGenerator.writeStringField(FIELD_NAME_JOB_ID, jobDetails.getJobId().toString()); jsonGenerator.writeStringField(FIELD_NAME_JOB_NAME, jobDetails.getJobName()); jsonGenerator.writeStringField(FIELD_NAME_STATUS, jobDetails.getStatus().name()); jsonGenerator.writeNumberField(FIELD_NAME_START_TIME, jobDetails.getStartTime()); jsonGenerator.writeNumberField(FIELD_NAME_END_TIME, jobDetails.getEndTime()); jsonGenerator.writeNumberField(FIELD_NAME_DURATION, jobDetails.getDuration()); jsonGenerator.writeNumberField(FIELD_NAME_LAST_MODIFICATION, jobDetails.getLastUpdateTime()); jsonGenerator.writeObjectFieldStart("tasks"); jsonGenerator.writeNumberField(FIELD_NAME_TOTAL_NUMBER_TASKS, jobDetails.getNumTasks()); final int[] perState = jobDetails.getTasksPerState(); for (ExecutionState executionState : ExecutionState.values()) { jsonGenerator.writeNumberField(executionState.name().toLowerCase(), perState[executionState.ordinal()]); } jsonGenerator.writeEndObject(); jsonGenerator.writeEndObject(); }
Example #18
Source File: JobDetails.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Override public void serialize( JobDetails jobDetails, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { jsonGenerator.writeStartObject(); jsonGenerator.writeStringField(FIELD_NAME_JOB_ID, jobDetails.getJobId().toString()); jsonGenerator.writeStringField(FIELD_NAME_JOB_NAME, jobDetails.getJobName()); jsonGenerator.writeStringField(FIELD_NAME_STATUS, jobDetails.getStatus().name()); jsonGenerator.writeNumberField(FIELD_NAME_START_TIME, jobDetails.getStartTime()); jsonGenerator.writeNumberField(FIELD_NAME_END_TIME, jobDetails.getEndTime()); jsonGenerator.writeNumberField(FIELD_NAME_DURATION, jobDetails.getDuration()); jsonGenerator.writeNumberField(FIELD_NAME_LAST_MODIFICATION, jobDetails.getLastUpdateTime()); jsonGenerator.writeObjectFieldStart("tasks"); jsonGenerator.writeNumberField(FIELD_NAME_TOTAL_NUMBER_TASKS, jobDetails.getNumTasks()); final int[] perState = jobDetails.getTasksPerState(); for (ExecutionState executionState : ExecutionState.values()) { jsonGenerator.writeNumberField(executionState.name().toLowerCase(), perState[executionState.ordinal()]); } jsonGenerator.writeEndObject(); jsonGenerator.writeEndObject(); }
Example #19
Source File: MetricCollectionResponseBody.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Override public void serialize( MetricCollectionResponseBody metricCollectionResponseBody, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { jsonGenerator.writeObject(metricCollectionResponseBody.getMetrics()); }
Example #20
Source File: AggregatedMetricsResponseBody.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Override public void serialize( AggregatedMetricsResponseBody metricCollectionResponseBody, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { jsonGenerator.writeObject(metricCollectionResponseBody.getMetrics()); }
Example #21
Source File: SerializedThrowableSerializer.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Override public void serialize(final SerializedThrowable value, final JsonGenerator gen, final SerializerProvider provider) throws IOException { gen.writeStartObject(); gen.writeStringField(FIELD_NAME_CLASS, value.getOriginalErrorClassName()); gen.writeStringField(FIELD_NAME_STACK_TRACE, value.getFullStringifiedStackTrace()); gen.writeBinaryField(FIELD_NAME_SERIALIZED_THROWABLE, InstantiationUtil.serializeObject(value)); gen.writeEndObject(); }
Example #22
Source File: SerializedValueSerializer.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Override public void serialize( final SerializedValue<?> value, final JsonGenerator gen, final SerializerProvider provider) throws IOException { gen.writeBinary(value.getByteArray()); }
Example #23
Source File: JobPlanInfo.java From flink with Apache License 2.0 | 5 votes |
@Override public void serialize( RawJson jobPlanInfo, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { jsonGenerator.writeRawValue(jobPlanInfo.json); }
Example #24
Source File: TriggerId.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Override public void serialize( final TriggerId value, final JsonGenerator gen, final SerializerProvider provider) throws IOException { gen.writeString(value.toString()); }
Example #25
Source File: CheckpointConfigInfo.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public void serialize(ProcessingMode mode, JsonGenerator generator, SerializerProvider serializerProvider) throws IOException { generator.writeString(mode.name().toLowerCase()); }
Example #26
Source File: JobVertexIDSerializer.java From flink with Apache License 2.0 | 4 votes |
@Override public void serialize(JobVertexID value, JsonGenerator gen, SerializerProvider provider) throws IOException { gen.writeString(value.toString()); }
Example #27
Source File: CheckpointConfigInfo.java From flink with Apache License 2.0 | 4 votes |
@Override public void serialize(ProcessingMode mode, JsonGenerator generator, SerializerProvider serializerProvider) throws IOException { generator.writeString(mode.name().toLowerCase()); }
Example #28
Source File: JobIDSerializer.java From flink with Apache License 2.0 | 4 votes |
@Override public void serialize(JobID value, JsonGenerator gen, SerializerProvider provider) throws IOException { gen.writeString(value.toString()); }
Example #29
Source File: ResourceIDSerializer.java From flink with Apache License 2.0 | 4 votes |
@Override public void serialize(ResourceID value, JsonGenerator gen, SerializerProvider provider) throws IOException { gen.writeString(value.getResourceIdString()); }
Example #30
Source File: JobVertexIDKeySerializer.java From flink with Apache License 2.0 | 4 votes |
@Override public void serialize(JobVertexID value, JsonGenerator gen, SerializerProvider provider) throws IOException { gen.writeFieldName(value.toString()); }