@JsonCreator public KafkaTableLayoutHandle(@JsonProperty("table") KafkaTableHandle table) { this.table = requireNonNull(table, "table is null"); }
@JsonCreator public WindowInfo(@JsonProperty("windowInfos") List<DriverWindowInfo> windowInfos) { this.windowInfos = ImmutableList.copyOf(windowInfos); }
@JsonCreator public HiveWrittenPartitions(@JsonProperty("partitionNames") List<String> partitionNames) { this.partitionNames = ImmutableList.copyOf(requireNonNull(partitionNames, "partitionNames is null")); }
@JsonCreator public LinearShardSpec(@JsonProperty("partitionNum") Integer partitionNum) { this.partitionNum = Preconditions.checkNotNull(partitionNum, "Must set partitionNum on LinearShardSpec"); }
@JsonCreator public ColumnComparisonDimFilter( @JsonProperty("dimensions") List<DimensionSpec> dimensions ) { this.dimensions = Preconditions.checkNotNull(dimensions, "dimensions"); Preconditions.checkArgument(dimensions.size() >= 2, "dimensions must have a least 2 dimensions"); }
@JsonCreator public NotDimFilter( @JsonProperty("field") DimFilter field ) { Preconditions.checkArgument(field != null, "NOT operator requires at least one field"); this.field = field; }
@JsonCreator public ConnectorId(String catalogName) { this.catalogName = requireNonNull(catalogName, "catalogName is null"); checkArgument(!catalogName.isEmpty(), "catalogName is empty"); }
@JsonCreator public Person(@JsonProperty("name") String name) { this.name = name; }
@JsonCreator public TpchPartitioningHandle(@JsonProperty("table") String table, @JsonProperty("totalRows") long totalRows) { this.table = requireNonNull(table, "table is null"); checkArgument(totalRows > 0, "totalRows must be at least 1"); this.totalRows = totalRows; }
@JsonCreator public CountAggregatorFactory( @JsonProperty("name") String name ) { Preconditions.checkNotNull(name, "Must have a valid, non-null aggregator name"); this.name = name; }
@JsonCreator public FireDepartmentConfig( @JsonProperty("maxRowsInMemory") int maxRowsInMemory, @JsonProperty("intermediatePersistPeriod") Period intermediatePersistPeriod ) { this.maxRowsInMemory = maxRowsInMemory; this.intermediatePersistPeriod = intermediatePersistPeriod; Preconditions.checkArgument(maxRowsInMemory > 0, "maxRowsInMemory[%s] should be greater than 0", maxRowsInMemory); Preconditions.checkNotNull(intermediatePersistPeriod, "intermediatePersistPeriod"); }
@JsonCreator public ArgumentBinding( @JsonProperty("expression") Expression expression, @JsonProperty("constant") NullableValue constant) { this.expression = expression; this.constant = constant; checkArgument((expression == null) != (constant == null), "Either expression or constant must be set"); }
@JsonCreator public KuduTableLayoutHandle(@JsonProperty("tableHandle") KuduTableHandle tableHandle, @JsonProperty("constraintSummary") TupleDomain<ColumnHandle> constraintSummary, @JsonProperty("desiredColumns") Optional<Set<ColumnHandle>> desiredColumns) { this.tableHandle = requireNonNull(tableHandle, "table is null"); this.constraintSummary = constraintSummary; this.desiredColumns = desiredColumns; }
@JsonCreator public ResourceGroupIdTemplate(String fullId) { List<String> segments = Splitter.on(".").splitToList(requireNonNull(fullId, "fullId is null")); checkArgument(!segments.isEmpty(), "Resource group id is empty"); this.segments = segments.stream() .map(ResourceGroupNameTemplate::new) .collect(Collectors.toList()); }
public KuduInsertTableHandle( String connectorId, SchemaTableName schemaTableName, List<Type> columnTypes, KuduTable table) { super(connectorId, schemaTableName, table); this.columnTypes = ImmutableList.copyOf(columnTypes); }
@JsonCreator public Person(@JsonProperty("name") String name) { this.name = name; }
@JsonCreator public TpcdsPartitioningHandle(@JsonProperty("table") String table, @JsonProperty("totalRows") long totalRows) { this.table = requireNonNull(table, "table is null"); checkArgument(totalRows > 0, "totalRows must be at least 1"); this.totalRows = totalRows; }
@JsonCreator public EnvironmentVariablePasswordProvider( @JsonProperty("variable") String variable ) { this.variable = Preconditions.checkNotNull(variable); }
@JsonCreator public BasicAuthenticatorCredentialUpdate( @JsonProperty("password") String password, @JsonProperty("iterations") Integer iterations ) { Preconditions.checkNotNull(password, "Cannot assign null password."); Preconditions.checkArgument(!StringUtils.isEmpty(password), "Cannot assign empty password."); this.password = password; this.iterations = iterations == null ? -1 : iterations; }
@JsonCreator public CombiningFirehoseFactory( @JsonProperty("delegates") List<FirehoseFactory> delegateFactoryList ) { Preconditions.checkArgument(!delegateFactoryList.isEmpty()); this.delegateFactoryList = delegateFactoryList; }