public Collection exportSpecifications()

in src/main/java/com/amazonaws/services/neptune/propertygraph/Scope.java [128:165]


        public Collection<ExportSpecification> exportSpecifications(GraphSchema graphSchema,
                                                                    Collection<Label> nodeLabels,
                                                                    Collection<Label> edgeLabels,
                                                                    GremlinFilters gremlinFilters,
                                                                    TokensOnly tokensOnly,
                                                                    EdgeLabelStrategy edgeLabelStrategy,
                                                                    ExportStats stats,
                                                                    FeatureToggles featureToggles) {
            if (graphSchema.isEmpty()) {
                return Collections.singletonList(
                        new ExportSpecification(
                                GraphElementType.edges,
                                Scope.labelsFilter(edgeLabels, edgeLabelStrategy),
                                gremlinFilters,
                                stats,
                                tokensOnly.edgeTokensOnly(),
                                featureToggles)
                );
            } else if (graphSchema.hasEdgeSchemas()) {
                LabelsFilter labelsFilter = Scope.labelsFilter(edgeLabels, edgeLabelStrategy)
                        .intersection(graphSchema.graphElementSchemasFor(GraphElementType.edges).labels());
                if (!labelsFilter.isEmpty()) {
                    return Collections.singletonList(
                            new ExportSpecification(
                                    GraphElementType.edges,
                                    labelsFilter,
                                    gremlinFilters,
                                    stats,
                                    tokensOnly.edgeTokensOnly(),
                                    featureToggles)
                    );
                } else {
                    return Collections.emptyList();
                }
            } else {
                return Collections.emptyList();
            }
        }