aboutsummaryrefslogblamecommitdiffstats
path: root/yt/cpp/mapreduce/interface/io.cpp
blob: bbd417893c446997082fa38361fbd03f60fb8cba (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17















                                                                                
                             


                                           
                             


                                                  
                             

















                                                                                
#include "io.h"

#include <yt/cpp/mapreduce/interface/logging/yt_log.h>

#include <util/string/cast.h>

namespace NYT {

////////////////////////////////////////////////////////////////////////////////

TMaybe<size_t> IReaderImplBase::GetReadByteCount() const
{
    return Nothing();
}

i64 IReaderImplBase::GetTabletIndex() const
{
    Y_ABORT("Unimplemented");
}

bool IReaderImplBase::IsEndOfStream() const
{
    Y_ABORT("Unimplemented");
}

bool IReaderImplBase::IsRawReaderExhausted() const
{
    Y_ABORT("Unimplemented");
}

////////////////////////////////////////////////////////////////////////////////

namespace NDetail {

void LogTableReaderStatistics(ui64 rowCount, TMaybe<size_t> byteCount)
{
    TString byteCountStr = (byteCount ? ::ToString(*byteCount) : "<unknown>");
    YT_LOG_DEBUG("Table reader has read %v rows, %v bytes",
        rowCount,
        byteCountStr);
}

} // namespace NDetail

////////////////////////////////////////////////////////////////////////////////

} // namespace NYT