public interface Plate<K>
Modifier and Type | Method and Description |
---|---|
ColumnName |
getName()
Human-readable name for the plate, typically automatically extracted from a DataSource column name.
|
default Index<K> |
index(K key) |
default java.util.Collection<Index<K>> |
indices(Index<?>... parentIndices) |
java.util.Collection<Index<K>> |
indices(Query parentIndices)
Get the indices available given the indices of the parent (enclosing) plates.
|
static Plate<java.lang.Integer> |
ofIntegers(ColumnName columnName,
int size)
a plate with indices 0, 1, 2, ..., size-1
|
static Plate<java.lang.Integer> |
ofIntegers(java.lang.String columnName,
int size) |
static Plate<java.lang.String> |
ofStrings(ColumnName columnName,
int size)
a plate with indices category_0, category_1, ...
|
static Plate<java.lang.String> |
ofStrings(java.lang.String columnName,
int size)
a plate with indices category_0, category_1, ...
|
static <T> Plate<T> |
ofType(blang.inits.Creator creator,
com.google.inject.TypeLiteral<T> type,
ColumnName columnName,
int size) |
static <T> Plate<T> |
ofType(org.eclipse.xtext.xbase.lib.Functions.Function1<? super java.lang.String,? extends T> creatorFct,
ColumnName columnName,
int size) |
static <T> Plate<T> |
ofType(com.google.inject.TypeLiteral<T> type,
java.lang.String columnName,
int size) |
static <T> Plate<T> |
parse(java.util.Optional<ColumnName> name,
java.util.Optional<java.lang.Integer> maxSize,
DataSource dataSource,
GlobalDataSourceStore globalDataSourceStore,
blang.inits.parsing.QualifiedName qualifiedName,
com.google.inject.TypeLiteral<T> typeLiteral,
blang.inits.Creator creator)
Parser automatically called by the inits infrastructure.
|
K |
parse(java.lang.String string) |
ColumnName getName()
java.util.Collection<Index<K>> indices(Query parentIndices)
K parse(java.lang.String string)
static Plate<java.lang.Integer> ofIntegers(ColumnName columnName, int size)
static Plate<java.lang.String> ofStrings(ColumnName columnName, int size)
static <T> Plate<T> ofType(org.eclipse.xtext.xbase.lib.Functions.Function1<? super java.lang.String,? extends T> creatorFct, ColumnName columnName, int size)
static <T> Plate<T> ofType(blang.inits.Creator creator, com.google.inject.TypeLiteral<T> type, ColumnName columnName, int size)
static Plate<java.lang.Integer> ofIntegers(java.lang.String columnName, int size)
static Plate<java.lang.String> ofStrings(java.lang.String columnName, int size)
static <T> Plate<T> ofType(com.google.inject.TypeLiteral<T> type, java.lang.String columnName, int size)
static <T> Plate<T> parse(java.util.Optional<ColumnName> name, java.util.Optional<java.lang.Integer> maxSize, DataSource dataSource, GlobalDataSourceStore globalDataSourceStore, blang.inits.parsing.QualifiedName qualifiedName, com.google.inject.TypeLiteral<T> typeLiteral, blang.inits.Creator creator)