Class Attribute

java.lang.Object
com.sparsity.sparksee.gdb.Attribute

public class Attribute extends Object
Attribute data class.

It contains information about an attribute.

Author:
Sparsity Technologies http://www.sparsity-technologies.com
  • Field Details

    • InvalidAttribute

      public static int InvalidAttribute
      Invalid attribute identifier constant.

  • Method Details

    • getSize

      public long getSize()
      Gets the number of different values.

      Returns:
      The number of different values.
    • getId

      public int getId()
      Gets the Sparksee attribute identifier.

      Returns:
      The Sparksee attribute identifier.
    • getTypeId

      public int getTypeId()
      Gets the Sparksee type identifier.

      Returns:
      The Sparksee type identifier.
    • isArrayAttribute

      public boolean isArrayAttribute()
      Check if it's an array attribute.

      Returns:
      True if it's an array attribute, or false otherwise.
    • getCount

      public long getCount()
      Gets the number of non-NULL values.

      Returns:
      The number of non-NULL values.
    • isSessionAttribute

      public boolean isSessionAttribute()
      Check if it's a session attribute or a persistent one.

      Returns:
      True if it's a session attribute, or false otherwise.
    • getDataType

      public DataType getDataType()
      Gets the data type.

      Returns:
      The DataType.
    • getKind

      public AttributeKind getKind()
      Gets the attribute kind.

      Returns:
      The AttributeKind.
    • getDefaultValue

      public Value getDefaultValue()
      Gets the default value for this attribute.

      Returns:
      A new Value instance with the default value, or NULL if none is set.
    • getArraySize

      public int getArraySize()
      Gets the number of elements in the array.

      Returns:
      The size of the array
    • getName

      public String getName()
      Gets the unique attribute name.

      Returns:
      The unique attribute name.