Package com.fasterxml.storemate.store.backend

Examples of com.fasterxml.storemate.store.backend.StorableIterationCallback


        final long maxTime = _timeMaster.currentTimeMillis() + limits.getMaxMsecs();
        final int maxEntries = limits.getMaxEntries();
        final ArrayList<StorableKey> result = new ArrayList<StorableKey>(100);
        final boolean includeTombstones = limits.getIncludeTombstones();

        StorableIterationCallback cb = new StorableIterationCallback() {
            public int counter; // to avoid checking systime too often

            @Override
            public IterationAction verifyKey(StorableKey key) {
                if (!key.hasPrefix(prefix)) {
View Full Code Here


        final long maxTime = _timeMaster.currentTimeMillis() + limits.getMaxMsecs();
        final int maxEntries = limits.getMaxEntries();
        final ArrayList<StorableKey> result = new ArrayList<StorableKey>(100);
        final boolean includeTombstones = limits.getIncludeTombstones();

        StorableIterationCallback cb = new StorableIterationCallback() {
            public int counter; // to avoid checking systime too often

            @Override
            public IterationAction verifyKey(StorableKey key) {
                if (!key.hasPrefix(prefix)) {
View Full Code Here

        final long maxTime = _timeMaster.currentTimeMillis() + limits.getMaxMsecs();
        final int maxEntries = limits.getMaxEntries();
        final ArrayList<StorableKey> result = new ArrayList<StorableKey>(100);
        final boolean includeTombstones = limits.getIncludeTombstones();

        StorableIterationCallback cb = new StorableIterationCallback() {
            public int counter; // to avoid checking systime too often

            @Override
            public IterationAction verifyKey(StorableKey key) {
                if (!key.hasPrefix(prefix)) {
View Full Code Here

        final long maxTime = _timeMaster.currentTimeMillis() + limits.getMaxMsecs();
        final int maxEntries = limits.getMaxEntries();
        final ArrayList<StorableKey> result = new ArrayList<StorableKey>(100);
        final boolean includeTombstones = limits.getIncludeTombstones();

        StorableIterationCallback cb = new StorableIterationCallback() {
            public int counter; // to avoid checking systime too often

            @Override
            public IterationAction verifyKey(StorableKey key) {
                if (!key.hasPrefix(prefix)) {
View Full Code Here

        final long maxTime = _timeMaster.currentTimeMillis() + limits.getMaxMsecs();
        final int maxEntries = limits.getMaxEntries();
        final ArrayList<StorableKey> result = new ArrayList<StorableKey>(100);
        final boolean includeTombstones = limits.getIncludeTombstones();

        StorableIterationCallback cb = new StorableIterationCallback() {
            public int counter; // to avoid checking systime too often

            @Override
            public IterationAction verifyKey(StorableKey key) {
                if (!key.hasPrefix(prefix)) {
View Full Code Here

        final long maxTime = _timeMaster.currentTimeMillis() + limits.getMaxMsecs();
        final int maxEntries = limits.getMaxEntries();
        final ArrayList<StorableKey> result = new ArrayList<StorableKey>(100);
        final boolean includeTombstones = limits.getIncludeTombstones();

        StorableIterationCallback cb = new StorableIterationCallback() {
            public int counter; // to avoid checking systime too often

            @Override
            public IterationAction verifyKey(StorableKey key) {
                if (!key.hasPrefix(prefix)) {
View Full Code Here

    {
        final long maxTime = _timeMaster.currentTimeMillis() + limits.getMaxMsecs();
        final int maxEntries = limits.getMaxEntries();
        final ArrayList<StorableKey> result = new ArrayList<StorableKey>(100);

        StorableIterationCallback cb = new StorableIterationCallback() {
            public int counter; // to avoid checking systime too often

            @Override
            public IterationAction verifyKey(StorableKey key) {
                if (!key.hasPrefix(prefix)) {
View Full Code Here

            final int maxCount, final boolean includeDeleted)
        throws StoreException
    {
        final ArrayList<Storable> result = new ArrayList<Storable>();
        if (maxCount > 0) {
            _backend.iterateEntriesByKey(new StorableIterationCallback() {
                // all keys are fine
                @Override public IterationAction verifyKey(StorableKey key) { return IterationAction.PROCESS_ENTRY; }
                @Override
                public IterationAction processEntry(Storable entry) {
                    if (includeDeleted || !entry.isDeleted()) {
View Full Code Here

        final long maxTime = _timeMaster.currentTimeMillis() + limits.getMaxMsecs();
        final int maxEntries = limits.getMaxEntries();
        final ArrayList<StorableKey> result = new ArrayList<StorableKey>(100);
        final boolean includeTombstones = limits.getIncludeTombstones();

        StorableIterationCallback cb = new StorableIterationCallback() {
            public int counter; // to avoid checking systime too often

            @Override
            public IterationAction verifyKey(StorableKey key) {
                if (!key.hasPrefix(prefix)) {
View Full Code Here

        final long maxTime = _timeMaster.currentTimeMillis() + limits.getMaxMsecs();
        final int maxEntries = limits.getMaxEntries();
        final ArrayList<StorableKey> result = new ArrayList<StorableKey>(100);
        final boolean includeTombstones = limits.getIncludeTombstones();

        StorableIterationCallback cb = new StorableIterationCallback() {
            public int counter; // to avoid checking systime too often

            @Override
            public IterationAction verifyKey(StorableKey key) {
                if (!key.hasPrefix(prefix)) {
View Full Code Here

TOP

Related Classes of com.fasterxml.storemate.store.backend.StorableIterationCallback

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.