/** * Get the vertices at the specified graph location. * * @param location the location of the graph (or the root location and search will be made) * @param readerClass the class of the parser that understands the graph format * @return an iterator of vertices. */ public default Iterator<Vertex> head(final String location, final Class readerClass) { return this.head(location, readerClass, Integer.MAX_VALUE); }
/** * Get the {@link KeyValue} data at the specified memory location. * * @param location the root location of the data * @param memoryKey the memory key * @param readerClass the class of the parser that understands the memory format * @return an iterator of key-values. */ public default <K, V> Iterator<KeyValue<K, V>> head(final String location, final String memoryKey, final Class readerClass) { return this.head(location, memoryKey, readerClass, Integer.MAX_VALUE); } }
/** * Get a string representation of the specified number of lines at the data source location. * * @param location the data source location * @return an iterator of lines */ public default Iterator<String> head(final String location) { return this.head(location, Integer.MAX_VALUE); }
/** * Get a string representation of the specified number of lines at the data source location. * * @param location the data source location * @return an iterator of lines */ public default Iterator<String> head(final String location) { return this.head(location, Integer.MAX_VALUE); }
/** * Get the {@link KeyValue} data at the specified memory location. * * @param location the root location of the data * @param memoryKey the memory key * @param readerClass the class of the parser that understands the memory format * @return an iterator of key-values. */ public default <K, V> Iterator<KeyValue<K, V>> head(final String location, final String memoryKey, final Class readerClass) { return this.head(location, memoryKey, readerClass, Integer.MAX_VALUE); } }
/** * Get the vertices at the specified graph location. * * @param location the location of the graph (or the root location and search will be made) * @param readerClass the class of the parser that understands the graph format * @return an iterator of vertices. */ public default Iterator<Vertex> head(final String location, final Class readerClass) { return this.head(location, readerClass, Integer.MAX_VALUE); }