APISonar


org.neo4j.values.storable.ValueGroup.DATE

> org > neo4j > values > storable > ValueGroup > DATE
org APIs neo4j APIs values APIs storable APIs ValueGroup APIs DATE APIs

Example 1
public void testValueGroupRange()
    {
        RangePredicate<?> p = IndexQuery.range( propId, ValueGroup.DATE );

        assertTrue( test( p, DateValue.date( -4000, 1, 31 ) ) );
        assertTrue( test( p, DateValue.date( 2018, 3, 7 ) ) );
        assertFalse( test( p, DateTimeValue.datetime( 2018, 3, 7, 0, 0, 0, 0, ZoneOffset.UTC ) ) );
        assertFalse( test( p, Values.stringValue( "hej" ) ) );
        assertFalse( test( p, gps2_3d ) );
    }
Example 2
public void testIndexSeekRangeWithExistsByTemporal() throws Exception
    {
        DateTimeValue d1 = datetime( 9999, 100, ZoneId.of( "+18:00" ) );
        DateTimeValue d2 = datetime( 10000, 100, ZoneId.of( "UTC" ) );
        DateTimeValue d3 = datetime( 10000, 100, ZoneId.of( "+01:00" ) );
        DateTimeValue d4 = datetime( 10000, 100, ZoneId.of( "Europe/Stockholm" ) );
        DateTimeValue d5 = datetime( 10000, 100, ZoneId.of( "+03:00" ) );
        testIndexSeekRangeWithExists( ValueGroup.DATE, d1, d2, d3, d4, d5  );
    }
Example 3
NativeIndexPopulator<DateIndexKey,NativeIndexValue> createPopulator( IndexSamplingConfig samplingConfig )
    {
        TemporalIndexFiles.FileLayout<DateIndexKey> fileLayout =
                new TemporalIndexFiles.FileLayout<>( getIndexFile(), layout, ValueGroup.DATE );
        return new TemporalIndexPopulator.PartPopulator<>( pageCache, fs, fileLayout, monitor, indexDescriptor, samplingConfig );
    }
Example 4
TemporalIndexFiles( IndexDirectoryStructure directoryStructure, StoreIndexDescriptor descriptor, FileSystemAbstraction fs )
    {
        this.fs = fs;
        File indexDirectory = directoryStructure.directoryForIndex( descriptor.getId() );
        this.date = new FileLayout<>( new File( indexDirectory, "date" ), new DateLayout(), ValueGroup.DATE );
        this.localTime = new FileLayout<>( new File( indexDirectory, "localTime" ), new LocalTimeLayout(), ValueGroup.LOCAL_TIME );
        this.zonedTime = new FileLayout<>( new File( indexDirectory, "zonedTime" ), new ZonedTimeLayout(), ValueGroup.ZONED_TIME );
        this.localDateTime = new FileLayout<>( new File( indexDirectory, "localDateTime" ), new LocalDateTimeLayout(), ValueGroup.LOCAL_DATE_TIME );
        this.zonedDateTime = new FileLayout<>( new File( indexDirectory, "zonedDateTime" ), new ZonedDateTimeLayout(), ValueGroup.ZONED_DATE_TIME );
        this.duration = new FileLayout<>( new File( indexDirectory, "duration" ), new DurationLayout(), ValueGroup.DURATION );
    }