Class Nyquence

java.lang.Object
io.odysz.semantic.syn.Nyquence

public class Nyquence extends Object
  • Field Details

    • n

      public long n
  • Constructor Details

    • Nyquence

      public Nyquence(long n)
    • Nyquence

      public Nyquence(String n)
  • Method Details

    • compareNyq

      public static int compareNyq(long a, long b)
      Compare a, b within modal of max long.
       min-long < 0      0            max-long
                      a  b
           a             b
           b                    a             a - b < 0
       
      Parameters:
      a -
      b -
      Returns:
      1 if a > b else -1 if a < b else 0
    • inc

      public Nyquence inc(Nyquence... maxn)
    • add

      public Nyquence add(int inc)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • maxn

      public static long maxn(long a, long b)
    • minn

      public static long minn(long a, long b)
    • maxn

      public static Nyquence maxn(Nyquence a, Nyquence b)
    • maxn

      public static Nyquence maxn(Nyquence a, Nyquence b, Nyquence... more)
    • compareNyq

      public static int compareNyq(Nyquence a, Nyquence b)
    • maxn

      public static Nyquence maxn(HashMap<String,Nyquence> nv)
    • maxn

      public static Nyquence maxn(HashMap<String,Nyquence> nv, Nyquence n)
    • clone

      public static HashMap<String,Nyquence> clone(HashMap<String,Nyquence> from)
    • clone

      public static HashMap<String,Nyquence>[] clone(HashMap<String,Nyquence>[] nvs)
    • getn

      public static Nyquence getn(AnResultset chal, String nyqcol) throws SQLException
      Parse Nyquence from result set.
      Parameters:
      chal -
      nyqcol -
      Returns:
      Nyquence
      Throws:
      SQLException
    • abs

      public static long abs(Nyquence a, Nyquence b)
      Get absolute distance.
      Parameters:
      a -
      b -
      Returns:
      | a - b |
    • sqlCompare

      public static io.odysz.transact.sql.parts.condition.ExprPart sqlCompare(String alias, String nyqcol, Nyquence n)
    • sqlCompare

      public static io.odysz.transact.sql.parts.condition.ExprPart sqlCompare(String lcol, String rcol)
    • sqlCompare

      public static io.odysz.transact.sql.parts.condition.ExprPart sqlCompare(String lcol, long rcol)
    • sqlCompare

      public static io.odysz.transact.sql.parts.condition.ExprPart sqlCompare(String lalias, String lcol, String ralias, String rcol)
    • sqlOrderby

      public static io.odysz.transact.sql.parts.condition.ExprPart sqlOrderby(SynChangeMeta m)
      // FIXME Not used? Unfinished // FIXME Not used? Unfinished // FIXME Not used? Unfinished
       |uids  |nyquence|updcols|seq|
       +------+--------+-------+---+
       |X,0002|       2|       |  3|
       |X,0003|       2|       |  4|
       |X,0001|       2|       |  2|
       |Y,0003|       2|       |  1|
       |X,0004|       3|       |  2|
      Parameters:
      m -
      Returns:
      ??