com.arangodb.entity.CursorEntity Java Examples

The following examples show how to use com.arangodb.entity.CursorEntity. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ArangoExtCursor.java    From spring-data with Apache License 2.0 5 votes vote down vote up
protected ArangoExtCursor(final InternalArangoDatabase<?, ?> db, final ArangoCursorExecute execute,
	final Class<T> type, final CursorEntity result, final ArangoConverter converter,
	final ApplicationEventPublisher eventPublisher) {
	super(db, execute, type, result);
	final ArangoExtCursorIterator<?> it = (ArangoExtCursorIterator<?>) iterator;
	it.setConverter(converter);
	it.setEventPublisher(eventPublisher);
}
 
Example #2
Source File: ArangoExtCursor.java    From spring-data with Apache License 2.0 5 votes vote down vote up
@Override
protected ArangoCursorIterator<T> createIterator(
	final ArangoCursor<T> cursor,
	final InternalArangoDatabase<?, ?> db,
	final ArangoCursorExecute execute,
	final CursorEntity result) {
	return new ArangoExtCursorIterator<>(cursor, db, execute, result);
}
 
Example #3
Source File: ArangoCursorInitializer.java    From spring-data with Apache License 2.0 5 votes vote down vote up
@Override
public <T> ArangoCursor<T> createInstance(
	final InternalArangoDatabase<?, ?> db,
	final ArangoCursorExecute execute,
	final Class<T> type,
	final CursorEntity result) {
	return new ArangoExtCursor<>(db, execute, type, result, converter, eventPublisher);
}
 
Example #4
Source File: ArangoCursorImpl.java    From arangodb-java-driver with Apache License 2.0 5 votes vote down vote up
public ArangoCursorImpl(final InternalArangoDatabase<?, ?> db, final ArangoCursorExecute execute,
                        final Class<T> type, final CursorEntity result) {
    super();
    this.execute = execute;
    this.type = type;
    iterator = createIterator(this, db, execute, result);
    id = result.getId();
}
 
Example #5
Source File: ArangoCursorImpl.java    From arangodb-java-driver with Apache License 2.0 5 votes vote down vote up
protected ArangoCursorIterator<T> createIterator(
        final ArangoCursor<T> cursor,
        final InternalArangoDatabase<?, ?> db,
        final ArangoCursorExecute execute,
        final CursorEntity result) {
    return new ArangoCursorIterator<>(cursor, execute, db, result);
}
 
Example #6
Source File: ArangoCursorIterator.java    From arangodb-java-driver with Apache License 2.0 5 votes vote down vote up
protected ArangoCursorIterator(final ArangoCursor<T> cursor, final ArangoCursorExecute execute,
                               final InternalArangoDatabase<?, ?> db, final CursorEntity result) {
    super();
    this.cursor = cursor;
    this.execute = execute;
    this.db = db;
    this.result = result;
    pos = 0;
}
 
Example #7
Source File: ArangoExtCursorIterator.java    From spring-data with Apache License 2.0 4 votes vote down vote up
protected ArangoExtCursorIterator(final ArangoCursor<T> cursor, final InternalArangoDatabase<?, ?> db,
	final ArangoCursorExecute execute, final CursorEntity result) {
	super(cursor, execute, db, result);
}
 
Example #8
Source File: ArangoCursorAsyncImpl.java    From arangodb-java-driver-async with Apache License 2.0 4 votes vote down vote up
protected ArangoCursorAsyncImpl(final InternalArangoDatabase<?, ?> db, final ArangoCursorExecute execute,
	final Class<T> type, final CursorEntity result) {
	super(db, execute, type, result);
}
 
Example #9
Source File: ArangoCursorIterator.java    From arangodb-java-driver with Apache License 2.0 4 votes vote down vote up
public CursorEntity getResult() {
    return result;
}
 
Example #10
Source File: ArangoCursorInitializer.java    From arangodb-java-driver with Apache License 2.0 4 votes vote down vote up
<T> ArangoCursor<T> createInstance(
final InternalArangoDatabase<?, ?> db,
final ArangoCursorExecute execute,
final Class<T> type,
final CursorEntity result);
 
Example #11
Source File: ArangoCursorAsyncImpl.java    From arangodb-java-driver with Apache License 2.0 4 votes vote down vote up
ArangoCursorAsyncImpl(final InternalArangoDatabase<?, ?> db, final ArangoCursorExecute execute,
                      final Class<T> type, final CursorEntity result) {
    super(db, execute, type, result);
}
 
Example #12
Source File: ArangoCursorExecute.java    From arangodb-java-driver with Apache License 2.0 votes vote down vote up
CursorEntity next(String id, Map<String, String> meta) throws ArangoDBException;