@JsonCreator public TypeVariableConstraint( @JsonProperty("name") String name, @JsonProperty("comparableRequired") boolean comparableRequired, @JsonProperty("orderableRequired") boolean orderableRequired, @JsonProperty("variadicBound") @Nullable String variadicBound) { this.name = name; this.comparableRequired = comparableRequired; this.orderableRequired = orderableRequired; this.variadicBound = variadicBound; }
public KuduInsertTableHandle( String connectorId, SchemaTableName schemaTableName, List<Type> columnTypes, KuduTable table) { super(connectorId, schemaTableName, table); this.columnTypes = ImmutableList.copyOf(columnTypes); }
@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 MemoryPoolAssignmentsRequest(@JsonProperty("coordinatorId") String coordinatorId, @JsonProperty("version") long version, @JsonProperty("assignments") List<MemoryPoolAssignment> assignments) { this.coordinatorId = requireNonNull(coordinatorId, "coordinatorId is null"); this.version = version; this.assignments = ImmutableList.copyOf(requireNonNull(assignments, "assignments is null")); }
@JsonCreator public DimFilterHavingSpec( @JsonProperty("filter") final DimFilter dimFilter, @JsonProperty("finalize") final Boolean finalize ) { this.dimFilter = Preconditions.checkNotNull(dimFilter, "filter"); this.finalize = finalize == null ? DEFAULT_FINALIZE : finalize; }
@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 RedisTableDescription( @JsonProperty("tableName") String tableName, @JsonProperty("schemaName") String schemaName, @JsonProperty("key") RedisTableFieldGroup key, @JsonProperty("value") RedisTableFieldGroup value) { checkArgument(!isNullOrEmpty(tableName), "tableName is null or is empty"); this.tableName = tableName; this.schemaName = schemaName; this.key = key; this.value = value; }
@JsonCreator public ThriftColumnHandle( @JsonProperty("columnName") String columnName, @JsonProperty("columnType") Type columnType, @JsonProperty("comment") @Nullable String comment, @JsonProperty("hidden") boolean hidden) { this.columnName = requireNonNull(columnName, "columnName is null"); this.columnType = requireNonNull(columnType, "columnType is null"); this.comment = comment; this.hidden = hidden; }
@JsonCreator public LockAcquireAction( @JsonProperty("lockType") @Nullable TaskLockType type, // nullable for backward compatibility @JsonProperty("interval") Interval interval, @JsonProperty("timeoutMs") long timeoutMs ) { this.type = type == null ? TaskLockType.EXCLUSIVE : type; this.interval = Preconditions.checkNotNull(interval, "interval"); this.timeoutMs = timeoutMs; }
@JsonCreator public SubstringDimExtractionFn( @JsonProperty("index") int index, @Nullable @JsonProperty("length") Integer length ) { Preconditions.checkArgument(length == null || length > 0, "length must be strictly positive"); this.index = index; this.end = length != null ? index + length : -1; }
@JsonProperty @Nullable public String getSchemaName() { return schemaName; }
@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 HllSketchToEstimateWithBoundsPostAggregator( @JsonProperty("name") final String name, @JsonProperty("field") final PostAggregator field, @JsonProperty("numStdDev") @Nullable final Integer numStdDevs ) { this.name = name; this.field = field; this.numStdDevs = numStdDevs == null ? 1 : numStdDevs; }
@JsonCreator public LookupExtractorFactoryMapContainer( @JsonProperty("version") String version, @JsonProperty("lookupExtractorFactory") Map<String, Object> lookupExtractorFactory ) { this.version = version; this.lookupExtractorFactory = Preconditions.checkNotNull(lookupExtractorFactory, "null factory"); }
@JsonCreator public DerivativeDataSourceMetadata( @JsonProperty("baseDataSource") String baseDataSource, @JsonProperty("dimensions") Set<String> dimensions, @JsonProperty("metrics") Set<String> metrics ) { Preconditions.checkArgument(!Strings.isNullOrEmpty(baseDataSource), "baseDataSource cannot be null or empty. Please provide a baseDataSource."); this.baseDataSource = baseDataSource; this.dimensions = Preconditions.checkNotNull(dimensions, "dimensions cannot be null. This is not a valid DerivativeDataSourceMetadata."); this.metrics = Preconditions.checkNotNull(metrics, "metrics cannot be null. This is not a valid DerivativeDataSourceMetadata."); }
@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"); }
@JsonProperty @Nullable public String getCatalogName() { return catalogName; }
@JsonCreator public HivePartitionKey( @JsonProperty("name") String name, @JsonProperty("value") String value) { requireNonNull(name, "name is null"); requireNonNull(value, "value is null"); this.name = name; this.value = value.equals(HIVE_DEFAULT_DYNAMIC_PARTITION) ? "\\N" : value; }
@JsonCreator public WindowInfo(@JsonProperty("windowInfos") List<DriverWindowInfo> windowInfos) { this.windowInfos = ImmutableList.copyOf(windowInfos); }