@ThriftField(2) public String getType() { return type; }
@ThriftField(1) public String getName() { return name; }
@Nullable @ThriftField(value = 1, requiredness = OPTIONAL) public PrestoThriftTableMetadata getTableMetadata() { return tableMetadata; }
@Nullable @ThriftField(value = 1, requiredness = OPTIONAL) public Set<String> getColumns() { return columns; }
@Nullable @ThriftField(value = 1, requiredness = OPTIONAL) public boolean[] getNulls() { return nulls; }
@Nullable @ThriftField(value = 6, requiredness = OPTIONAL) public PrestoThriftDate getDateData() { return dateData; }
@Nullable @ThriftField(value = 7, requiredness = OPTIONAL) public PrestoThriftTimestamp getTimestampData() { return timestampData; }
@Nullable @ThriftField(value = 1, requiredness = OPTIONAL) public PrestoThriftAllOrNoneValueSet getAllOrNoneValueSet() { return allOrNoneValueSet; }
@Nullable @ThriftField(value = 2, requiredness = OPTIONAL) public int[] getDates() { return dates; }
@Nullable @ThriftField(value = 2, requiredness = OPTIONAL) public int[] getSizes() { return sizes; }
@Nullable @ThriftField(value = 1, requiredness = OPTIONAL) public PrestoThriftInteger getIntegerData() { return integerData; }
@Nullable @ThriftField(value = 4, requiredness = OPTIONAL) public PrestoThriftVarchar getVarcharData() { return varcharData; }
@Nullable @ThriftField(value = 8, requiredness = OPTIONAL) public PrestoThriftJson getJsonData() { return jsonData; }
@ThriftConstructor public PrestoThriftTableMetadata( @ThriftField(name = "schemaTableName") PrestoThriftSchemaTableName schemaTableName, @ThriftField(name = "columns") List<PrestoThriftColumnMetadata> columns, @ThriftField(name = "comment") @Nullable String comment, @ThriftField(name = "indexableKeys") @Nullable List<Set<String>> indexableKeys) { this.schemaTableName = requireNonNull(schemaTableName, "schemaTableName is null"); this.columns = requireNonNull(columns, "columns is null"); this.comment = comment; this.indexableKeys = indexableKeys; }
@ThriftConstructor public PrestoThriftHyperLogLog( @ThriftField(name = "nulls") @Nullable boolean[] nulls, @ThriftField(name = "sizes") @Nullable int[] sizes, @ThriftField(name = "bytes") @Nullable byte[] bytes) { this.sliceType = new SliceData(nulls, sizes, bytes); }
@ThriftConstructor public PrestoThriftJson( @ThriftField(name = "nulls") @Nullable boolean[] nulls, @ThriftField(name = "sizes") @Nullable int[] sizes, @ThriftField(name = "bytes") @Nullable byte[] bytes) { this.sliceType = new SliceData(nulls, sizes, bytes); }
@ThriftConstructor public PrestoThriftRangeValueSet(@ThriftField(name = "ranges") List<PrestoThriftRange> ranges) { this.ranges = requireNonNull(ranges, "ranges is null"); }
@Nullable @ThriftField(value = 1, requiredness = OPTIONAL) public boolean[] getNulls() { return sliceType.getNulls(); }
/** * Returns metadata for a given table. * * @param schemaTableName schema and table name * @return metadata for a given table, or a {@literal null} value inside if it does not exist */ @ThriftMethod("prestoGetTableMetadata") PrestoThriftNullableTableMetadata getTableMetadata( @ThriftField(name = "schemaTableName") PrestoThriftSchemaTableName schemaTableName) throws PrestoThriftServiceException, TException;
@Nullable @ThriftField(value = 3, requiredness = OPTIONAL) public byte[] getBytes() { return sliceType.getBytes(); }