public class SimpleDateSerializer extends java.lang.Object implements TypeSerializer<java.lang.Integer>
| Modifier and Type | Field and Description | 
|---|---|
| static SimpleDateSerializer | instance | 
| Constructor and Description | 
|---|
| SimpleDateSerializer() | 
| Modifier and Type | Method and Description | 
|---|---|
| static int | dateStringToDays(java.lang.String source) | 
| static long | dayToTimeInMillis(int days) | 
| java.lang.Integer | deserialize(java.nio.ByteBuffer bytes) | 
| java.lang.Class<java.lang.Integer> | getType() | 
| java.nio.ByteBuffer | serialize(java.lang.Integer value) | 
| static int | timeInMillisToDay(long millis) | 
| java.lang.String | toString(java.lang.Integer value) | 
| void | validate(java.nio.ByteBuffer bytes) | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoCQLLiteralpublic static final SimpleDateSerializer instance
public java.lang.Integer deserialize(java.nio.ByteBuffer bytes)
deserialize in interface TypeSerializer<java.lang.Integer>public java.nio.ByteBuffer serialize(java.lang.Integer value)
serialize in interface TypeSerializer<java.lang.Integer>public static int dateStringToDays(java.lang.String source)
                            throws MarshalException
MarshalExceptionpublic static int timeInMillisToDay(long millis)
public static long dayToTimeInMillis(int days)
public void validate(java.nio.ByteBuffer bytes)
              throws MarshalException
validate in interface TypeSerializer<java.lang.Integer>MarshalExceptionpublic java.lang.String toString(java.lang.Integer value)
toString in interface TypeSerializer<java.lang.Integer>public java.lang.Class<java.lang.Integer> getType()
getType in interface TypeSerializer<java.lang.Integer>Copyright © 2018 The Apache Software Foundation