public void writeValue()

in computer-core/src/main/java/org/apache/hugegraph/computer/core/io/StructGraphOutput.java [71:94]


    public void writeValue(Value value) throws IOException {
        switch (value.valueType()) {
            case ID:
                this.writeIdValue((Id) value);
                break;
            case ID_LIST:
            case ID_LIST_LIST:
            case LIST_VALUE:
                this.writeListValue((ListValue<?>) value);
                break;
            case NULL:
            case BOOLEAN:
            case INT:
            case LONG:
            case FLOAT:
            case DOUBLE:
            case STRING:
                value.write(this.out);
                break;
            default:
                throw new ComputerException("Unexpected value type %s",
                                            value.valueType());
        }
    }