List of usage examples for org.apache.thrift.protocol TSet TSet
public TSet()
From source file:com.ebay.nest.io.sede.thrift.TCTLSeparatedProtocol.java
License:Apache License
@Override public TSet readSetBegin() throws TException { assert (!inner); TSet set = new TSet(); if (columns[index] == null || columns[index].equals(nullString)) { index++;//from w w w . j a v a2 s.co m if (returnNulls) { return null; } } else if (columns[index].isEmpty()) { index++; } else { fields = secondaryPattern.split(columns[index++]); set = new TSet(ORDERED_TYPE, fields.length); } inner = true; innerIndex = 0; return set; }
From source file:org.apache.parquet.thrift.projection.amend.DefaultEventsVisitor.java
License:Apache License
@Override public Void visit(final ThriftType.SetType setType, Void v) { dummyEvents.add(new ParquetProtocol("readSetBegin()") { @Override/*from w w w .j a va 2s.c om*/ public TSet readSetBegin() throws TException { return new TSet(); } }); dummyEvents.add(new ParquetProtocol("readSetEnd()") { @Override public void readSetEnd() throws TException { } }); return null; }
From source file:parquet.thrift.projection.amend.DefaultEventsVisitor.java
License:Apache License
@Override public void visit(final ThriftType.SetType setType) { dummyEvents.add(new ParquetProtocol("readSetBegin()") { @Override//from w w w . j a v a2s . c om public TSet readSetBegin() throws TException { return new TSet(); } }); dummyEvents.add(new ParquetProtocol("readSetEnd()") { @Override public void readSetEnd() throws TException { } }); }