JavaSerialiser.<init>
Code IndexAdd Codota to your IDE (free)

Best code snippets using uk.gov.gchq.gaffer.serialisation.implementation.JavaSerialiser.<init>(Showing top 8 results out of 315)

origin: gchq/Gaffer

@Test
public void shouldSerialiseAndDeserialise() throws Exception {
  final JavaSerialiser javaSerialiser = new JavaSerialiser();
  final byte[] serialise = javaSerialiser.serialise(expected);
  final GraphSerialisable result = (GraphSerialisable) javaSerialiser.deserialise(serialise);
  assertEquals(expected, result);
}
origin: gchq/Gaffer

@Before
public void setup() {
  schema = new Schema.Builder()
      .vertexSerialiser(new JavaSerialiser())
      .edge(TestGroups.EDGE, new SchemaEdgeDefinition())
      .entity(TestGroups.ENTITY, new SchemaEntityDefinition())
      .build();
  elementConverter = new ClassicAccumuloElementConverter(schema);
}
origin: gchq/Gaffer

@Override
public Serialiser<Object, byte[]> getSerialisation() {
  return new JavaSerialiser();
}
origin: gchq/Gaffer

@Test
public void testCorrectSerialiserRetrievableFromConfig() throws NotSerializableException {
  Schema store = new Schema.Builder()
      .type(TestTypes.PROP_STRING, new TypeDefinition.Builder()
          .clazz(String.class)
          .serialiser(new JavaSerialiser())
          .build())
      .edge(TestGroups.EDGE, new SchemaEdgeDefinition.Builder()
          .property(TestPropertyNames.PROP_1, TestTypes.PROP_STRING)
          .build())
      .build();
  assertEquals(JavaSerialiser.class,
      store.getElement(TestGroups.EDGE)
          .getPropertyTypeDef(TestPropertyNames.PROP_1)
          .getSerialiser()
          .getClass());
}
origin: gchq/Gaffer

@Before
public void setup() {
  Schema schema = new Schema.Builder()
      .type(TestTypes.PROP_INTEGER, Integer.class)
      .vertexSerialiser(new JavaSerialiser())
      .edge(TestGroups.EDGE, new SchemaEdgeDefinition.Builder()
          .property(AccumuloPropertyNames.INT, TestTypes.PROP_INTEGER)
          .build())
      .entity(TestGroups.ENTITY, new SchemaEntityDefinition.Builder()
          .property(AccumuloPropertyNames.INT, TestTypes.PROP_INTEGER)
          .build())
      .build();
  byteEntityRangeFactory = new ByteEntityRangeFactory(schema);
  byteEntityElementConverter = new ByteEntityAccumuloElementConverter(schema);
  Gaffer1RangeFactory = new ClassicRangeFactory(schema);
  gafferV1ElementConverter = new ClassicAccumuloElementConverter(schema);
}
origin: gchq/Gaffer

.type("string", new TypeDefinition.Builder()
    .clazz(String.class)
    .serialiser(new JavaSerialiser())
    .aggregateFunction(new StringConcat())
    .build())
.type("int", new TypeDefinition.Builder()
    .clazz(Integer.class)
    .serialiser(new JavaSerialiser())
    .aggregateFunction(new Sum())
    .build())
.type("false", Boolean.class)
.vertexSerialiser(new JavaSerialiser())
.build();
origin: gchq/Gaffer

@Before
public void setup() {
  schema = new Schema.Builder()
      .vertexSerialiser(new JavaSerialiser())
      .edge(TestGroups.EDGE, new SchemaEdgeDefinition())
      .entity(TestGroups.ENTITY, new SchemaEntityDefinition())
      .build();
  elementConverter = new ByteEntityAccumuloElementConverter(schema);
}
origin: gchq/Gaffer

@Test
public void shouldSerialiseAndDeserialise() throws Exception {
  final JavaSerialiser javaSerialiser = new JavaSerialiser();
  final byte[] serialise = javaSerialiser.serialise(expected);
  final GraphSerialisable result = (GraphSerialisable) javaSerialiser.deserialise(serialise);
  assertEquals(expected, result);
}
uk.gov.gchq.gaffer.serialisation.implementationJavaSerialiser<init>

Popular methods of JavaSerialiser

  • deserialise
  • serialise
  • canHandle
  • close

Popular classes and methods

  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • getApplicationContext (Context)
  • Rectangle (java.awt)
  • PrintStream (java.io)
    Wraps an existing OutputStream and provides convenience methods for writing common data types in a h
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Collectors (java.util.stream)
  • Notification (javax.management)
    Notifications are events emitted by NotificationEmitters

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)