MCPcopy Create free account
hub / github.com/bytedance/bolt / serializeConstantVector

Function serializeConstantVector

bolt/serializers/PrestoSerializer.cpp:1990–2005  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1988
1989template <TypeKind Kind>
1990void serializeConstantVector(
1991 const BaseVector* vector,
1992 const folly::Range<const IndexRange*>& ranges,
1993 VectorStream* stream) {
1994 if (stream->isConstantStream()) {
1995 for (const auto& range : ranges) {
1996 stream->appendNonNull(range.size);
1997 }
1998
1999 std::vector<IndexRange> newRanges;
2000 newRanges.push_back({0, 1});
2001 serializeConstantVectorImpl<Kind>(vector, newRanges, stream->childAt(0));
2002 } else {
2003 serializeConstantVectorImpl<Kind>(vector, ranges, stream);
2004 }
2005}
2006
2007template <typename T>
2008void serializeBiasVector(

Callers

nothing calls this directly

Calls 10

serializeWrappedFunction · 0.85
isConstantStreamMethod · 0.80
childAtMethod · 0.80
appendNonNullMethod · 0.45
push_backMethod · 0.45
sizeMethod · 0.45
isNullAtMethod · 0.45
appendNullMethod · 0.45
valueAtFastMethod · 0.45
appendOneMethod · 0.45

Tested by

no test coverage detected