Package io.kareldb.kafka
Class KafkaTable
- java.lang.Object
-
- org.apache.calcite.schema.impl.AbstractTable
-
- org.apache.calcite.adapter.java.AbstractQueryableTable
-
- io.kareldb.schema.Table
-
- io.kareldb.schema.FilterableTable
-
- io.kareldb.kafka.KafkaTable
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.calcite.schema.FilterableTable
,org.apache.calcite.schema.ModifiableTable
,org.apache.calcite.schema.QueryableTable
,org.apache.calcite.schema.Table
,org.apache.calcite.schema.Wrapper
public class KafkaTable extends FilterableTable
Table that reads Kafka topics.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.kareldb.schema.Table
Table.ComparableArrayComparator
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.avro.generic.GenericData
GENERIC
-
Fields inherited from class io.kareldb.schema.Table
EMPTY_VALUE
-
-
Constructor Summary
Constructors Constructor Description KafkaTable(Schema schema, String name, RelDef rowType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
configure(Map<String,?> operand)
static org.apache.calcite.util.Pair<org.apache.avro.Schema,org.apache.avro.Schema>
getKeyValueSchemas(org.apache.avro.Schema schema)
VersionedCache
getRows()
void
init()
void
sync()
-
Methods inherited from class io.kareldb.schema.FilterableTable
scan, toString
-
Methods inherited from class io.kareldb.schema.Table
asQueryable, getConfigs, getKeyIndices, getModifiableCollection, getName, getRelDef, getRowType, getRowType, getSchema, identityList, setRelDef, size, toArray, toKeyValue, toModificationRel, toRow
-
Methods inherited from class org.apache.calcite.adapter.java.AbstractQueryableTable
getElementType, getExpression
-
Methods inherited from class org.apache.calcite.schema.impl.AbstractTable
getJdbcTableType, getStatistic, isRolledUp, rolledUpColumnValidInsideAgg, unwrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.calcite.schema.QueryableTable
getElementType, getExpression
-
-
-
-
Method Detail
-
getRows
public VersionedCache getRows()
-
close
public void close() throws IOException
- Throws:
IOException
-
getKeyValueSchemas
public static org.apache.calcite.util.Pair<org.apache.avro.Schema,org.apache.avro.Schema> getKeyValueSchemas(org.apache.avro.Schema schema)
-
-