public String getString( final Enum<?> key, String arg ) { return getString( key.name().toLowerCase(), arg ); }
try { indexClass = Class.forName( properties.getString( Index.PropertyKeys.INDEXCLASS, "(missing index class)" ).replace( ".dsi.", ".di." ) ); final long numberOfOccurrences = properties.getLong( Index.PropertyKeys.OCCURRENCES, -1 ); final int maxCount = properties.getInt( Index.PropertyKeys.MAXCOUNT, -1 ); final String field = properties.getString( Index.PropertyKeys.FIELD, new File( basename.toString() ).getName() ); final Payload payload = (Payload)( properties.containsKey( Index.PropertyKeys.PAYLOADCLASS ) ? Class.forName( properties.getString( Index.PropertyKeys.PAYLOADCLASS ) ).newInstance() : null ); final ByteOrder byteOrder = byteOrder( properties.getString( PropertyKeys.BYTEORDER ) ); final boolean hasCounts = flags.containsKey( Component.COUNTS ); final boolean hasPositions = flags.containsKey( Component.POSITIONS );
indexClass = Class.forName( properties.getString( Index.PropertyKeys.INDEXCLASS, "(missing index class)" )); final long numberOfOccurrences = properties.getLong( Index.PropertyKeys.OCCURRENCES, -1 ); final int maxCount = properties.getInt( Index.PropertyKeys.MAXCOUNT, -1 ); final String field = properties.getString( Index.PropertyKeys.FIELD, new File( basename.toString() ).getName() ); final Payload payload = (Payload)( properties.containsKey( Index.PropertyKeys.PAYLOADCLASS ) ? Class.forName( properties.getString( Index.PropertyKeys.PAYLOADCLASS ) ).newInstance() : null ); final Coding frequencyCoding = flags.get( Component.FREQUENCIES ); final Coding pointerCoding = flags.get( Component.POINTERS );
public String getString( final Enum<?> key ) { return getString( key.name().toLowerCase() ); }
ClusteringStrategy strategy = null; Class<? extends ClusteringStrategy> strategyClass = null; if ( properties.containsKey( PropertyKeys.STRATEGY ) ) strategy = (ClusteringStrategy)BinIO.loadObject( properties.getString( PropertyKeys.STRATEGY ) ); else if ( properties.containsKey( PropertyKeys.STRATEGYCLASS ) ) try { strategyClass = (Class<? extends ClusteringStrategy>)MG4JClassParser.getParser().parse( properties.getString( PropertyKeys.STRATEGYCLASS ) ); final Class<? extends IndexCluster> indexClass = (Class<? extends IndexCluster>)Class.forName( properties.getString( Index.PropertyKeys.INDEXCLASS, "(missing index class)" )); payload, hasCounts, hasPositions, Index.getTermProcessor( properties ), properties.getString( Index.PropertyKeys.FIELD ), sizes, properties ); payload, hasCounts, hasPositions, Index.getTermProcessor( properties ), properties.getString( Index.PropertyKeys.FIELD ), sizes, properties ); payload, hasCounts, hasPositions, Index.getTermProcessor( properties ), properties.getString( Index.PropertyKeys.FIELD ), sizes, properties );
public String getString( final Enum<?> key ) { return getString( key.name().toLowerCase() ); }
ClusteringStrategy strategy = null; Class<? extends ClusteringStrategy> strategyClass = null; if ( properties.containsKey( PropertyKeys.STRATEGY ) ) strategy = (ClusteringStrategy)BinIO.loadObject( properties.getString( PropertyKeys.STRATEGY ) ); else if ( properties.containsKey( PropertyKeys.STRATEGYCLASS ) ) try { strategyClass = (Class<? extends ClusteringStrategy>)MG4JClassParser.getParser().parse( properties.getString( PropertyKeys.STRATEGYCLASS ) ); final Class<? extends IndexCluster> indexClass = (Class<? extends IndexCluster>)Class.forName( properties.getString( Index.PropertyKeys.INDEXCLASS, "(missing index class)" )); payload, hasCounts, hasPositions, Index.getTermProcessor( properties ), properties.getString( Index.PropertyKeys.FIELD ), sizes, properties ); payload, hasCounts, hasPositions, Index.getTermProcessor( properties ), properties.getString( Index.PropertyKeys.FIELD ), sizes, properties ); payload, hasCounts, hasPositions, Index.getTermProcessor( properties ), properties.getString( Index.PropertyKeys.FIELD ), sizes, properties );
public String getString(final Enum<?> key) { return getString(key.name().toLowerCase()); }
ClusteringStrategy strategy = null; Class<? extends ClusteringStrategy> strategyClass = null; if ( properties.containsKey( PropertyKeys.STRATEGY ) ) strategy = (ClusteringStrategy)BinIO.loadObject( properties.getString( PropertyKeys.STRATEGY ) ); else if ( properties.containsKey( PropertyKeys.STRATEGYCLASS ) ) try { strategyClass = (Class<? extends ClusteringStrategy>)MG4JClassParser.getParser().parse( properties.getString( PropertyKeys.STRATEGYCLASS ) ); final Class<? extends IndexCluster> indexClass = (Class<? extends IndexCluster>)Class.forName( properties.getString( Index.PropertyKeys.INDEXCLASS, "(missing index class)" )); payload, hasCounts, hasPositions, Index.getTermProcessor( properties ), properties.getString( Index.PropertyKeys.FIELD ), sizes, properties ); payload, hasCounts, hasPositions, Index.getTermProcessor( properties ), properties.getString( Index.PropertyKeys.FIELD ), sizes, properties );
public String getString( final Enum<?> key, String arg ) { return getString( key.name().toLowerCase(), arg ); }
ClusteringStrategy strategy = null; Class<? extends ClusteringStrategy> strategyClass = null; if ( properties.containsKey( PropertyKeys.STRATEGY ) ) strategy = (ClusteringStrategy)BinIO.loadObject( properties.getString( PropertyKeys.STRATEGY ) ); else if ( properties.containsKey( PropertyKeys.STRATEGYCLASS ) ) try { strategyClass = (Class<? extends ClusteringStrategy>)MG4JClassParser.getParser().parse( properties.getString( PropertyKeys.STRATEGYCLASS ) ); final Class<? extends IndexCluster> indexClass = (Class<? extends IndexCluster>)Class.forName( properties.getString( Index.PropertyKeys.INDEXCLASS, "(missing index class)" )); payload, hasCounts, hasPositions, Index.getTermProcessor( properties ), properties.getString( Index.PropertyKeys.FIELD ), sizes, properties ); payload, hasCounts, hasPositions, Index.getTermProcessor( properties ), properties.getString( Index.PropertyKeys.FIELD ), sizes, properties );
public String getString(final Enum<?> key, String arg) { return getString(key.name().toLowerCase(), arg); }
protected static TermProcessor getTermProcessor( final Properties properties ) { try { // Catch old property files if ( properties.getProperty( Index.PropertyKeys.TERMPROCESSOR ) == null ) throw new IllegalArgumentException( "No term processor has been specified (most likely, because of an obsolete property file)" ); return ObjectParser.fromSpec( properties.getString( Index.PropertyKeys.TERMPROCESSOR ).replace( ".dsi.", ".di." ), TermProcessor.class, MG4JClassParser.PACKAGE, new String[] { "getInstance" } ); } catch ( Exception e ) { throw new RuntimeException( e ); } }
protected static TermProcessor getTermProcessor( final Properties properties ) { try { // Catch old property files if ( properties.getProperty( Index.PropertyKeys.TERMPROCESSOR ) == null ) throw new IllegalArgumentException( "No term processor has been specified (most likely, because of an obsolete property file)" ); return ObjectParser.fromSpec( properties.getString( Index.PropertyKeys.TERMPROCESSOR ).replace( ".dsi.big.mg4j.", ".di.big.mg4j." ), TermProcessor.class, MG4JClassParser.PACKAGE, new String[] { "getInstance" } ); } catch ( Exception e ) { throw new RuntimeException( e ); } }
protected static TermProcessor getTermProcessor( final Properties properties ) { try { // Catch old property files if ( properties.getProperty( Index.PropertyKeys.TERMPROCESSOR ) == null ) throw new IllegalArgumentException( "No term processor has been specified (most likely, because of an obsolete property file)" ); return ObjectParser.fromSpec( properties.getString( Index.PropertyKeys.TERMPROCESSOR ), TermProcessor.class, MG4JClassParser.PACKAGE, new String[] { "getInstance" } ); } catch ( Exception e ) { throw new RuntimeException( e ); } }
protected static TermProcessor getTermProcessor( final Properties properties ) { try { // Catch old property files if ( properties.getProperty( Index.PropertyKeys.TERMPROCESSOR ) == null ) throw new IllegalArgumentException( "No term processor has been specified (most likely, because of an obsolete property file)" ); return ObjectParser.fromSpec( properties.getString( Index.PropertyKeys.TERMPROCESSOR ), TermProcessor.class, MG4JClassParser.PACKAGE, new String[] { "getInstance" } ); } catch ( Exception e ) { throw new RuntimeException( e ); } }
String className = properties.getString( Index.PropertyKeys.INDEXCLASS, "(missing index class)" ).replace( ".dsi.big.mg4j.", ".di.big.mg4j." ); Class<?> indexClass = Class.forName( className );
String className = properties.getString( Index.PropertyKeys.INDEXCLASS, "(missing index class)" );
String className = properties.getString( Index.PropertyKeys.INDEXCLASS, "(missing index class)" ).replace( ".dsi.", ".di." ); Class<?> indexClass = Class.forName( className );
String className = properties.getString( Index.PropertyKeys.INDEXCLASS, "(missing index class)" );