Search in sources :

Example 1 with PdxInstanceImpl

use of com.gemstone.gemfire.pdx.internal.PdxInstanceImpl in project zeppelin by apache.

the class GeodeOqlInterpreterTest method oqlPdxInstanceResponse.

@Test
public void oqlPdxInstanceResponse() throws Exception {
    ByteArrayInputStream bais = new ByteArrayInputStream("koza\tboza\n".getBytes());
    PdxInstance pdx1 = new PdxInstanceImpl(new PdxType(), new DataInputStream(bais), 4);
    PdxInstance pdx2 = new PdxInstanceImpl(new PdxType(), new DataInputStream(bais), 4);
    testOql(asIterator(pdx1, pdx2), "\n\n\n", 10);
    testOql(asIterator(pdx1, pdx2), "\n\n", 1);
}
Also used : PdxInstance(com.gemstone.gemfire.pdx.PdxInstance) PdxInstanceImpl(com.gemstone.gemfire.pdx.internal.PdxInstanceImpl) PdxType(com.gemstone.gemfire.pdx.internal.PdxType) ByteArrayInputStream(java.io.ByteArrayInputStream) DataInputStream(java.io.DataInputStream) Test(org.junit.Test)

Aggregations

PdxInstance (com.gemstone.gemfire.pdx.PdxInstance)1 PdxInstanceImpl (com.gemstone.gemfire.pdx.internal.PdxInstanceImpl)1 PdxType (com.gemstone.gemfire.pdx.internal.PdxType)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1 DataInputStream (java.io.DataInputStream)1 Test (org.junit.Test)1