public class Timestamp
extends java.lang.Object
A timestamp representing an absolute time, without timezone information. The corresponding Java type is a java.util.Date. The underlying representation is a long representing the number of milliseconds since Unix epoch.
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | LOGICAL_NAME | 
| static Schema | SCHEMA | 
| Constructor and Description | 
|---|
| Timestamp() | 
| Modifier and Type | Method and Description | 
|---|---|
| static SchemaBuilder | builder()Returns a SchemaBuilder for a Timestamp. | 
| static long | fromLogical(Schema schema,
           java.util.Date value)Convert a value from its logical format (Date) to it's encoded format. | 
| static java.util.Date | toLogical(Schema schema,
         long value) | 
public static final java.lang.String LOGICAL_NAME
public static final Schema SCHEMA
public static SchemaBuilder builder()
public static long fromLogical(Schema schema, java.util.Date value)
value - the logical valuepublic static java.util.Date toLogical(Schema schema, long value)