Class TableBuilder
java.lang.Object
org.apache.druid.catalog.model.table.TableBuilder
Informal table spec builder for tests. Takes the tedium out of building
up property maps, column lists, and the various objects that define a
table. Not useful outside of tests since Druid code should not create
table objects except generically from specs provided by the user.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()buildResolved(com.fasterxml.jackson.databind.ObjectMapper mapper) clusterColumns(ClusterKeySpec... clusterKeys) column(ColumnSpec column) columns()columns(List<ColumnSpec> columns) copy()static TableBuilderstatic TableBuildercopyOf(TableMetadata table) static TableBuilderdatasource(String name, String granularity) description(String description) static TableBuilderhiddenColumns(String... hiddenColumns) hiddenColumns(List<String> hiddenColumns) inputFormat(Map<String, Object> format) inputSource(Map<String, Object> inputSource) static TableBuilderproperties(Map<String, Object> properties) sealed(boolean sealed) segmentGranularity(String segmentGranularity) static TableBuilderupdateFor(TableMetadata table)
-
Constructor Details
-
TableBuilder
-
-
Method Details
-
datasource
-
external
-
updateFor
-
copyOf
-
copyOf
-
of
-
copy
-
properties
-
properties
-
property
-
description
-
segmentGranularity
-
clusterColumns
-
sealed
-
inputSource
-
inputFormat
-
columns
-
columns
-
column
-
timeColumn
-
column
-
column
-
buildSpec
-
build
-
buildResolved
-