org.apache.sysds.runtime.lineage

## Class LineageItem

- java.lang.Object
- - org.apache.sysds.runtime.lineage.LineageItem

-     public class LineageItem
      extends Object

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `LineageItem.LineageItemType`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `dedupItemOpcode`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `LineageItem()`
    `LineageItem(LineageItem li)`
    `LineageItem(long id, LineageItem li)`
    `LineageItem(long id, String data)`
    `LineageItem(long id, String data, String opcode)`
    `LineageItem(long id, String data, String opcode, LineageItem[] inputs)`
    `LineageItem(String data)`
    `LineageItem(String opcode, LineageItem[] inputs)`
    `LineageItem(String data, String opcode)`
    `LineageItem(String data, String opcode, LineageItem[] inputs)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `LineageItem` | `deepCopy()`
    `boolean` | `equals(Object o)`
    `String` | `getData()`
    `long` | `getId()`
    `LineageItem[]` | `getInputs()`
    `String` | `getOpcode()`
    `LineageItem.LineageItemType` | `getType()`
    `int` | `hashCode()`
    `boolean` | `isDedup()`
    `boolean` | `isInstruction()`
    `boolean` | `isLeaf()`
    `boolean` | `isVisited()`
    `static void` | `resetIDSequence()`
    `void` | `resetVisitStatus()` Deprecated.
    `static void` | `resetVisitStatus(LineageItem[] lis)` Deprecated.
    `void` | `resetVisitStatusNR()` Non-recursive equivalent of `resetVisitStatus()` for robustness with regard to stack overflow errors.
    `static void` | `resetVisitStatusNR(LineageItem[] lis)` Non-recursive equivalent of `resetVisitStatus(LineageItem[])` for robustness with regard to stack overflow errors.
    `void` | `setInput(int i, LineageItem item)`
    `void` | `setVisited()`
    `void` | `setVisited(boolean flag)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### dedupItemOpcode

          public static final String dedupItemOpcode

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### LineageItem

          public LineageItem()

    - #### LineageItem

          public LineageItem(String data)

    - #### LineageItem

          public LineageItem(long id,
                             String data)

    - #### LineageItem

          public LineageItem(String data,
                             String opcode)

    - #### LineageItem

          public LineageItem(String opcode,
                             LineageItem[] inputs)

    - #### LineageItem

          public LineageItem(String data,
                             String opcode,
                             LineageItem[] inputs)

    - #### LineageItem

          public LineageItem(LineageItem li)

    - #### LineageItem

          public LineageItem(long id,
                             LineageItem li)

    - #### LineageItem

          public LineageItem(long id,
                             String data,
                             String opcode)

    - #### LineageItem

          public LineageItem(long id,
                             String data,
                             String opcode,
                             LineageItem[] inputs)

  - ### Method Detail

    - #### getInputs

          public LineageItem[] getInputs()

    - #### setInput

          public void setInput(int i,
                               LineageItem item)

    - #### getData

          public String getData()

    - #### isVisited

          public boolean isVisited()

    - #### setVisited

          public void setVisited()

    - #### setVisited

          public void setVisited(boolean flag)

    - #### getId

          public long getId()

    - #### getOpcode

          public String getOpcode()

    - #### getType

          public LineageItem.LineageItemType getType()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### deepCopy

          public LineageItem deepCopy()

    - #### isLeaf

          public boolean isLeaf()

    - #### isInstruction

          public boolean isInstruction()

    - #### isDedup

          public boolean isDedup()

    - #### resetVisitStatusNR

          public void resetVisitStatusNR()

      Non-recursive equivalent of `resetVisitStatus()` for robustness with regard to stack overflow errors.

    - #### resetVisitStatusNR

          public static void resetVisitStatusNR(LineageItem[] lis)

      Non-recursive equivalent of `resetVisitStatus(LineageItem[])` for robustness with regard to stack overflow errors.
      Parameters:
        `lis` - root lineage items

    - #### resetVisitStatus

          @Deprecated
          public void resetVisitStatus()

      Deprecated.

    - #### resetVisitStatus

          @Deprecated
          public static void resetVisitStatus(LineageItem[] lis)

      Deprecated.

    - #### resetIDSequence

          public static void resetIDSequence()

Copyright © 2020 The Apache Software Foundation. All rights reserved.