/** * Returns a {@link SchemaBuilder} for a Uuid field. You can use the resulting SchemaBuilder * to set additional schema settings such as required/optional, default value, and documentation. * * @return the schema builder */ public static SchemaBuilder builder() { return SchemaBuilder.string() .name(LOGICAL_NAME) .version(1); }
/** * Returns a {@link SchemaBuilder} for a {@link ZonedTime}. You can use the resulting SchemaBuilder * to set additional schema settings such as required/optional, default value, and documentation. * * @return the schema builder */ public static SchemaBuilder builder() { return SchemaBuilder.string() .name(SCHEMA_NAME) .version(1); }
/** * Returns a {@link SchemaBuilder} for an XML field. You can use the resulting SchemaBuilder * to set additional schema settings such as required/optional, default value, and documentation. * * @return the schema builder */ public static SchemaBuilder builder() { return SchemaBuilder.string() .name(LOGICAL_NAME) .version(1); }
/** * Returns a {@link SchemaBuilder} for a JSON field. You can use the resulting SchemaBuilder * to set additional schema settings such as required/optional, default value, and documentation. * * @return the schema builder */ public static SchemaBuilder builder() { return SchemaBuilder.string() .name(LOGICAL_NAME) .version(1); }
/** * Returns a {@link SchemaBuilder} for a {@link ZonedTimestamp}. You can use the resulting SchemaBuilder * to set additional schema settings such as required/optional, default value, and documentation. * * @return the schema builder */ public static SchemaBuilder builder() { return SchemaBuilder.string() .name(SCHEMA_NAME) .version(1); }
/** * Returns a {@link SchemaBuilder} for a {@link MicroDuration}. The resulting schema will describe a field * with the {@value #SCHEMA_NAME} as the {@link Schema#name() name} and {@link SchemaBuilder#float64()} FLOAT64} for the literal * type storing the number of <em>microseconds</em> for that duration. * <p> * You can use the resulting SchemaBuilder to set or override additional schema settings such as required/optional, default * value, and documentation. * * @return the schema builder */ public static SchemaBuilder builder() { return SchemaBuilder.float64() .name(SCHEMA_NAME) .version(1); }
/** * Returns a {@link SchemaBuilder} for a {@link Date}. The builder will create a schema that describes a field * with the {@value #SCHEMA_NAME} as the {@link Schema#name() name} and {@link SchemaBuilder#int32() INT32} for the literal * type storing the number of <em>days</em> since January 1, 1970, at 00:00:00Z. * <p> * You can use the resulting SchemaBuilder to set or override additional schema settings such as required/optional, default * value, and documentation. * * @return the schema builder */ public static SchemaBuilder builder() { return SchemaBuilder.int32() .name(SCHEMA_NAME) .version(1); }
/** * Returns a {@link SchemaBuilder} for a {@link MicroTimestamp}. The resulting schema will describe a field * with the {@value #SCHEMA_NAME} as the {@link Schema#name() name} and {@link SchemaBuilder#int64() INT64} for the literal * type storing the number of <em>microseconds</em> past midnight. * <p> * You can use the resulting SchemaBuilder to set or override additional schema settings such as required/optional, default * value, and documentation. * * @return the schema builder */ public static SchemaBuilder builder() { return SchemaBuilder.int64() .name(SCHEMA_NAME) .version(1); }
/** * Returns a {@link SchemaBuilder} for a {@link Time}. The resulting schema will describe a field * with the {@value #SCHEMA_NAME} as the {@link Schema#name() name} and {@link SchemaBuilder#int32() INT32} for the literal * type storing the number of <em>milliseconds</em> past midnight. * <p> * You can use the resulting SchemaBuilder to set or override additional schema settings such as required/optional, default * value, and documentation. * * @return the schema builder */ public static SchemaBuilder builder() { return SchemaBuilder.int32() .name(SCHEMA_NAME) .version(1); }
/** * Returns a {@link SchemaBuilder} for a Bits. You can use the resulting SchemaBuilder * to set additional schema settings such as required/optional, default value, and documentation. * * @param length maximum the number of bits in the set * @return the schema builder */ public static SchemaBuilder builder(int length) { return SchemaBuilder.bytes() .name(LOGICAL_NAME) .parameter(LENGTH_FIELD, Integer.toString(length)) .version(1); }
/** * Returns a {@link SchemaBuilder} for a {@link NanoTime}. The resulting schema will describe a field * with the {@value #SCHEMA_NAME} as the {@link Schema#name() name} and {@link SchemaBuilder#int64() INT64} for the literal * type storing the number of <em>nanoseconds</em> past midnight. * <p> * You can use the resulting SchemaBuilder to set or override additional schema settings such as required/optional, default * value, and documentation. * * @return the schema builder */ public static SchemaBuilder builder() { return SchemaBuilder.int64() .name(SCHEMA_NAME) .version(1); }
/** * Returns a {@link SchemaBuilder} for a {@link Timestamp}. The resulting schema will describe a field * with the {@value #SCHEMA_NAME} as the {@link Schema#name() name} and {@link SchemaBuilder#int64() INT64} for the literal * type storing the number of <em>milliseconds</em> past midnight. * <p> * You can use the resulting SchemaBuilder to set or override additional schema settings such as required/optional, default * value, and documentation. * * @return the schema builder */ public static SchemaBuilder builder() { return SchemaBuilder.int64() .name(SCHEMA_NAME) .version(1); }
/** * Returns a {@link SchemaBuilder} for a {@link MicroTime}. The resulting schema will describe a field * with the {@value #SCHEMA_NAME} as the {@link Schema#name() name} and {@link SchemaBuilder#int64() INT64} for the literal * type storing the number of <em>microseconds</em> past midnight. * <p> * You can use the resulting SchemaBuilder to set or override additional schema settings such as required/optional, default * value, and documentation. * * @return the schema builder */ public static SchemaBuilder builder() { return SchemaBuilder.int64() .name(SCHEMA_NAME) .version(1); }
/** * Returns a {@link SchemaBuilder} for a {@link NanoTimestamp}. The resulting schema will describe a field * with the {@value #SCHEMA_NAME} as the {@link Schema#name() name} and {@link SchemaBuilder#int64() INT64} for the literal * type storing the number of <em>nanoseconds</em> past midnight. * <p> * You can use the resulting SchemaBuilder to set or override additional schema settings such as required/optional, default * value, and documentation. * * @return the schema builder */ public static SchemaBuilder builder() { return SchemaBuilder.int64() .name(SCHEMA_NAME) .version(1); }
/** * Returns a {@link SchemaBuilder} for an enumeration. You can use the resulting SchemaBuilder * to set additional schema settings such as required/optional, default value, and documentation. * * @param allowedValues the comma separated list of allowed values; may not be null * @return the schema builder */ public static SchemaBuilder builder(String allowedValues) { return SchemaBuilder.string() .name(LOGICAL_NAME) .parameter(VALUES_FIELD, allowedValues) .version(1); }
/** * Returns a {@link SchemaBuilder} for a set of enumerated values. You can use the resulting SchemaBuilder * to set additional schema settings such as required/optional, default value, and documentation. * * @param allowedValues the comma separated list of allowed values; may not be null * @return the schema builder */ public static SchemaBuilder builder(String allowedValues) { return SchemaBuilder.string() .name(LOGICAL_NAME) .parameter(VALUES_FIELD, allowedValues) .version(1); }
/** * Returns a {@link SchemaBuilder} for a Geography field. You can use the resulting SchemaBuilder * to set additional schema settings such as required/optional, default value, and documentation. * * @return the schema builder */ public static SchemaBuilder builder() { return SchemaBuilder.struct() .name(LOGICAL_NAME) .version(1) .doc("Geography") .field(WKB_FIELD, Schema.BYTES_SCHEMA) .field(SRID_FIELD, Schema.OPTIONAL_INT32_SCHEMA); } }
/** * Returns a {@link SchemaBuilder} for a VariableScaleDecimal. You can use the resulting SchemaBuilder * to set additional schema settings such as required/optional, default value, and documentation. * * @return the schema builder */ public static SchemaBuilder builder() { return SchemaBuilder.struct() .name(LOGICAL_NAME) .version(1) .doc("Variable scaled decimal") .field(SCALE_FIELD, Schema.INT32_SCHEMA) .field(VALUE_FIELD, Schema.BYTES_SCHEMA); }
/** * Returns a {@link SchemaBuilder} for a Geometry field. You can use the resulting SchemaBuilder * to set additional schema settings such as required/optional, default value, and documentation. * * @return the schema builder */ public static SchemaBuilder builder() { return SchemaBuilder.struct() .name(LOGICAL_NAME) .version(1) .doc("Geometry") .optional() .field(WKB_FIELD, Schema.BYTES_SCHEMA) .field(SRID_FIELD, Schema.OPTIONAL_INT32_SCHEMA); }
/** * Returns a {@link SchemaBuilder} for a Point field. * A Geometry with extra X & Y fields * * @return the schema builder */ public static SchemaBuilder builder() { return SchemaBuilder.struct() .name(LOGICAL_NAME) .version(1) .doc("Geometry (POINT)") .field(X_FIELD, Schema.FLOAT64_SCHEMA) .field(Y_FIELD, Schema.FLOAT64_SCHEMA) .field(WKB_FIELD, Schema.OPTIONAL_BYTES_SCHEMA) .field(SRID_FIELD, Schema.OPTIONAL_INT32_SCHEMA); }