Interface 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) static voidwriteCachedStringWithVersionCheck(StreamOutput planStreamOutput, String string) booleanwriteEsFieldCacheHeader(EsField field) 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
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 serialize- Returns:
- true if the attribute needs to serialize itself, false otherwise (ie. if already cached)
- Throws:
IOException
-
writeCachedString
- Throws:
IOException
-
writeCachedStringWithVersionCheck
static void writeCachedStringWithVersionCheck(StreamOutput planStreamOutput, String string) throws IOException - Throws:
IOException
-
writeOptionalCachedString
- Throws:
IOException
-