in presto-pulsar/src/main/java/org/apache/pulsar/sql/presto/PulsarSplit.java [69:111]
public PulsarSplit(
@JsonProperty("splitId") long splitId,
@JsonProperty("connectorId") String connectorId,
@JsonProperty("schemaName") String schemaName,
@JsonProperty("originSchemaName") String originSchemaName,
@JsonProperty("tableName") String tableName,
@JsonProperty("splitSize") long splitSize,
@JsonProperty("schema") String schema,
@JsonProperty("schemaType") SchemaType schemaType,
@JsonProperty("startPositionEntryId") long startPositionEntryId,
@JsonProperty("endPositionEntryId") long endPositionEntryId,
@JsonProperty("startPositionLedgerId") long startPositionLedgerId,
@JsonProperty("endPositionLedgerId") long endPositionLedgerId,
@JsonProperty("tupleDomain") TupleDomain<ColumnHandle> tupleDomain,
@JsonProperty("schemaInfoProperties") String schemaInfoProperties,
@JsonProperty("offloadPolicies") OffloadPolicies offloadPolicies) throws IOException {
this.splitId = splitId;
requireNonNull(schemaName, "schema name is null");
this.originSchemaName = originSchemaName;
this.schemaName = requireNonNull(schemaName, "schema name is null");
this.connectorId = requireNonNull(connectorId, "connector id is null");
this.tableName = requireNonNull(tableName, "table name is null");
this.splitSize = splitSize;
this.schema = schema;
this.schemaType = schemaType;
this.startPositionEntryId = startPositionEntryId;
this.endPositionEntryId = endPositionEntryId;
this.startPositionLedgerId = startPositionLedgerId;
this.endPositionLedgerId = endPositionLedgerId;
this.tupleDomain = requireNonNull(tupleDomain, "tupleDomain is null");
this.startPosition = PositionImpl.get(startPositionLedgerId, startPositionEntryId);
this.endPosition = PositionImpl.get(endPositionLedgerId, endPositionEntryId);
this.schemaInfoProperties = schemaInfoProperties;
this.offloadPolicies = offloadPolicies;
ObjectMapper objectMapper = new ObjectMapper();
this.schemaInfo = SchemaInfo.builder()
.name(originSchemaName)
.type(schemaType)
.schema(schema.getBytes("ISO8859-1"))
.properties(objectMapper.readValue(schemaInfoProperties, Map.class))
.build();
}