@ThriftConstructor public PrestoThriftAllOrNoneValueSet(boolean all) { this.all = all; }
@ThriftConstructor public PrestoThriftServiceException(String message, boolean retryable) { super(message); this.retryable = retryable; }
@ThriftConstructor public PrestoThriftEquatableValueSet(boolean whiteList, List<PrestoThriftBlock> values) { this.whiteList = whiteList; this.values = requireNonNull(values, "values are null"); }
@ThriftConstructor public PrestoThriftHostAddress(String host, int port) { this.host = requireNonNull(host, "host is null"); this.port = port; }
@ThriftConstructor public PrestoThriftNullableSchemaName(@Nullable String schemaName) { this.schemaName = schemaName; }
@ThriftConstructor public PrestoThriftNullableColumnSet(@Nullable Set<String> columns) { this.columns = columns; }
@ThriftConstructor public PrestoThriftDomain(PrestoThriftValueSet valueSet, boolean nullAllowed) { this.valueSet = requireNonNull(valueSet, "valueSet is null"); this.nullAllowed = nullAllowed; }
@ThriftConstructor public PrestoThriftNullableTableMetadata(@Nullable PrestoThriftTableMetadata tableMetadata) { this.tableMetadata = tableMetadata; }
@ThriftConstructor public PrestoThriftNullableToken(@Nullable PrestoThriftId token) { this.token = token; }
@ThriftConstructor public PrestoThriftRange(PrestoThriftMarker low, PrestoThriftMarker high) { this.low = requireNonNull(low, "low is null"); this.high = requireNonNull(high, "high is null"); }
@ThriftConstructor public PrestoThriftSplitBatch(List<PrestoThriftSplit> splits, @Nullable PrestoThriftId nextToken) { this.splits = requireNonNull(splits, "splits is null"); this.nextToken = nextToken; }
@ThriftConstructor public PrestoThriftSplit(PrestoThriftId splitId, List<PrestoThriftHostAddress> hosts) { this.splitId = requireNonNull(splitId, "splitId is null"); this.hosts = requireNonNull(hosts, "hosts is null"); }
@JsonCreator @ThriftConstructor public PrestoThriftId(@JsonProperty("id") byte[] id) { this.id = requireNonNull(id, "id is null"); }
@ThriftConstructor public PrestoThriftTupleDomain(@Nullable Map<String, PrestoThriftDomain> domains) { if (domains != null) { for (String name : domains.keySet()) { checkValidName(name); } } this.domains = domains; }
@ThriftConstructor public PrestoThriftRangeValueSet(@ThriftField(name = "ranges") List<PrestoThriftRange> ranges) { this.ranges = requireNonNull(ranges, "ranges is null"); }
@ThriftConstructor public PrestoThriftDouble(@Nullable boolean[] nulls, @Nullable double[] doubles) { checkArgument(sameSizeIfPresent(nulls, doubles), "nulls and values must be of the same size"); this.nulls = nulls; this.doubles = doubles; }
@ThriftConstructor public PrestoThriftMarker(@Nullable PrestoThriftBlock value, PrestoThriftBound bound) { checkArgument(value == null || value.numberOfRecords() == 1, "value must contain exactly one record when present"); this.value = value; this.bound = requireNonNull(bound, "bound is null"); }
@ThriftConstructor public PrestoThriftPageResult(List<PrestoThriftBlock> columnBlocks, int rowCount, @Nullable PrestoThriftId nextToken) { this.columnBlocks = requireNonNull(columnBlocks, "columnBlocks is null"); checkArgument(rowCount >= 0, "rowCount is negative"); checkAllColumnsAreOfExpectedSize(columnBlocks, rowCount); this.rowCount = rowCount; this.nextToken = nextToken; }
@ThriftConstructor public PrestoThriftColumnMetadata(String name, String type, @Nullable String comment, boolean hidden) { this.name = checkValidName(name); this.type = requireNonNull(type, "type is null"); this.comment = comment; this.hidden = hidden; }
@ThriftConstructor public PrestoThriftBoolean(@Nullable boolean[] nulls, @Nullable boolean[] booleans) { checkArgument(sameSizeIfPresent(nulls, booleans), "nulls and values must be of the same size"); this.nulls = nulls; this.booleans = booleans; }