Class KcoreValue

  • All Implemented Interfaces:
    java.lang.Comparable<org.apache.hugegraph.computer.core.graph.value.Value>, org.apache.hugegraph.computer.core.graph.value.Value, org.apache.hugegraph.computer.core.graph.value.Value.CustomizeValue<java.lang.Object>, org.apache.hugegraph.computer.core.graph.value.Value.Tvalue<java.lang.Object>, org.apache.hugegraph.computer.core.io.Readable, org.apache.hugegraph.computer.core.io.Writable

    public class KcoreValue
    extends java.lang.Object
    implements org.apache.hugegraph.computer.core.graph.value.Value.CustomizeValue<java.lang.Object>
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.hugegraph.computer.core.graph.value.Value

        org.apache.hugegraph.computer.core.graph.value.Value.CustomizeValue<T extends java.lang.Object>, org.apache.hugegraph.computer.core.graph.value.Value.Tvalue<T extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      KcoreValue()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean active()  
      KcoreValue copy()  
      org.apache.hugegraph.computer.core.graph.id.Id core()  
      void core​(org.apache.hugegraph.computer.core.graph.id.Id core)  
      int decreaseDegree​(int decrease)  
      int degree()  
      void degree​(int degree)  
      void read​(org.apache.hugegraph.computer.core.io.RandomAccessInput in)  
      java.lang.String toString()  
      java.lang.Object value()  
      void write​(org.apache.hugegraph.computer.core.io.RandomAccessOutput out)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.apache.hugegraph.computer.core.graph.value.Value

        checkAssign, isNumber, string
      • Methods inherited from interface org.apache.hugegraph.computer.core.graph.value.Value.CustomizeValue

        assign, compareTo, valueType
    • Constructor Detail

      • KcoreValue

        public KcoreValue()
    • Method Detail

      • degree

        public void degree​(int degree)
      • degree

        public int degree()
      • decreaseDegree

        public int decreaseDegree​(int decrease)
      • active

        public boolean active()
      • core

        public void core​(org.apache.hugegraph.computer.core.graph.id.Id core)
      • core

        public org.apache.hugegraph.computer.core.graph.id.Id core()
      • copy

        public KcoreValue copy()
        Specified by:
        copy in interface org.apache.hugegraph.computer.core.graph.value.Value
        Specified by:
        copy in interface org.apache.hugegraph.computer.core.graph.value.Value.CustomizeValue<java.lang.Object>
      • read

        public void read​(org.apache.hugegraph.computer.core.io.RandomAccessInput in)
                  throws java.io.IOException
        Specified by:
        read in interface org.apache.hugegraph.computer.core.io.Readable
        Throws:
        java.io.IOException
      • write

        public void write​(org.apache.hugegraph.computer.core.io.RandomAccessOutput out)
                   throws java.io.IOException
        Specified by:
        write in interface org.apache.hugegraph.computer.core.io.Writable
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • value

        public java.lang.Object value()
        Specified by:
        value in interface org.apache.hugegraph.computer.core.graph.value.Value
        Specified by:
        value in interface org.apache.hugegraph.computer.core.graph.value.Value.Tvalue<java.lang.Object>