gen.python.Search.TrecSearch.pyc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of twitter-tools Show documentation
Show all versions of twitter-tools Show documentation
Twitter tools for researchers
The newest version!
?
s?Qc @ s? d d l m Z m Z m Z d d l Td d l m Z d d l m Z d d l m Z m
Z
y d d l m Z Wn
d Z n Xd d d ? ? YZ
d e
f d
? ? YZ d e
e f d ? ? YZ d
d d ? ? YZ d d d ? ? YZ d S( i????( t TTypet TMessageTypet
TException( t *( t
TProcessor( t
TTransport( t TBinaryProtocolt TProtocol( t
fastbinaryt Ifacec B s e Z d ? Z RS( c C s d S( s"
Parameters:
- query
N( ( t selft query( ( s% ../../gen/python/Search/TrecSearch.pyt search s ( t __name__t
__module__R ( ( ( s% ../../gen/python/Search/TrecSearch.pyR s t Clientc B s/ e Z d d ? Z d ? Z d ? Z d ? Z RS( c C s5 | | _ | _ | d k r( | | _ n d | _ d S( Ni ( t _iprott _oprott Nonet _seqid( R
t iprott oprot( ( s% ../../gen/python/Search/TrecSearch.pyt __init__ s c C s | j | ? | j ? S( s"
Parameters:
- query
( t send_searcht recv_search( R
R ( ( s% ../../gen/python/Search/TrecSearch.pyR $ s
c C s_ | j j d t j | j ? t ? } | | _ | j | j ? | j j ? | j j j
? d S( NR ( R t writeMessageBeginR t CALLR t search_argsR t writet writeMessageEndt transt flush( R
R t args( ( s% ../../gen/python/Search/TrecSearch.pyR , s
c C s? | j j ? \ } } } | t j k rV t ? } | j | j ? | j j ? | ? n t ? } | j | j ? | j j ? | j d k r? | j S| j
d k r? | j
? n t t j d ? ? d S( Ns search failed: unknown result( R t readMessageBeginR t EXCEPTIONt TApplicationExceptiont readt readMessageEndt
search_resultt successR t errort MISSING_RESULT( R
t fnamet mtypet rseqidt xt result( ( s% ../../gen/python/Search/TrecSearch.pyR 4 s
N( R
R R R R R R ( ( ( s% ../../gen/python/Search/TrecSearch.pyR s t Processorc B s# e Z d ? Z d ? Z d ? Z RS( c C s&