org.apache.hadoop.hive.serde2.thrift
Interface WriteNullsProtocol

All Known Implementing Classes:
TBinarySortableProtocol, TCTLSeparatedProtocol

public interface WriteNullsProtocol

An interface for TProtocols that actually write out nulls - This should be for all those that don't actually use fieldids in the written data like TCTLSeparatedProtocol.


Method Summary
 boolean lastPrimitiveWasNull()
          Was the last primitive read really a NULL.
 void writeNull()
          Write a null.
 

Method Detail

lastPrimitiveWasNull

boolean lastPrimitiveWasNull()
                             throws org.apache.thrift.TException
Was the last primitive read really a NULL. Need only be called when the value of the primitive was 0. ie the protocol should return 0 on nulls and the caller will then check if it was actually null For boolean this is false.

Throws:
org.apache.thrift.TException

writeNull

void writeNull()
               throws org.apache.thrift.TException
Write a null.

Throws:
org.apache.thrift.TException


Copyright © 2013 The Apache Software Foundation