Class H2TableDescriptor
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.h2.H2TableDescriptor
-
public class H2TableDescriptor extends Object
Information about table in database.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAFFINITY_KEY_IDX_NAMEAffinity key index name.static StringPK_HASH_IDX_NAMEPK hash index name.static StringPK_IDX_NAMEPK index name.
-
Constructor Summary
Constructors Constructor Description H2TableDescriptor(IgniteH2Indexing idx, String schemaName, GridQueryTypeDescriptor type, GridCacheContextInfo<?,?> cacheInfo)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GridCacheContextInfo<?,?>cacheInfo()StringcacheName()voidcreateHashIndex(GridH2Table tbl)Create hash index if needed.voidcreateTextIndex(GridH2Table tbl)Create text (lucene) index if needed.org.h2.index.IndexhashIndex()IgniteH2Indexingindexing()StringschemaName()GridH2Tabletable()voidtable(GridH2Table tbl)StringtoString()
-
-
-
Field Detail
-
PK_IDX_NAME
public static final String PK_IDX_NAME
PK index name.- See Also:
- Constant Field Values
-
PK_HASH_IDX_NAME
public static final String PK_HASH_IDX_NAME
PK hash index name.- See Also:
- Constant Field Values
-
AFFINITY_KEY_IDX_NAME
public static final String AFFINITY_KEY_IDX_NAME
Affinity key index name.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
H2TableDescriptor
public H2TableDescriptor(IgniteH2Indexing idx, String schemaName, GridQueryTypeDescriptor type, GridCacheContextInfo<?,?> cacheInfo)
Constructor.- Parameters:
idx- Indexing.schemaName- Schema name.type- Type descriptor.cacheInfo- Cache context info.
-
-
Method Detail
-
indexing
public IgniteH2Indexing indexing()
- Returns:
- Indexing.
-
table
public GridH2Table table()
- Returns:
- Table.
-
table
public void table(GridH2Table tbl)
- Parameters:
tbl- Table.
-
schemaName
public String schemaName()
- Returns:
- Schema name.
-
cacheName
public String cacheName()
- Returns:
- Cache name.
-
cacheInfo
public GridCacheContextInfo<?,?> cacheInfo()
- Returns:
- Cache context info.
-
hashIndex
public org.h2.index.Index hashIndex()
- Returns:
- Hash index.
-
createHashIndex
public void createHashIndex(GridH2Table tbl)
Create hash index if needed.
-
createTextIndex
public void createTextIndex(GridH2Table tbl)
Create text (lucene) index if needed.
-
-