youngkangrui
youngkangrui
private double calcWeight(double lableW, double edgeW, double degreeW) { if (Objects.equals(lableW, DEFAULT_W) && Objects.equals(lableW, DEFAULT_W) && Objects.equals(lableW, DEFAULT_W)) { if (logger.isDebugEnabled()) { logger.warn("边-顶点[label]-度 的权值为 label:[{}],edgeW:[{}],degreeW :[{}]", lableW, edgeW, degreeW); }...
# 🐛 Bug ## To reproduce **Code snippet to reproduce** ``` if(a>0){ return 0; } ``` ` if(a>0){ return 0; } ` **Stack trace/error message** ``` // Paste the output...
`String path = this.getClass().getClassLoader().getResource("hugegraph.properties").getPath(); HugeGraph hugeGraph = HugeFactory.open(path);` 只能采取读取文件的方式进行配置吗?我们除了生产环境还有开发环境,所以不方便用文件配置, 我试了下面这种方式,无法生效,请问有什么好的方法吗? `conf.setProperty("backend","hbase"); conf.setProperty("serializer","hbase"); conf.setProperty("hbase.hosts",“”); conf.setProperty("hbase.port",“”); conf.setProperty("hbase.znode_parent",“”); HugeGraph hugeGraph = HugeFactory.open(conf);`
hugeGraph.schema().edgeLabel("RELATE34").link("USER","GPS").create() 这种做法只能支持从USER到GPS
cpu飙高期间的stack信息中,最主要的cpu消耗是下面线程的内容: ``` "process-callback-handler-21" #3803 prio=5 os_prio=0 tid=0x00007fc62c038000 nid=0x4f022 runnable [0x00007fc40b7f5000] java.lang.Thread.State: RUNNABLE at org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos$TimeRange.newBuilder(HBaseProtos.java:7493) at org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil.toTimeRange(ProtobufUtil.java:3264) at org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil.toGet(ProtobufUtil.java:1248) at org.apache.hadoop.hbase.shaded.protobuf.RequestConverter.buildGetRequest(RequestConverter.java:180) at org.apache.hadoop.hbase.client.HTable$1.rpcCall(HTable.java:377) at org.apache.hadoop.hbase.client.HTable$1.rpcCall(HTable.java:374) at org.apache.hadoop.hbase.client.RegionServerCallable.call(RegionServerCallable.java:127) at org.apache.hadoop.hbase.client.RpcRetryingCallerImpl.callWithRetries(RpcRetryingCallerImpl.java:107) at org.apache.hadoop.hbase.client.HTable.get(HTable.java:384)...
请问这段代码中会将rowKey的第一个字节设置成某值,是为了避免热点问题吗 ``` public BytesBuffer writeId(Id id, boolean big) { boolean number = id.number(); if (number) { long value = id.asLong(); this.writeNumber(value); } else { byte[] bytes = id.asBytes(); int len...
在使用limit过程中遇到一个问题: hugeGraph.traversal().V().hasLabel(“user”)能查到数据 hugeGraph.traversal().V().hasLabel(“user”).limit(100)查不到数据;