Interface PlanStreamOutput
- All Known Implementing Classes:
PlanStreamOutput
public interface PlanStreamOutput
-
Method Summary
Modifier and TypeMethodDescriptionbooleanwriteAttributeCacheHeader(Attribute attribute) Writes a cache header for anAttributeand caches it if it is not already in the cache.voidwriteCachedString(String field) booleanwriteEsFieldCacheHeader(EsField field, TransportVersion transportVersion) Writes a cache header for anEsFieldand caches it if it is not already in the cache.void
-
Method Details
-
writeAttributeCacheHeader
Writes a cache header for anAttributeand caches it if it is not already in the cache. In that case, the attribute will have to serialize itself into this stream immediately after this method call.- Parameters:
attribute- The attribute to serialize- Returns:
- true if the attribute needs to serialize itself, false otherwise (ie. if already cached)
- Throws:
IOException
-
writeEsFieldCacheHeader
boolean writeEsFieldCacheHeader(EsField field, TransportVersion transportVersion) throws IOException Writes a cache header for anEsFieldand caches it if it is not already in the cache. In that case, the field will have to serialize itself into this stream immediately after this method call.- Parameters:
field- The EsField to serializetransportVersion- The transport version to use for serialization, needed to get the correct field name in case of versioned fields.- Returns:
- true if the attribute needs to serialize itself, false otherwise (ie. if already cached)
- Throws:
IOException
-
writeCachedString
- Throws:
IOException
-
writeOptionalCachedString
- Throws:
IOException
-