public class Timestamp extends 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 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,
Date value)
Convert a value from its logical format (Date) to it's encoded format.
|
static Date |
toLogical(Schema schema,
long value) |
public static final String LOGICAL_NAME
public static final Schema SCHEMA
public static SchemaBuilder builder()
public static long fromLogical(Schema schema, Date value)
value
- the logical value