Package jakarta.nosql.column
Interface Column
-
public interface Column
A Column Family entity unit, it is a tuple (pair) that consists of a key-value pair, where the key is mapped to a value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Column.ColumnProvider
A provider ofColumn
where it will create from two parameters: The first one is the name of column The second one is the information of column
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
get()
Alias toValue.get()
<T> T
get(TypeSupplier<T> typeSupplier)
Alias toValue.get(TypeSupplier)
<T> T
get(Class<T> clazz)
Alias toValue.get(Class)
String
getName()
The column's nameValue
getValue()
the column's valuestatic <V> Column
of(String name, V value)
Creates a column instance
-
-
-
Method Detail
-
of
static <V> Column of(String name, V value)
Creates a column instance- Type Parameters:
V
- the value type- Parameters:
name
- - column's namevalue
- - column's value- Returns:
- a column instance
- Throws:
NullPointerException
- when there is any null parameter- See Also:
Columns
-
getName
String getName()
The column's name- Returns:
- name
-
get
<T> T get(Class<T> clazz)
Alias toValue.get(Class)
- Type Parameters:
T
- the type- Parameters:
clazz
- the clazz- Returns:
Value.get(Class)
- Throws:
NullPointerException
- seeValue.get(Class)
UnsupportedOperationException
- seeValue.get(Class)
-
get
<T> T get(TypeSupplier<T> typeSupplier)
Alias toValue.get(TypeSupplier)
- Type Parameters:
T
-Value.get(Class)
- Parameters:
typeSupplier
-Value.get(Class)
- Returns:
Value.get(TypeSupplier)
- Throws:
NullPointerException
- seeValue.get(Class)
UnsupportedOperationException
- seeValue.get(Class)
-
get
Object get()
Alias toValue.get()
- Returns:
Value.get()
-
-