Search in sources :

Example 6 with SlimeAdapter

use of com.yahoo.data.access.slime.SlimeAdapter in project vespa by vespa-engine.

the class JSONStringTestCase method getSlime4.

private Inspector getSlime4() {
    Slime slime = new Slime();
    Cursor obj = slime.setObject();
    obj.setLong("foo", 1);
    return new SlimeAdapter(slime.get());
}
Also used : SlimeAdapter(com.yahoo.data.access.slime.SlimeAdapter) Slime(com.yahoo.slime.Slime) Cursor(com.yahoo.slime.Cursor)

Example 7 with SlimeAdapter

use of com.yahoo.data.access.slime.SlimeAdapter in project vespa by vespa-engine.

the class JSONStringTestCase method getSlime1.

private Inspector getSlime1() {
    Slime slime = new Slime();
    slime.setNix();
    return new SlimeAdapter(slime.get());
}
Also used : SlimeAdapter(com.yahoo.data.access.slime.SlimeAdapter) Slime(com.yahoo.slime.Slime)

Example 8 with SlimeAdapter

use of com.yahoo.data.access.slime.SlimeAdapter in project vespa by vespa-engine.

the class JSONStringTestCase method getSlime2.

private Inspector getSlime2() {
    Slime slime = new Slime();
    slime.setString("foo");
    return new SlimeAdapter(slime.get());
}
Also used : SlimeAdapter(com.yahoo.data.access.slime.SlimeAdapter) Slime(com.yahoo.slime.Slime)

Aggregations

SlimeAdapter (com.yahoo.data.access.slime.SlimeAdapter)8 Slime (com.yahoo.slime.Slime)8 Cursor (com.yahoo.slime.Cursor)3 JsonNode (com.fasterxml.jackson.databind.JsonNode)1 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 ObjectNode (com.fasterxml.jackson.databind.node.ObjectNode)1 Inspector (com.yahoo.data.access.Inspector)1 Value (com.yahoo.data.access.simple.Value)1 FastHit (com.yahoo.prelude.fastsearch.FastHit)1 JSONString (com.yahoo.prelude.hitfield.JSONString)1 Result (com.yahoo.search.Result)1 Hit (com.yahoo.search.result.Hit)1 StructuredData (com.yahoo.search.result.StructuredData)1 JsonDecoder (com.yahoo.slime.JsonDecoder)1 ByteBuffer (java.nio.ByteBuffer)1 JSONArray (org.json.JSONArray)1 JSONObject (org.json.JSONObject)1 Test (org.junit.Test)1