java.lang.Object
com.Lomikel.Januser.Wertex
com.Lomikel.Januser.Hertex
com.astrolabsoftware.FinkBrowser.Januser.Alert
All Implemented Interfaces:
Element, Host, Vertex

public class Alert extends Hertex
Alert is a Hertex representing alert.
Author:
J.Hrivnac
  • Field Details

    • log

      private static org.apache.logging.log4j.Logger log
      Logging .
  • Constructor Details

    • Alert

      public Alert(Vertex vertex, String fields)
      Dress existing Vertex with values from HBase.
      Parameters:
      vertex - The original Vertex.
      fields - The coma-separated list of fields to fill in from the database. All fields will be filled in if null.
    • Alert

      public Alert(Vertex vertex, String[] fields)
      Dress existing Vertex with values from HBase.
      Parameters:
      vertex - The original Vertex.
      fields - The fields to fill in from the database. All fields will be filled in if null.
  • Method Details

    • getOrCreate

      public static Vertex getOrCreate(String rowkey, GraphTraversalSource g, String fields)
      Get Alert backuped by HBase from the JanusGraph, or create if it doesn't exist yet.
      Parameters:
      rowkey - The Vertex rowkey value.
      g - The GraphTraversalSource to be used to execute operations.
      fields - The coma-separated list of fields to fill. null will fill all fields. Empty String will fill nothing besides rowkey fields.
      Returns:
      The created Vertex. It will be created even when no corresponding entry exists in the HBase. In that case, it can be enhanced later.
    • getOrCreate

      public static Vertex getOrCreate(String rowkey, GraphTraversalSource g, boolean enhance)
      Get Alert backuped by HBase from the JanusGraph, or create if it doesn't exist yet.
      Parameters:
      rowkey - The Vertex rowkey value.
      g - The GraphTraversalSource to be used to execute operations.
      enhance - Whether enhance all values from the HBase.
      Returns:
      The created Vertex. It will be created even when no corresponding entry exists in the HBase. In that case, it can be enhanced later.