src/main/java/com/amazonaws/services/neptune/propertygraph/io/NeptuneStreamsJsonPropertyGraphPrinter.java [61:108]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @Override
    public void printProperties(Map<?, ?> properties, boolean applyFormatting) throws IOException {
        printProperties(properties);
    }

    @Override
    public void printProperties(String id, String streamOperation, Map<?, ?> properties) throws IOException {

        for (Map.Entry<?, ?> entry : properties.entrySet()) {
            String key = String.valueOf(entry.getKey());
            Object value = entry.getValue();

            if (isList(value)) {

                List<?> values = (List<?>) value;
                for (Object o : values) {
                    PropertySchema propertySchema = new PropertySchema(key);
                    propertySchema.accept(o, true);
                    printRecord(id, streamOperation, key, o, propertySchema.dataType());
                }

            } else {
                PropertySchema propertySchema = new PropertySchema(key);
                propertySchema.accept(value, true);
                printRecord(id, streamOperation, key, value, propertySchema.dataType());
            }
        }
    }

    @Override
    public void printEdge(String id, String label, String from, String to) throws IOException {
        printEdge(id, label, from, to, null, null);
    }

    @Override
    public void printEdge(String id, String label, String from, String to, Collection<String> fromLabels, Collection<String> toLabels) throws IOException {
        printRecord(id, "e", "label", label, DataType.String, from, to);
    }

    @Override
    public void printNode(String id, List<String> labels) throws IOException {
        for (String l : labels) {
            printRecord(id, "vl", "label", l, DataType.String);
        }
    }

    @Override
    public void printStartRow() throws IOException {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/com/amazonaws/services/neptune/propertygraph/io/NeptuneStreamsSimpleJsonPropertyGraphPrinter.java [62:109]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @Override
    public void printProperties(Map<?, ?> properties, boolean applyFormatting) throws IOException {
        printProperties(properties);
    }

    @Override
    public void printProperties(String id, String streamOperation, Map<?, ?> properties) throws IOException {

        for (Map.Entry<?, ?> entry : properties.entrySet()) {
            String key = String.valueOf(entry.getKey());
            Object value = entry.getValue();

            if (isList(value)) {

                List<?> values = (List<?>) value;
                for (Object o : values) {
                    PropertySchema propertySchema = new PropertySchema(key);
                    propertySchema.accept(o, true);
                    printRecord(id, streamOperation, key, o, propertySchema.dataType());
                }

            } else {
                PropertySchema propertySchema = new PropertySchema(key);
                propertySchema.accept(value, true);
                printRecord(id, streamOperation, key, value, propertySchema.dataType());
            }
        }
    }

    @Override
    public void printEdge(String id, String label, String from, String to) throws IOException {
        printEdge(id, label, from, to, null, null);
    }

    @Override
    public void printEdge(String id, String label, String from, String to, Collection<String> fromLabels, Collection<String> toLabels) throws IOException {
        printRecord(id, "e", "label", label, DataType.String, from, to);
    }

    @Override
    public void printNode(String id, List<String> labels) throws IOException {
        for (String l : labels) {
            printRecord(id, "vl", "label", l, DataType.String);
        }
    }

    @Override
    public void printStartRow() throws IOException {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



