Search in sources :

Example 1 with ParquetProtocol

use of org.apache.parquet.thrift.ParquetProtocol in project parquet-mr by apache.

the class DefaultEventsVisitor method visit.

@Override
public Void visit(ThriftType.MapType mapType, Void v) {
    dummyEvents.add(new ParquetProtocol("readMapBegin()") {

        @Override
        public TMap readMapBegin() throws TException {
            return new TMap();
        }
    });
    dummyEvents.add(new ParquetProtocol("readMapEnd()") {

        @Override
        public void readMapEnd() throws TException {
        }
    });
    return null;
}
Also used : TException(org.apache.thrift.TException) ParquetProtocol(org.apache.parquet.thrift.ParquetProtocol) TMap(org.apache.thrift.protocol.TMap)

Example 2 with ParquetProtocol

use of org.apache.parquet.thrift.ParquetProtocol in project parquet-mr by apache.

the class DefaultEventsVisitor method visit.

@Override
public Void visit(final ThriftType.SetType setType, Void v) {
    dummyEvents.add(new ParquetProtocol("readSetBegin()") {

        @Override
        public TSet readSetBegin() throws TException {
            return new TSet();
        }
    });
    dummyEvents.add(new ParquetProtocol("readSetEnd()") {

        @Override
        public void readSetEnd() throws TException {
        }
    });
    return null;
}
Also used : TException(org.apache.thrift.TException) ParquetProtocol(org.apache.parquet.thrift.ParquetProtocol) TSet(org.apache.thrift.protocol.TSet)

Example 3 with ParquetProtocol

use of org.apache.parquet.thrift.ParquetProtocol in project parquet-mr by apache.

the class DefaultEventsVisitor method visit.

@Override
public Void visit(final ThriftType.ListType listType, Void v) {
    dummyEvents.add(new ParquetProtocol("readListBegin()") {

        @Override
        public TList readListBegin() throws TException {
            return new TList();
        }
    });
    dummyEvents.add(new ParquetProtocol("readListEnd()") {

        @Override
        public void readListEnd() throws TException {
        }
    });
    return null;
}
Also used : TException(org.apache.thrift.TException) TList(org.apache.thrift.protocol.TList) ParquetProtocol(org.apache.parquet.thrift.ParquetProtocol)

Aggregations

ParquetProtocol (org.apache.parquet.thrift.ParquetProtocol)3 TException (org.apache.thrift.TException)3 TList (org.apache.thrift.protocol.TList)1 TMap (org.apache.thrift.protocol.TMap)1 TSet (org.apache.thrift.protocol.TSet)1