Unnamed: 0 int64 0 6.7k | func stringlengths 12 89.6k | target bool 2
classes | project stringlengths 45 151 |
|---|---|---|---|
1,100 | {
@Override
public Iterator<NodeLabelUpdate> iterator()
{
return new PrefetchingIterator<NodeLabelUpdate>()
{
private final long[] NO_LABELS = new long[0];
private final NodeStore nodeStore = neoStoreProv... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_api_scan_LabelScanStoreProvider.java |
1,101 | {
@Override
public <T> T select( Class<T> type, Iterable<T> candidates )
throws IllegalArgumentException
{
List<Comparable> all = (List<Comparable>) addToCollection( candidates, new ArrayList<T>() );
if ( all.isEmpty() )
{
t... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_api_scan_LabelScanStoreProvider.java |
1,102 | public class LabelScanStoreProvider extends LifecycleAdapter implements Comparable<LabelScanStoreProvider>
{
/**
* SelectionStrategy for {@link KernelExtensions kernel extensions loading} where the one with highest
* {@link #priority} will be selected. If there are no such stores then an {@link IllegalSt... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_api_scan_LabelScanStoreProvider.java |
1,103 | @Service.Implementation( KernelExtensionFactory.class )
public class InMemoryLabelScanStoreExtension extends KernelExtensionFactory<InMemoryLabelScanStoreExtension.NoDependencies>
{
public interface NoDependencies
{ // No dependencies
}
public InMemoryLabelScanStoreExtension()
{
super( "i... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_api_scan_InMemoryLabelScanStoreExtension.java |
1,104 | {
@Override
public void write( NodeLabelUpdate update ) throws IOException
{
// Split up into added/removed from before/after
long[] added = new long[update.getLabelsAfter().length]; // pessimistic length
long[] removed = new lo... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_api_scan_InMemoryLabelScanStore.java |
1,105 | {
@Override
public int id()
{
return 0;
}
@Override
public long[] nodes()
{
return toLongArray( nodesToLabels.keySe... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_api_scan_InMemoryLabelScanStore.java |
1,106 | {
@Override
public long maxCount()
{
return 0;
}
@Override
public void close() throws IOException
{
}
@Override
public Iterator<NodeLabelRange> iterator()
{
... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_api_scan_InMemoryLabelScanStore.java |
1,107 | {
@Override
public long next()
{
return nodesIterator.next();
}
@Override
public boolean hasNext()
{
return nodesIt... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_api_scan_InMemoryLabelScanStore.java |
1,108 | {
@Override
public PrimitiveLongIterator nodesWithLabel( int labelId )
{
Set<Long> nodes = data.get( (long) labelId );
if ( null == nodes )
{
return PrimitiveLongIteratorForArray.EMPTY;
}
... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_api_scan_InMemoryLabelScanStore.java |
1,109 | public class InMemoryLabelScanStore implements LabelScanStore
{
// LabelId --> Set<NodeId>
private final Map<Long, Set<Long>> data = new HashMap<>();
private Set<Long> nodeSetForRemoving( long labelId )
{
Set<Long> nodes = data.get( labelId );
return nodes != null ? nodes : Collections.... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_api_scan_InMemoryLabelScanStore.java |
1,110 | {
boolean closed;
@Override
public void release()
{
if ( closed )
{
throw new IllegalStateException();
}
released++;
cl... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_api_operations_ConstraintEnforcingEntityOperationsTest.java |
1,111 | private class LockAnswer implements Answer<ReleasableLock>
{
public int acquired, txBound, released;
@Override
public ReleasableLock answer( InvocationOnMock invocation ) throws Throwable
{
acquired++;
return new ReleasableLock()
{
... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_api_operations_ConstraintEnforcingEntityOperationsTest.java |
1,112 | public class ConstraintEnforcingEntityOperationsTest
{
private final int labelId = 1;
private final int propertyKeyId = 2;
private final String value = "value";
private final IndexDescriptor indexDescriptor = new IndexDescriptor( labelId, propertyKeyId );
private EntityReadOperations readOps;
pr... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_api_operations_ConstraintEnforcingEntityOperationsTest.java |
1,113 | public class GraphState extends PropertyContainerState
{
public GraphState()
{
super( -1 );
}
} | false | community_kernel_src_main_java_org_neo4j_kernel_impl_api_state_GraphState.java |
1,114 | public class IndexQueryTransactionStateTest
{
@Test
public void shouldExcludeRemovedNodesFromIndexQuery() throws Exception
{
// Given
when( store.nodesGetFromIndexLookup( state, indexDescriptor, value ) )
.then( answerAsPrimitiveLongIteratorFrom( asList( 1l, 2l, 3l ) ) );
... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_api_state_IndexQueryTransactionStateTest.java |
1,115 | public final class LabelState extends EntityState
{
private final DiffSets<Long> nodeDiffSets = new DiffSets<Long>();
private final DiffSets<IndexDescriptor> indexChanges = new DiffSets<IndexDescriptor>();
private final DiffSets<IndexDescriptor> constraintIndexChanges = new DiffSets<IndexDescriptor>();
... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_api_state_LabelState.java |
1,116 | private static class Labels
{
private final long nodeId;
private final Integer[] labelIds;
Labels( long nodeId, Integer... labelIds )
{
this.nodeId = nodeId;
this.labelIds = labelIds;
}
} | false | community_kernel_src_test_java_org_neo4j_kernel_impl_api_state_SchemaTransactionStateTest.java |
1,117 | {
@Override
public NodeState newState( long id )
{
return new NodeState( id );
}
}; | false | community_kernel_src_main_java_org_neo4j_kernel_impl_api_state_TxStateImpl.java |
1,118 | {
@Override
public LabelState newState( long id )
{
return new LabelState( id );
}
}; | false | community_kernel_src_main_java_org_neo4j_kernel_impl_api_state_TxStateImpl.java |
1,119 | public final class TxStateImpl implements TxState
{
private static final StateCreator<LabelState> LABEL_STATE_CREATOR = new StateCreator<LabelState>()
{
@Override
public LabelState newState( long id )
{
return new LabelState( id );
}
};
private static final S... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_api_state_TxStateImpl.java |
1,120 | UNTOUCHED
{
@Override
public boolean isTouched()
{
return false;
}
@Override
public boolean isAdded()
{
throw new UnsupportedOperationException( "Cannot convert an UNTOUCHED UpdateTriStat... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_api_state_TxState.java |
1,121 | REMOVED
{
@Override
public boolean isTouched()
{
return true;
}
@Override
public boolean isAdded()
{
return false;
}
}, | false | community_kernel_src_main_java_org_neo4j_kernel_impl_api_state_TxState.java |
1,122 | ADDED
{
@Override
public boolean isTouched()
{
return true;
}
@Override
public boolean isAdded()
{
return true;
}
}, | false | community_kernel_src_main_java_org_neo4j_kernel_impl_api_state_TxState.java |
1,123 | {
@Override
public Iterator<T> answer( InvocationOnMock invocation ) throws Throwable
{
return values.iterator();
}
}; | false | community_kernel_src_test_java_org_neo4j_kernel_impl_api_state_StateHandlingStatementOperationsTest.java |
1,124 | public class StateHandlingStatementOperationsTest
{
// Note: Most of the behavior of this class is tested in separate classes,
// based on the category of state being
// tested. This contains general tests or things that are common to all
// types of state.
StoreReadLayer inner = mock( StoreReadLay... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_api_state_StateHandlingStatementOperationsTest.java |
1,125 | {
@Override
public Iterator<T> answer( InvocationOnMock invocation ) throws Throwable
{
return values.iterator();
}
}; | false | community_kernel_src_test_java_org_neo4j_kernel_impl_api_state_SchemaTransactionStateTest.java |
1,126 | public class LabelTransactionStateTest
{
@Test
public void addOnlyLabelShouldBeVisibleInTx() throws Exception
{
// GIVEN
commitNoLabels();
// WHEN
txContext.nodeAddLabel( state, nodeId, labelId1 );
// THEN
assertLabels( labelId1 );
}
@Test
publi... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_api_state_LabelTransactionStateTest.java |
1,127 | {
@Override
public void call() throws SchemaRuleNotFoundException
{
txContext.indexesGetForLabelAndPropertyKey( state, labelId1, key1 );
}
}; | false | community_kernel_src_test_java_org_neo4j_kernel_impl_api_state_SchemaTransactionStateTest.java |
1,128 | public class SchemaTransactionStateTest
{
@Test
public void addedRuleShouldBeVisibleInTx() throws Exception
{
// GIVEN
commitNoLabels();
// WHEN
IndexDescriptor rule = txContext.indexCreate( state, labelId1, key1 );
// THEN
assertEquals( asSet( rule ), Itera... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_api_state_SchemaTransactionStateTest.java |
1,129 | public final class RelationshipState extends PropertyContainerState
{
public RelationshipState( long id )
{
super( id );
}
} | false | community_kernel_src_main_java_org_neo4j_kernel_impl_api_state_RelationshipState.java |
1,130 | public class PropertyContainerState extends EntityState
{
private DiffSets<DefinedProperty> propertyDiffSets;
public PropertyContainerState( long id )
{
super( id );
}
public DiffSets<DefinedProperty> propertyDiffSets()
{
if ( null == propertyDiffSets )
{
pr... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_api_state_PropertyContainerState.java |
1,131 | public class OldTxStateBridgeImplTest
{
@Test
public void shouldListNodesWithPropertyAdded() throws Exception
{
// Given
long nodeId = 1l;
int propertyKey = 2;
int value = 1337;
WritableTransactionState state = new WritableTransactionState( null, null, new DevNullLog... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_api_state_OldTxStateBridgeImplTest.java |
1,132 | public class OldTxStateBridgeImpl implements OldTxStateBridge
{
private final NodeManager nodeManager;
private final TransactionState state;
public OldTxStateBridgeImpl( NodeManager nodeManager, TransactionState transactionState )
{
this.nodeManager = nodeManager;
this.state = transacti... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_api_state_OldTxStateBridgeImpl.java |
1,133 | public final class NodeState extends PropertyContainerState
{
private DiffSets<Integer> labelDiffSets;
public NodeState( long id )
{
super( id );
}
public DiffSets<Integer> labelDiffSets()
{
if ( null == labelDiffSets )
{
labelDiffSets = new DiffSets<>();
... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_api_state_NodeState.java |
1,134 | private static class Labels
{
private final long nodeId;
private final Integer[] labelIds;
Labels( long nodeId, Integer... labelIds )
{
this.nodeId = nodeId;
this.labelIds = labelIds;
}
} | false | community_kernel_src_test_java_org_neo4j_kernel_impl_api_state_LabelTransactionStateTest.java |
1,135 | {
@Override
public void run()
{
try
{
tx( new Runnable()
{
@Override
public void run()
{
for ( @Suppress... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_core_TestRaceOnMultipleNodeImpl.java |
1,136 | {
@Override
public void run()
{
tx( task );
}
} ); | false | community_kernel_src_test_java_org_neo4j_kernel_impl_core_TestRaceOnMultipleNodeImpl.java |
1,137 | public class NodeLabelsField
{
public static NodeLabels parseLabelsField( NodeRecord node )
{
long labelField = node.getLabelField();
if ( fieldPointsToDynamicRecordOfLabels( labelField ) )
{
return new DynamicNodeLabels( labelField, node );
}
else
{
... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_labels_NodeLabelsField.java |
1,138 | ARRAY( 10 )
{
@Override
public DefinedProperty readProperty( int propertyKeyId, final PropertyBlock block, final Provider<PropertyStore> store )
{
return Property.lazyArrayProperty(propertyKeyId, new Callable<Object>()
{
@Override
p... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PropertyType.java |
1,139 | public static abstract class Configuration extends AbstractStore.Configuration
{
} | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PropertyStore.java |
1,140 | public class PropertyStore extends AbstractRecordStore<PropertyRecord> implements Store
{
public static abstract class Configuration extends AbstractStore.Configuration
{
}
public static final int DEFAULT_DATA_BLOCK_SIZE = 120;
public static final int DEFAULT_PAYLOAD_SIZE = 32;
public static f... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PropertyStore.java |
1,141 | public class PropertyRecordTest
{
@Test
public void addingDuplicatePropertyBlockShouldOverwriteExisting()
{
// Given these things...
PropertyRecord record = new PropertyRecord( 1 );
PropertyBlock blockA = new PropertyBlock();
blockA.setValueBlocks( new long[1] );
bloc... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_store_PropertyRecordTest.java |
1,142 | public class PropertyRecord extends Abstract64BitRecord
{
private long nextProp = Record.NO_NEXT_PROPERTY.intValue();
private long prevProp = Record.NO_PREVIOUS_PROPERTY.intValue();
private final List<PropertyBlock> blockRecords = new ArrayList<PropertyBlock>( 4 );
private long entityId = -1;
privat... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PropertyRecord.java |
1,143 | public static abstract class Configuration
extends TokenStore.Configuration
{
} | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PropertyKeyTokenStore.java |
1,144 | public class PropertyKeyTokenStore extends TokenStore<PropertyKeyTokenRecord>
{
public static abstract class Configuration
extends TokenStore.Configuration
{
}
// Historical type descriptor, should be called PropertyKeyTokenStore
public static final String TYPE_DESCRIPTOR = "PropertyIndexS... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PropertyKeyTokenStore.java |
1,145 | public class PropertyKeyTokenRecord extends TokenRecord
{
private int propCount = 0;
public PropertyKeyTokenRecord( int id )
{
super( id );
}
@Override
protected String simpleName()
{
return "PropertyKey";
}
public int getPropertyCount()
{
return propCo... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PropertyKeyTokenRecord.java |
1,146 | public class PropertyBlock implements Cloneable
{
private static final long KEY_BITMASK = 0xFFFFFFL;
private static final int MAX_ARRAY_TOSTRING_SIZE = 4;
private final List<DynamicRecord> valueRecords = new LinkedList<>();
private long[] valueBlocks;
public PropertyType getType()
{
re... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PropertyBlock.java |
1,147 | public class ProduceUncleanStore
{
public static void main( String[] args ) throws Exception
{
String storeDir = args[0];
boolean setGraphProperty = args.length > 1 ? Boolean.parseBoolean( args[1] ) : false;
GraphDatabaseService db = new EmbeddedGraphDatabase(
storeDir,
... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_store_ProduceUncleanStore.java |
1,148 | public abstract class PrimitiveRecord extends Abstract64BitRecord
{
private long nextProp;
private final long committedNextProp;
public PrimitiveRecord( long id, long nextProp )
{
super( id );
this.nextProp = nextProp;
this.committedNextProp = this.nextProp = nextProp;
}
... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PrimitiveRecord.java |
1,149 | public class PreAllocatedRecords implements DynamicRecordAllocator
{
private final int dataSize;
public PreAllocatedRecords( int dataSize )
{
this.dataSize = dataSize;
}
@Override
public int dataSize()
{
return dataSize;
}
@Override
public DynamicRecord nextUse... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_store_PreAllocatedRecords.java |
1,150 | class PlainPersistenceWindow extends AbstractPersistenceWindow
{
PlainPersistenceWindow( long position, int recordSize, int totalSize,
StoreChannel channel )
{
super( position, recordSize, totalSize, channel,
ByteBuffer.allocate( totalSize ) );
}
} | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PlainPersistenceWindow.java |
1,151 | {
int invocations = 0;
@Override
public PersistenceRow answer( InvocationOnMock invocationOnMock ) throws Throwable
{
if(invocations++ == 0)
{
return null;
}
return window;
... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_store_PersistenceWindowPoolTest.java |
1,152 | {
@Override
synchronized void lock()
{
assertEquals( 0, index );
super.lock();
lockedCount.incrementAndGet();
}
... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_store_PersistenceWindowPoolTest.java |
1,153 | {
@Override
public BrickElement create( final int index )
{
return new BrickElement( index )
{
@Override
synchronized void lock()
{
assertEquals( 0, index );
... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_store_PersistenceWindowPoolTest.java |
1,154 | {
@Override
public Throwable doWork( Void state )
{
PersistenceWindow t2Row = pool.acquire( 0, OperationType.READ ); // Will block until t1Row is released.
try
{
assertTrue( t1Row == t2Row );
... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_store_PersistenceWindowPoolTest.java |
1,155 | public class PersistenceWindowPoolTest
{
private static final TargetDirectory target = TargetDirectory.forTest( MappedPersistenceWindowTest.class );
@Rule
public final ResourceCollection resources = new ResourceCollection();
@Rule
public final TargetDirectory.TestDirectory directory = target.testDir... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_store_PersistenceWindowPoolTest.java |
1,156 | {
@Override
public int compare( BrickElement o1, BrickElement o2 )
{
return o1.getHitCountSnapshot() - o2.getHitCountSnapshot();
}
}; | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PersistenceWindowPool.java |
1,157 | public class PersistenceWindowPool implements WindowPool
{
private static final int MAX_BRICK_COUNT = 100000;
private final File storeName;
// == recordSize
private final int blockSize;
private StoreChannel fileChannel;
private final ConcurrentMap<Long,PersistenceRow> activeRowWindows;
priv... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PersistenceWindowPool.java |
1,158 | BOOL( 1 )
{
@Override
public DefinedProperty readProperty( int propertyKeyId, PropertyBlock block, Provider<PropertyStore> store )
{
return Property.booleanProperty( propertyKeyId, getValue( block.getSingleValueLong() ) );
}
@Override
public Object ge... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PropertyType.java |
1,159 | {
@Override
public Object call() throws Exception
{
return getValue( block, store.instance() );
}
}); | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PropertyType.java |
1,160 | public class PersistenceRowTest
{
private static final Random RANDOM = new Random();
private static final int RECORD_SIZE = 7;
private PersistenceRow window;
private StoreFileChannel realChannel;
@Before
public void before() throws Exception
{
File directory = new File( "target/tes... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_store_PersistenceRowTest.java |
1,161 | SHORT_STRING( 11 )
{
@Override
public DefinedProperty readProperty( int propertyKeyId, PropertyBlock block, Provider<PropertyStore> store )
{
return Property.stringProperty( propertyKeyId, LongerShortString.decode( block ) );
}
@Override
public Object... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PropertyType.java |
1,162 | {
@Override
protected R underlyingObjectToObject( Long id )
{
return store.forceGetRecord( id );
}
}; | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_RecordStore.java |
1,163 | {
final PrimitiveLongIterator ids = new StoreIdIterator( store );
@Override
protected R fetchNextOrNull()
{
scan: while ( ids.hasNext() && continueScanning )
... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_RecordStore.java |
1,164 | {
@Override
public Iterator<R> iterator()
{
return new PrefetchingIterator<R>()
{
final PrimitiveLongIterator ids = new StoreIdIterator( store );
@Override
... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_RecordStore.java |
1,165 | @SuppressWarnings("unchecked")
abstract class Processor<FAILURE extends Exception>
{
// Have it volatile so that it can be stopped from a different thread.
private volatile boolean continueScanning = true;
public void stopScanning()
{
continueScanning = false;
... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_RecordStore.java |
1,166 | {
@Override
public boolean accept( AbstractBaseRecord item )
{
return item.inUse();
}
}; | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_RecordStore.java |
1,167 | private static class Store
{
final String simpleFileName;
final int recordSize;
final String contentsDescription;
Store( String simpleFileName, int recordSize, String contentsDescription )
{
this.simpleFileName = simpleFileName;
this.recordSize = ... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_store_RecordSizesDocTest.java |
1,168 | public class RecordSizesDocTest
{
public final @Rule DocsIncludeFile writer = DocsIncludeFile.inSection( "ops" );
@Test
public void record_sizes_table() throws Exception
{
writer.println( "[options=\"header\",cols=\"<45,>20m,<35\", width=\"80%\"]" );
writer.println( "|==================... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_store_RecordSizesDocTest.java |
1,169 | public class RecordSerializer
{
private final List<RecordSerializable> serializables = new ArrayList<RecordSerializable>();
public RecordSerializer append( RecordSerializable serializable )
{
this.serializables.add( serializable );
return this;
}
public byte[] serialize()
... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_RecordSerializer.java |
1,170 | public class ReadOnlyIdGenerator implements IdGenerator
{
private final String fileName;
private final long highId;
public ReadOnlyIdGenerator( String fileName, long highId )
{
this.fileName = fileName;
this.highId = highId;
}
public long nextId()
{
throw new Re... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_ReadOnlyIdGenerator.java |
1,171 | {
@Override
public String call() throws Exception
{
return getValue( block, store.instance() );
}
}); | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PropertyType.java |
1,172 | STRING( 9 )
{
@Override
public DefinedProperty readProperty( int propertyKeyId, final PropertyBlock block,
final Provider<PropertyStore> store )
{
return Property.lazyStringProperty(propertyKeyId, new Callable<String>()
... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PropertyType.java |
1,173 | DOUBLE( 8 )
{
@Override
public DefinedProperty readProperty( int propertyKeyId, PropertyBlock block, Provider<PropertyStore> store )
{
return Property.doubleProperty( propertyKeyId, Double.longBitsToDouble( block.getValueBlocks()[1] ) );
}
@Override
p... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PropertyType.java |
1,174 | FLOAT( 7 )
{
@Override
public DefinedProperty readProperty( int propertyKeyId, PropertyBlock block, Provider<PropertyStore> store )
{
return Property.floatProperty( propertyKeyId, Float.intBitsToFloat( block.getSingleValueInt() ) );
}
@Override
public... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PropertyType.java |
1,175 | LONG( 6 )
{
@Override
public DefinedProperty readProperty( int propertyKeyId, PropertyBlock block, Provider<PropertyStore> store )
{
long firstBlock = block.getSingleValueBlock();
long value = valueIsInlined( firstBlock ) ? (block.getSingleValueLong() >>> 1) : blo... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PropertyType.java |
1,176 | INT( 5 )
{
@Override
public DefinedProperty readProperty( int propertyKeyId, PropertyBlock block, Provider<PropertyStore> store )
{
return Property.intProperty( propertyKeyId, block.getSingleValueInt() );
}
@Override
public Object getValue( PropertyBl... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PropertyType.java |
1,177 | CHAR( 4 )
{
@Override
public DefinedProperty readProperty( int propertyKeyId, PropertyBlock block, Provider<PropertyStore> store )
{
return Property.charProperty( propertyKeyId, (char) block.getSingleValueShort() );
}
@Override
public Object getValue(... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PropertyType.java |
1,178 | SHORT( 3 )
{
@Override
public DefinedProperty readProperty( int propertyKeyId, PropertyBlock block, Provider<PropertyStore> store )
{
return Property.shortProperty( propertyKeyId, block.getSingleValueShort() );
}
@Override
public Object getValue( Prop... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PropertyType.java |
1,179 | BYTE( 2 )
{
@Override
public DefinedProperty readProperty( int propertyKeyId, PropertyBlock block, Provider<PropertyStore> store )
{
return Property.byteProperty( propertyKeyId, block.getSingleValueByte() );
}
@Override
public Object getValue( Propert... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PropertyType.java |
1,180 | SHORT_ARRAY( 12 )
{
@Override
public DefinedProperty readProperty( int propertyKeyId, PropertyBlock block, Provider<PropertyStore> store )
{
// TODO: Specialize per type
return Property.property( propertyKeyId, ShortArray.decode(block) );
}
@Overr... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_PropertyType.java |
1,181 | {
@Override
public void run()
{
while ( true )
{
// modify buffer's position "because we can" - this is used in several places,
// including Buffer.getOffsettedBuffer which in turn is also used in several... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_store_PersistenceRowTest.java |
1,182 | {
@Override
public void run()
{
try
{
// Wait for theEvilOne to grab the lock on the row
theBreakingOneHasLockedTheRow.await();
/*
* Because of the setup theTrigge... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_store_PersistenceRowAndWindowDirtyWriteIT.java |
1,183 | { // setup: create the node with the property that we will remove
@Override
public Node call() throws Exception
{
Node node = graphdb.createNode();
node.setProperty( "key", "original" );
return node;
}
} ); | false | community_kernel_src_test_java_org_neo4j_kernel_impl_core_TestRaceOnMultipleNodeImpl.java |
1,184 | class MappedMemException extends RuntimeException
{
MappedMemException( Throwable cause )
{
super( cause );
}
MappedMemException( String msg, Throwable cause )
{
super( msg, cause );
}
} | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_MappedMemException.java |
1,185 | ALPHASYM( 8, 6 )
{
@Override
char decTranslate( byte codePoint )
{
if ( codePoint == 0x0 ) return ' ';
if ( codePoint <= 0x1A ) return (char)('A' + codePoint - 0x1);
if ( codePoint <= 0x1F ) return decPunctuation( codePoint - 0x1B + 1 );
if... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_LongerShortString.java |
1,186 | ALPHANUM( 7, 6 )
{
@Override
char decTranslate( byte codePoint )
{
return EUROPEAN.decTranslate( (byte) ( codePoint + 0x40 ) );
}
@Override
int encTranslate( byte b )
{
// Punctuation is in the same places as European
i... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_LongerShortString.java |
1,187 | URI( 6, 6 )
{
@Override
int encTranslate( byte b )
{
if ( b == 0 ) return 0; // space
if ( b >= 0x61 && b <= 0x7A ) return b - 0x60; // lower-case letters
if ( b >= 0x30 && b <= 0x39 ) return b - 0x10; // digits
if ( b >= 0x1 && b <= 0x16 )... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_LongerShortString.java |
1,188 | EMAIL( 5, 5 )
{
@Override
int encTranslate( byte b )
{
return super.encTranslate(b) - 0x60;
}
@Override
int encPunctuation( byte b )
{
int encOffset = 0x60;
if ( b == 7 ) return encOffset;
int offset = encO... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_LongerShortString.java |
1,189 | LOWER( 4, 5 )
{
@Override
int encTranslate( byte b )
{
return super.encTranslate(b) - 0x60;
}
@Override
int encPunctuation( byte b )
{
return b == 0 ? 0x60 : b + 0x7a;
}
@Override
char decTranslate( byte co... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_LongerShortString.java |
1,190 | UPPER( 3, 5 )
{
@Override
int encTranslate( byte b )
{
return super.encTranslate(b) - 0x40;
}
@Override
int encPunctuation( byte b )
{
return b == 0 ? 0x40 : b + 0x5a;
}
@Override
char decTranslate( byte co... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_LongerShortString.java |
1,191 | DATE( 2, 4 )
{
@Override
int encTranslate( byte b )
{
if ( b >= '0' && b <= '9' ) return b - '0';
switch ( b )
{
case 0: return 0xA;
case 3: return 0xB;
case 4: return 0xC;
case 5: return 0xD;
... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_LongerShortString.java |
1,192 | UPPERHEX( 12, 4 )
{
@Override
int encTranslate( byte b )
{
if ( b >= '0' && b <= '9' ) return b - '0';
if ( b >= 'A' && b <= 'F' ) return b - 'A' + 10;
throw cannotEncode( b );
}
@Override
int encPunctuation( byte b )
{... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_LongerShortString.java |
1,193 | LOWERHEX( 11, 4 )
{
@Override
int encTranslate( byte b )
{
if ( b >= '0' && b <= '9' ) return b - '0';
if ( b >= 'a' && b <= 'f' ) return b - 'a' + 10;
throw cannotEncode( b );
}
@Override
int encPunctuation( byte b )
{... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_LongerShortString.java |
1,194 | NUMERICAL( 1, 4 )
{
@Override
int encTranslate( byte b )
{
if ( b >= '0' && b <= '9' ) return b - '0';
switch ( b )
{
// interm. encoded
case 0: return 0xA;
case 2: return 0xB;
case 3: return 0xC;
... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_LongerShortString.java |
1,195 | private static class LockElement
{
private final Thread thread;
private boolean movedOn = false;
LockElement( Thread thread )
{
this.thread = thread;
}
} | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_LockableWindow.java |
1,196 | public abstract class LockableWindow implements PersistenceWindow
{
private final StoreChannel fileChannel;
private Thread lockingThread = null;
private final LinkedList<LockElement> waitingThreadList =
new LinkedList<LockElement>();
private boolean locked;
private int marked = 0;
prot... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_LockableWindow.java |
1,197 | @Ignore( "Written as a reaction to an observed bug, but it doesn't seem to trigger it though" )
public class LargeByteArraysIT
{
private static final Random RANDOM = new Random();
@Test
public void largeByteArrays() throws Exception
{
GraphDatabaseService db = new GraphDatabaseFactory().new... | false | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_store_LargeByteArraysIT.java |
1,198 | public static abstract class Configuration
extends TokenStore.Configuration
{
} | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_LabelTokenStore.java |
1,199 | public class LabelTokenStore extends TokenStore<LabelTokenRecord>
{
public static abstract class Configuration
extends TokenStore.Configuration
{
}
public static final String TYPE_DESCRIPTOR = "LabelTokenStore";
private static final int RECORD_SIZE = 1/*inUse*/ + 4/*nameId*/;
public L... | false | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_store_LabelTokenStore.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.