Search in sources :

Example 1 with TCompactProtocol

use of com.facebook.drift.protocol.TCompactProtocol in project presto by prestodb.

the class TestThriftResourceGroupInfo method testRoundTripSerializeTCompactProtocol.

@Test(dataProvider = "codecCombinations")
public void testRoundTripSerializeTCompactProtocol(ThriftCodec<ResourceGroupInfo> readCodec, ThriftCodec<ResourceGroupInfo> writeCodec) throws Exception {
    ResourceGroupInfo groupInfo = getRoundTripSerialize(readCodec, writeCodec, TCompactProtocol::new);
    assertSerde(groupInfo);
}
Also used : TCompactProtocol(com.facebook.drift.protocol.TCompactProtocol) ResourceGroupInfo(com.facebook.presto.server.ResourceGroupInfo) Test(org.testng.annotations.Test)

Example 2 with TCompactProtocol

use of com.facebook.drift.protocol.TCompactProtocol in project presto by prestodb.

the class TestThriftClusterStats method testRoundTripSerializeTCompactProtocol.

@Test(dataProvider = "codecCombinations")
public void testRoundTripSerializeTCompactProtocol(ThriftCodec<ClusterStats> readCodec, ThriftCodec<ClusterStats> writeCodec) throws Exception {
    ClusterStats clusterStats = getRoundTripSerialize(readCodec, writeCodec, TCompactProtocol::new);
    assertSerde(clusterStats);
}
Also used : ClusterStats(com.facebook.presto.server.ClusterStatsResource.ClusterStats) TCompactProtocol(com.facebook.drift.protocol.TCompactProtocol) Test(org.testng.annotations.Test)

Aggregations

TCompactProtocol (com.facebook.drift.protocol.TCompactProtocol)2 Test (org.testng.annotations.Test)2 ClusterStats (com.facebook.presto.server.ClusterStatsResource.ClusterStats)1 ResourceGroupInfo (com.facebook.presto.server.ResourceGroupInfo)1