Interface GSVertexArray<T>

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  GSVertexArray.Factory<T>
      Factory GSVertexArray.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T get​(Vertex<Long> vertex)
      Get the data bound to the querying vertex.
      VertexRange<Long> GetVertexRange()
      Get the vertex range for this vertex array.
      void init​(VertexRange<Long> range)
      Init a vertex Array with a range of vertices.
      void init​(VertexRange<Long> range, T val)
      Init a vertex Array with a range of vertices, with default value.
      void setValue​(Vertex<Long> vertex, T val)
      Set the data for a specific vertex.
      void setValue​(VertexRange<Long> range, T val)
      Set the data for a range of vertices.
      void setValue​(T val)
      Full fill the vertex array with the specified value.
      @com.alibaba.fastffi.FFINameAlias("size") long size()
      Inherited from grape::Array
      void swap​(GSVertexArray<T> vertexArray)  
      • Methods inherited from interface com.alibaba.fastffi.CXXPointer

        delete
      • Methods inherited from interface com.alibaba.fastffi.FFIPointer

        getAddress
    • Method Detail

      • init

        void init​(VertexRange<Long> range)
        Init a vertex Array with a range of vertices.
        Parameters:
        range - vertex range.
      • init

        void init​(VertexRange<Long> range,
                  T val)
        Init a vertex Array with a range of vertices, with default value.
        Parameters:
        range - vertex range.
        val - default value.
      • setValue

        void setValue​(T val)
        Full fill the vertex array with the specified value.
        Parameters:
        val - vertex data.
      • setValue

        void setValue​(VertexRange<Long> range,
                      T val)
        Set the data for a range of vertices.
        Parameters:
        range - vertex range.
        val - value to set.
      • setValue

        void setValue​(Vertex<Long> vertex,
                      T val)
        Set the data for a specific vertex.
        Parameters:
        vertex - vertex.
        val - vertex data.
      • get

        T get​(Vertex<Long> vertex)
        Get the data bound to the querying vertex.
        Parameters:
        vertex - querying vertex.
        Returns:
        vertex data.
      • GetVertexRange

        VertexRange<Long> GetVertexRange()
        Get the vertex range for this vertex array.
        Returns:
        the range of vertices.
      • size

        @com.alibaba.fastffi.FFINameAlias("size") long size()
        Inherited from grape::Array