Class Attribute
java.lang.Object
com.sparsity.sparksee.gdb.Attribute
Attribute data class.
It contains information about an attribute.
- Author:
- Sparsity Technologies http://www.sparsity-technologies.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intInvalid attribute identifier constant. -
Method Summary
Modifier and TypeMethodDescriptionintGets the number of elements in the array.longgetCount()Gets the number of non-NULL values.Gets the data type.Gets the default value for this attribute.intgetId()Gets the Sparksee attribute identifier.getKind()Gets the attribute kind.getName()Gets the unique attribute name.longgetSize()Gets the number of different values.intGets the Sparksee type identifier.booleanCheck if it's an array attribute.booleanCheck if it's a session attribute or a persistent one.
-
Field Details
-
InvalidAttribute
public static int InvalidAttributeInvalid 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
-
getKind
-
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
-