DateSerializer
Code IndexAdd Codota to your IDE (free)

Best code snippets using me.prettyprint.cassandra.serializers.DateSerializer(Showing top 15 results out of 315)

origin: hector-client/hector

 private void test(Date date) {
  DateSerializer ext = DateSerializer.get();
  assertEquals(date, ext.fromByteBuffer(ext.toByteBuffer(date)));
 }
}
origin: me.prettyprint/hector-core

public void setDate(N columnName, Date value) {
 HColumn<N, Date> column = columnFactory.createColumn(columnName, value, clock,
   template.getTopSerializer(), DateSerializer.get());
 mutator.addInsertion(getCurrentKey(), template.getColumnFamily(), column);
}
origin: me.prettyprint/hector-core

public void setDate(N subColumnName, Date value) {
 subColumns.add(columnFactory.createColumn(subColumnName, value, clock,
   template.getSubSerializer(), DateSerializer.get()));
}

origin: hector-client/hector

public Date getDate(N columnName) {
 return DateSerializer.get().fromByteBuffer(getColumnValue(columnName));
}

origin: hector-client/hector

@Override
public Date getDate(N name) {
 return extractColumnValue(name, DateSerializer.get());
}
origin: hector-client/hector

@Override
public Date getDate(SN sColumnName, N columnName) {
 return extractType(sColumnName, columnName, DateSerializer.get());
}
origin: hector-client/hector

public void setDate(N subColumnName, Date value) {
 addToSubColumns(subColumnName, value, DateSerializer.get(), globalTtl);
}

origin: hector-client/hector

public void setDate(N columnName, Date value) {
 addInsertion(columnName, value, DateSerializer.get(), globalTtl);
}
origin: me.prettyprint/hector-core

@Override
public Date getDate(N name) {
 return extractColumnValue(name, DateSerializer.get());
}
origin: org.hectorclient/hector-core

@Override
public Date getDate(N name) {
 return extractColumnValue(name, DateSerializer.get());
}
origin: org.hectorclient/hector-core

@Override
public Date getDate(SN sColumnName, N columnName) {
 return extractType(sColumnName, columnName, DateSerializer.get());
}
origin: me.prettyprint/hector-core

@Override
public Date getDate(SN sColumnName, N columnName) {
 return extractType(sColumnName, columnName, DateSerializer.get());
}
origin: org.hectorclient/hector-core

public void setDate(N columnName, Date value) {
 addInsertion(columnName, value, DateSerializer.get(), globalTtl);
}
origin: org.hectorclient/hector-core

public Date getDate(N columnName) {
 return DateSerializer.get().fromByteBuffer(getColumnValue(columnName));
}

origin: org.hectorclient/hector-core

public void setDate(N subColumnName, Date value) {
 addToSubColumns(subColumnName, value, DateSerializer.get(), globalTtl);
}

me.prettyprint.cassandra.serializersDateSerializer

Javadoc

Converts bytes to Date and vice versa, by first converting the Date to or from a long which represents the specified number of milliseconds since the standard base time known as "the Unix epoch", that is January 1, 1970, 00:00:00 UTC.

Most used methods

  • get
  • fromByteBuffer
  • fromBytes
  • toByteBuffer
  • toBytes

Popular classes and methods

  • getSupportFragmentManager (FragmentActivity)
  • getApplicationContext (Context)
  • FlowLayout (java.awt)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)