├── LICENSE.txt
├── NOTICE.txt
├── README.md
├── doc
└── Neo4j concept V1_0.png
├── neo4j-android-client
├── .classpath
├── .project
├── AndroidManifest.xml
├── LICENSE.txt
├── NOTICE.txt
├── ant.properties
├── build.xml
├── proguard-project.txt
├── project.properties
├── res
│ └── values
│ │ └── strings.xml
└── src
│ └── org
│ └── neo4j
│ └── android
│ └── client
│ ├── GraphDatabase.java
│ ├── Neo4jService.java
│ ├── Neo4jServiceException.java
│ ├── NodeIterator.java
│ └── Util.java
├── neo4j-android-common
├── .classpath
├── .project
├── AndroidManifest.xml
├── LICENSE.txt
├── NOTICE.txt
├── ant.properties
├── build.xml
├── proguard-project.txt
├── project.properties
├── res
│ └── values
│ │ └── strings.xml
└── src
│ └── org
│ └── neo4j
│ └── android
│ └── common
│ ├── Direction.java
│ ├── IGraphDatabase.aidl
│ ├── INeo4jService.aidl
│ ├── INodeIterator.aidl
│ ├── IRelationshipIterator.aidl
│ ├── ParcelableError.aidl
│ ├── ParcelableError.java
│ ├── ParcelableIndexValue.aidl
│ ├── ParcelableIndexValue.java
│ ├── ParcelableNode.aidl
│ ├── ParcelableNode.java
│ ├── ParcelablePropertyContainer.aidl
│ ├── ParcelablePropertyContainer.java
│ ├── ParcelableRelationship.aidl
│ ├── ParcelableRelationship.java
│ ├── ParcelableTraversalDescription.aidl
│ └── ParcelableTraversalDescription.java
├── neo4j-android-dbinspector
├── .classpath
├── .project
├── AndroidManifest.xml
├── LICENSE.txt
├── LICENSES.txt
├── NOTICE.txt
├── ant.properties
├── build.xml
├── doc
│ ├── guice-3.0-src.zip
│ └── roboguice-2.0b4-sources.jar
├── libs
│ ├── android-support-v4.jar
│ ├── guice-3.0-no_aop.jar
│ ├── javax.inject.jar
│ └── roboguice-2.0-RC1.jar
├── proguard-project.txt
├── project.properties
├── res
│ ├── drawable
│ │ └── ic_neo4j.png
│ ├── layout
│ │ ├── main_activity.xml
│ │ ├── main_activity_createdatabase.xml
│ │ ├── main_activity_listitem.xml
│ │ ├── node_activity.xml
│ │ ├── node_activity_listitem.xml
│ │ ├── node_create.xml
│ │ ├── node_properties_activity.xml
│ │ ├── property_create.xml
│ │ ├── property_edit.xml
│ │ ├── property_listitem.xml
│ │ ├── relationship_activity.xml
│ │ ├── relationship_create.xml
│ │ ├── relationship_properties_activity.xml
│ │ ├── rootnode_activity.xml
│ │ └── rootnode_activity_listitem.xml
│ ├── menu
│ │ └── main_activity_menu.xml
│ └── values
│ │ └── strings.xml
└── src
│ └── com
│ └── noser
│ └── neo4j
│ └── android
│ └── dbinspector
│ ├── base
│ ├── DBInspectorConstants.java
│ ├── DBInspectorException.java
│ └── DBInspectorUtils.java
│ ├── implementation
│ ├── DBInspectorApplication.java
│ ├── DBInspectorModule.java
│ ├── DBManager.java
│ ├── MainActivity.java
│ ├── NodeActivity.java
│ ├── NodePropertiesActivity.java
│ ├── RelationshipActivity.java
│ ├── RelationshipPropertiesActivity.java
│ └── RootNodeActivity.java
│ └── interfaces
│ └── IDBManager.java
├── neo4j-android-service
├── .classpath
├── .project
├── AndroidManifest.xml
├── LICENSE.txt
├── NOTICE.txt
├── README
├── ant.properties
├── build.xml
├── proguard-project.txt
├── proguard.cfg
├── project.properties
├── res
│ ├── drawable
│ │ └── ic_neo4j.png
│ ├── raw
│ │ └── neo4j.properties
│ └── values
│ │ └── strings.xml
└── src
│ └── org
│ └── neo4j
│ └── android
│ └── service
│ ├── BootBroadcastReceiver.java
│ ├── DbWrapper.java
│ ├── Errors.java
│ ├── Neo4jServiceApp.java
│ ├── Neo4jServiceImpl.java
│ ├── NodeIteratorWrapper.java
│ ├── Permissions.java
│ ├── RelationshipIteratorWrapper.java
│ ├── TrxManager.java
│ └── util
│ ├── ParcelableFactory.java
│ └── SimpleRelationshipType.java
└── neo4j-android
├── .classpath
├── .externalToolBuilders
├── ant_builder.launch
├── com.android.ide.eclipse.adt.ApkBuilder.launch
├── com.android.ide.eclipse.adt.PreCompilerBuilder.launch
├── com.android.ide.eclipse.adt.ResourceManagerBuilder.launch
└── org.eclipse.jdt.core.javabuilder.launch
├── .project
├── .settings
└── org.eclipse.core.resources.prefs
├── AndroidManifest.xml
├── LICENSE.txt
├── LICENSES.txt
├── NOTICE.txt
├── README
├── ant.properties
├── build.xml
├── build.xml.sdktools_r15
├── build.xml.sdktools_r21
├── buildtools
└── jarjar-1.1.jar
├── graph-algo-src
└── org
│ └── neo4j
│ └── graphalgo
│ ├── CommonEvaluators.java
│ ├── CostAccumulator.java
│ ├── CostEvaluator.java
│ ├── EstimateEvaluator.java
│ ├── GraphAlgoFactory.java
│ ├── MaxCostEvaluator.java
│ ├── PathFinder.java
│ ├── WeightedPath.java
│ ├── impl
│ ├── centrality
│ │ ├── BetweennessCentrality.java
│ │ ├── ClosenessCentrality.java
│ │ ├── CostDivider.java
│ │ ├── Eccentricity.java
│ │ ├── EigenvectorCentrality.java
│ │ ├── EigenvectorCentralityArnoldi.java
│ │ ├── EigenvectorCentralityPower.java
│ │ ├── NetworkDiameter.java
│ │ ├── NetworkRadius.java
│ │ ├── ParallellCentralityCalculation.java
│ │ ├── ShortestPathBasedCentrality.java
│ │ ├── StressCentrality.java
│ │ └── package-info.java
│ ├── path
│ │ ├── AStar.java
│ │ ├── AllPaths.java
│ │ ├── AllSimplePaths.java
│ │ ├── Dijkstra.java
│ │ ├── ExactDepthPathFinder.java
│ │ ├── ExperimentalAStar.java
│ │ └── ShortestPath.java
│ ├── shortestpath
│ │ ├── Dijkstra.java
│ │ ├── DijkstraPriorityQueue.java
│ │ ├── DijkstraPriorityQueueFibonacciImpl.java
│ │ ├── DijkstraPriorityQueueImpl.java
│ │ ├── FloydWarshall.java
│ │ ├── SingleSourceShortestPath.java
│ │ ├── SingleSourceShortestPathBFS.java
│ │ ├── SingleSourceShortestPathDijkstra.java
│ │ ├── SingleSourceSingleSinkShortestPath.java
│ │ ├── Util.java
│ │ └── package-info.java
│ └── util
│ │ ├── BestFirstSelectorFactory.java
│ │ ├── DoubleAdder.java
│ │ ├── DoubleComparator.java
│ │ ├── DoubleEvaluator.java
│ │ ├── DoubleEvaluatorWithDefault.java
│ │ ├── FibonacciHeap.java
│ │ ├── GeoEstimateEvaluator.java
│ │ ├── IntegerAdder.java
│ │ ├── IntegerComparator.java
│ │ ├── IntegerEvaluator.java
│ │ ├── LiteDepthFirstSelector.java
│ │ ├── MatrixUtil.java
│ │ ├── PathImpl.java
│ │ ├── PriorityMap.java
│ │ ├── StopAfterWeightIterator.java
│ │ └── WeightedPathImpl.java
│ └── package-info.java
├── graph-matching-src
└── org
│ └── neo4j
│ └── graphmatching
│ ├── AbstractPatternObject.java
│ ├── ArrayPropertyUtil.java
│ ├── CommonValueMatchers.java
│ ├── OptionalPatternFinder.java
│ ├── PatternElement.java
│ ├── PatternFinder.java
│ ├── PatternGroup.java
│ ├── PatternMatch.java
│ ├── PatternMatcher.java
│ ├── PatternNode.java
│ ├── PatternPosition.java
│ ├── PatternRelationship.java
│ ├── PatternUtil.java
│ ├── ValueMatcher.java
│ ├── filter
│ ├── AbstractFilterExpression.java
│ ├── CompareExpression.java
│ ├── FilterBinaryNode.java
│ ├── FilterExpression.java
│ ├── FilterValueGetter.java
│ ├── RegexPattern.java
│ └── package-info.java
│ └── package-info.java
├── kernel-src
└── org
│ └── neo4j
│ ├── graphdb
│ ├── Direction.java
│ ├── DynamicRelationshipType.java
│ ├── Expander.java
│ ├── GraphDatabaseService.java
│ ├── Node.java
│ ├── NotFoundException.java
│ ├── NotInTransactionException.java
│ ├── Path.java
│ ├── PropertyContainer.java
│ ├── Relationship.java
│ ├── RelationshipExpander.java
│ ├── RelationshipType.java
│ ├── ReturnableEvaluator.java
│ ├── StopEvaluator.java
│ ├── Transaction.java
│ ├── TransactionFailureException.java
│ ├── TraversalPosition.java
│ ├── Traverser.java
│ ├── event
│ │ ├── ErrorState.java
│ │ ├── KernelEventHandler.java
│ │ ├── PropertyEntry.java
│ │ ├── TransactionData.java
│ │ ├── TransactionEventHandler.java
│ │ └── package-info.java
│ ├── index
│ │ ├── AutoIndexer.java
│ │ ├── BatchInserterIndex.java
│ │ ├── BatchInserterIndexProvider.java
│ │ ├── Index.java
│ │ ├── IndexHits.java
│ │ ├── IndexImplementation.java
│ │ ├── IndexManager.java
│ │ ├── IndexProvider.java
│ │ ├── ReadableIndex.java
│ │ ├── ReadableRelationshipIndex.java
│ │ ├── RelationshipAutoIndexer.java
│ │ ├── RelationshipIndex.java
│ │ └── package-info.java
│ ├── package-info.java
│ └── traversal
│ │ ├── BranchOrderingPolicy.java
│ │ ├── BranchSelector.java
│ │ ├── Evaluation.java
│ │ ├── Evaluator.java
│ │ ├── Evaluators.java
│ │ ├── PruneEvaluator.java
│ │ ├── TraversalBranch.java
│ │ ├── TraversalDescription.java
│ │ ├── Traverser.java
│ │ ├── UniquenessFactory.java
│ │ ├── UniquenessFilter.java
│ │ └── package-info.java
│ ├── helpers
│ ├── Args.java
│ ├── Counter.java
│ ├── Exceptions.java
│ ├── Format.java
│ ├── Pair.java
│ ├── Predicate.java
│ ├── Service.java
│ ├── Stats.java
│ ├── Triplet.java
│ ├── UTF8.java
│ ├── collection
│ │ ├── ArrayIterator.java
│ │ ├── CachingIterator.java
│ │ ├── CatchingIteratorWrapper.java
│ │ ├── ClosableIterable.java
│ │ ├── ClosableIterator.java
│ │ ├── CollectionWrapper.java
│ │ ├── CombiningIterable.java
│ │ ├── CombiningIterator.java
│ │ ├── FilteringIterable.java
│ │ ├── FilteringIterator.java
│ │ ├── IterableWrapper.java
│ │ ├── IteratorUtil.java
│ │ ├── IteratorWrapper.java
│ │ ├── LinesOfFileIterator.java
│ │ ├── MapUtil.java
│ │ ├── NestingIterable.java
│ │ ├── NestingIterator.java
│ │ ├── PagingIterator.java
│ │ ├── PositionedIterator.java
│ │ ├── PrefetchingIterator.java
│ │ ├── RangeIterator.java
│ │ └── package-info.java
│ └── package-info.java
│ └── kernel
│ ├── AbstractAutoIndexerImpl.java
│ ├── AbstractGraphDatabase.java
│ ├── AbstractUniquenessFilter.java
│ ├── AutoConfigurator.java
│ ├── CommonBranchOrdering.java
│ ├── CommonFactories.java
│ ├── Config.java
│ ├── DeadlockDetectedException.java
│ ├── EmbeddedGraphDatabase.java
│ ├── EmbeddedGraphDbImpl.java
│ ├── EmbeddedReadOnlyGraphDatabase.java
│ ├── Expansion.java
│ ├── GloballyUnique.java
│ ├── GraphDbInstance.java
│ ├── IdGeneratorFactory.java
│ ├── IdType.java
│ ├── IndexManagerImpl.java
│ ├── KernelData.java
│ ├── KernelExtension.java
│ ├── KernelExtensionLoader.java
│ ├── LockManagerFactory.java
│ ├── NodeAutoIndexerImpl.java
│ ├── NotUnique.java
│ ├── OrderedByTypeExpander.java
│ ├── PathUnique.java
│ ├── PlaceboTransaction.java
│ ├── PostorderBreadthFirstSelector.java
│ ├── PostorderDepthFirstSelector.java
│ ├── PreorderBreadthFirstSelector.java
│ ├── PreorderDepthFirstSelector.java
│ ├── PrimitiveTypeFetcher.java
│ ├── PropertyTracker.java
│ ├── RecentlyUnique.java
│ ├── RelationshipAutoIndexerImpl.java
│ ├── StandaloneWithShell.java
│ ├── StandardExpander.java
│ ├── TopLevelTransaction.java
│ ├── Traversal.java
│ ├── Uniqueness.java
│ ├── Version.java
│ ├── impl
│ ├── annotations
│ │ ├── AnnotationProcessor.java
│ │ ├── CompilationManipulator.java
│ │ ├── DocumentationProcessor.java
│ │ ├── Documented.java
│ │ └── ServiceProcessor.java
│ ├── batchinsert
│ │ ├── BatchGraphDatabaseImpl.java
│ │ ├── BatchInserter.java
│ │ ├── BatchInserterImpl.java
│ │ ├── PropertyIndexHolder.java
│ │ ├── RelationshipTypeHolder.java
│ │ └── SimpleRelationship.java
│ ├── cache
│ │ ├── AdaptiveCacheManager.java
│ │ ├── Cache.java
│ │ ├── HitCounter.java
│ │ ├── LruCache.java
│ │ ├── NoCache.java
│ │ ├── ReferenceCache.java
│ │ ├── SoftLruCache.java
│ │ ├── SoftReferenceQueue.java
│ │ ├── SoftValue.java
│ │ ├── StrongReferenceCache.java
│ │ ├── WeakLruCache.java
│ │ ├── WeakReferenceQueue.java
│ │ └── WeakValue.java
│ ├── core
│ │ ├── DefaultRelationshipTypeCreator.java
│ │ ├── GraphDbModule.java
│ │ ├── IntArrayIterator.java
│ │ ├── KernelPanicEventGenerator.java
│ │ ├── LastCommittedTxIdSetter.java
│ │ ├── LockReleaser.java
│ │ ├── LowRelationshipImpl.java
│ │ ├── NodeImpl.java
│ │ ├── NodeManager.java
│ │ ├── NodeProxy.java
│ │ ├── Primitive.java
│ │ ├── PropertyEntryImpl.java
│ │ ├── PropertyEventData.java
│ │ ├── PropertyIndex.java
│ │ ├── PropertyIndexManager.java
│ │ ├── ReadOnlyDbException.java
│ │ ├── ReadOnlyNodeManager.java
│ │ ├── RelationshipArrayIntSetIterator.java
│ │ ├── RelationshipImpl.java
│ │ ├── RelationshipProxy.java
│ │ ├── RelationshipTypeCreator.java
│ │ ├── RelationshipTypeHolder.java
│ │ ├── TransactionDataImpl.java
│ │ ├── TransactionEventsSyncHook.java
│ │ └── TxEventSyncHookFactory.java
│ ├── index
│ │ ├── IndexCommand.java
│ │ ├── IndexConnectionBroker.java
│ │ ├── IndexDefineCommand.java
│ │ ├── IndexProviderStore.java
│ │ ├── IndexStore.java
│ │ ├── IndexXaConnection.java
│ │ └── ReadOnlyIndexConnectionBroker.java
│ ├── nioneo
│ │ ├── store
│ │ │ ├── Abstract64BitRecord.java
│ │ │ ├── AbstractDynamicStore.java
│ │ │ ├── AbstractPersistenceWindow.java
│ │ │ ├── AbstractRecord.java
│ │ │ ├── AbstractStore.java
│ │ │ ├── Buffer.java
│ │ │ ├── CommonAbstractStore.java
│ │ │ ├── DirectPersistenceWindow.java
│ │ │ ├── DynamicArrayStore.java
│ │ │ ├── DynamicRecord.java
│ │ │ ├── DynamicStringStore.java
│ │ │ ├── FileLock.java
│ │ │ ├── FileSystemAbstraction.java
│ │ │ ├── IdGenerator.java
│ │ │ ├── IdGeneratorImpl.java
│ │ │ ├── IdRange.java
│ │ │ ├── InvalidIdGeneratorException.java
│ │ │ ├── InvalidRecordException.java
│ │ │ ├── LockableWindow.java
│ │ │ ├── LongerShortString.java
│ │ │ ├── MappedMemException.java
│ │ │ ├── MappedPersistenceWindow.java
│ │ │ ├── NeoStore.java
│ │ │ ├── NodeRecord.java
│ │ │ ├── NodeStore.java
│ │ │ ├── NotCurrentStoreVersionException.java
│ │ │ ├── OperationType.java
│ │ │ ├── PersistenceRow.java
│ │ │ ├── PersistenceWindow.java
│ │ │ ├── PersistenceWindowPool.java
│ │ │ ├── PlainPersistenceWindow.java
│ │ │ ├── PrimitiveRecord.java
│ │ │ ├── PropertyBlock.java
│ │ │ ├── PropertyData.java
│ │ │ ├── PropertyDatas.java
│ │ │ ├── PropertyIndexData.java
│ │ │ ├── PropertyIndexRecord.java
│ │ │ ├── PropertyIndexStore.java
│ │ │ ├── PropertyRecord.java
│ │ │ ├── PropertyStore.java
│ │ │ ├── PropertyType.java
│ │ │ ├── ReadOnlyIdGenerator.java
│ │ │ ├── Record.java
│ │ │ ├── RelationshipRecord.java
│ │ │ ├── RelationshipStore.java
│ │ │ ├── RelationshipTypeData.java
│ │ │ ├── RelationshipTypeRecord.java
│ │ │ ├── RelationshipTypeStore.java
│ │ │ ├── ShortArray.java
│ │ │ ├── ShortString.java
│ │ │ ├── Store.java
│ │ │ ├── StoreFailureException.java
│ │ │ ├── StoreId.java
│ │ │ ├── UnderlyingStorageException.java
│ │ │ └── WindowPoolStats.java
│ │ └── xa
│ │ │ ├── Command.java
│ │ │ ├── NeoStoreXaConnection.java
│ │ │ ├── NeoStoreXaDataSource.java
│ │ │ ├── NioNeoDbPersistenceSource.java
│ │ │ ├── ReadTransaction.java
│ │ │ └── WriteTransaction.java
│ ├── persistence
│ │ ├── EntityIdGenerator.java
│ │ ├── IdGenerationFailedException.java
│ │ ├── IdGenerator.java
│ │ ├── IdGeneratorModule.java
│ │ ├── NeoStoreTransaction.java
│ │ ├── PersistenceManager.java
│ │ ├── PersistenceModule.java
│ │ ├── PersistenceSource.java
│ │ ├── PersistenceSourceDispatcher.java
│ │ └── ResourceAcquisitionFailedException.java
│ ├── storemigration
│ │ ├── ConfigMapUpgradeConfiguration.java
│ │ ├── CurrentDatabase.java
│ │ ├── DatabaseFiles.java
│ │ ├── LogFiles.java
│ │ ├── PropertyWriter.java
│ │ ├── StoreFiles.java
│ │ ├── StoreMigrationTool.java
│ │ ├── StoreMigrator.java
│ │ ├── StoreUpgrader.java
│ │ ├── UpgradableDatabase.java
│ │ ├── UpgradeConfiguration.java
│ │ ├── UpgradeNotAllowedByConfigurationException.java
│ │ ├── legacystore
│ │ │ ├── LegacyDynamicRecord.java
│ │ │ ├── LegacyDynamicRecordFetcher.java
│ │ │ ├── LegacyDynamicStoreReader.java
│ │ │ ├── LegacyNodeStoreReader.java
│ │ │ ├── LegacyPropertyIndexStoreReader.java
│ │ │ ├── LegacyPropertyRecord.java
│ │ │ ├── LegacyPropertyStoreReader.java
│ │ │ ├── LegacyPropertyType.java
│ │ │ ├── LegacyRelationshipStoreReader.java
│ │ │ ├── LegacyRelationshipTypeStoreReader.java
│ │ │ └── LegacyStore.java
│ │ └── monitoring
│ │ │ ├── MigrationProgressMonitor.java
│ │ │ ├── SilentMigrationProgressMonitor.java
│ │ │ └── VisibleMigrationProgressMonitor.java
│ ├── transaction
│ │ ├── AbstractTransactionManager.java
│ │ ├── DefaultTransactionManagerProvider.java
│ │ ├── IllegalResourceException.java
│ │ ├── LockException.java
│ │ ├── LockManager.java
│ │ ├── LockNotFoundException.java
│ │ ├── LockType.java
│ │ ├── RWLock.java
│ │ ├── RagManager.java
│ │ ├── ReadOnlyTransactionImpl.java
│ │ ├── ReadOnlyTxManager.java
│ │ ├── TransactionIdFactory.java
│ │ ├── TransactionImpl.java
│ │ ├── TransactionManagerProvider.java
│ │ ├── TxFinishHook.java
│ │ ├── TxLog.java
│ │ ├── TxManager.java
│ │ ├── TxModule.java
│ │ ├── UserTransactionImpl.java
│ │ ├── XaDataSourceManager.java
│ │ ├── XidImpl.java
│ │ └── xaframework
│ │ │ ├── BufferedReadableByteChannel.java
│ │ │ ├── CloseableByteBuffer.java
│ │ │ ├── DefaultLogBufferFactory.java
│ │ │ ├── DirectLogBuffer.java
│ │ │ ├── DirectMappedLogBuffer.java
│ │ │ ├── IllegalLogFormatException.java
│ │ │ ├── InMemoryLogBuffer.java
│ │ │ ├── LogBackedXaDataSource.java
│ │ │ ├── LogBuffer.java
│ │ │ ├── LogBufferFactory.java
│ │ │ ├── LogEntry.java
│ │ │ ├── LogIoUtils.java
│ │ │ ├── NullLogBuffer.java
│ │ │ ├── ReadPastEndException.java
│ │ │ ├── TxIdGenerator.java
│ │ │ ├── TxIdGeneratorFactory.java
│ │ │ ├── XaCommand.java
│ │ │ ├── XaCommandFactory.java
│ │ │ ├── XaConnection.java
│ │ │ ├── XaConnectionHelpImpl.java
│ │ │ ├── XaContainer.java
│ │ │ ├── XaDataSource.java
│ │ │ ├── XaLogicalLog.java
│ │ │ ├── XaResource.java
│ │ │ ├── XaResourceHelpImpl.java
│ │ │ ├── XaResourceManager.java
│ │ │ ├── XaTransaction.java
│ │ │ └── XaTransactionFactory.java
│ ├── traversal
│ │ ├── FinalTraversalBranch.java
│ │ ├── MultiEvaluator.java
│ │ ├── OldTraverserWrapper.java
│ │ ├── StartNodeTraversalBranch.java
│ │ ├── TraversalBranchImpl.java
│ │ ├── TraversalDescriptionImpl.java
│ │ ├── TraversalPath.java
│ │ └── TraverserImpl.java
│ └── util
│ │ ├── ArrayIntSet.java
│ │ ├── ArrayMap.java
│ │ ├── Bits.java
│ │ ├── BufferNumberPutter.java
│ │ ├── BufferedFileChannel.java
│ │ ├── CombinedRelIdIterator.java
│ │ ├── DebugUtil.java
│ │ ├── DirectArrayMap.java
│ │ ├── DumpLogicalLog.java
│ │ ├── FileUtils.java
│ │ ├── IoPrimitiveUtils.java
│ │ ├── RelIdArray.java
│ │ ├── RelIdArrayWithLoops.java
│ │ ├── RelIdIterator.java
│ │ └── StringLogger.java
│ └── package-info.java
├── lib-jarjar
├── geronimo-jta_1.1_spec-1.1.1.jar
├── java-rmi.jar
└── lucene-core-3.1.0.jar
├── lucene-index-src
└── org
│ └── neo4j
│ └── index
│ ├── impl
│ └── lucene
│ │ ├── AbstractIndexHits.java
│ │ ├── Cache.java
│ │ ├── CombinedIndexHits.java
│ │ ├── CommitContext.java
│ │ ├── ConnectionBroker.java
│ │ ├── ConstantScoreIterator.java
│ │ ├── DocToIdIterator.java
│ │ ├── DumpLogicalLog.java
│ │ ├── EntityType.java
│ │ ├── ExactTxData.java
│ │ ├── FullTxData.java
│ │ ├── Hits.java
│ │ ├── HitsIterator.java
│ │ ├── IdToEntityIterator.java
│ │ ├── IndexIdentifier.java
│ │ ├── IndexSearcherRef.java
│ │ ├── IndexType.java
│ │ ├── IndexTypeCache.java
│ │ ├── LuceneBatchInserterIndex.java
│ │ ├── LuceneBatchInserterIndexProvider.java
│ │ ├── LuceneCommand.java
│ │ ├── LuceneDataSource.java
│ │ ├── LuceneIndex.java
│ │ ├── LuceneIndexImplementation.java
│ │ ├── LuceneTransaction.java
│ │ ├── LuceneUtil.java
│ │ ├── LuceneXaConnection.java
│ │ ├── MultipleBackupDeletionPolicy.java
│ │ ├── QueryNotPossibleException.java
│ │ ├── RelationshipId.java
│ │ ├── TopDocsIterator.java
│ │ ├── TxData.java
│ │ ├── TxDataHolder.java
│ │ └── package-info.java
│ └── lucene
│ ├── LuceneIndexProvider.java
│ ├── LuceneTimeline.java
│ ├── QueryContext.java
│ ├── TimelineIndex.java
│ ├── ValueContext.java
│ └── package-info.java
├── proguard-project.txt
├── project.properties
├── res
└── values
│ └── strings.xml
└── src
└── org
└── neo4j
└── android
└── Version.java
/NOTICE.txt:
--------------------------------------------------------------------------------
1 | Neo4j
2 | Copyright © 2002-2012 Network Engine for Objects in Lund AB (referred to
3 | in this notice as “Neo Technology”)
4 | [http://neotechnology.com]
5 |
6 | This product includes software ("Software") developed by Neo Technology.
7 |
8 | The copyright in the bundled Neo4j graph database (including the
9 | Software) is owned by Neo Technology. The Software developed and owned
10 | by Neo Technology is licensed under the GNU GENERAL PUBLIC LICENSE
11 | Version 3 (http://www.fsf.org/licensing/licenses/gpl-3.0.html) ("GPL")
12 | to all third parties and that license, as required by the GPL, is
13 | included in the LICENSE.txt file.
14 |
15 | However, if you have executed an End User Software License and Services
16 | Agreement or an OEM Software License and Support Services Agreement, or
17 | another commercial license agreement with Neo Technology or one of its
18 | affiliates (each, a "Commercial Agreement"), the terms of the license in
19 | such Commercial Agreement will supersede the GPL and you may use the
20 | software solely pursuant to the terms of the relevant Commercial
21 | Agreement.
22 |
23 | Third party libraries
24 | ---------------------
25 |
26 | See the NOTICE.txt and LICENSES.txt files in the subdirectories for
27 | information on included third party software.
28 |
29 |
--------------------------------------------------------------------------------
/doc/Neo4j concept V1_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo4j-contrib/neo4j-mobile-android/fb2c6e55987d00f2229bad0a978a2cc076efe734/doc/Neo4j concept V1_0.png
--------------------------------------------------------------------------------
/neo4j-android-client/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/neo4j-android-client/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | neo4j-android-client
4 |
5 |
6 |
7 |
8 |
9 | com.android.ide.eclipse.adt.ResourceManagerBuilder
10 |
11 |
12 |
13 |
14 | com.android.ide.eclipse.adt.PreCompilerBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | com.android.ide.eclipse.adt.ApkBuilder
25 |
26 |
27 |
28 |
29 |
30 | com.android.ide.eclipse.adt.AndroidNature
31 | org.eclipse.jdt.core.javanature
32 |
33 |
34 |
--------------------------------------------------------------------------------
/neo4j-android-client/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
27 |
28 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/neo4j-android-client/NOTICE.txt:
--------------------------------------------------------------------------------
1 | Neo4j
2 | Copyright © 2002-2013 Network Engine for Objects in Lund AB (referred to
3 | in this notice as "Neo Technology")
4 | [http://neotechnology.com]
5 |
6 | This product includes software ("Software") developed by Neo Technology.
7 |
8 | The copyright in the bundled Neo4j graph database (including the
9 | Software) is owned by Neo Technology. The Software developed and owned
10 | by Neo Technology is licensed under the GNU GENERAL PUBLIC LICENSE
11 | Version 3 (http://www.fsf.org/licensing/licenses/gpl-3.0.html) ("GPL")
12 | to all third parties and that license, as required by the GPL, is
13 | included in the LICENSE.txt file.
14 |
15 | However, if you have executed an End User Software License and Services
16 | Agreement or an OEM Software License and Support Services Agreement, or
17 | another commercial license agreement with Neo Technology or one of its
18 | affiliates (each, a "Commercial Agreement"), the terms of the license in
19 | such Commercial Agreement will supersede the GPL and you may use the
20 | software solely pursuant to the terms of the relevant Commercial
21 | Agreement.
22 |
23 |
24 |
--------------------------------------------------------------------------------
/neo4j-android-client/ant.properties:
--------------------------------------------------------------------------------
1 | # This file is used to override default values used by the Ant build system.
2 | #
3 | # This file must be checked in Version Control Systems, as it is
4 | # integral to the build system of your project.
5 |
6 | # This file is only used by the Ant script.
7 |
8 | # You can use this to override default values such as
9 | # 'source.dir' for the location of your java source folder and
10 | # 'out.dir' for the location of your output folder.
11 |
12 | # You can also use it define how the release builds are signed by declaring
13 | # the following properties:
14 | # 'key.store' for the location of your keystore and
15 | # 'key.alias' for the name of the key to use.
16 | # The password will be asked during the build when you use the 'release' target.
17 |
18 | java.source=1.6
19 | java.target=1.6
--------------------------------------------------------------------------------
/neo4j-android-client/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/neo4j-android-client/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system use,
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 |
10 | # Project target.
11 | target=android-15
12 | android.library=true
13 | android.library.reference.1=../neo4j-android-common
14 |
--------------------------------------------------------------------------------
/neo4j-android-client/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
24 |
25 | Neo4j Android
26 |
27 |
--------------------------------------------------------------------------------
/neo4j-android-client/src/org/neo4j/android/client/Neo4jServiceException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.android.client;
21 |
22 | @SuppressWarnings("serial")
23 | public class Neo4jServiceException extends Exception {
24 |
25 | private int mErrorCode;
26 |
27 | public Neo4jServiceException(int errorCode) {
28 | this(errorCode, null);
29 | }
30 |
31 | public Neo4jServiceException(int errorCode, String message) {
32 | super(message);
33 | }
34 |
35 | public int getErrorCode() {
36 | return mErrorCode;
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/neo4j-android-client/src/org/neo4j/android/client/Util.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.android.client;
21 |
22 | import org.neo4j.android.common.ParcelableError;
23 |
24 | /* package */class Util {
25 |
26 | /* package */static void throwServiceExceptionIfError(ParcelableError err) throws Neo4jServiceException {
27 |
28 | if (err.isError()) {
29 | throw new Neo4jServiceException(err.getErrorCode(), err.getErrorMessage());
30 | }
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/neo4j-android-common/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/neo4j-android-common/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | neo4j-android-common
4 |
5 |
6 |
7 |
8 |
9 | com.android.ide.eclipse.adt.ResourceManagerBuilder
10 |
11 |
12 |
13 |
14 | com.android.ide.eclipse.adt.PreCompilerBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | com.android.ide.eclipse.adt.ApkBuilder
25 |
26 |
27 |
28 |
29 |
30 | com.android.ide.eclipse.adt.AndroidNature
31 | org.eclipse.jdt.core.javanature
32 |
33 |
34 |
--------------------------------------------------------------------------------
/neo4j-android-common/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
27 |
28 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/neo4j-android-common/NOTICE.txt:
--------------------------------------------------------------------------------
1 | Neo4j
2 | Copyright © 2002-2013 Network Engine for Objects in Lund AB (referred to
3 | in this notice as "Neo Technology")
4 | [http://neotechnology.com]
5 |
6 | This product includes software ("Software") developed by Neo Technology.
7 |
8 | The copyright in the bundled Neo4j graph database (including the
9 | Software) is owned by Neo Technology. The Software developed and owned
10 | by Neo Technology is licensed under the GNU GENERAL PUBLIC LICENSE
11 | Version 3 (http://www.fsf.org/licensing/licenses/gpl-3.0.html) ("GPL")
12 | to all third parties and that license, as required by the GPL, is
13 | included in the LICENSE.txt file.
14 |
15 | However, if you have executed an End User Software License and Services
16 | Agreement or an OEM Software License and Support Services Agreement, or
17 | another commercial license agreement with Neo Technology or one of its
18 | affiliates (each, a "Commercial Agreement"), the terms of the license in
19 | such Commercial Agreement will supersede the GPL and you may use the
20 | software solely pursuant to the terms of the relevant Commercial
21 | Agreement.
22 |
23 |
24 |
--------------------------------------------------------------------------------
/neo4j-android-common/ant.properties:
--------------------------------------------------------------------------------
1 | # This file is used to override default values used by the Ant build system.
2 | #
3 | # This file must be checked in Version Control Systems, as it is
4 | # integral to the build system of your project.
5 |
6 | # This file is only used by the Ant script.
7 |
8 | # You can use this to override default values such as
9 | # 'source.dir' for the location of your java source folder and
10 | # 'out.dir' for the location of your output folder.
11 |
12 | # You can also use it define how the release builds are signed by declaring
13 | # the following properties:
14 | # 'key.store' for the location of your keystore and
15 | # 'key.alias' for the name of the key to use.
16 | # The password will be asked during the build when you use the 'release' target.
17 |
18 | java.source=1.6
19 | java.target=1.6
--------------------------------------------------------------------------------
/neo4j-android-common/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/neo4j-android-common/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system use,
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 |
10 | # Project target.
11 | target=android-14
12 | android.library=true
13 |
--------------------------------------------------------------------------------
/neo4j-android-common/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
24 |
25 | Neo4j Android
26 |
27 |
--------------------------------------------------------------------------------
/neo4j-android-common/src/org/neo4j/android/common/Direction.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.android.common;
21 |
22 | public enum Direction {
23 |
24 | OUTGOING, INCOMING, BOTH
25 | }
26 |
--------------------------------------------------------------------------------
/neo4j-android-common/src/org/neo4j/android/common/INeo4jService.aidl:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.android.common;
21 |
22 | import org.neo4j.android.common.ParcelableError;
23 |
24 | import org.neo4j.android.common.IGraphDatabase;
25 |
26 | interface INeo4jService {
27 |
28 | String getNeo4jVersion();
29 |
30 | boolean databaseExists(in String name);
31 |
32 | boolean isDatabaseOpen(in String name);
33 |
34 | IGraphDatabase openOrCreateDatabase(in String name, out ParcelableError err);
35 |
36 | boolean deleteDatabase(in String name, out ParcelableError err);
37 |
38 | boolean exportDatabase(in String name, out ParcelableError err);
39 |
40 | List listAvailableDatabases();
41 |
42 | void shutdownDatabase(in String name, out ParcelableError err);
43 | }
44 |
--------------------------------------------------------------------------------
/neo4j-android-common/src/org/neo4j/android/common/INodeIterator.aidl:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.android.common;
21 |
22 | import org.neo4j.android.common.ParcelableNode;
23 | import org.neo4j.android.common.ParcelableError;
24 |
25 | interface INodeIterator {
26 |
27 | ParcelableNode next(out ParcelableError err);
28 |
29 | boolean hasNext(out ParcelableError err);
30 | }
31 |
--------------------------------------------------------------------------------
/neo4j-android-common/src/org/neo4j/android/common/IRelationshipIterator.aidl:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.android.common;
21 |
22 | import org.neo4j.android.common.ParcelableRelationship;
23 | import org.neo4j.android.common.ParcelableError;
24 |
25 | interface IRelationshipIterator {
26 |
27 | ParcelableRelationship next(out ParcelableError err);
28 |
29 | boolean hasNext(out ParcelableError err);
30 | }
31 |
--------------------------------------------------------------------------------
/neo4j-android-common/src/org/neo4j/android/common/ParcelableError.aidl:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.android.common;
21 |
22 | parcelable ParcelableError;
23 |
--------------------------------------------------------------------------------
/neo4j-android-common/src/org/neo4j/android/common/ParcelableIndexValue.aidl:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.android.common;
21 |
22 | parcelable ParcelableIndexValue;
23 |
--------------------------------------------------------------------------------
/neo4j-android-common/src/org/neo4j/android/common/ParcelableNode.aidl:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.android.common;
21 |
22 | parcelable ParcelableNode;
23 |
--------------------------------------------------------------------------------
/neo4j-android-common/src/org/neo4j/android/common/ParcelablePropertyContainer.aidl:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.android.common;
21 |
22 | parcelable ParcelablePropertyContainer;
23 |
--------------------------------------------------------------------------------
/neo4j-android-common/src/org/neo4j/android/common/ParcelableRelationship.aidl:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.android.common;
21 |
22 | parcelable ParcelableRelationship;
--------------------------------------------------------------------------------
/neo4j-android-common/src/org/neo4j/android/common/ParcelableTraversalDescription.aidl:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.android.common;
21 |
22 | parcelable ParcelableTraversalDescription;
23 |
--------------------------------------------------------------------------------
/neo4j-android-dbinspector/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/neo4j-android-dbinspector/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | neo4j-android-dbinspector
4 |
5 |
6 |
7 |
8 |
9 | com.android.ide.eclipse.adt.ResourceManagerBuilder
10 |
11 |
12 |
13 |
14 | com.android.ide.eclipse.adt.PreCompilerBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | com.android.ide.eclipse.adt.ApkBuilder
25 |
26 |
27 |
28 |
29 |
30 | com.android.ide.eclipse.adt.AndroidNature
31 | org.eclipse.jdt.core.javanature
32 |
33 |
34 |
--------------------------------------------------------------------------------
/neo4j-android-dbinspector/NOTICE.txt:
--------------------------------------------------------------------------------
1 | Neo4j
2 | Copyright © 2002-2013 Network Engine for Objects in Lund AB (referred to
3 | in this notice as "Neo Technology")
4 | [http://neotechnology.com]
5 |
6 | This product includes software ("Software") developed by Neo Technology.
7 |
8 | The copyright in the bundled Neo4j graph database (including the
9 | Software) is owned by Neo Technology. The Software developed and owned
10 | by Neo Technology is licensed under the GNU GENERAL PUBLIC LICENSE
11 | Version 3 (http://www.fsf.org/licensing/licenses/gpl-3.0.html) ("GPL")
12 | to all third parties and that license, as required by the GPL, is
13 | included in the LICENSE.txt file.
14 |
15 | However, if you have executed an End User Software License and Services
16 | Agreement or an OEM Software License and Support Services Agreement, or
17 | another commercial license agreement with Neo Technology or one of its
18 | affiliates (each, a "Commercial Agreement"), the terms of the license in
19 | such Commercial Agreement will supersede the GPL and you may use the
20 | software solely pursuant to the terms of the relevant Commercial
21 | Agreement.
22 |
23 | Full license texts are found in LICENSES.txt.
24 |
25 | Third-party licenses
26 | --------------------
27 |
28 | Apache Software License, Version 2.0
29 | Android Support v4
30 | Guice
31 | RoboGuice
32 |
33 |
--------------------------------------------------------------------------------
/neo4j-android-dbinspector/ant.properties:
--------------------------------------------------------------------------------
1 | # This file is used to override default values used by the Ant build system.
2 | #
3 | # This file must be checked in Version Control Systems, as it is
4 | # integral to the build system of your project.
5 |
6 | # This file is only used by the Ant script.
7 |
8 | # You can use this to override default values such as
9 | # 'source.dir' for the location of your java source folder and
10 | # 'out.dir' for the location of your output folder.
11 |
12 | # You can also use it define how the release builds are signed by declaring
13 | # the following properties:
14 | # 'key.store' for the location of your keystore and
15 | # 'key.alias' for the name of the key to use.
16 | # The password will be asked during the build when you use the 'release' target.
17 |
18 | java.source=1.6
19 | java.target=1.6
--------------------------------------------------------------------------------
/neo4j-android-dbinspector/doc/guice-3.0-src.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo4j-contrib/neo4j-mobile-android/fb2c6e55987d00f2229bad0a978a2cc076efe734/neo4j-android-dbinspector/doc/guice-3.0-src.zip
--------------------------------------------------------------------------------
/neo4j-android-dbinspector/doc/roboguice-2.0b4-sources.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo4j-contrib/neo4j-mobile-android/fb2c6e55987d00f2229bad0a978a2cc076efe734/neo4j-android-dbinspector/doc/roboguice-2.0b4-sources.jar
--------------------------------------------------------------------------------
/neo4j-android-dbinspector/libs/android-support-v4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo4j-contrib/neo4j-mobile-android/fb2c6e55987d00f2229bad0a978a2cc076efe734/neo4j-android-dbinspector/libs/android-support-v4.jar
--------------------------------------------------------------------------------
/neo4j-android-dbinspector/libs/guice-3.0-no_aop.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo4j-contrib/neo4j-mobile-android/fb2c6e55987d00f2229bad0a978a2cc076efe734/neo4j-android-dbinspector/libs/guice-3.0-no_aop.jar
--------------------------------------------------------------------------------
/neo4j-android-dbinspector/libs/javax.inject.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo4j-contrib/neo4j-mobile-android/fb2c6e55987d00f2229bad0a978a2cc076efe734/neo4j-android-dbinspector/libs/javax.inject.jar
--------------------------------------------------------------------------------
/neo4j-android-dbinspector/libs/roboguice-2.0-RC1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo4j-contrib/neo4j-mobile-android/fb2c6e55987d00f2229bad0a978a2cc076efe734/neo4j-android-dbinspector/libs/roboguice-2.0-RC1.jar
--------------------------------------------------------------------------------
/neo4j-android-dbinspector/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/neo4j-android-dbinspector/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system use,
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 |
10 | # Project target.
11 | target=android-15
12 | android.library.reference.1=../neo4j-android-client
13 |
--------------------------------------------------------------------------------
/neo4j-android-dbinspector/res/drawable/ic_neo4j.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo4j-contrib/neo4j-mobile-android/fb2c6e55987d00f2229bad0a978a2cc076efe734/neo4j-android-dbinspector/res/drawable/ic_neo4j.png
--------------------------------------------------------------------------------
/neo4j-android-dbinspector/res/layout/main_activity_createdatabase.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
29 |
30 |
36 |
37 |
--------------------------------------------------------------------------------
/neo4j-android-dbinspector/res/layout/node_activity_listitem.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
28 |
29 |
33 |
34 |
38 |
39 |
--------------------------------------------------------------------------------
/neo4j-android-dbinspector/res/layout/node_create.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
29 |
30 |
35 |
36 |
--------------------------------------------------------------------------------
/neo4j-android-dbinspector/res/layout/rootnode_activity_listitem.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
28 |
29 |
33 |
34 |
39 |
40 |
--------------------------------------------------------------------------------
/neo4j-android-dbinspector/res/menu/main_activity_menu.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
--------------------------------------------------------------------------------
/neo4j-android-dbinspector/src/com/noser/neo4j/android/dbinspector/base/DBInspectorException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package com.noser.neo4j.android.dbinspector.base;
21 |
22 | public class DBInspectorException extends Exception {
23 |
24 | private static final long serialVersionUID = 1L;
25 |
26 | public DBInspectorException() {
27 | super();
28 | }
29 |
30 | public DBInspectorException(String message) {
31 | super(message);
32 | }
33 |
34 | public DBInspectorException(Throwable throwable) {
35 | super(throwable);
36 | }
37 |
38 | public DBInspectorException(String message, Throwable throwable) {
39 | super(message, throwable);
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/neo4j-android-dbinspector/src/com/noser/neo4j/android/dbinspector/implementation/DBInspectorModule.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package com.noser.neo4j.android.dbinspector.implementation;
21 |
22 | import com.google.inject.Binder;
23 | import com.google.inject.Module;
24 | import com.noser.neo4j.android.dbinspector.interfaces.IDBManager;
25 |
26 | public class DBInspectorModule implements Module {
27 |
28 | @Override
29 | public void configure(Binder binder) {
30 |
31 | // all we do here is just plumbing implementations and interfaces
32 | // together:
33 | // http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Binder.html
34 | // http://code.google.com/p/roboguice/wiki/ProvidedInjections
35 | //
36 | // see roboguice.config.DefaultRoboModule for predefined bindings.
37 | //
38 | binder.bind(IDBManager.class).to(DBManager.class);
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/neo4j-android-service/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/neo4j-android-service/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | neo4j-android-service
4 |
5 |
6 |
7 |
8 |
9 | com.android.ide.eclipse.adt.ResourceManagerBuilder
10 |
11 |
12 |
13 |
14 | com.android.ide.eclipse.adt.PreCompilerBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | com.android.ide.eclipse.adt.ApkBuilder
25 |
26 |
27 |
28 |
29 |
30 | com.android.ide.eclipse.adt.AndroidNature
31 | org.eclipse.jdt.core.javanature
32 |
33 |
34 |
--------------------------------------------------------------------------------
/neo4j-android-service/NOTICE.txt:
--------------------------------------------------------------------------------
1 | Neo4j
2 | Copyright © 2002-2013 Network Engine for Objects in Lund AB (referred to
3 | in this notice as "Neo Technology")
4 | [http://neotechnology.com]
5 |
6 | This product includes software ("Software") developed by Neo Technology.
7 |
8 | The copyright in the bundled Neo4j graph database (including the
9 | Software) is owned by Neo Technology. The Software developed and owned
10 | by Neo Technology is licensed under the GNU GENERAL PUBLIC LICENSE
11 | Version 3 (http://www.fsf.org/licensing/licenses/gpl-3.0.html) ("GPL")
12 | to all third parties and that license, as required by the GPL, is
13 | included in the LICENSE.txt file.
14 |
15 | However, if you have executed an End User Software License and Services
16 | Agreement or an OEM Software License and Support Services Agreement, or
17 | another commercial license agreement with Neo Technology or one of its
18 | affiliates (each, a "Commercial Agreement"), the terms of the license in
19 | such Commercial Agreement will supersede the GPL and you may use the
20 | software solely pursuant to the terms of the relevant Commercial
21 | Agreement.
22 |
23 | Full license texts are found in LICENSES.txt.
24 |
25 |
26 |
--------------------------------------------------------------------------------
/neo4j-android-service/README:
--------------------------------------------------------------------------------
1 | README
2 | ------
3 | This is the service wrapper around an embeddable Neo4j database.
4 |
5 | Service
6 | -------
7 | The service is a bound service, and can be reached through this action:
8 | org.neo4j.android.service.Neo4jService
9 |
10 | Interface
11 | ---------
12 | Currently the AIDL files are the only documentation.
13 |
14 | Access Control
15 | --------------
16 | Permissions required to interact with the service:
17 |
18 | org.neo4j.android.permission.READ: Bind to service, read data
19 | org.neo4j.android.permission.WRITE: Modify data
--------------------------------------------------------------------------------
/neo4j-android-service/ant.properties:
--------------------------------------------------------------------------------
1 | # This file is used to override default values used by the Ant build system.
2 | #
3 | # This file must be checked in Version Control Systems, as it is
4 | # integral to the build system of your project.
5 |
6 | # This file is only used by the Ant script.
7 |
8 | # You can use this to override default values such as
9 | # 'source.dir' for the location of your java source folder and
10 | # 'out.dir' for the location of your output folder.
11 |
12 | # You can also use it define how the release builds are signed by declaring
13 | # the following properties:
14 | # 'key.store' for the location of your keystore and
15 | # 'key.alias' for the name of the key to use.
16 | # The password will be asked during the build when you use the 'release' target.
17 |
18 | java.source=1.6
19 | java.target=1.6
--------------------------------------------------------------------------------
/neo4j-android-service/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/neo4j-android-service/proguard.cfg:
--------------------------------------------------------------------------------
1 | -optimizationpasses 5
2 | -dontusemixedcaseclassnames
3 | -dontskipnonpubliclibraryclasses
4 | -dontpreverify
5 | -verbose
6 | -optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
7 |
8 | -keep public class * extends android.app.Activity
9 | -keep public class * extends android.app.Application
10 | -keep public class * extends android.app.Service
11 | -keep public class * extends android.content.BroadcastReceiver
12 | -keep public class * extends android.content.ContentProvider
13 | -keep public class * extends android.app.backup.BackupAgentHelper
14 | -keep public class * extends android.preference.Preference
15 | -keep public class com.android.vending.licensing.ILicensingService
16 |
17 | -keepclasseswithmembernames class * {
18 | native ;
19 | }
20 |
21 | -keepclasseswithmembers class * {
22 | public (android.content.Context, android.util.AttributeSet);
23 | }
24 |
25 | -keepclasseswithmembers class * {
26 | public (android.content.Context, android.util.AttributeSet, int);
27 | }
28 |
29 | -keepclassmembers class * extends android.app.Activity {
30 | public void *(android.view.View);
31 | }
32 |
33 | -keepclassmembers enum * {
34 | public static **[] values();
35 | public static ** valueOf(java.lang.String);
36 | }
37 |
38 | -keep class * implements android.os.Parcelable {
39 | public static final android.os.Parcelable$Creator *;
40 | }
41 |
--------------------------------------------------------------------------------
/neo4j-android-service/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system use,
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 |
10 | # Project target.
11 | target=android-14
12 | android.library.reference.1=../neo4j-android
13 | android.library.reference.2=../neo4j-android-common
14 | android.library=false
15 |
--------------------------------------------------------------------------------
/neo4j-android-service/res/drawable/ic_neo4j.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo4j-contrib/neo4j-mobile-android/fb2c6e55987d00f2229bad0a978a2cc076efe734/neo4j-android-service/res/drawable/ic_neo4j.png
--------------------------------------------------------------------------------
/neo4j-android-service/res/raw/neo4j.properties:
--------------------------------------------------------------------------------
1 | preloadAll=true
--------------------------------------------------------------------------------
/neo4j-android-service/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
24 |
25 | Neo4j Android Service
26 |
27 |
28 | Read access to Neo4j Database
29 | Grants an application read access to all data in the shared Neo4j database.
30 | Write access to Neo4j Database
31 | Grants an application write access to all data in the shared Neo4j database.
32 | Admin access to Neo4j Database
33 | Grants an application admin access to the shared Neo4j database.
34 |
35 |
--------------------------------------------------------------------------------
/neo4j-android-service/src/org/neo4j/android/service/BootBroadcastReceiver.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.android.service;
21 |
22 | import android.content.BroadcastReceiver;
23 | import android.content.Context;
24 | import android.content.Intent;
25 | import android.util.Log;
26 |
27 | /**
28 | * Broadcast receiver that will start the service upon boot.
29 | */
30 | public class BootBroadcastReceiver extends BroadcastReceiver {
31 |
32 | private static final String TAG = BootBroadcastReceiver.class.getSimpleName();
33 |
34 | @Override
35 | public void onReceive(Context context, Intent intent) {
36 |
37 | if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
38 | Log.i(TAG, "Boot completed, starting Neo4j Service");
39 | context.startService(new Intent(context, Neo4jServiceImpl.class));
40 | }
41 | }
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/neo4j-android-service/src/org/neo4j/android/service/Errors.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.android.service;
21 |
22 | public class Errors {
23 |
24 | public static int NO_ERROR = 0;
25 |
26 | public static int MISSING_DATABASE_NAME = 1;
27 |
28 | public static int OPEN_CREATE_DATABASE = 2;
29 |
30 | public static int TRANSACTION = 3;
31 |
32 | public static int NODE_ITERATOR = 4;
33 |
34 | public static int RELATIONSHIP_ITERATOR = 5;
35 | }
36 |
--------------------------------------------------------------------------------
/neo4j-android-service/src/org/neo4j/android/service/Neo4jServiceApp.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.android.service;
21 |
22 | import android.app.Application;
23 | import android.util.Log;
24 |
25 | public class Neo4jServiceApp extends Application {
26 |
27 | private static final String TAG = Neo4jServiceApp.class.getSimpleName();
28 |
29 | @Override
30 | public void onCreate() {
31 |
32 | super.onCreate();
33 |
34 | Log.i(TAG, "App initialized");
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/neo4j-android-service/src/org/neo4j/android/service/Permissions.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.android.service;
21 |
22 | public class Permissions {
23 |
24 | // Permissions for the function-based security model
25 | /* package */static final String PERM_WRITE = "org.neo4j.android.permission.WRITE";
26 |
27 | /* package */static final String PERM_READ = "org.neo4j.android.permission.READ";
28 |
29 | /* package */static final String PERM_ADMIN = "org.neo4j.android.permission.ADMIN";
30 | }
31 |
--------------------------------------------------------------------------------
/neo4j-android-service/src/org/neo4j/android/service/util/SimpleRelationshipType.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.android.service.util;
21 |
22 | import org.neo4j.graphdb.RelationshipType;
23 |
24 | /**
25 | * We treat relationship types as strings, as we can't share enums across
26 | * processes.
27 | */
28 | public class SimpleRelationshipType implements RelationshipType {
29 |
30 | private String mName;
31 |
32 | public SimpleRelationshipType(String name) {
33 | mName = name;
34 | }
35 |
36 | @Override
37 | public String name() {
38 | return mName;
39 | }
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/neo4j-android/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/neo4j-android/.externalToolBuilders/com.android.ide.eclipse.adt.ApkBuilder.launch:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/neo4j-android/.externalToolBuilders/com.android.ide.eclipse.adt.PreCompilerBuilder.launch:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/neo4j-android/.externalToolBuilders/com.android.ide.eclipse.adt.ResourceManagerBuilder.launch:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/neo4j-android/.externalToolBuilders/org.eclipse.jdt.core.javabuilder.launch:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/neo4j-android/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | #Tue Nov 08 10:23:49 CET 2011
2 | eclipse.preferences.version=1
3 | encoding/=UTF-8
4 |
--------------------------------------------------------------------------------
/neo4j-android/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
27 |
28 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/neo4j-android/NOTICE.txt:
--------------------------------------------------------------------------------
1 | Neo4j
2 | Copyright © 2002-2013 Network Engine for Objects in Lund AB (referred to
3 | in this notice as "Neo Technology")
4 | [http://neotechnology.com]
5 |
6 | This product includes software ("Software") developed by Neo Technology.
7 |
8 | The copyright in the bundled Neo4j graph database (including the
9 | Software) is owned by Neo Technology. The Software developed and owned
10 | by Neo Technology is licensed under the GNU GENERAL PUBLIC LICENSE
11 | Version 3 (http://www.fsf.org/licensing/licenses/gpl-3.0.html) ("GPL")
12 | to all third parties and that license, as required by the GPL, is
13 | included in the LICENSE.txt file.
14 |
15 | However, if you have executed an End User Software License and Services
16 | Agreement or an OEM Software License and Support Services Agreement, or
17 | another commercial license agreement with Neo Technology or one of its
18 | affiliates (each, a "Commercial Agreement"), the terms of the license in
19 | such Commercial Agreement will supersede the GPL and you may use the
20 | software solely pursuant to the terms of the relevant Commercial
21 | Agreement.
22 |
23 | Full license texts are found in LICENSES.txt.
24 |
25 | Third-party licenses
26 | --------------------
27 |
28 | Apache Software License, Version 2.0
29 | JTA 1.1
30 | Lucene Core
31 |
32 |
--------------------------------------------------------------------------------
/neo4j-android/README:
--------------------------------------------------------------------------------
1 | This port is based on Neo4j 1.5 M02
2 | https://github.com/neo4j/community/tarball/1.5.M02
3 |
4 | To build:
5 | - $ ant debug
6 |
7 | To use:
8 | - Copy the jar "/bin/neo4j-android.jar" to your "/libs/" and put it on your build classpath.
9 | - We are working on a better solution with library projects or some such, but it's not trivial.
10 |
11 |
--------------------------------------------------------------------------------
/neo4j-android/ant.properties:
--------------------------------------------------------------------------------
1 | # This file is used to override default values used by the Ant build system.
2 | #
3 | # This file must be checked in Version Control Systems, as it is
4 | # integral to the build system of your project.
5 |
6 | # This file is only used by the Ant script.
7 |
8 | # You can use this to override default values such as
9 | # 'source.dir' for the location of your java source folder and
10 | # 'out.dir' for the location of your output folder.
11 |
12 | # You can also use it define how the release builds are signed by declaring
13 | # the following properties:
14 | # 'key.store' for the location of your keystore and
15 | # 'key.alias' for the name of the key to use.
16 | # The password will be asked during the build when you use the 'release' target.
17 |
18 | java.source=1.6
19 | java.target=1.6
--------------------------------------------------------------------------------
/neo4j-android/buildtools/jarjar-1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo4j-contrib/neo4j-mobile-android/fb2c6e55987d00f2229bad0a978a2cc076efe734/neo4j-android/buildtools/jarjar-1.1.jar
--------------------------------------------------------------------------------
/neo4j-android/graph-algo-src/org/neo4j/graphalgo/EstimateEvaluator.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.graphalgo;
21 |
22 | import org.neo4j.graphdb.Node;
23 |
24 | /**
25 | * Evaluator used to estimate the weight of the remaining path from one node to
26 | * another.
27 | *
28 | * @author Mattias Persson
29 | * @param The data type of the estimated weight.
30 | */
31 | public interface EstimateEvaluator
32 | {
33 | /**
34 | * Estimate the weight of the remaining path from one node to another.
35 | *
36 | * @param node the node to estimate the weight from.
37 | * @param goal the node to estimate the weight to.
38 | * @return an estimation of the weight of the path from the first node to
39 | * the second.
40 | */
41 | T getCost( Node node, Node goal );
42 | }
43 |
--------------------------------------------------------------------------------
/neo4j-android/graph-algo-src/org/neo4j/graphalgo/MaxCostEvaluator.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.graphalgo;
21 |
22 | /**
23 | * Evaluator for determining if the maximum path cost has been exceeded.
24 | *
25 | * @author Peter Neubauer
26 | * @param The cost value type
27 | */
28 | public interface MaxCostEvaluator
29 | {
30 | /**
31 | * Evaluates whether the maximum cost has been exceeded.
32 | *
33 | * @param currentCost the cost to be checked
34 | * @return true if the maximum Cost is less that currentCost
35 | */
36 | public boolean maxCostExceeded( T currentCost );
37 | }
38 |
--------------------------------------------------------------------------------
/neo4j-android/graph-algo-src/org/neo4j/graphalgo/WeightedPath.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.graphalgo;
21 |
22 | import org.neo4j.graphdb.Path;
23 |
24 | /**
25 | * A {@link Path} that has an associated weight.
26 | *
27 | * @author Tobias Ivarsson
28 | */
29 | public interface WeightedPath extends Path
30 | {
31 | /**
32 | * Returns the weight of the path.
33 | *
34 | * @return the weight of the path.
35 | */
36 | double weight();
37 | }
38 |
--------------------------------------------------------------------------------
/neo4j-android/graph-algo-src/org/neo4j/graphalgo/impl/centrality/CostDivider.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.graphalgo.impl.centrality;
21 |
22 | import org.neo4j.graphalgo.CostAccumulator;
23 |
24 | /**
25 | * To make calculations as general as possible, this follows a similar idea to
26 | * {@link CostAccumulator}. The core use of this is the closeness centrality's
27 | * need to produce an "average" value.
28 | * @author work
29 | * @param
30 | */
31 | public interface CostDivider
32 | {
33 | /**
34 | * @return c / d
35 | */
36 | CostType divideCost( CostType c, Double d );
37 |
38 | /**
39 | * @return d / c
40 | */
41 | CostType divideByCost( Double d, CostType c );
42 | }
43 |
--------------------------------------------------------------------------------
/neo4j-android/graph-algo-src/org/neo4j/graphalgo/impl/centrality/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | /**
21 | * Centrality graph algorithms which are allright to use, but doesn't scale
22 | * to bigger graphs.
23 | */
24 | package org.neo4j.graphalgo.impl.centrality;
25 |
--------------------------------------------------------------------------------
/neo4j-android/graph-algo-src/org/neo4j/graphalgo/impl/path/AllSimplePaths.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.graphalgo.impl.path;
21 |
22 | import org.neo4j.graphdb.RelationshipExpander;
23 | import org.neo4j.kernel.Uniqueness;
24 |
25 | public class AllSimplePaths extends AllPaths
26 | {
27 | public AllSimplePaths( int maxDepth, RelationshipExpander expander )
28 | {
29 | super( maxDepth, expander );
30 | }
31 |
32 | @Override
33 | protected Uniqueness uniqueness()
34 | {
35 | return Uniqueness.NODE_PATH;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/neo4j-android/graph-algo-src/org/neo4j/graphalgo/impl/shortestpath/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | /**
21 | * Package containing older implementations of Dijkstra and shortest path,
22 | * where the ones in {@link org.neo4j.graphalgo.GraphAlgoFactory} would be
23 | * a better option. Also contains algorithms, such as {@link FloydWarshall}
24 | * which doesn't scale to bigger graphs.
25 | */
26 | package org.neo4j.graphalgo.impl.shortestpath;
27 |
--------------------------------------------------------------------------------
/neo4j-android/graph-algo-src/org/neo4j/graphalgo/impl/util/DoubleAdder.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.graphalgo.impl.util;
21 |
22 | import org.neo4j.graphalgo.CostAccumulator;
23 |
24 | public class DoubleAdder implements CostAccumulator
25 | {
26 | public Double addCosts(Double c1, Double c2) {
27 | return c1 + c2;
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/neo4j-android/graph-algo-src/org/neo4j/graphalgo/impl/util/DoubleComparator.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.graphalgo.impl.util;
21 |
22 | import java.util.Comparator;
23 |
24 | public class DoubleComparator implements Comparator
25 | {
26 | public int compare(Double o1, Double o2) {
27 | Double d = o1 - o2;
28 | return d > 0 ? 1 : (d < 0 ? -1 : 0);
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/neo4j-android/graph-algo-src/org/neo4j/graphalgo/impl/util/DoubleEvaluator.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.graphalgo.impl.util;
21 |
22 | import org.neo4j.graphalgo.CostEvaluator;
23 | import org.neo4j.graphdb.Direction;
24 | import org.neo4j.graphdb.Relationship;
25 |
26 | public class DoubleEvaluator implements CostEvaluator
27 | {
28 | private String costpropertyName;
29 |
30 | public DoubleEvaluator( String costpropertyName )
31 | {
32 | super();
33 | this.costpropertyName = costpropertyName;
34 | }
35 |
36 | public Double getCost( Relationship relationship, Direction direction )
37 | {
38 | return (Double) relationship.getProperty( costpropertyName );
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/neo4j-android/graph-algo-src/org/neo4j/graphalgo/impl/util/DoubleEvaluatorWithDefault.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.graphalgo.impl.util;
21 |
22 | import org.neo4j.graphalgo.CostEvaluator;
23 | import org.neo4j.graphdb.Direction;
24 | import org.neo4j.graphdb.Relationship;
25 |
26 | public class DoubleEvaluatorWithDefault implements CostEvaluator
27 | {
28 | private String costPropertyName;
29 | private final double defaultCost;
30 |
31 | public DoubleEvaluatorWithDefault( String costPropertyName, double defaultCost )
32 | {
33 | super();
34 | this.costPropertyName = costPropertyName;
35 | this.defaultCost = defaultCost;
36 | }
37 |
38 | public Double getCost( Relationship relationship, Direction direction )
39 | {
40 | return (Double) relationship.getProperty( costPropertyName, defaultCost );
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/neo4j-android/graph-algo-src/org/neo4j/graphalgo/impl/util/IntegerAdder.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.graphalgo.impl.util;
21 |
22 | import org.neo4j.graphalgo.CostAccumulator;
23 |
24 | public class IntegerAdder implements CostAccumulator
25 | {
26 | public Integer addCosts(Integer c1, Integer c2) {
27 | return c1 + c2;
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/neo4j-android/graph-algo-src/org/neo4j/graphalgo/impl/util/IntegerComparator.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.graphalgo.impl.util;
21 |
22 | import java.util.Comparator;
23 |
24 | public class IntegerComparator implements Comparator
25 | {
26 | public int compare(Integer o1, Integer o2) {
27 | return o1 - o2;
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/neo4j-android/graph-algo-src/org/neo4j/graphalgo/impl/util/IntegerEvaluator.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.graphalgo.impl.util;
21 |
22 | import org.neo4j.graphalgo.CostEvaluator;
23 | import org.neo4j.graphdb.Direction;
24 | import org.neo4j.graphdb.Relationship;
25 |
26 | public class IntegerEvaluator implements CostEvaluator
27 | {
28 | private String costpropertyName;
29 |
30 | public IntegerEvaluator( String costpropertyName )
31 | {
32 | super();
33 | this.costpropertyName = costpropertyName;
34 | }
35 |
36 | public Integer getCost( Relationship relationship, Direction direction )
37 | {
38 | return (Integer) relationship.getProperty( costpropertyName );
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/neo4j-android/graph-algo-src/org/neo4j/graphalgo/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | /**
21 | * Scalable graph algorithms like shortest path and others for Neo4j which
22 | * can be easily accessed via {@link org.neo4j.graphalgo.GraphAlgoFactory}.
23 | */
24 | package org.neo4j.graphalgo;
25 |
--------------------------------------------------------------------------------
/neo4j-android/graph-matching-src/org/neo4j/graphmatching/filter/FilterExpression.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.graphmatching.filter;
21 |
22 | /**
23 | * Is either a regex leaf, that is, a real regex pattern or an abstraction of
24 | * two {@link FilterExpression}s which are ANDed or ORed together.
25 | */
26 | public interface FilterExpression
27 | {
28 | /**
29 | * Matches a value from a {@code valueGetter} and returns whether or not
30 | * there was a match.
31 | * @param valueGetter the getter which fetches the value to match.
32 | * @return whether or not the value from {@code valueGetter} matches
33 | * the criterias found in this expression.
34 | */
35 | boolean matches( FilterValueGetter valueGetter );
36 | }
37 |
--------------------------------------------------------------------------------
/neo4j-android/graph-matching-src/org/neo4j/graphmatching/filter/FilterValueGetter.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.graphmatching.filter;
21 |
22 | import org.neo4j.graphmatching.PatternNode;
23 |
24 | /**
25 | * A hook for getting values from a node (Neo4j node) represented by
26 | * a {@link PatternNode} with a certain label.
27 | */
28 | public interface FilterValueGetter
29 | {
30 | /**
31 | * Returns an array of values.
32 | * @param label the {@link PatternNode} label.
33 | * @return an array of values.
34 | */
35 | Object[] getValues( String label );
36 | }
37 |
--------------------------------------------------------------------------------
/neo4j-android/graph-matching-src/org/neo4j/graphmatching/filter/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | /**
21 | * Filters that allow you to filter out based on properties on nodes and relationships.
22 | */
23 | package org.neo4j.graphmatching.filter;
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/graphdb/TransactionFailureException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.graphdb;
21 |
22 | /**
23 | * Signals that a transaction failed and has been rolled back.
24 | */
25 | public class TransactionFailureException extends RuntimeException
26 | {
27 | public TransactionFailureException( String msg )
28 | {
29 | super( msg );
30 | }
31 |
32 | public TransactionFailureException( String msg, Throwable cause )
33 | {
34 | super( msg, cause );
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/graphdb/event/ErrorState.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.graphdb.event;
21 |
22 | /**
23 | * An object that describes a state from which a Neo4j Graph Database cannot
24 | * continue.
25 | *
26 | * @author Tobias Ivarsson
27 | */
28 | public enum ErrorState
29 | {
30 | /**
31 | * The Graph Database failed since the storage media where the graph
32 | * database data is stored is full and cannot be written to.
33 | */
34 | STORAGE_MEDIA_FULL,
35 | TX_MANAGER_NOT_OK,
36 | }
37 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/graphdb/event/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | /**
21 | * Event framework.
22 | */
23 | package org.neo4j.graphdb.event;
24 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/graphdb/index/IndexProvider.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.graphdb.index;
21 |
22 | import org.neo4j.helpers.Service;
23 | import org.neo4j.kernel.KernelData;
24 |
25 | public abstract class IndexProvider extends Service
26 | {
27 | private final String identifier;
28 |
29 | public IndexProvider( String identifier )
30 | {
31 | super( identifier );
32 | this.identifier = identifier;
33 | }
34 |
35 | public abstract IndexImplementation load( KernelData kernel ) throws Exception;
36 |
37 | public final String identifier()
38 | {
39 | return identifier;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/graphdb/index/RelationshipAutoIndexer.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.graphdb.index;
21 |
22 | import org.neo4j.graphdb.Relationship;
23 |
24 | public interface RelationshipAutoIndexer extends AutoIndexer
25 | {
26 | public ReadableRelationshipIndex getAutoIndex();
27 | }
28 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/graphdb/index/RelationshipIndex.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.graphdb.index;
21 |
22 | import org.neo4j.graphdb.Relationship;
23 |
24 | /**
25 | * Extends the ReadableRelationshipIndex and the Index interfaces
26 | * for completing the set of available types.
27 | */
28 | public interface RelationshipIndex extends ReadableRelationshipIndex,
29 | Index
30 | {
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/graphdb/index/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | /**
21 | * Integrated API for node and relationship indexing.
22 | *
23 | * A concrete implementation like the neo4j-lucene-index component must be available
24 | * on the classpath for indexing to work.
25 | */
26 | package org.neo4j.graphdb.index;
27 |
28 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/graphdb/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | /**
21 | * The graph database API used by Neo4j.
22 | */
23 | package org.neo4j.graphdb;
24 |
25 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/graphdb/traversal/BranchOrderingPolicy.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.graphdb.traversal;
21 |
22 | /**
23 | * Creator of {@link BranchSelector} instances with a starting point to base
24 | * the first decision on.
25 | */
26 | public interface BranchOrderingPolicy
27 | {
28 | /**
29 | * Instantiates a {@link BranchSelector} with {@code startBranch} as the
30 | * first branch to base a decision on "where to go next".
31 | *
32 | * @param startBranch the {@link TraversalBranch} to start from.
33 | * @return a new {@link BranchSelector} used to decide "where to go next" in
34 | * the traversal.
35 | */
36 | BranchSelector create( TraversalBranch startBranch );
37 | }
38 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/graphdb/traversal/UniquenessFactory.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.graphdb.traversal;
21 |
22 | public interface UniquenessFactory
23 | {
24 | UniquenessFilter create( Object optionalParameter );
25 | }
26 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/graphdb/traversal/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | /**
21 | * Traversal framework.
22 | */
23 | package org.neo4j.graphdb.traversal;
24 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/helpers/Predicate.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.helpers;
21 |
22 | /**
23 | * Predicate useful for filtering.
24 | *
25 | * @param type of items
26 | */
27 | public interface Predicate
28 | {
29 | /**
30 | * @return whether or not to accept the {@code item}, where {@code true}
31 | * means that the {@code item} is accepted and {@code false} means that
32 | * it's not (i.e. didn't pass the filter).
33 | */
34 | boolean accept( T item );
35 | }
36 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/helpers/collection/ArrayIterator.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.helpers.collection;
21 |
22 | import java.util.Iterator;
23 | import java.util.NoSuchElementException;
24 |
25 | public class ArrayIterator implements Iterator
26 | {
27 | private final T[] array;
28 | private int index;
29 |
30 | public ArrayIterator( T[] array )
31 | {
32 | this.array = array;
33 | }
34 |
35 | public boolean hasNext()
36 | {
37 | return index < array.length;
38 | }
39 |
40 | public T next()
41 | {
42 | if ( !hasNext() ) throw new NoSuchElementException();
43 | return array[index++];
44 | }
45 |
46 | public void remove()
47 | {
48 | throw new UnsupportedOperationException();
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/helpers/collection/ClosableIterable.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.helpers.collection;
21 |
22 | public interface ClosableIterable extends Iterable
23 | {
24 | void close();
25 | }
26 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/helpers/collection/ClosableIterator.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.helpers.collection;
21 |
22 | import java.util.Iterator;
23 |
24 | public interface ClosableIterator extends Iterator
25 | {
26 | void close();
27 | }
28 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/helpers/collection/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | /**
21 | * Collections utilities - Iterator/Iterable utilities and creating
22 | * {@link java.util.Map}s.
23 | */
24 | package org.neo4j.helpers.collection;
25 |
26 |
27 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/helpers/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | /**
21 | * Common Java utilities. A collection of useful utilities which you very
22 | * often find yourself needing, but you can't (as of yet) find in the core
23 | * Java SDK.
24 | */
25 | package org.neo4j.helpers;
26 |
27 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/AbstractUniquenessFilter.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel;
21 |
22 | import org.neo4j.graphdb.traversal.TraversalBranch;
23 | import org.neo4j.graphdb.traversal.UniquenessFilter;
24 |
25 | abstract class AbstractUniquenessFilter implements UniquenessFilter
26 | {
27 | final PrimitiveTypeFetcher type;
28 |
29 | AbstractUniquenessFilter( PrimitiveTypeFetcher type )
30 | {
31 | this.type = type;
32 | }
33 |
34 | public boolean checkFirst( TraversalBranch branch )
35 | {
36 | return type == PrimitiveTypeFetcher.RELATIONSHIP ? true : check( branch );
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/DeadlockDetectedException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel;
21 |
22 | /**
23 | * Signals that a deadlock between two or more transactions has been detected.
24 | */
25 | public class DeadlockDetectedException extends RuntimeException
26 | {
27 | public DeadlockDetectedException( String message )
28 | {
29 | super( message );
30 | }
31 | }
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/GloballyUnique.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel;
21 |
22 | import java.util.HashSet;
23 | import java.util.Set;
24 |
25 | import org.neo4j.graphdb.traversal.TraversalBranch;
26 |
27 | class GloballyUnique extends AbstractUniquenessFilter
28 | {
29 | private final Set visited = new HashSet();
30 |
31 | GloballyUnique( PrimitiveTypeFetcher type )
32 | {
33 | super( type );
34 | }
35 |
36 | public boolean check( TraversalBranch branch )
37 | {
38 | return visited.add( type.getId( branch ) );
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/IdGeneratorFactory.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel;
21 |
22 | import org.neo4j.kernel.impl.nioneo.store.IdGenerator;
23 | import org.neo4j.kernel.impl.nioneo.store.NeoStore;
24 |
25 | public interface IdGeneratorFactory
26 | {
27 | IdGenerator open( String fileName, int grabSize, IdType idType, long highestIdInUse );
28 |
29 | void create( String fileName );
30 |
31 | IdGenerator get( IdType idType );
32 |
33 | void updateIdGenerators( NeoStore store );
34 | }
35 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/KernelExtensionLoader.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel;
21 |
22 | interface KernelExtensionLoader
23 | {
24 | void configureKernelExtensions();
25 |
26 | void initializeIndexProviders();
27 |
28 | void load();
29 |
30 | KernelExtensionLoader DONT_LOAD = new KernelExtensionLoader()
31 | {
32 | @Override
33 | public void load()
34 | {
35 | // do nothing
36 | }
37 |
38 | @Override
39 | public void initializeIndexProviders()
40 | {
41 | // do nothing
42 | }
43 |
44 | @Override
45 | public void configureKernelExtensions()
46 | {
47 | // do nothing
48 | }
49 | };
50 | }
51 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/LockManagerFactory.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel;
21 |
22 | import org.neo4j.kernel.impl.transaction.LockManager;
23 | import org.neo4j.kernel.impl.transaction.TxModule;
24 |
25 | public interface LockManagerFactory
26 | {
27 | LockManager create( TxModule txModule );
28 | }
29 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/NotUnique.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel;
21 |
22 | import org.neo4j.graphdb.traversal.TraversalBranch;
23 |
24 | class NotUnique extends AbstractUniquenessFilter
25 | {
26 | NotUnique()
27 | {
28 | super( null );
29 | }
30 |
31 | public boolean check( TraversalBranch source )
32 | {
33 | return true;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/PathUnique.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel;
21 |
22 | import org.neo4j.graphdb.traversal.TraversalBranch;
23 |
24 | class PathUnique extends AbstractUniquenessFilter
25 | {
26 | PathUnique( PrimitiveTypeFetcher type )
27 | {
28 | super( type );
29 | }
30 |
31 | public boolean check( TraversalBranch source )
32 | {
33 | long idToCompare = type.getId( source );
34 | while ( (source = source.parent()) != null )
35 | {
36 | if (type.idEquals(source, idToCompare))
37 | {
38 | return false;
39 | }
40 | }
41 | return true;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/PropertyTracker.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel;
21 |
22 | import org.neo4j.graphdb.PropertyContainer;
23 |
24 | public interface PropertyTracker
25 | {
26 | void propertyAdded( T primitive, String propertyName, Object propertyValue );
27 |
28 | void propertyRemoved( T primitive, String propertyName, Object propertyValue );
29 |
30 | void propertyChanged( T primitive, String propertyName, Object oldValue,
31 | Object newValue );
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/cache/HitCounter.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.cache;
21 |
22 | import org.neo4j.helpers.Counter;
23 |
24 | final class HitCounter
25 | {
26 | private final Counter hits, miss;
27 |
28 | public HitCounter( Counter hits, Counter miss )
29 | {
30 | this.hits = hits;
31 | this.miss = miss;
32 | }
33 |
34 | public T count( T item )
35 | {
36 | ( ( item == null ) ? miss : hits ).inc();
37 | return item;
38 | }
39 |
40 | public long getHitsCount()
41 | {
42 | return hits.count();
43 | }
44 |
45 | public long getMissCount()
46 | {
47 | return miss.count();
48 | }
49 |
50 | public static HitCounter create()
51 | {
52 | return new HitCounter( Counter.atomic(), Counter.atomic() );
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/cache/ReferenceCache.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.cache;
21 |
22 | public abstract class ReferenceCache implements Cache
23 | {
24 | protected abstract void pollClearedValues();
25 | }
26 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/cache/SoftReferenceQueue.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.cache;
21 |
22 | import java.lang.ref.ReferenceQueue;
23 |
24 | public class SoftReferenceQueue extends ReferenceQueue
25 | {
26 | public SoftReferenceQueue()
27 | {
28 | super();
29 | }
30 |
31 | public SoftValue safePoll()
32 | {
33 | return (SoftValue) poll();
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/cache/SoftValue.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.cache;
21 |
22 | import java.lang.ref.ReferenceQueue;
23 | import java.lang.ref.SoftReference;
24 |
25 | public class SoftValue extends SoftReference
26 | {
27 | public final K key;
28 |
29 | public SoftValue( K key, V value, ReferenceQueue super V> queue )
30 | {
31 | super( value, queue );
32 | this.key = key;
33 | }
34 |
35 | public SoftValue( K key, V value )
36 | {
37 | super( value );
38 | this.key = key;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/cache/WeakReferenceQueue.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.cache;
21 |
22 | import java.lang.ref.ReferenceQueue;
23 |
24 | public class WeakReferenceQueue extends ReferenceQueue
25 | {
26 | public WeakReferenceQueue()
27 | {
28 | super();
29 | }
30 |
31 | public WeakValue safePoll()
32 | {
33 | return (WeakValue) poll();
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/cache/WeakValue.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.cache;
21 |
22 | import java.lang.ref.ReferenceQueue;
23 | import java.lang.ref.WeakReference;
24 |
25 | public class WeakValue extends WeakReference
26 | {
27 | public final K key;
28 |
29 | public WeakValue( K key, V value, ReferenceQueue super V> queue )
30 | {
31 | super( value, queue );
32 | this.key = key;
33 | }
34 |
35 | public WeakValue( K key, V value )
36 | {
37 | super( value );
38 | this.key = key;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/core/LastCommittedTxIdSetter.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.core;
21 |
22 | public interface LastCommittedTxIdSetter
23 | {
24 | void setLastCommittedTxId( long txId );
25 |
26 | void close();
27 | }
28 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/core/PropertyEventData.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.core;
21 |
22 | class PropertyEventData
23 | {
24 | private final String key;
25 | private final Object value;
26 |
27 | public PropertyEventData( String key, Object value )
28 | {
29 | this.key = key;
30 | this.value = value;
31 | }
32 |
33 | public String getKey()
34 | {
35 | return key;
36 | }
37 |
38 | public Object getValue()
39 | {
40 | return value;
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/core/ReadOnlyDbException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.core;
21 |
22 | public class ReadOnlyDbException extends RuntimeException
23 | {
24 | public ReadOnlyDbException()
25 | {
26 | super( "This is a read only embedded Neo4j instance" );
27 | }
28 | }
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/core/RelationshipTypeCreator.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.core;
21 |
22 | import javax.transaction.TransactionManager;
23 |
24 | import org.neo4j.kernel.impl.persistence.EntityIdGenerator;
25 | import org.neo4j.kernel.impl.persistence.PersistenceManager;
26 |
27 | public interface RelationshipTypeCreator
28 | {
29 | int getOrCreate( TransactionManager txManager, EntityIdGenerator idGenerator,
30 | PersistenceManager persistence, RelationshipTypeHolder relTypeHolder, String name );
31 | }
32 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/core/TxEventSyncHookFactory.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.core;
21 |
22 | import org.neo4j.graphdb.event.TransactionEventHandler;
23 |
24 | public interface TxEventSyncHookFactory
25 | {
26 | /**
27 | * Creates a new {@link TransactionEventsSyncHook} instance of there
28 | * are any registered {@link TransactionEventHandler}s, else {@code null}.
29 | * @return a new {@link TransactionEventsSyncHook} or {@code null} if
30 | * there were no registered {@link TransactionEventHandler}s.
31 | */
32 | TransactionEventsSyncHook create();
33 | }
34 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/index/IndexXaConnection.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.index;
21 |
22 | import java.util.Map;
23 |
24 | import org.neo4j.graphdb.PropertyContainer;
25 | import org.neo4j.kernel.impl.transaction.xaframework.XaConnectionHelpImpl;
26 | import org.neo4j.kernel.impl.transaction.xaframework.XaResourceManager;
27 |
28 | public abstract class IndexXaConnection extends XaConnectionHelpImpl
29 | {
30 | public IndexXaConnection( XaResourceManager xaRm )
31 | {
32 | super( xaRm );
33 | }
34 |
35 | public abstract void createIndex( Class extends PropertyContainer> entityType,
36 | String indexName, Map config );
37 | }
38 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/nioneo/store/DirectPersistenceWindow.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.nioneo.store;
21 |
22 | import java.nio.ByteBuffer;
23 | import java.nio.channels.FileChannel;
24 |
25 | class DirectPersistenceWindow extends AbstractPersistenceWindow
26 | {
27 | DirectPersistenceWindow( long position, int recordSize, int totalSize,
28 | FileChannel channel )
29 | {
30 | super( position, recordSize, totalSize, channel,
31 | ByteBuffer.allocateDirect( totalSize ) );
32 | }
33 | }
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/nioneo/store/FileSystemAbstraction.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.nioneo.store;
21 |
22 | import java.io.IOException;
23 | import java.nio.channels.FileChannel;
24 |
25 | public interface FileSystemAbstraction
26 | {
27 | FileChannel open( String fileName, String mode ) throws IOException;
28 |
29 | FileLock tryLock( String fileName, FileChannel channel ) throws IOException;
30 | }
31 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/nioneo/store/IdGenerator.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.nioneo.store;
21 |
22 | public interface IdGenerator
23 | {
24 | long nextId();
25 | IdRange nextIdBatch( int size );
26 | void setHighId( long id );
27 | long getHighId();
28 | void freeId( long id );
29 | void close();
30 | long getNumberOfIdsInUse();
31 | long getDefragCount();
32 | void clearFreeIds();
33 | }
34 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/nioneo/store/InvalidIdGeneratorException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.nioneo.store;
21 |
22 | public class InvalidIdGeneratorException extends StoreFailureException
23 | {
24 | public InvalidIdGeneratorException( String msg )
25 | {
26 | super( msg );
27 | }
28 |
29 | public InvalidIdGeneratorException( Throwable cause )
30 | {
31 | super( cause );
32 | }
33 |
34 | public InvalidIdGeneratorException( String msg, Throwable cause )
35 | {
36 | super( msg, cause );
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/nioneo/store/InvalidRecordException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.nioneo.store;
21 |
22 | public class InvalidRecordException extends StoreFailureException
23 | {
24 | public InvalidRecordException( String msg )
25 | {
26 | super( msg );
27 | }
28 |
29 | public InvalidRecordException( Throwable cause )
30 | {
31 | super( cause );
32 | }
33 |
34 | public InvalidRecordException( String msg, Throwable cause )
35 | {
36 | super( msg, cause );
37 | }
38 | }
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/nioneo/store/MappedMemException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.nioneo.store;
21 |
22 | class MappedMemException extends RuntimeException
23 | {
24 | MappedMemException( Throwable cause )
25 | {
26 | super( cause );
27 | }
28 |
29 | MappedMemException( String msg, Throwable cause )
30 | {
31 | super( msg, cause );
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/nioneo/store/NotCurrentStoreVersionException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.nioneo.store;
21 |
22 | public class NotCurrentStoreVersionException extends StoreFailureException
23 | {
24 | private boolean possibleToAutomaticallyUpgrade;
25 |
26 | public NotCurrentStoreVersionException( String expectedVersion, String foundVersion, String msg, boolean possibleToAutomaticallyUpgrade )
27 | {
28 | super( String.format( "Was expecting store version [%s] but found [%s]. Store %s be upgraded automatically. ",
29 | expectedVersion, foundVersion, possibleToAutomaticallyUpgrade ? "can" : "cannot") + msg );
30 | this.possibleToAutomaticallyUpgrade = possibleToAutomaticallyUpgrade;
31 | }
32 |
33 | public boolean possibleToAutomaticallyUpgrade()
34 | {
35 | return possibleToAutomaticallyUpgrade;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/nioneo/store/OperationType.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.nioneo.store;
21 |
22 | /**
23 | * Defines the two types of operations that can be made to an acquired
24 | * {@link PersistenceWindow}. Operation is either READ
or
25 | * WRITE
.
26 | */
27 | public enum OperationType
28 | {
29 | READ, WRITE
30 | }
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/nioneo/store/PlainPersistenceWindow.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.nioneo.store;
21 |
22 | import java.nio.ByteBuffer;
23 | import java.nio.channels.FileChannel;
24 |
25 | class PlainPersistenceWindow extends AbstractPersistenceWindow
26 | {
27 | PlainPersistenceWindow( long position, int recordSize, int totalSize,
28 | FileChannel channel )
29 | {
30 | super( position, recordSize, totalSize, channel,
31 | ByteBuffer.allocate( totalSize ) );
32 | }
33 | }
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/nioneo/store/PrimitiveRecord.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.nioneo.store;
21 |
22 | public abstract class PrimitiveRecord extends Abstract64BitRecord
23 | {
24 | private long nextProp = Record.NO_NEXT_PROPERTY.intValue();
25 |
26 | public PrimitiveRecord( long id )
27 | {
28 | super( id );
29 | }
30 |
31 | public long getNextProp()
32 | {
33 | return nextProp;
34 | }
35 |
36 | public void setNextProp( long nextProp )
37 | {
38 | this.nextProp = nextProp;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/nioneo/store/PropertyIndexData.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.nioneo.store;
21 |
22 | public class PropertyIndexData
23 | {
24 | private final int keyId;
25 | private final String value;
26 |
27 | public PropertyIndexData( int keyId, String value )
28 | {
29 | this.keyId = keyId;
30 | this.value = value;
31 | }
32 |
33 | public int getKeyId()
34 | {
35 | return this.keyId;
36 | }
37 |
38 | public String getValue()
39 | {
40 | return this.value;
41 | }
42 | }
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/nioneo/store/RelationshipTypeData.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.nioneo.store;
21 |
22 | public class RelationshipTypeData
23 | {
24 | private final String name;
25 | private final int id;
26 |
27 | public RelationshipTypeData( int id, String name )
28 | {
29 | this.id = id;
30 | this.name = name;
31 | }
32 |
33 | public int getId()
34 | {
35 | return this.id;
36 | }
37 |
38 | public String getName()
39 | {
40 | return this.name;
41 | }
42 | }
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/nioneo/store/Store.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.nioneo.store;
21 |
22 | import java.io.IOException;
23 |
24 | /**
25 | * Common interface for the node,relationship,property and relationship type
26 | * stores.
27 | */
28 | public interface Store
29 | {
30 | /**
31 | * Returns the id of next free record.
32 | *
33 | * @return The id of the next free record
34 | * @throws IOException
35 | * If unable to
36 | */
37 | public long nextId();
38 |
39 | public long getHighestPossibleIdInUse();
40 |
41 | public long getNumberOfIdsInUse();
42 |
43 | public WindowPoolStats getWindowPoolStats();
44 | }
45 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/nioneo/store/StoreFailureException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.nioneo.store;
21 |
22 | public abstract class StoreFailureException extends RuntimeException
23 | {
24 | public StoreFailureException( String msg )
25 | {
26 | super( msg );
27 | }
28 |
29 | public StoreFailureException( Throwable cause )
30 | {
31 | super( cause );
32 | }
33 |
34 | public StoreFailureException( String msg, Throwable cause )
35 | {
36 | super( msg, cause );
37 | }
38 | }
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/nioneo/store/UnderlyingStorageException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.nioneo.store;
21 |
22 | public class UnderlyingStorageException extends StoreFailureException
23 | {
24 | public UnderlyingStorageException( String msg )
25 | {
26 | super( msg );
27 | }
28 |
29 | public UnderlyingStorageException( Throwable cause )
30 | {
31 | super( cause );
32 | }
33 |
34 | public UnderlyingStorageException( String msg, Throwable cause )
35 | {
36 | super( msg, cause );
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/persistence/EntityIdGenerator.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.persistence;
21 |
22 | public interface EntityIdGenerator
23 | {
24 | long nextId( Class> clazz );
25 |
26 | long getHighestPossibleIdInUse( Class> clazz );
27 |
28 | long getNumberOfIdsInUse( Class> clazz );
29 |
30 | void configure( PersistenceSource source );
31 | }
32 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/persistence/IdGenerationFailedException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.persistence;
21 |
22 | /**
23 | * Thrown by the {@link IdGenerator} to indicate a failure in ID generation for
24 | * an entity.
25 | */
26 | public class IdGenerationFailedException extends java.lang.RuntimeException
27 | {
28 | public IdGenerationFailedException( Throwable cause )
29 | {
30 | super( cause );
31 | }
32 |
33 | public IdGenerationFailedException( String s )
34 | {
35 | super( s );
36 | }
37 |
38 | public IdGenerationFailedException( String s, Throwable cause )
39 | {
40 | super( s, cause );
41 | }
42 | }
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/persistence/ResourceAcquisitionFailedException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.persistence;
21 |
22 | /**
23 | * Thrown if the {@link ResourceBroker} is unable to acquire a resource for a
24 | * certain set of parameters.
25 | */
26 | class ResourceAcquisitionFailedException extends RuntimeException
27 | {
28 | ResourceAcquisitionFailedException( String s )
29 | {
30 | super( s );
31 | }
32 |
33 | ResourceAcquisitionFailedException( String s, Throwable cause )
34 | {
35 | super( s, cause );
36 | }
37 | }
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/storemigration/UpgradeConfiguration.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.storemigration;
21 |
22 | public interface UpgradeConfiguration
23 | {
24 | void checkConfigurationAllowsAutomaticUpgrade();
25 | }
26 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/storemigration/UpgradeNotAllowedByConfigurationException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.storemigration;
21 |
22 | import org.neo4j.kernel.impl.nioneo.store.StoreFailureException;
23 |
24 | public class UpgradeNotAllowedByConfigurationException extends StoreFailureException
25 | {
26 | public UpgradeNotAllowedByConfigurationException( String msg )
27 | {
28 | super( msg );
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/storemigration/monitoring/MigrationProgressMonitor.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.storemigration.monitoring;
21 |
22 | public interface MigrationProgressMonitor
23 | {
24 | void started();
25 | void percentComplete(int percent);
26 | void finished();
27 | }
28 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/storemigration/monitoring/SilentMigrationProgressMonitor.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.storemigration.monitoring;
21 |
22 | public class SilentMigrationProgressMonitor implements MigrationProgressMonitor
23 | {
24 | public void started()
25 | {
26 | }
27 |
28 | public void percentComplete( int percent )
29 | {
30 | }
31 |
32 | public void finished()
33 | {
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/transaction/DefaultTransactionManagerProvider.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.transaction;
21 |
22 | import org.neo4j.helpers.Service;
23 | import org.neo4j.kernel.impl.core.KernelPanicEventGenerator;
24 |
25 | @Service.Implementation( TransactionManagerProvider.class )
26 | public final class DefaultTransactionManagerProvider extends TransactionManagerProvider
27 | {
28 | public DefaultTransactionManagerProvider()
29 | {
30 | super( "native" );
31 | }
32 |
33 | @Override
34 | protected AbstractTransactionManager loadTransactionManager( String txLogDir,
35 | KernelPanicEventGenerator kpe, TxFinishHook rollbackHook )
36 | {
37 | return new TxManager( txLogDir, kpe, rollbackHook );
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/transaction/IllegalResourceException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.transaction;
21 |
22 | public class IllegalResourceException extends RuntimeException
23 | {
24 | public IllegalResourceException()
25 | {
26 | super();
27 | }
28 |
29 | public IllegalResourceException( String message )
30 | {
31 | super( message );
32 | }
33 |
34 | public IllegalResourceException( String message, Throwable cause )
35 | {
36 | super( message, cause );
37 | }
38 |
39 | public IllegalResourceException( Throwable cause )
40 | {
41 | super( cause );
42 | }
43 | }
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/transaction/LockException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.transaction;
21 |
22 | public class LockException extends RuntimeException
23 | {
24 | public LockException()
25 | {
26 | super();
27 | }
28 |
29 | public LockException( String message )
30 | {
31 | super( message );
32 | }
33 |
34 | public LockException( String message, Throwable cause )
35 | {
36 | super( message, cause );
37 | }
38 |
39 | public LockException( Throwable cause )
40 | {
41 | super( cause );
42 | }
43 | }
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/transaction/LockNotFoundException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.transaction;
21 |
22 | public class LockNotFoundException extends LockException
23 | {
24 | public LockNotFoundException()
25 | {
26 | super();
27 | }
28 |
29 | public LockNotFoundException( String message )
30 | {
31 | super( message );
32 | }
33 |
34 | public LockNotFoundException( String message, Throwable cause )
35 | {
36 | super( message, cause );
37 | }
38 |
39 | public LockNotFoundException( Throwable cause )
40 | {
41 | super( cause );
42 | }
43 | }
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/transaction/LockType.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.transaction;
21 |
22 | /**
23 | * Enum defining the READ
lock and the WRITE
lock.
24 | */
25 | public enum LockType
26 | {
27 | READ, WRITE
28 | }
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/transaction/TransactionIdFactory.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.transaction;
21 |
22 | public interface TransactionIdFactory
23 | {
24 | }
25 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/transaction/TxFinishHook.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.transaction;
21 |
22 | import javax.transaction.Transaction;
23 |
24 | public interface TxFinishHook
25 | {
26 | boolean hasAnyLocks( Transaction tx );
27 |
28 | void finishTransaction( int eventIdentifier, boolean success );
29 | }
30 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/transaction/xaframework/IllegalLogFormatException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.transaction.xaframework;
21 |
22 | import java.io.IOException;
23 |
24 | public class IllegalLogFormatException extends IOException
25 | {
26 | public IllegalLogFormatException( long expected, long was )
27 | {
28 | super( "Invalid log format version found, expected " + expected + " but was " + was +
29 | ". To be able to upgrade from an older log format version there must have " +
30 | "been a clean shutdown of the database" );
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/transaction/xaframework/LogBufferFactory.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.transaction.xaframework;
21 |
22 | import java.io.IOException;
23 | import java.nio.channels.FileChannel;
24 |
25 | public interface LogBufferFactory
26 | {
27 | LogBuffer create( FileChannel fileChannel ) throws IOException;
28 |
29 | FileChannel combine( FileChannel fileChannel, LogBuffer logBuffer ) throws IOException;
30 | }
31 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/transaction/xaframework/ReadPastEndException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.transaction.xaframework;
21 |
22 | import java.nio.ByteBuffer;
23 | import java.nio.channels.ReadableByteChannel;
24 |
25 | /**
26 | * Thrown when reading from a {@link ReadableByteChannel} into a buffer
27 | * and not enough bytes ({@link ByteBuffer#limit()}) could be read.
28 | */
29 | public class ReadPastEndException extends Exception
30 | {
31 | public ReadPastEndException()
32 | {
33 | super();
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/transaction/xaframework/TxIdGenerator.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.transaction.xaframework;
21 |
22 | public interface TxIdGenerator
23 | {
24 | public static final TxIdGenerator DEFAULT = new TxIdGenerator()
25 | {
26 | public long generate( XaDataSource dataSource, int identifier )
27 | {
28 | return dataSource.getLastCommittedTxId() + 1;
29 | }
30 |
31 | public int getCurrentMasterId()
32 | {
33 | return XaLogicalLog.MASTER_ID_REPRESENTING_NO_MASTER;
34 | }
35 | };
36 |
37 | long generate( XaDataSource dataSource, int identifier );
38 |
39 | int getCurrentMasterId();
40 | }
41 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/transaction/xaframework/TxIdGeneratorFactory.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.transaction.xaframework;
21 |
22 | import javax.transaction.TransactionManager;
23 |
24 | public interface TxIdGeneratorFactory
25 | {
26 | public static final TxIdGeneratorFactory DEFAULT = new TxIdGeneratorFactory()
27 | {
28 | public TxIdGenerator create( final TransactionManager txManager )
29 | {
30 | return TxIdGenerator.DEFAULT;
31 | }
32 | };
33 |
34 | TxIdGenerator create( TransactionManager txManager );
35 | }
36 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/transaction/xaframework/XaResource.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.transaction.xaframework;
21 |
22 | import javax.transaction.xa.XAResource;
23 |
24 | public interface XaResource extends XAResource
25 | {
26 | public void setBranchId( byte branchId[] );
27 |
28 | public byte[] getBranchId();
29 | }
30 |
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/impl/util/RelIdIterator.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.kernel.impl.util;
21 |
22 | public interface RelIdIterator
23 | {
24 | String getType();
25 |
26 | RelIdArray getIds();
27 |
28 | RelIdIterator updateSource( RelIdArray newSource );
29 |
30 | boolean hasNext();
31 |
32 | /**
33 | * Tells this iterator to try another round with all its directions
34 | * starting from each their previous states. Called from IntArrayIterator,
35 | * when it finds out it has gotten more relationships of this type.
36 | */
37 | void doAnotherRound();
38 |
39 | long next();
40 | }
--------------------------------------------------------------------------------
/neo4j-android/kernel-src/org/neo4j/kernel/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | /**
21 | * Implementation for embedding a Neo4j graph database in an application.
22 | * Classes are provided for both read/write mode and read only mode.
23 | */
24 | package org.neo4j.kernel;
25 |
26 |
--------------------------------------------------------------------------------
/neo4j-android/lib-jarjar/geronimo-jta_1.1_spec-1.1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo4j-contrib/neo4j-mobile-android/fb2c6e55987d00f2229bad0a978a2cc076efe734/neo4j-android/lib-jarjar/geronimo-jta_1.1_spec-1.1.1.jar
--------------------------------------------------------------------------------
/neo4j-android/lib-jarjar/java-rmi.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo4j-contrib/neo4j-mobile-android/fb2c6e55987d00f2229bad0a978a2cc076efe734/neo4j-android/lib-jarjar/java-rmi.jar
--------------------------------------------------------------------------------
/neo4j-android/lib-jarjar/lucene-core-3.1.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo4j-contrib/neo4j-mobile-android/fb2c6e55987d00f2229bad0a978a2cc076efe734/neo4j-android/lib-jarjar/lucene-core-3.1.0.jar
--------------------------------------------------------------------------------
/neo4j-android/lucene-index-src/org/neo4j/index/impl/lucene/ConnectionBroker.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.index.impl.lucene;
21 |
22 | import javax.transaction.TransactionManager;
23 |
24 | import org.neo4j.kernel.impl.index.IndexConnectionBroker;
25 |
26 | class ConnectionBroker extends IndexConnectionBroker
27 | {
28 | private final LuceneDataSource xaDs;
29 |
30 | ConnectionBroker( TransactionManager transactionManager,
31 | LuceneDataSource dataSource )
32 | {
33 | super( transactionManager );
34 | this.xaDs = dataSource;
35 | }
36 |
37 | @Override
38 | protected LuceneXaConnection newConnection()
39 | {
40 | return (LuceneXaConnection) xaDs.getXaConnection();
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/neo4j-android/lucene-index-src/org/neo4j/index/impl/lucene/EntityType.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.index.impl.lucene;
21 |
22 | import org.apache.lucene.document.Document;
23 | import org.neo4j.graphdb.PropertyContainer;
24 |
25 | interface EntityType
26 | {
27 | Document newDocument( Object entityId );
28 |
29 | Class extends PropertyContainer> getType();
30 | }
31 |
--------------------------------------------------------------------------------
/neo4j-android/lucene-index-src/org/neo4j/index/impl/lucene/QueryNotPossibleException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.index.impl.lucene;
21 |
22 | /**
23 | * Querying an index inside a transaction where
24 | * modifications has been made must be explicitly enabled using
25 | * QueryContext.allowQueryingModifications
26 | */
27 | public class QueryNotPossibleException extends RuntimeException
28 | {
29 | public QueryNotPossibleException()
30 | {
31 | super();
32 | }
33 |
34 | public QueryNotPossibleException( String message, Throwable cause )
35 | {
36 | super( message, cause );
37 | }
38 |
39 | public QueryNotPossibleException( String message )
40 | {
41 | super( message );
42 | }
43 |
44 | public QueryNotPossibleException( Throwable cause )
45 | {
46 | super( cause );
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/neo4j-android/lucene-index-src/org/neo4j/index/impl/lucene/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | /**
21 | * An indexing implementation using
22 | * Apache Lucene
23 | * as backend. Nodes can be indexed using key/value pairs or by full text
24 | * indexing. There is also a batch inserter included for inserting large
25 | * amounts of data.
26 | */
27 | package org.neo4j.index.impl.lucene;
28 |
29 |
--------------------------------------------------------------------------------
/neo4j-android/lucene-index-src/org/neo4j/index/lucene/LuceneIndexProvider.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.index.lucene;
21 |
22 | import org.neo4j.graphdb.index.IndexImplementation;
23 | import org.neo4j.graphdb.index.IndexProvider;
24 | import org.neo4j.index.impl.lucene.LuceneIndexImplementation;
25 | import org.neo4j.kernel.KernelData;
26 |
27 | public class LuceneIndexProvider extends IndexProvider
28 | {
29 | public LuceneIndexProvider()
30 | {
31 | super( LuceneIndexImplementation.SERVICE_NAME );
32 | }
33 |
34 | @Override
35 | public IndexImplementation load( KernelData kernel )
36 | {
37 | return new LuceneIndexImplementation( kernel.graphDatabase(), kernel.getConfig() );
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/neo4j-android/lucene-index-src/org/neo4j/index/lucene/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | /**
21 | * Contains {@link org.neo4j.index.lucene.QueryContext} and
22 | * {@link org.neo4j.index.lucene.ValueContext} which is part of the
23 | * public API for an {@link org.neo4j.graphdb.index.Index} backed by Lucene.
24 | *
25 | * Also contain a timeline implementation on top of an
26 | * {@link org.neo4j.graphdb.index.Index} based on Lucene.
27 | */
28 | package org.neo4j.index.lucene;
29 |
--------------------------------------------------------------------------------
/neo4j-android/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/neo4j-android/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system use,
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 |
10 | # Project target.
11 | target=android-15
12 | android.library=true
13 |
--------------------------------------------------------------------------------
/neo4j-android/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
24 | Neo4j Android
25 |
26 |
--------------------------------------------------------------------------------
/neo4j-android/src/org/neo4j/android/Version.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2002-2013 "Neo Technology,"
3 | * Network Engine for Objects in Lund AB [http://neotechnology.com]
4 | *
5 | * This file is part of Neo4j.
6 | *
7 | * Neo4j is free software: you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | */
20 | package org.neo4j.android;
21 |
22 | /**
23 | * Exposes the underlying neo4j version.
24 | */
25 | public class Version {
26 |
27 | private static String VERSION = "1.5M02";
28 |
29 | public static String getVersion() {
30 | return VERSION;
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------