Neo4j字符串或文本数据类型 [英] Neo4j string or text data types

查看:728
本文介绍了Neo4j字符串或文本数据类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用字符串. 找不到有关此数据类型的任何规格. Neo4j中最大长度os String是多少? 如果限制为256,是否有更大的文字类型,例如文字"?

Trying to work with strings. Can't find any specs about this data types. What is the max length os String in Neo4j? If the limit is 256, is there a larger type, like Text?

推荐答案

在Neo4j中,字符串和类似TEXT的东西之间没有区别. Neo4j中的属性值可以是Java基本类型(int,long,double,boolean等),字符串和这些类型的数组. Java中的字符串可以具有任意长度,Neo4j也是如此.

In Neo4j there's no distinction between a string and something like TEXT. Property values in Neo4j can be java primitive types (int, long, double, boolean, ...), Strings and arrays of those. Strings in java can have an arbitrary length, same applies for Neo4j.

请注意,长字符串在内部会有所不同,请参见 http://neo4j .com/docs/stable/property-compression.html#_compressed_storage_of_short_strings .这不会影响客户端行为,但会影响性能.

Be aware that long strings get handled internally different, see http://neo4j.com/docs/stable/property-compression.html#_compressed_storage_of_short_strings. This does not impact the client behaviour but can impact on the performance.

这篇关于Neo4j字符串或文本数据类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆