@API.Public public final class FieldProjector extends Object implements JsonString
FieldPath
s
and in association with a DocumentReader
, determines which fields form the document reader are
emitted to the applications.
A single instance of ProjectionTree can not be, concurrently, used with multiple DocumentReader
s.
Use cloneWithSharedProjectionTree()
in such cases.Constructor and Description |
---|
FieldProjector(Collection<FieldPath> includedPaths) |
FieldProjector(FieldPath... includedPaths) |
FieldProjector(String... includedPaths) |
Modifier and Type | Method and Description |
---|---|
String |
asJsonString() |
String |
asJsonString(JsonOptions options) |
FieldProjector |
cloneWithSharedProjectionTree()
Creates a lightweight clone of this FieldProjector with shared ProjectionTree.
|
String |
toString() |
public FieldProjector(@API.NonNullable String... includedPaths)
public FieldProjector(@API.NonNullable FieldPath... includedPaths)
public FieldProjector(@API.NonNullable Collection<FieldPath> includedPaths)
public FieldProjector cloneWithSharedProjectionTree()
public String asJsonString()
asJsonString
in interface JsonString
public String asJsonString(JsonOptions options)
asJsonString
in interface JsonString
Copyright © 2015–2018 MapR Technologies, Inc.. All rights reserved.